public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] riscv: dts: starfive: jh7110-common: Use named definition for mmc1 card detect
@ 2024-12-10  4:06 E Shattow
  2024-12-16 20:11 ` Conor Dooley
  2024-12-16 20:12 ` Conor Dooley
  0 siblings, 2 replies; 8+ messages in thread
From: E Shattow @ 2024-12-10  4:06 UTC (permalink / raw)
  To: Conor Dooley, Emil Renner Berthing, Rob Herring,
	Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Jisheng Zhang
  Cc: E Shattow, Conor Dooley, Emil Renner Berthing, linux-riscv,
	devicetree, linux-kernel

Use named definition for mmc1 card detect GPIO instead of numeric literal.

Fixes: ac9a37e2d6b63 ("riscv: dts: starfive: introduce a common board dtsi for jh7110 based boards")
Signed-off-by: E Shattow <e@freeshell.de>
---
 arch/riscv/boot/dts/starfive/jh7110-common.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi
index 48fb5091b817..12a90d38ab31 100644
--- a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi
+++ b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi
@@ -281,7 +281,7 @@ &mmc1 {
 	bus-width = <4>;
 	no-sdio;
 	no-mmc;
-	cd-gpios = <&sysgpio 41 GPIO_ACTIVE_LOW>;
+	cd-gpios = <&sysgpio GPI_SYS_SDIO1_CD GPIO_ACTIVE_LOW>;
 	disable-wp;
 	cap-sd-highspeed;
 	post-power-on-delay-ms = <200>;

base-commit: 708d55db3edbe2ccf88d94b5f2e2b404bc0ba37c
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-12-21 13:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-10  4:06 [PATCH] riscv: dts: starfive: jh7110-common: Use named definition for mmc1 card detect E Shattow
2024-12-16 20:11 ` Conor Dooley
2024-12-16 20:12 ` Conor Dooley
2024-12-17  2:02   ` Hal Feng
2024-12-17  3:25     ` E Shattow
2024-12-17 18:33       ` Conor Dooley
2024-12-19  9:41         ` E Shattow
2024-12-21  4:15           ` Hal Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox