]> git.sur5r.net Git - u-boot/commitdiff
ARM: DTS: stm32: add SDMMC support fo stm32h743-eval
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 3 Oct 2017 13:54:57 +0000 (15:54 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 8 Oct 2017 20:19:56 +0000 (16:19 -0400)
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@st.com>
arch/arm/dts/stm32h743-pinctrl.dtsi
arch/arm/dts/stm32h743i-eval.dts

index d6a79aefb4ccb2403e8744134b1fd2fec8e98f46..e4f4aa579bd46ce808f6dcd76bff9247ece0dbf7 100644 (file)
                                        bias-disable;
                                };
                        };
+
+                       pinctrl_sdmmc1_level_shifter: sdmmc0_ls@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>;
+                               };
+                       };
                };
        };
 };
index 0e01ce51ab3338d1cd7de2798d7e6e6925999be7..28c876be27fc695da51644284f39589131073fd9 100644 (file)
                st,sdram-refcount = <1539>;
        };
 };
+
+&sdmmc1 {
+       status = "okay";
+       pinctrl-0 = <&sdmmc1_pins>,
+                   <&pinctrl_sdmmc1_level_shifter>;
+       pinctrl-names = "default";
+       bus-width = <4>;
+       st,dirpol;
+};