]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: stm32: Enable sdio1 for stm32f769-disco
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 1 Mar 2018 10:53:00 +0000 (11:53 +0100)
committerAlexandre Torgue <alexandre.torgue@st.com>
Mon, 5 Mar 2018 08:04:25 +0000 (09:04 +0100)
Adds SDIO related DT nodes for stm32f769-disco board.

broken-cd property is needed as it misses a pullup on board
(resistor R76 is missing).

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32f769-disco.dts

index d712260ddd8595a198dcbbe7824414be924c5a43..2241eecdabfe540a7309557a2e510d4839ec20c2 100644 (file)
@@ -92,6 +92,13 @@ usbotg_hs_phy: usb-phy {
                clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>;
                clock-names = "main_clk";
        };
+
+       mmc_vcard: mmc_vcard {
+               compatible = "regulator-fixed";
+               regulator-name = "mmc_vcard";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+       };
 };
 
 &cec {
@@ -108,6 +115,18 @@ &rtc {
        status = "okay";
 };
 
+&sdio2 {
+       status = "okay";
+       vmmc-supply = <&mmc_vcard>;
+       cd-gpios = <&gpioi 15 GPIO_ACTIVE_HIGH>;
+       cd-inverted;
+       broken-cd;
+       pinctrl-names = "default", "opendrain";
+       pinctrl-0 = <&sdio_pins_b>;
+       pinctrl-1 = <&sdio_pins_od_b>;
+       bus-width = <4>;
+};
+
 &usart1 {
        pinctrl-0 = <&usart1_pins_a>;
        pinctrl-names = "default";