mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 17:38:48 +04:00
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>
This commit is contained in:
1 parent
3f3f0828b1
commit
ba5b20a5a0
2 files changed
+34
-52
No files matched your search
@@ -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";
|
||||
+ };
|
||||
};
|
||||
};
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user