]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Revert "arm64: dts: rockchip: remove redundant cd-gpios from rk3588 sdmmc nodes"
authorFUKAUMI Naoki <naoki@radxa.com>
Thu, 13 Jun 2024 00:17:57 +0000 (09:17 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:38:18 +0000 (09:38 +0200)
[ Upstream commit b56aed4a613e2d2cb3bfe05fd222dbf480f6b5d8 ]

This reverts commit d859ad305ed19d9a77d8c8ecd22459b73da36ba6.

Inserting and removing microSD card is not detected since above commit.
Reverting it fixes this problem.

This is probably the same thing as 5 years ago on rk3399
https://lore.kernel.org/all/0608599d485117a9d99f5fb274fbb1b55f6ba9f7.1547466003.git.robin.murphy@arm.com/

So we'll go back to cd-gpios for now.

this patch is tested on Radxa ROCK 5A and 5B.

Fixes: d859ad305ed1 ("arm64: dts: rockchip: remove redundant cd-gpios from rk3588 sdmmc nodes")
Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
Link: https://lore.kernel.org/r/20240613001757.1350-1-naoki@radxa.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
arch/arm64/boot/dts/rockchip/rk3588-quartzpro64.dts
arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts

index 1a604429fb266e687ab9fb20e7f157c78ac461c9..e74871491ef56b76e22877dc541772aec65bd30a 100644 (file)
 &sdmmc {
        bus-width = <4>;
        cap-sd-highspeed;
+       cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
        disable-wp;
        max-frequency = <150000000>;
        no-sdio;
index 22bbfbe729c11b6e0d30cd88a5fa144ba52a22e6..b6628889b707e4eba6369594e2b99a6b141efed5 100644 (file)
 &sdmmc {
        bus-width = <4>;
        cap-sd-highspeed;
+       cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
        disable-wp;
        max-frequency = <150000000>;
        no-sdio;
index 1fe8b2a0ed75eeb3360fa82ceeb031be8e06e6b7..9b7bf6cec8bd1e6f18abc824a5cd7ddebaac3c00 100644 (file)
        bus-width = <4>;
        cap-mmc-highspeed;
        cap-sd-highspeed;
+       cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
        disable-wp;
        sd-uhs-sdr104;
        vmmc-supply = <&vcc_3v3_s3>;
index 00afb90d4eb10bab9db61591c9f5cb167c37ec93..2002fd0221fa30cf2b81afcab5bf600dd8328ae1 100644 (file)
        bus-width = <4>;
        cap-mmc-highspeed;
        cap-sd-highspeed;
+       cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
        disable-wp;
        max-frequency = <150000000>;
        no-sdio;