airoha: an7581: add Aeonsemi AS21xxx PHY to RFB eMMC board
authorChristian Marangi <[email protected]>
Fri, 24 Oct 2025 09:48:13 +0000 (11:48 +0200)
committerChristian Marangi <[email protected]>
Fri, 24 Oct 2025 10:17:45 +0000 (12:17 +0200)
Airoha AN7581 eMMC RFB board mount 2 Aeonsemi AS21xxx PHY. One is
usually connected to GDM4 and the other is optionally connected to GDM2.
Add the relevant nodes to support the one connected to GDM4.

Signed-off-by: Christian Marangi <[email protected]>
target/linux/airoha/dts/an7581-evb-emmc.dts
target/linux/airoha/dts/an7581.dtsi

index 26d446e2a1efbdd724a441418e9c0cad6d08bee0..f7540f79e3762b3d9edc0f89bf85fd263eb8f78c 100644 (file)
        status = "okay";
 };
 
+&mdio {
+       as21xx_1: ethernet-phy@1d {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <0x1d>;
+
+               firmware-name = "as21x1x_fw.bin";
+
+               reset-deassert-us = <1000000>;
+               reset-assert-us = <1000000>;
+               reset-gpios = <&en7581_pinctrl 31 GPIO_ACTIVE_LOW>;
+
+               leds {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       led@0 {
+                               reg = <0>;
+                               color = <LED_COLOR_ID_GREEN>;
+                               function = LED_FUNCTION_LAN;
+                               function-enumerator = <0>;
+                               default-state = "keep";
+                       };
+
+                       led@1 {
+                               reg = <1>;
+                               color = <LED_COLOR_ID_GREEN>;
+                               function = LED_FUNCTION_LAN;
+                               function-enumerator = <1>;
+                               default-state = "keep";
+                       };
+               };
+       };
+};
+
 &eth {
        status = "okay";
 };
        status = "okay";
 };
 
+&gdm4 {
+       status = "okay";
+
+       phy-handle = <&as21xx_1>;
+       phy-mode = "usxgmii";
+};
+
 &switch {
        pinctrl-names = "default";
        pinctrl-0 = <&mdio_pins>;
index af098249f90cfa7f503802ed6ac1745d44d7298a..c0bf58f79585c3cc1e3ae9d01085d7419f8ffa00 100644 (file)
                                };
                        };
 
-                       mdio {
+                       mdio: mdio {
                                #address-cells = <1>;
                                #size-cells = <0>;