From d2698d325b686f6f1b8168db6f0ed5f0123c8f14 Mon Sep 17 00:00:00 2001 From: Daniel Schwierzeck Date: Tue, 30 Jun 2026 14:56:16 +0200 Subject: [PATCH] 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 [ adapted from commit 007aa5a51ce8 ("airoha: disable all switch port and phy by default") ] Signed-off-by: Daniel Schwierzeck Link: https://github.com/openwrt/openwrt/pull/24264 Signed-off-by: Robert Marko --- target/linux/airoha/dts/an7583-evb-emmc.dts | 16 ++++++++++++ target/linux/airoha/dts/an7583-evb.dts | 28 +++------------------ target/linux/airoha/dts/an7583.dtsi | 8 ++++++ 3 files changed, 28 insertions(+), 24 deletions(-) diff --git a/target/linux/airoha/dts/an7583-evb-emmc.dts b/target/linux/airoha/dts/an7583-evb-emmc.dts index cdbdc93c71..62e9f3495d 100644 --- a/target/linux/airoha/dts/an7583-evb-emmc.dts +++ b/target/linux/airoha/dts/an7583-evb-emmc.dts @@ -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>; diff --git a/target/linux/airoha/dts/an7583-evb.dts b/target/linux/airoha/dts/an7583-evb.dts index 89d6285724..e9a08eea8d 100644 --- a/target/linux/airoha/dts/an7583-evb.dts +++ b/target/linux/airoha/dts/an7583-evb.dts @@ -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>; diff --git a/target/linux/airoha/dts/an7583.dtsi b/target/linux/airoha/dts/an7583.dtsi index 2448c8acb3..868afaea0e 100644 --- a/target/linux/airoha/dts/an7583.dtsi +++ b/target/linux/airoha/dts/an7583.dtsi @@ -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>;