]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: an7581: disable all switch port and phy by default
authorZiyang Huang <hzyitc@outlook.com>
Sun, 19 Oct 2025 09:45:24 +0000 (17:45 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 5 Jan 2026 00:00:24 +0000 (01:00 +0100)
Some board only use some of them, so enable as necessary in
board-level dts.

Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/20482
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/airoha/dts/an7581-evb-emmc.dts
target/linux/airoha/dts/an7581-evb.dts
target/linux/airoha/dts/an7581.dtsi

index 6c128c14eada6fab7ad9b0ee77095e8f2697c8e2..c2709c4264f7db8e8536bfb6d7ba2560de6f1d00 100644 (file)
        status = "okay";
 };
 
+&gsw_port1 {
+       status = "okay";
+};
+
 &gsw_phy1 {
        pinctrl-names = "gbe-led";
        pinctrl-0 = <&gswp1_led0_pins>;
        status = "okay";
 };
 
+&gsw_port2 {
+       status = "okay";
+};
+
 &gsw_phy2 {
        pinctrl-names = "gbe-led";
        pinctrl-0 = <&gswp2_led0_pins>;
        status = "okay";
 };
 
+&gsw_port3 {
+       status = "okay";
+};
+
 &gsw_phy3 {
        pinctrl-names = "gbe-led";
        pinctrl-0 = <&gswp3_led0_pins>;
        status = "okay";
 };
 
+&gsw_port4 {
+       status = "okay";
+};
+
 &gsw_phy4 {
        pinctrl-names = "gbe-led";
        pinctrl-0 = <&gswp4_led0_pins>;
index 914b4df2760bd1d986a410e8a99da96253470ee6..8dcdce2a275b92f85633e3c9243051c146ba2689 100644 (file)
        status = "okay";
 };
 
+&gsw_port1 {
+       status = "okay";
+};
+
 &gsw_phy1 {
        pinctrl-names = "gbe-led";
        pinctrl-0 = <&gswp1_led0_pins>;
        status = "okay";
 };
 
+&gsw_port2 {
+       status = "okay";
+};
+
 &gsw_phy2 {
        pinctrl-names = "gbe-led";
        pinctrl-0 = <&gswp2_led0_pins>;
        status = "okay";
 };
 
+&gsw_port3 {
+       status = "okay";
+};
+
 &gsw_phy3 {
        pinctrl-names = "gbe-led";
        pinctrl-0 = <&gswp3_led0_pins>;
        status = "okay";
 };
 
+&gsw_port4 {
+       status = "okay";
+};
+
 &gsw_phy4 {
        pinctrl-names = "gbe-led";
        pinctrl-0 = <&gswp4_led0_pins>;
index 786044f254a1ec1b3d0bd1ded190f3ed11733a5d..2f61a2c2f42f1ae51e059ace5ce72e542544faa2 100644 (file)
                                        label = "lan1";
                                        phy-mode = "internal";
                                        phy-handle = <&gsw_phy1>;
+                                       status = "disabled";
                                };
 
                                gsw_port2: port@2 {
                                        label = "lan2";
                                        phy-mode = "internal";
                                        phy-handle = <&gsw_phy2>;
+                                       status = "disabled";
                                };
 
                                gsw_port3: port@3 {
                                        label = "lan3";
                                        phy-mode = "internal";
                                        phy-handle = <&gsw_phy3>;
+                                       status = "disabled";
                                };
 
                                gsw_port4: port@4 {
                                        label = "lan4";
                                        phy-mode = "internal";
                                        phy-handle = <&gsw_phy4>;
+                                       status = "disabled";
                                };
 
                                port@6 {
                                        compatible = "ethernet-phy-ieee802.3-c22";
                                        reg = <9>;
                                        phy-mode = "internal";
+                                       status = "disabled";
 
                                        leds {
                                                #address-cells = <1>;
                                        compatible = "ethernet-phy-ieee802.3-c22";
                                        reg = <10>;
                                        phy-mode = "internal";
+                                       status = "disabled";
 
                                        leds {
                                                #address-cells = <1>;
                                        compatible = "ethernet-phy-ieee802.3-c22";
                                        reg = <11>;
                                        phy-mode = "internal";
+                                       status = "disabled";
 
                                        leds {
                                                #address-cells = <1>;
                                        compatible = "ethernet-phy-ieee802.3-c22";
                                        reg = <12>;
                                        phy-mode = "internal";
+                                       status = "disabled";
 
                                        leds {
                                                #address-cells = <1>;