]> www.infradead.org Git - users/willy/linux.git/commitdiff
riscv: dts: starfive: jh7110-common: use macros for MMC0 pins
authorIcenowy Zheng <uwu@icenowy.me>
Thu, 24 Apr 2025 06:06:05 +0000 (14:06 +0800)
committerConor Dooley <conor.dooley@microchip.com>
Thu, 15 May 2025 20:06:04 +0000 (21:06 +0100)
The pin names of MMC0 pinmux is defined in the pinctrl dt binding header
associated with starfive,jh7110-pinctrl .

Include the header file and use these names instead of raw numbers for
defining MMC0 pinmux.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/starfive/jh7110-common.dtsi

index c2f70f5e2918fcd30dc862d932dc6eec8b9fb1b7..a2c72b385a90511d75a045b297dac4f5fafee16b 100644 (file)
@@ -8,6 +8,7 @@
 #include "jh7110.dtsi"
 #include "jh7110-pinfunc.h"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/starfive,jh7110-pinctrl.h>
 
 / {
        aliases {
                };
 
                mmc-pins {
-                       pinmux = <PINMUX(64, 0)>,
-                                <PINMUX(65, 0)>,
-                                <PINMUX(66, 0)>,
-                                <PINMUX(67, 0)>,
-                                <PINMUX(68, 0)>,
-                                <PINMUX(69, 0)>,
-                                <PINMUX(70, 0)>,
-                                <PINMUX(71, 0)>,
-                                <PINMUX(72, 0)>,
-                                <PINMUX(73, 0)>;
+                       pinmux = <PINMUX(PAD_SD0_CLK, 0)>,
+                                <PINMUX(PAD_SD0_CMD, 0)>,
+                                <PINMUX(PAD_SD0_DATA0, 0)>,
+                                <PINMUX(PAD_SD0_DATA1, 0)>,
+                                <PINMUX(PAD_SD0_DATA2, 0)>,
+                                <PINMUX(PAD_SD0_DATA3, 0)>,
+                                <PINMUX(PAD_SD0_DATA4, 0)>,
+                                <PINMUX(PAD_SD0_DATA5, 0)>,
+                                <PINMUX(PAD_SD0_DATA6, 0)>,
+                                <PINMUX(PAD_SD0_DATA7, 0)>;
                        bias-pull-up;
                        drive-strength = <12>;
                        input-enable;