From aa3a9d8fa2b634e6dd3906c21c7ae508eb9aa271 Mon Sep 17 00:00:00 2001 From: Kenneth Kasilag Date: Tue, 12 May 2026 11:11:41 +0000 Subject: [PATCH] uboot-airoha: add ethernet node for an7581 dtsi For the backport to U-boot 2025.10, the ethernet driver (airoha_eth) supports an7581 however it is not declared in the dtsi. Add the ethernet node for the built in airoha ethernet controller. Signed-off-by: Kenneth Kasilag Link: https://github.com/openwrt/openwrt/pull/22294 Signed-off-by: Robert Marko --- ...oha-add-Ethernet-node-in-AN7581-dtsi.patch | 52 +++++++++++++++++++ .../999-airoha-add-gemtek-w1700k.patch | 2 +- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 package/boot/uboot-airoha/patches/307-airoha-add-Ethernet-node-in-AN7581-dtsi.patch diff --git a/package/boot/uboot-airoha/patches/307-airoha-add-Ethernet-node-in-AN7581-dtsi.patch b/package/boot/uboot-airoha/patches/307-airoha-add-Ethernet-node-in-AN7581-dtsi.patch new file mode 100644 index 0000000000..37c9c7a811 --- /dev/null +++ b/package/boot/uboot-airoha/patches/307-airoha-add-Ethernet-node-in-AN7581-dtsi.patch @@ -0,0 +1,52 @@ +From 6ecd1312f85bdd0a9be8cc1cdada58c83f68ad99 Mon Sep 17 00:00:00 2001 +From: Kenneth Kasilag +Date: Fri, 6 Mar 2026 06:26:03 +0000 +Subject: [PATCH] uboot-airoha: add ethernet node for an7581 dtsi + +The ethernet driver (airoha_eth) supports an7581 however it is +not declared in the dtsi. Add the ethernet node for the built in +airoha ethernet controller. + +Signed-off-by: Kenneth Kasilag +--- + dts/upstream/src/arm64/airoha/en7581.dtsi | 36 +++++++++++++++++++ + 1 file changed, 36 insertions(+) + +diff --git a/dts/upstream/src/arm64/airoha/en7581.dtsi b/dts/upstream/src/arm64/airoha/en7581.dtsi +index 69265e4a1fea97..3b319e7b72fb57 100644 +--- a/dts/upstream/src/arm64/airoha/en7581.dtsi ++++ b/dts/upstream/src/arm64/airoha/en7581.dtsi +@@ -346,5 +346,33 @@ + + status = "disabled"; + }; ++ ++ eth: ethernet@1fb50000 { ++ compatible = "airoha,en7581-eth"; ++ reg = <0 0x1fb50000 0 0x2600>, ++ <0 0x1fb54000 0 0x2000>, ++ <0 0x1fb56000 0 0x2000>; ++ reg-names = "fe", "qdma0", "qdma1"; ++ ++ resets = <&scuclk EN7581_FE_RST>, ++ <&scuclk EN7581_FE_PDMA_RST>, ++ <&scuclk EN7581_FE_QDMA_RST>, ++ <&scuclk EN7581_DUAL_HSI0_MAC_RST>, ++ <&scuclk EN7581_DUAL_HSI1_MAC_RST>, ++ <&scuclk EN7581_HSI_MAC_RST>, ++ <&scuclk EN7581_XFP_MAC_RST>; ++ reset-names = "fe", "pdma", "qdma", ++ "hsi0-mac", "hsi1-mac", ++ "hsi-mac", "xfp-mac"; ++ ++ status = "disabled"; ++ }; ++ ++ switch: switch@1fb58000 { ++ compatible = "airoha,en7581-switch"; ++ reg = <0 0x1fb58000 0 0x8000>; ++ ++ status = "disabled"; ++ }; + }; + }; diff --git a/package/boot/uboot-airoha/patches/999-airoha-add-gemtek-w1700k.patch b/package/boot/uboot-airoha/patches/999-airoha-add-gemtek-w1700k.patch index 4c13fe3264..8515c0fa7d 100644 --- a/package/boot/uboot-airoha/patches/999-airoha-add-gemtek-w1700k.patch +++ b/package/boot/uboot-airoha/patches/999-airoha-add-gemtek-w1700k.patch @@ -313,6 +313,6 @@ Signed-off-by: Kenneth Kasilag + status = "okay"; +}; + -+&gdm1 { ++&switch { + status = "okay"; +};