airoha: an7583: disable all switch ports and PHYs by default

Some boards only use some of them, so enable as necessary in the
board-level DTS.

Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
[ adapted from commit 007aa5a51c ("airoha: disable all switch port and phy by default") ]
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24264
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Daniel Schwierzeck 2026-06-30 14:56:16 +02:00 committed by Robert Marko
parent 63bf79af2a
commit d2698d325b
3 changed files with 28 additions and 24 deletions

View file

@ -256,6 +256,10 @@
status = "okay";
};
&gsw_port1 {
status = "okay";
};
&gsw_phy1 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp1_led0_pins>;
@ -267,6 +271,10 @@
active-low;
};
&gsw_port2 {
status = "okay";
};
&gsw_phy2 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp2_led0_pins>;
@ -278,6 +286,10 @@
active-low;
};
&gsw_port3 {
status = "okay";
};
&gsw_phy3 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp3_led0_pins>;
@ -289,6 +301,10 @@
active-low;
};
&gsw_port4 {
status = "okay";
};
&gsw_phy4 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp4_led0_pins>;

View file

@ -113,6 +113,10 @@
status = "okay";
};
&gsw_port1 {
status = "okay";
};
&gsw_phy1 {
pinctrl-names = "gbe-led";
pinctrl-0 = <&gswp1_led0_pins>;
@ -124,30 +128,6 @@
active-low;
};
&gsw_port2 {
status = "disabled";
};
&gsw_port3 {
status = "disabled";
};
&gsw_port4 {
status = "disabled";
};
&gsw_phy2 {
status = "disabled";
};
&gsw_phy3 {
status = "disabled";
};
&gsw_phy4 {
status = "disabled";
};
&mdio_0 {
pinctrl-names = "default";
pinctrl-0 = <&mdio0_pins>;

View file

@ -710,6 +710,7 @@
label = "lan1";
phy-mode = "internal";
phy-handle = <&gsw_phy1>;
status = "disabled";
};
gsw_port2: port@2 {
@ -717,6 +718,7 @@
label = "lan2";
phy-mode = "internal";
phy-handle = <&gsw_phy2>;
status = "disabled";
};
gsw_port3: port@3 {
@ -724,6 +726,7 @@
label = "lan3";
phy-mode = "internal";
phy-handle = <&gsw_phy3>;
status = "disabled";
};
gsw_port4: port@4 {
@ -731,6 +734,7 @@
label = "lan4";
phy-mode = "internal";
phy-handle = <&gsw_phy4>;
status = "disabled";
};
port@6 {
@ -755,6 +759,7 @@
compatible = "ethernet-phy-ieee802.3-c22";
reg = <9>;
phy-mode = "internal";
status = "disabled";
leds {
#address-cells = <1>;
@ -789,6 +794,7 @@
compatible = "ethernet-phy-ieee802.3-c22";
reg = <10>;
phy-mode = "internal";
status = "disabled";
leds {
#address-cells = <1>;
@ -814,6 +820,7 @@
compatible = "ethernet-phy-ieee802.3-c22";
reg = <11>;
phy-mode = "internal";
status = "disabled";
leds {
#address-cells = <1>;
@ -839,6 +846,7 @@
compatible = "ethernet-phy-ieee802.3-c22";
reg = <12>;
phy-mode = "internal";
status = "disabled";
leds {
#address-cells = <1>;