summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorINAGAKI Hiroshi2025-01-19 10:01:28 +0000
committerSander Vanheule2025-01-21 17:37:51 +0000
commitd45890f6cd508256356f99c11b8a744a30d99cf4 (patch)
tree70ed4b53b971a4f2b335614cf2fa31dab9c9cca4
parent70198cac367d22b32dd6bb3c980d6b1061e55364 (diff)
downloadopenwrt-d45890f6cd508256356f99c11b8a744a30d99cf4.tar.gz
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 <musashino.open@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17593 Signed-off-by: Sander Vanheule <sander@svanheule.net>
-rw-r--r--target/linux/realtek/dts/rtl930x.dtsi29
1 files changed, 29 insertions, 0 deletions
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>;