Re: Raspberry CM3 eMMC Boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18. 06. 19 09:57, Sascha Hauer wrote:
Hi Rico,

On Mon, Jun 17, 2019 at 03:44:17PM +0200, Rico Pahlisch wrote:
-coredevice_initcall(bcm2835_gpio_add);
+device_initcall(bcm2835_gpio_add);

I have no idea why this helps. Do you have any logs that explain the
issue?

The problem is that gpio alt functions aren't getting setup correctly. Rico's patch makes mci init take place before gpio init, which seems to work around the problem, but doesn't actually fix the core issue.

The problem is actually my commit 9eed45c7, which was made before sdhost driver was functional in barebox. It enables sdhci in devicetree, but doesn't disable sdhost.

This makes both sdhost and sdhci nodes active. If CONFIG_MCI_BCM283X_SDHOST is enabled (which is in rpi_defconfig since b093468c), both drivers try to fetch the alt function for the same set of GPIOs, which obviously doesn't work.

So basically what I think needs to be done is disable sdhci on Compute Module now that sdhost works. Same thing as was done for R.Pi 3 by Lucas in 9036d1db.

Rico, can you check if the patch below works for you?

Best regards
Tomaž


diff --git a/arch/arm/dts/bcm2837-rpi-cm3.dts b/arch/arm/dts/bcm2837-rpi-cm3.dts
index cfbffe175..01c1f9a67 100644
--- a/arch/arm/dts/bcm2837-rpi-cm3.dts
+++ b/arch/arm/dts/bcm2837-rpi-cm3.dts
@@ -9,10 +9,3 @@
                reg = <0x0 0x0>;
        };
 };
-
-&sdhci {
-       pinctrl-0 = <&emmc_gpio48>;
-       no-sd;
-       non-removable;
-       status = "okay";
-};

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux