linux-brain/arch/arm64/boot/dts/allwinner
Andre Przywara c6eb92b37a arm64: dts: allwinner: Revert SD card CD GPIO for Pine64-LTS
[ Upstream commit 4d09ccc4a81e7de6b002482af554d8b5626f5041 ]

Commit 941432d00768 ("arm64: dts: allwinner: Drop non-removable from
SoPine/LTS SD card") enabled the card detect GPIO for the SOPine module,
along the way with the Pine64-LTS, which share the same base .dtsi.

This was based on the observation that the Pine64-LTS has as "push-push"
SD card socket, and that the schematic mentions the card detect GPIO.

After having received two reports about failing SD card access with that
patch, some more research and polls on that subject revealed that there
are at least two different versions of the Pine64-LTS out there:
- On some boards (including mine) the card detect pin is "stuck" at
  high, regardless of an microSD card being inserted or not.
- On other boards the card-detect is working, but is active-high, by
  virtue of an explicit inverter circuit, as shown in the schematic.

To cover all versions of the board out there, and don't take any chances,
let's revert the introduction of the active-low CD GPIO, but let's use
the broken-cd property for the Pine64-LTS this time. That should avoid
regressions and should work for everyone, even allowing SD card changes
now.
The SOPine card detect has proven to be working, so let's keep that
GPIO in place.

Fixes: 941432d00768 ("arm64: dts: allwinner: Drop non-removable from SoPine/LTS SD card")
Reported-by: Michael Weiser <michael.weiser@gmx.de>
Reported-by: Daniel Kulesz <kuleszdl@posteo.org>
Suggested-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Michael Weiser <michael.weiser@gmx.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20210414104740.31497-1-andre.przywara@arm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-04-28 13:19:14 +02:00
..
Makefile arm64: dts: allwinner: a64: Add A64 OlinuXino board (with eMMC) 2019-08-23 09:14:50 +02:00
axp803.dtsi arm64: dts: allwinner: axp803: add USB power supply node 2019-05-20 09:40:15 +02:00
sun50i-a64-amarula-relic.dts arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node 2019-05-20 09:28:01 +02:00
sun50i-a64-bananapi-m64.dts arm64: dts: allwinner: a64: bananapi-m64: Enable RGMII RX/TX delay on PHY 2020-11-24 13:29:03 +01:00
sun50i-a64-nanopi-a64.dts arm64: dts: allwinner: a64: move I2C pinctrl to dtsi 2019-05-20 09:28:01 +02:00
sun50i-a64-oceanic-5205-5inmfd.dts arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable GT911 CTP 2019-05-20 09:28:01 +02:00
sun50i-a64-olinuxino-emmc.dts arm64: dts: allwinner: a64: olinuxino: Fix eMMC supply regulator 2020-01-23 08:22:31 +01:00
sun50i-a64-olinuxino.dts arm64: dts: allwinner: a64: olinuxino: Fix SDIO supply regulator 2020-01-23 08:22:31 +01:00
sun50i-a64-orangepi-win.dts arm64: dts: allwinner: a64: OrangePi Win: Fix ethernet node 2020-11-24 13:29:02 +01:00
sun50i-a64-pine64-lts.dts arm64: dts: allwinner: Revert SD card CD GPIO for Pine64-LTS 2021-04-28 13:19:14 +02:00
sun50i-a64-pine64-plus.dts arm64: dts: allwinner: a64: Pine64 Plus: Fix ethernet node 2020-11-24 13:29:02 +01:00
sun50i-a64-pine64.dts arm64: dts: allwinner: a64: move I2C pinctrl to dtsi 2019-05-20 09:28:01 +02:00
sun50i-a64-pinebook.dts arm64: dts: allwinner: A64: Limit MMC2 bus frequency to 150 MHz 2021-03-04 10:26:13 +01:00
sun50i-a64-sopine-baseboard.dts arm64: dts: allwinner: a64: sopine-baseboard: Add PHY regulator delay 2019-09-30 22:12:03 +02:00
sun50i-a64-sopine.dtsi arm64: dts: allwinner: Fix SD card CD GPIO for SOPine systems 2021-04-21 12:56:18 +02:00
sun50i-a64-teres-i.dts arm64: dts: allwinner: a64: Enable audio on Teres-I 2019-05-20 10:09:17 +02:00
sun50i-a64.dtsi arm64: dts: allwinner: A64: Limit MMC2 bus frequency to 150 MHz 2021-03-04 10:26:13 +01:00
sun50i-h5-bananapi-m2-plus-v1.2.dts ARM: dts: sunxi: h3-h5: Add Bananapi M2+ v1.2 device trees 2018-09-29 15:58:38 +02:00
sun50i-h5-bananapi-m2-plus.dts arm64: dts: allwinner: h5: Add device tree for Bananapi M2 Plus H5 2018-09-29 15:57:46 +02:00
sun50i-h5-emlid-neutis-n5-devboard.dts ARM: dts: sunxi: h3/h5: Fix GPIO regulator state array 2019-05-29 09:27:56 +02:00
sun50i-h5-emlid-neutis-n5.dtsi ARM: dts: sunxi: h3/h5: Remove stale pinctrl-names entry 2019-03-25 21:01:38 +01:00
sun50i-h5-libretech-all-h3-cc.dts arm64: dts: allwinner: h5: libretech-all-h3-cc: Mark eMMC HS-DDR 3.3V capable 2019-02-06 13:20:36 +01:00
sun50i-h5-nanopi-neo-plus2.dts ARM: dts: sunxi: h3/h5: Fix GPIO regulator state array 2019-05-29 09:27:56 +02:00
sun50i-h5-nanopi-neo2.dts ARM: dts: sun8i: h3: Refactor the pinctrl node names 2019-03-25 21:05:42 +01:00
sun50i-h5-orangepi-pc2.dts arm64: dts: allwinner: h5: OrangePi PC2: Fix ethernet node 2020-11-24 13:29:02 +01:00
sun50i-h5-orangepi-prime.dts arm64: dts: allwinner: h5: OrangePi Prime: Fix ethernet node 2020-11-24 13:29:04 +01:00
sun50i-h5-orangepi-zero-plus.dts ARM: dts: sun8i: h3: Refactor the pinctrl node names 2019-03-25 21:05:42 +01:00
sun50i-h5-orangepi-zero-plus2.dts ARM: dts: sun8i: h3: Refactor the pinctrl node names 2019-03-25 21:05:42 +01:00
sun50i-h5.dtsi arm64: dts: allwinner: h5: remove Mali GPU PMU module 2020-10-29 09:57:58 +01:00
sun50i-h6-beelink-gs1.dts arm64: dts: allwinner: beelink-gs1: Enable both RGMII RX/TX delay 2020-11-24 13:29:01 +01:00
sun50i-h6-orangepi-3.dts arm64: dts: allwinner: orange-pi-3: Enable WiFi 2019-08-23 13:50:05 +02:00
sun50i-h6-orangepi-lite2.dts arm64: allwinner: h6: Add OrangePi Lite2 initial support 2018-11-05 16:22:42 +01:00
sun50i-h6-orangepi-one-plus.dts arm64: allwinner: h6: Add common orangepi nodes into dtsi 2018-11-05 16:22:38 +01:00
sun50i-h6-orangepi.dtsi arm64: dts: allwinner: h6: Enable IR on H6 boards 2019-07-24 10:21:55 +02:00
sun50i-h6-pine-h64.dts arm64: dts: allwinner: Pine H64: Enable both RGMII RX/TX delay 2020-11-24 13:29:02 +01:00
sun50i-h6-tanix-tx6.dts arm64: dts: allwinner: h6: Introduce Tanix TX6 board 2019-08-23 09:14:49 +02:00
sun50i-h6.dtsi arm64: dts: allwinner: H6: Allow up to 150 MHz MMC bus frequency 2021-03-04 10:26:13 +01:00