]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: dts: allwinner: Fix SD card CD GPIO for SOPine systems
authorAndre Przywara <andre.przywara@arm.com>
Tue, 16 Mar 2021 14:42:19 +0000 (14:42 +0000)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 7 Apr 2021 11:41:35 +0000 (13:41 +0200)
commitc69cceccfcbaa76f2cf3c045a0e02aa829439ee0
tree641d08d68e3fb24cc166f76f9fdda28801b32173
parent0e72c0c5bb929454eb959a81aeae1a0e01cf3ddf
arm64: dts: allwinner: Fix SD card CD GPIO for SOPine systems

Commit 20ca0fdccb37 ("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.

However while both boards indeed have a working CD GPIO on PF6, the
polarity is different: the SOPine modules uses a "push-pull" socket,
which has an active-high switch, while the Pine64-LTS use the more
traditional push-push socket and the common active-low switch.

Fix the polarity in the sopine.dtsi, and overwrite it in the LTS
board .dts, to make the SD card work again on systems using SOPine
modules.

Fixes: 20ca0fdccb37 ("arm64: dts: allwinner: Drop non-removable from SoPine/LTS SD card")
Reported-by: Ashley <contact@victorianfox.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20210316144219.5973-1-andre.przywara@arm.com
arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts
arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi