arm64: tegra: Fix P3767 card detect polarity
authorBrad Griffis <bgriffis@nvidia.com>
Mon, 26 Jun 2023 18:09:19 +0000 (18:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:59:16 +0000 (11:59 +0100)
[ Upstream commit c6b7a1d11d0fa6333078141251908f48042016e1 ]

The SD card detect pin is active-low on all Orin Nano and NX SKUs that
have an SD card slot.

Fixes: 13b0aca303e9 ("arm64: tegra: Support Jetson Orin NX")
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/nvidia/tegra234-p3767.dtsi

index 5f592f1..99dd648 100644 (file)
@@ -42,7 +42,7 @@
                mmc@3400000 {
                        status = "okay";
                        bus-width = <4>;
-                       cd-gpios = <&gpio TEGRA234_MAIN_GPIO(G, 7) GPIO_ACTIVE_HIGH>;
+                       cd-gpios = <&gpio TEGRA234_MAIN_GPIO(G, 7) GPIO_ACTIVE_LOW>;
                        disable-wp;
                };