[openwrt/openwrt] airoha: an7581: add Aeonsemi AS21xxx PHY to RFB eMMC board

LEDE Commits lede-commits at lists.infradead.org
Fri Oct 24 03:17:58 PDT 2025


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/26da4bf552bacd2ca606c50859fa2ebb8867266d

commit 26da4bf552bacd2ca606c50859fa2ebb8867266d
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Fri Oct 24 11:48:13 2025 +0200

    airoha: an7581: add Aeonsemi AS21xxx PHY to RFB eMMC board
    
    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 <ansuelsmth at gmail.com>
---
 target/linux/airoha/dts/an7581-evb-emmc.dts | 41 +++++++++++++++++++++++++++++
 target/linux/airoha/dts/an7581.dtsi         |  2 +-
 2 files changed, 42 insertions(+), 1 deletion(-)

diff --git a/target/linux/airoha/dts/an7581-evb-emmc.dts b/target/linux/airoha/dts/an7581-evb-emmc.dts
index 26d446e2a1..f7540f79e3 100644
--- a/target/linux/airoha/dts/an7581-evb-emmc.dts
+++ b/target/linux/airoha/dts/an7581-evb-emmc.dts
@@ -156,6 +156,40 @@
 	status = "okay";
 };
 
+&mdio {
+	as21xx_1: ethernet-phy at 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 at 0 {
+				reg = <0>;
+				color = <LED_COLOR_ID_GREEN>;
+				function = LED_FUNCTION_LAN;
+				function-enumerator = <0>;
+				default-state = "keep";
+			};
+
+			led at 1 {
+				reg = <1>;
+				color = <LED_COLOR_ID_GREEN>;
+				function = LED_FUNCTION_LAN;
+				function-enumerator = <1>;
+				default-state = "keep";
+			};
+		};
+	};
+};
+
 &eth {
 	status = "okay";
 };
@@ -164,6 +198,13 @@
 	status = "okay";
 };
 
+&gdm4 {
+	status = "okay";
+
+	phy-handle = <&as21xx_1>;
+	phy-mode = "usxgmii";
+};
+
 &switch {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mdio_pins>;
diff --git a/target/linux/airoha/dts/an7581.dtsi b/target/linux/airoha/dts/an7581.dtsi
index af098249f9..c0bf58f795 100644
--- a/target/linux/airoha/dts/an7581.dtsi
+++ b/target/linux/airoha/dts/an7581.dtsi
@@ -874,7 +874,7 @@
 				};
 			};
 
-			mdio {
+			mdio: mdio {
 				#address-cells = <1>;
 				#size-cells = <0>;
 




More information about the lede-commits mailing list