ARM: dts: stm32: add cd-gpios properties for SD-cards on STM32MP1 boards
authorYann Gautier <yann.gautier@st.com>
Wed, 4 Mar 2020 08:09:54 +0000 (09:09 +0100)
committerAlexandre Torgue <alexandre.torgue@st.com>
Fri, 13 Mar 2020 16:03:06 +0000 (17:03 +0100)
The broken-cd properties are replaced with cd-gpios, with the correct
GPIO to detect the card insertion. The GPIO lines require a pull-up.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32mp157a-avenger96.dts
arch/arm/boot/dts/stm32mp157c-ed1.dts
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi

index 1583be1..ee42251 100644 (file)
        pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
        pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
        pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
-       broken-cd;
+       cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
        st,sig-dir;
        st,neg-edge;
        st,use-ckin;
index a9a929f..50920cc 100644 (file)
        pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
        pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
        pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
-       broken-cd;
+       cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
        st,sig-dir;
        st,neg-edge;
        st,use-ckin;
index fe53eb2..f2a1dd6 100644 (file)
        pinctrl-0 = <&sdmmc1_b4_pins_a>;
        pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
        pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
-       broken-cd;
+       cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
        st,neg-edge;
        bus-width = <4>;
        vmmc-supply = <&v3v3>;