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@outlook.com> Link: https://github.com/openwrt/openwrt/pull/20482 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 007aa5a51ce8bd596d35d8e2c7bec2240dbca94d) (cherry picked from commit ef3c7ee1fbd4deafecdeaaf420bebd51078e9d53)
This commit is contained in:
parent
ae4edeff92
commit
595d86abc2
@ -235,6 +235,10 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_port1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_phy1 {
|
||||
pinctrl-names = "led";
|
||||
pinctrl-0 = <&gswp1_led0_pins>;
|
||||
@ -245,6 +249,10 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_port2 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_phy2 {
|
||||
pinctrl-names = "led";
|
||||
pinctrl-0 = <&gswp2_led0_pins>;
|
||||
@ -255,6 +263,10 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_port3 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_phy3 {
|
||||
pinctrl-names = "led";
|
||||
pinctrl-0 = <&gswp3_led0_pins>;
|
||||
@ -265,6 +277,10 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_port4 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_phy4 {
|
||||
pinctrl-names = "led";
|
||||
pinctrl-0 = <&gswp4_led0_pins>;
|
||||
|
||||
@ -218,6 +218,10 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_port1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_phy1 {
|
||||
pinctrl-names = "led";
|
||||
pinctrl-0 = <&gswp1_led0_pins>;
|
||||
@ -228,6 +232,10 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_port2 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_phy2 {
|
||||
pinctrl-names = "led";
|
||||
pinctrl-0 = <&gswp2_led0_pins>;
|
||||
@ -238,6 +246,10 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_port3 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_phy3 {
|
||||
pinctrl-names = "led";
|
||||
pinctrl-0 = <&gswp3_led0_pins>;
|
||||
@ -248,6 +260,10 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_port4 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsw_phy4 {
|
||||
pinctrl-names = "led";
|
||||
pinctrl-0 = <&gswp4_led0_pins>;
|
||||
|
||||
@ -929,6 +929,7 @@
|
||||
label = "lan1";
|
||||
phy-mode = "internal";
|
||||
phy-handle = <&gsw_phy1>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
gsw_port2: port@2 {
|
||||
@ -936,6 +937,7 @@
|
||||
label = "lan2";
|
||||
phy-mode = "internal";
|
||||
phy-handle = <&gsw_phy2>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
gsw_port3: port@3 {
|
||||
@ -943,6 +945,7 @@
|
||||
label = "lan3";
|
||||
phy-mode = "internal";
|
||||
phy-handle = <&gsw_phy3>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
gsw_port4: port@4 {
|
||||
@ -950,6 +953,7 @@
|
||||
label = "lan4";
|
||||
phy-mode = "internal";
|
||||
phy-handle = <&gsw_phy4>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
port@6 {
|
||||
@ -974,6 +978,7 @@
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
reg = <9>;
|
||||
phy-mode = "internal";
|
||||
status = "disabled";
|
||||
|
||||
leds {
|
||||
#address-cells = <1>;
|
||||
@ -997,6 +1002,7 @@
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
reg = <10>;
|
||||
phy-mode = "internal";
|
||||
status = "disabled";
|
||||
|
||||
leds {
|
||||
#address-cells = <1>;
|
||||
@ -1020,6 +1026,7 @@
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
reg = <11>;
|
||||
phy-mode = "internal";
|
||||
status = "disabled";
|
||||
|
||||
leds {
|
||||
#address-cells = <1>;
|
||||
@ -1043,6 +1050,7 @@
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
reg = <12>;
|
||||
phy-mode = "internal";
|
||||
status = "disabled";
|
||||
|
||||
leds {
|
||||
#address-cells = <1>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user