realtek: rtl839x: Enable AUX MDIO controller
authorSander Vanheule <sander@svanheule.net>
Sat, 18 Jan 2025 12:45:55 +0000 (13:45 +0100)
committerSander Vanheule <sander@svanheule.net>
Sat, 18 Jan 2025 12:51:26 +0000 (13:51 +0100)
Enable the driver for the Realtek Otto auxiliary MDIO driver so RTL839x
devices can use it. The related node is added to the base devicetree for
rtl839x-based devices, so they can enabled and use it when required.

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

index 3f87f5622e23df2206b0ebacfaefca9def2a0966..7fc5aea70c49708f4187746676dd8eb193929651 100644 (file)
 
        };
 
+       switchcore@1b000000 {
+               compatible = "syscon", "simple-mfd";
+               reg = <0x1b000000 0x20000>;
+
+               mdio_aux: mdio-aux {
+                       compatible = "realtek,rtl8390-aux-mdio";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       status = "disabled";
+
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&mdio_aux_mdx>;
+               };
+       };
+
        pinmux@1b000004 {
                compatible = "pinctrl-single";
                reg = <0x1b000004 0x4>;
                pinmux_disable_sys_led: disable_sys_led {
                        pinctrl-single,bits = <0x0 0x0 0x4000>;
                };
+
+               /* enable AUX MDC/MDIO */
+               mdio_aux_mdx: aux-mdx-pins {
+                       pinctrl-single,bits = <0x0 0x100000 0x1c0000>;
+               };
        };
 
        ethernet0: ethernet@1b00a300 {
index 2616286a1729a7a6e3d56790fd941cc69d06ac88..dac7646925517c91fbf07328f3a03a79faca4e78 100644 (file)
@@ -130,7 +130,7 @@ CONFIG_MDIO_BUS=y
 CONFIG_MDIO_DEVICE=y
 CONFIG_MDIO_DEVRES=y
 CONFIG_MDIO_I2C=y
-# CONFIG_MDIO_REALTEK_OTTO_AUX is not set
+CONFIG_MDIO_REALTEK_OTTO_AUX=y
 CONFIG_MDIO_SMBUS=y
 # CONFIG_MFD_RTL8231 is not set
 CONFIG_MFD_SYSCON=y