Skip to content

Commit c8bfe65

Browse files
xdarklightkhilman
authored andcommitted
ARM: dts: meson8b: ec100: mark the SD card detection GPIO active-low
After commit 89a5e15 ("gpio/mmc/of: Respect polarity in the device tree") SD cards are not detected anymore. The CD GPIO is "active low" on the EC-100. The MMC dt-bindings specify: "[...] using the "cd-inverted" property means, that the CD line is active high, i.e. it is high, when a card is inserted". Fix the description of the SD card by marking it as GPIO_ACTIVE_LOW and drop the "cd-inverted" property. This makes the definition consistent with the existing dt-bindings and fixes the check whether an SD card is inserted. Fixes: bbedc1f ("ARM: dts: meson8b: Add support for the Endless Mini (EC-100)") Signed-off-by: Martin Blumenstingl <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Kevin Hilman <[email protected]>
1 parent 3fb348e commit c8bfe65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm/boot/dts/meson8b-ec100.dts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@
205205
cap-sd-highspeed;
206206
disable-wp;
207207

208-
cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
209-
cd-inverted;
208+
cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
210209

211210
vmmc-supply = <&vcc_3v3>;
212211
};

0 commit comments

Comments
 (0)