]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.20.16/arm-dts-meson8m2-mxiii-plus-mark-the-sd-card-detecti.patch
Linux 4.20.16
[thirdparty/kernel/stable-queue.git] / releases / 4.20.16 / arm-dts-meson8m2-mxiii-plus-mark-the-sd-card-detecti.patch
CommitLineData
941c5db0
SL
1From 2ec8a39becb71c46011b205ea9f294ffbc1bec74 Mon Sep 17 00:00:00 2001
2From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
3Date: Sat, 29 Dec 2018 13:57:11 +0100
4Subject: ARM: dts: meson8m2: mxiii-plus: mark the SD card detection GPIO
5 active-low
6
7[ Upstream commit 8615f5596335db0978cea593dcd0070dc5f8b116 ]
8
9After commit 89a5e15bcba87d ("gpio/mmc/of: Respect polarity in the device
10tree") SD cards are not detected anymore.
11
12The CD GPIO is "active low" on the MXIII-Plus. The MMC dt-bindings
13specify: "[...] using the "cd-inverted" property means, that the CD line
14is active high, i.e. it is high, when a card is inserted".
15
16Fix the description of the SD card by marking it as GPIO_ACTIVE_LOW and
17drop the "cd-inverted" property. This makes the definition consistent
18with the existing dt-bindings and fixes the check whether an SD card is
19inserted.
20
21Fixes: 35ee52bea66c74 ("ARM: dts: meson8m2: add support for the Tronsmart MXIII Plus")
22Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
23Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
24Signed-off-by: Kevin Hilman <khilman@baylibre.com>
25Signed-off-by: Sasha Levin <sashal@kernel.org>
26---
27 arch/arm/boot/dts/meson8m2-mxiii-plus.dts | 3 +--
28 1 file changed, 1 insertion(+), 2 deletions(-)
29
30diff --git a/arch/arm/boot/dts/meson8m2-mxiii-plus.dts b/arch/arm/boot/dts/meson8m2-mxiii-plus.dts
31index f5853610b20b..6ac02beb5fa7 100644
32--- a/arch/arm/boot/dts/meson8m2-mxiii-plus.dts
33+++ b/arch/arm/boot/dts/meson8m2-mxiii-plus.dts
34@@ -206,8 +206,7 @@
35 cap-sd-highspeed;
36 disable-wp;
37
38- cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
39- cd-inverted;
40+ cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
41
42 vmmc-supply = <&vcc_3v3>;
43 };
44--
452.19.1
46