ARM: dts: stm32: Enable SDMMC3 on DH DRC02
authorMarek Vasut <marex@denx.de>
Tue, 1 Dec 2020 10:29:19 +0000 (11:29 +0100)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 9 Dec 2020 09:57:50 +0000 (10:57 +0100)
The DH DRC02 board has an on-board microSD slot,
add DT properties to enable the slot.

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-drc02.dts

index 5a237a3..e8508aa 100644 (file)
         * On DRC02, the SoM does not have SDIO WiFi. The pins
         * are used for on-board microSD slot instead.
         */
-       /delete-property/broken-cd;
-       cd-gpios = <&gpioi 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+       pinctrl-names = "default", "opendrain", "sleep";
+       pinctrl-0 = <&sdmmc3_b4_pins_a>;
+       pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
+       pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
+       cd-gpios = <&gpioi 10 GPIO_ACTIVE_HIGH>;
        disable-wp;
+       st,neg-edge;
+       bus-width = <4>;
+       vmmc-supply = <&v3v3>;
+       vqmmc-supply = <&v3v3>;
+       mmc-ddr-3_3v;
+       status = "okay";
 };
 
 &spi1 {