ARM: dts: stm32: add disable-wp property for SD-card on STM32MP1 boards
authorYann Gautier <yann.gautier@st.com>
Wed, 4 Mar 2020 08:09:55 +0000 (09:09 +0100)
committerAlexandre Torgue <alexandre.torgue@st.com>
Fri, 13 Mar 2020 16:03:06 +0000 (17:03 +0100)
On STM32MP1 DK1, DK2, ED1 and EV1 boards, there is only a micro SD socket.
This is also the case on Avenger board.
They don't support the Write Protect pin.
The disable-wp is then added in the SD-cards sdmmc1 nodes.
This avoids executing some code and a warning during driver probe.

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 ee42251f7e6450ac13873b13e37a4aaf2af666b4..425175f7d83c3fd5e49d7b9d3c3b7fdab0bd7fba 100644 (file)
        pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
        pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
        cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+       disable-wp;
        st,sig-dir;
        st,neg-edge;
        st,use-ckin;
index 50920cc26f192f2531fce0ec9f3289e8c7bef2f4..8f452d422f1322ba4d35a13d7c11e71ba2a74e2b 100644 (file)
        pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
        pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
        cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+       disable-wp;
        st,sig-dir;
        st,neg-edge;
        st,use-ckin;
index f2a1dd6820966aeb8cdab8cdd75fc11246ff9fbd..d946e0a02f5c3a2f5d5ce3d21a9b651433e7e84f 100644 (file)
        pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
        pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
        cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+       disable-wp;
        st,neg-edge;
        bus-width = <4>;
        vmmc-supply = <&v3v3>;