diff options
| author | Andrew LaMarche | 2026-05-20 13:51:46 +0000 |
|---|---|---|
| committer | Robert Marko | 2026-06-24 11:46:23 +0000 |
| commit | ba5b20a5a00a2a50c47aeaa03ef703a2329c9166 (patch) | |
| tree | 058fd966cbb770a68fa63580bad61cff3120698c | |
| parent | 3f3f0828b1bac57e62f99a4f2a069a7f9ac4cb55 (diff) | |
| download | openwrt-ba5b20a5a00a2a50c47aeaa03ef703a2329c9166.tar.gz | |
uboot-airoha: add switch node for an7581 dtsi
U-boot 2026.01 supports the ethernet driver (airoha_eth) but does not
declare the switch in the dtsi. Add the switch for the built-in ethernet
controller.
Signed-off-by: Andrew LaMarche <andrewjlamarche@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23393
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | package/boot/uboot-airoha/patches/307-airoha-add-Ethernet-node-in-AN7581-dtsi.patch | 52 | ||||
| -rw-r--r-- | package/boot/uboot-airoha/patches/310-airoha-add-switch-node-in-an7581-dtsi.patch | 34 |
2 files changed, 34 insertions, 52 deletions
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 deleted file mode 100644 index 37c9c7a811..0000000000 --- a/package/boot/uboot-airoha/patches/307-airoha-add-Ethernet-node-in-AN7581-dtsi.patch +++ /dev/null @@ -1,52 +0,0 @@ -From 6ecd1312f85bdd0a9be8cc1cdada58c83f68ad99 Mon Sep 17 00:00:00 2001 -From: Kenneth Kasilag <kenneth@kasilag.me> -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 <kenneth@kasilag.me> ---- - 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/310-airoha-add-switch-node-in-an7581-dtsi.patch b/package/boot/uboot-airoha/patches/310-airoha-add-switch-node-in-an7581-dtsi.patch new file mode 100644 index 0000000000..2edf3b39ec --- /dev/null +++ b/package/boot/uboot-airoha/patches/310-airoha-add-switch-node-in-an7581-dtsi.patch @@ -0,0 +1,34 @@ +From 78ec828938768cfefb8b584bc36627ee5e784e4c Mon Sep 17 00:00:00 2001 +From: Andrew LaMarche <andrewjlamarche@gmail.com> +Date: Wed, 20 May 2026 13:38:07 +0000 +Subject: uboot-airoha: add switch node for an7581 dtsi + +U-boot 2026.10 supports the ethernet driver (airoha_eth) but does not +declare the switch in the dtsi. Add the switch for the built-in ethernet +controller. + +Signed-off-by: Andrew LaMarche <andrewjlamarche@gmail.com> +--- + dts/upstream/src/arm64/airoha/en7581.dtsi | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/dts/upstream/src/arm64/airoha/en7581.dtsi b/dts/upstream/src/arm64/airoha/en7581.dtsi +index ff6908a7..a217881e 100644 +--- a/dts/upstream/src/arm64/airoha/en7581.dtsi ++++ b/dts/upstream/src/arm64/airoha/en7581.dtsi +@@ -395,5 +395,12 @@ + }; + }; + }; ++ ++ switch: switch@1fb58000 { ++ compatible = "airoha,en7581-switch"; ++ reg = <0 0x1fb58000 0 0x8000>; ++ ++ status = "disabled"; ++ }; + }; + }; +-- +2.43.0 + |