OSDN Git Service

ARM: dts: ux500: Skomer eMMC needs 300 ms power on
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Jun 2021 18:22:37 +0000 (20:22 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 21 Sep 2021 14:32:03 +0000 (16:32 +0200)
The partitions on the eMMC will not even appear sometimes, in the
datasheet for the Samsung KLMxGxxE4x we find that the power-on time
for a 4GB eMMC of this type is 300 ms and nowadays the block stack
is so fast so we are stressing it, and we need to specify that we
need this delay in the device tree.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-ux500-samsung-skomer.dts

index 2f69e9e..5a3ac1c 100644 (file)
                        };
                };
 
-               // eMMC
+               /*
+                * eMMC seems to be mostly Samsung KLM4G1YE4C "4YMD1R"
+                */
                mmc@80005000 {
                        arm,primecell-periphid = <0x10480180>;
                        max-frequency = <100000000>;
                        mmc-ddr-1_8v;
                        no-sdio;
                        no-sd;
+                       /* From datasheet page 26 figure 9: 300 ms set-up time for 4GB */
+                       post-power-on-delay-ms = <300>;
                        vmmc-supply = <&ldo_3v3_reg>;
                        pinctrl-names = "default", "sleep";
                        pinctrl-0 = <&mc2_a_1_default>;