realtek: rtl838x: replace pinctrl nodes
authorSander Vanheule <sander@svanheule.net>
Thu, 29 Sep 2022 18:38:16 +0000 (20:38 +0200)
committerSander Vanheule <sander@svanheule.net>
Mon, 31 Oct 2022 17:52:36 +0000 (18:52 +0100)
Replace the current "pinctrl-single" nodes by the new
"realtek,maple-pinctrl" node. This allows users to specify pin groups
and features without having to dig into SoC documentation.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/dts-5.10/rtl838x.dtsi

index 64e13e1ff37af88a294d5e85a378a2a785965ca6..a953db7c328b8dd98ed2744c5b94201047fb5dc7 100644 (file)
                };
        };
 
-       pinmux: pinmux@1b001000 {
-               compatible = "pinctrl-single";
-               reg = <0x1b001000 0x4>;
-
-               pinctrl-single,bit-per-mux;
-               pinctrl-single,register-width = <32>;
-               pinctrl-single,function-mask = <0x1>;
-               #pinctrl-cells = <2>;
-
-               enable_uart1: pinmux_enable_uart1 {
-                       pinctrl-single,bits = <0x0 0x10 0x10>;
-               };
-       };
-
-       /* LED_GLB_CTRL */
-       pinmux_led: pinmux@1b00a000 {
-               compatible = "pinctrl-single";
-               reg = <0x1b00a000 0x4>;
-
-               pinctrl-single,bit-per-mux;
-               pinctrl-single,register-width = <32>;
-               pinctrl-single,function-mask = <0x1>;
-               #pinctrl-cells = <2>;
-
-               /* enable GPIO 0 */
-               pinmux_disable_sys_led: disable_sys_led {
-                       pinctrl-single,bits = <0x0 0x0 0x8000>;
+       switchcore: switchcore-bus@1b000000 {
+               compatible = "realtek,maple-switchcore", "syscon";
+               reg = <0x1b000000 0x10000>;
+
+               pinctrl {
+                       compatible = "realtek,maple-pinctrl";
+
+                       pinmux_disable_sys_led: pinmux-sys-led-gpio {
+                               groups = "sys-led";
+                               function = "gpio";
+                       };
+
+                       enable_uart1: pinmux-uart1 {
+                               groups = "uart1";
+                               function = "uart1";
+                       };
                };
        };