]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32: Enable internal pull-ups for SDMMC1 on DHCOM SoM
authorMarek Vasut <marex@denx.de>
Tue, 1 Dec 2020 10:29:17 +0000 (11:29 +0100)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 9 Dec 2020 09:57:50 +0000 (10:57 +0100)
The default state of SD bus and clock line is logical HI. SD card IO is
open-drain and pulls the bus lines LO. Always enable the SD bus pull ups
to guarantee this behavior on DHCOM SoM. Note that on SoMs with SD bus
voltage level shifter, the pull ups are built into the level shifter,
however that has no negative impact.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/dts/stm32mp15xx-dhcom.dtsi

index f022d8395c6dcaa750961b294c697b2db8b722cd..9049245c5baf03e3aaf8540808a2e680f23c1c7f 100644 (file)
        status = "okay";
 };
 
+&sdmmc1_b4_pins_a {
+       /*
+        * SD bus pull-up resistors:
+        * - optional on SoMs with SD voltage translator
+        * - mandatory on SoMs without SD voltage translator
+        */
+       pins1 {
+               bias-pull-up;
+       };
+       pins2 {
+               bias-pull-up;
+       };
+};
+
 &sdmmc2 {
        pinctrl-names = "default";
        pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;