realtek: add aux-mdio and pinctrl nodes to rtl930x.dtsi
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sun, 19 Jan 2025 10:01:28 +0000 (19:01 +0900)
committerSander Vanheule <sander@svanheule.net>
Tue, 21 Jan 2025 17:37:51 +0000 (18:37 +0100)
Add aux-mdio and pinctrl nodes to rtl930x.dtsi to enable handling of the
external RTL8231 GPIO expander connected via MDIO.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17593
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/dts/rtl930x.dtsi

index 9b0a5781a2630bba222496b26901003dcfc1b1a0..94b755aeee3782b3ac7f02337e9210cb3d02e854 100644 (file)
 
        };
 
+       switchcore@1b000000 {
+               compatible = "syscon", "simple-mfd";
+               reg = <0x1b000000 0x10000>;
+
+               mdio_aux: mdio-aux {
+                       compatible = "realtek,rtl9300-aux-mdio";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       pinctrl-0 = <&pinmux_gpio_mdio_en>;
+                       pinctrl-names = "default";
+
+                       status = "disabled";
+               };
+       };
+
+       pinmux@1b00c600 {
+               compatible = "pinctrl-single";
+               reg = <0x1b00c600 0x4>;
+
+               pinctrl-single,bit-per-mux;
+               pinctrl-single,register-width = <32>;
+               pinctrl-single,function-mask = <0x1>;
+               #pinctrl-cells = <2>;
+
+               pinmux_gpio_mdio_en: gpio-mdio-en {
+                       pinctrl-single,bits = <0x0 0x100 0x100>;
+               };
+       };
+
        pinmux_led: pinmux@1b00cc00 {
                compatible = "pinctrl-single";
                reg = <0x1b00cc00 0x4>;