From: INAGAKI Hiroshi Date: Sun, 19 Jan 2025 10:01:28 +0000 (+0900) Subject: realtek: add aux-mdio and pinctrl nodes to rtl930x.dtsi X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d45890f6cd508256356f99c11b8a744a30d99cf4;p=openwrt%2Fstaging%2Fjow.git realtek: add aux-mdio and pinctrl nodes to rtl930x.dtsi 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 Link: https://github.com/openwrt/openwrt/pull/17593 Signed-off-by: Sander Vanheule --- diff --git a/target/linux/realtek/dts/rtl930x.dtsi b/target/linux/realtek/dts/rtl930x.dtsi index 9b0a5781a2..94b755aeee 100644 --- a/target/linux/realtek/dts/rtl930x.dtsi +++ b/target/linux/realtek/dts/rtl930x.dtsi @@ -143,6 +143,35 @@ }; + 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>;