[U-Boot] [PATCH 2/7] ARM: DTS: stm32: add SDMMC support fo stm32h743-eval

patrice.chotard at st.com patrice.chotard at st.com
Tue Oct 3 13:54:57 UTC 2017


From: Patrice Chotard <patrice.chotard at st.com>

Add pinctrl and sdmmc nodes to add MMC support for
STM32H743 evaluation board.

Evaluation board needs a second pinctrl node
"pinctrl_sdmmc1_level_shifter" to drive a level shifter
on MMC bus.

Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
---
 arch/arm/dts/stm32h743-pinctrl.dtsi | 11 +++++++++++
 arch/arm/dts/stm32h743i-eval.dts    |  9 +++++++++
 2 files changed, 20 insertions(+)

diff --git a/arch/arm/dts/stm32h743-pinctrl.dtsi b/arch/arm/dts/stm32h743-pinctrl.dtsi
index d6a79ae..e4f4aa5 100644
--- a/arch/arm/dts/stm32h743-pinctrl.dtsi
+++ b/arch/arm/dts/stm32h743-pinctrl.dtsi
@@ -259,6 +259,17 @@
 					bias-disable;
 				};
 			};
+
+			pinctrl_sdmmc1_level_shifter: sdmmc0_ls at 0 {
+				pins {
+					pinmux = <STM32H7_PB8_FUNC_SDMMC1_CKIN>,
+						 <STM32H7_PB9_FUNC_SDMMC1_CDIR>,
+						 <STM32H7_PC6_FUNC_SDMMC1_D0DIR>,
+						 <STM32H7_PC7_FUNC_SDMMC1_D123DIR>;
+					drive-push-pull;
+					slew-rate = <3>;
+				};
+			};
 		};
 	};
 };
diff --git a/arch/arm/dts/stm32h743i-eval.dts b/arch/arm/dts/stm32h743i-eval.dts
index 0e01ce5..28c876b 100644
--- a/arch/arm/dts/stm32h743i-eval.dts
+++ b/arch/arm/dts/stm32h743i-eval.dts
@@ -98,3 +98,12 @@
 		st,sdram-refcount = <1539>;
 	};
 };
+
+&sdmmc1 {
+	status = "okay";
+	pinctrl-0 = <&sdmmc1_pins>,
+		    <&pinctrl_sdmmc1_level_shifter>;
+	pinctrl-names = "default";
+	bus-width = <4>;
+	st,dirpol;
+};
-- 
1.9.1



More information about the U-Boot mailing list