[openwrt/openwrt] airoha: an7581: disable all switch port and phy by default
LEDE Commits
lede-commits at lists.infradead.org
Sun Jan 4 16:01:34 PST 2026
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/007aa5a51ce8bd596d35d8e2c7bec2240dbca94d
commit 007aa5a51ce8bd596d35d8e2c7bec2240dbca94d
Author: Ziyang Huang <hzyitc at outlook.com>
AuthorDate: Sun Oct 19 17:45:24 2025 +0800
airoha: an7581: disable all switch port and phy by default
Some board only use some of them, so enable as necessary in
board-level dts.
Signed-off-by: Ziyang Huang <hzyitc at outlook.com>
Link: https://github.com/openwrt/openwrt/pull/20482
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/airoha/dts/an7581-evb-emmc.dts | 16 ++++++++++++++++
target/linux/airoha/dts/an7581-evb.dts | 16 ++++++++++++++++
target/linux/airoha/dts/an7581.dtsi | 8 ++++++++
3 files changed, 40 insertions(+)
diff --git a/target/linux/airoha/dts/an7581-evb-emmc.dts b/target/linux/airoha/dts/an7581-evb-emmc.dts
index 6c128c14ea..c2709c4264 100644
--- a/target/linux/airoha/dts/an7581-evb-emmc.dts
+++ b/target/linux/airoha/dts/an7581-evb-emmc.dts
@@ -253,6 +253,10 @@
status = "okay";
};
+&gsw_port1 {
+ status = "okay";
+};
+
&gsw_phy1 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp1_led0_pins>;
@@ -263,6 +267,10 @@
status = "okay";
};
+&gsw_port2 {
+ status = "okay";
+};
+
&gsw_phy2 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp2_led0_pins>;
@@ -273,6 +281,10 @@
status = "okay";
};
+&gsw_port3 {
+ status = "okay";
+};
+
&gsw_phy3 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp3_led0_pins>;
@@ -283,6 +295,10 @@
status = "okay";
};
+&gsw_port4 {
+ status = "okay";
+};
+
&gsw_phy4 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp4_led0_pins>;
diff --git a/target/linux/airoha/dts/an7581-evb.dts b/target/linux/airoha/dts/an7581-evb.dts
index 914b4df276..8dcdce2a27 100644
--- a/target/linux/airoha/dts/an7581-evb.dts
+++ b/target/linux/airoha/dts/an7581-evb.dts
@@ -218,6 +218,10 @@
status = "okay";
};
+&gsw_port1 {
+ status = "okay";
+};
+
&gsw_phy1 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp1_led0_pins>;
@@ -228,6 +232,10 @@
status = "okay";
};
+&gsw_port2 {
+ status = "okay";
+};
+
&gsw_phy2 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp2_led0_pins>;
@@ -238,6 +246,10 @@
status = "okay";
};
+&gsw_port3 {
+ status = "okay";
+};
+
&gsw_phy3 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp3_led0_pins>;
@@ -248,6 +260,10 @@
status = "okay";
};
+&gsw_port4 {
+ status = "okay";
+};
+
&gsw_phy4 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp4_led0_pins>;
diff --git a/target/linux/airoha/dts/an7581.dtsi b/target/linux/airoha/dts/an7581.dtsi
index 786044f254..2f61a2c2f4 100644
--- a/target/linux/airoha/dts/an7581.dtsi
+++ b/target/linux/airoha/dts/an7581.dtsi
@@ -945,6 +945,7 @@
label = "lan1";
phy-mode = "internal";
phy-handle = <&gsw_phy1>;
+ status = "disabled";
};
gsw_port2: port at 2 {
@@ -952,6 +953,7 @@
label = "lan2";
phy-mode = "internal";
phy-handle = <&gsw_phy2>;
+ status = "disabled";
};
gsw_port3: port at 3 {
@@ -959,6 +961,7 @@
label = "lan3";
phy-mode = "internal";
phy-handle = <&gsw_phy3>;
+ status = "disabled";
};
gsw_port4: port at 4 {
@@ -966,6 +969,7 @@
label = "lan4";
phy-mode = "internal";
phy-handle = <&gsw_phy4>;
+ status = "disabled";
};
port at 6 {
@@ -990,6 +994,7 @@
compatible = "ethernet-phy-ieee802.3-c22";
reg = <9>;
phy-mode = "internal";
+ status = "disabled";
leds {
#address-cells = <1>;
@@ -1013,6 +1018,7 @@
compatible = "ethernet-phy-ieee802.3-c22";
reg = <10>;
phy-mode = "internal";
+ status = "disabled";
leds {
#address-cells = <1>;
@@ -1036,6 +1042,7 @@
compatible = "ethernet-phy-ieee802.3-c22";
reg = <11>;
phy-mode = "internal";
+ status = "disabled";
leds {
#address-cells = <1>;
@@ -1059,6 +1066,7 @@
compatible = "ethernet-phy-ieee802.3-c22";
reg = <12>;
phy-mode = "internal";
+ status = "disabled";
leds {
#address-cells = <1>;
More information about the lede-commits
mailing list