Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[21.02] ramips: mt7620: fix ethernet with external switches #4303

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@
status = "okay";
};

&gsw {
mediatek,port4 = "ephy";
};

&ohci {
status = "okay";
};
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@
status = "okay";
};

&gsw {
mediatek,port4 = "ephy";
};

&i2c {
status = "okay";
};
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@
status = "okay";
};

&gsw {
mediatek,port4 = "ephy";
};

&ohci {
status = "okay";
};
Expand Down
3 changes: 1 addition & 2 deletions target/linux/ramips/dts/mt7620a_asus_rp-n53.dts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@
};
};

&gsw {
mediatek,port4 = "ephy";
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
};
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,6 @@
};
};

&gsw {
mediatek,port4 = "ephy";
};

&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@
mediatek,portmap = "llllw";
};

&gsw {
mediatek,port4 = "ephy";
};

&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
pinctrl-names = "default";
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@
mediatek,portmap = "llllw";
};

&gsw {
mediatek,port4 = "ephy";
};

&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_cameo_810.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@
mediatek,portmap = "llllw";
};

&gsw {
mediatek,port4 = "ephy";
};

&gpio2 {
status = "okay";
};
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@
mtd-mac-address = <&factory 0x4>;
};

&gsw {
ralink,port4 = "ephy";
};

&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
pinctrl-names = "default";
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,6 @@
};
};

&gsw {
mediatek,port4 = "ephy";
};

&state_default {
default {
groups = "i2c", "uartf";
Expand Down
3 changes: 2 additions & 1 deletion target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,6 @@
};

&gsw {
mediatek,port4 = "gmac";
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};
4 changes: 2 additions & 2 deletions target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,6 @@
};

&gsw {
mediatek,port4 = "gmac";
mediatek,ephy-base-address = /bits/ 16 < 2 >;
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <2>;
};
3 changes: 2 additions & 1 deletion target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@
};

&gsw {
mediatek,port4 = "gmac";
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};

&pcie {
Expand Down
2 changes: 1 addition & 1 deletion target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
};

&gsw {
mediatek,port4 = "gmac";
mediatek,ephy-base = /bits/ 8 <12>;
};

&wmac {
Expand Down
2 changes: 1 addition & 1 deletion target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
};

&gsw {
mediatek,port4 = "gmac";
mediatek,ephy-base = /bits/ 8 <12>;
};

&wmac {
Expand Down
4 changes: 1 addition & 3 deletions target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@

mtd-mac-address = <&factory 0x4>;

mediatek,mdio-mode = <1>;

phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
phy-reset-duration = <30>;

Expand Down Expand Up @@ -202,7 +200,7 @@
};

&gsw {
mediatek,port5 = "gmac";
mediatek,ephy-base = /bits/ 8 <8>;
};

&wmac {
Expand Down
7 changes: 5 additions & 2 deletions target/linux/ramips/dts/mt7620a_engenius_esr600.dts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@

mdio-bus {
status = "okay";
mediatek,mdio-mode;

ethernet-phy@0 {
reg = <0>;
Expand All @@ -155,11 +154,15 @@
0x7c 0x0000007e /* PORT0 STATUS */
0x0c 0x05600000 /* PORT6 PAD MODE CTRL */
0x94 0x0000007e /* PORT6 STATUS */
>;
>;
};
};
};

&gsw {
mediatek,ephy-base = /bits/ 8 <8>;
};

&state_default {
gpio {
groups = "i2c", "uartf", "nd_sd", "wled";
Expand Down
3 changes: 2 additions & 1 deletion target/linux/ramips/dts/mt7620a_fon_fon2601.dts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@
};

&gsw {
mediatek,port4 = "gmac";
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};

&wmac {
Expand Down
5 changes: 5 additions & 0 deletions target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@
};
};

&gsw {
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};

&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
Expand Down
4 changes: 4 additions & 0 deletions target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@
};
};

&gsw {
mediatek,ephy-base = /bits/ 8 <12>;
};

&state_default {
gpio {
groups = "i2c", "uartf";
Expand Down
4 changes: 4 additions & 0 deletions target/linux/ramips/dts/mt7620a_iptime_a1004ns.dts
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,7 @@
};
};
};

&gsw {
mediatek,ephy-base = /bits/ 8 <12>;
};
27 changes: 5 additions & 22 deletions target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@

mdio-bus {
status = "okay";
mediatek,mdio-mode = <1>;

phy0: ethernet-phy@0 {
ethernet-phy@0 {
reg = <0>;
phy-mode = "rgmii";
qca,ar8327-initvals = <
Expand All @@ -127,29 +126,13 @@
0x94 0x00000000 /* PORT6_STATUS */
>;
};

phy1: ethernet-phy@1 {
reg = <1>;
phy-mode = "rgmii";
};

phy2: ethernet-phy@2 {
reg = <2>;
phy-mode = "rgmii";
};

phy3: ethernet-phy@3 {
reg = <3>;
phy-mode = "rgmii";
};

phy4: ethernet-phy@4 {
reg = <4>;
phy-mode = "rgmii";
};
};
};

&gsw {
mediatek,ephy-base = /bits/ 8 <8>;
};

&pcie {
status = "okay";
};
Expand Down
4 changes: 4 additions & 0 deletions target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@
};
};

&gsw {
mediatek,ephy-base = /bits/ 8 <12>;
};

&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
Expand Down
3 changes: 2 additions & 1 deletion target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,6 @@
};

&gsw {
mediatek,port4 = "gmac";
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};
2 changes: 1 addition & 1 deletion target/linux/ramips/dts/mt7620a_linksys_e1700.dts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
};

&gsw {
mediatek,port4 = "gmac";
mediatek,ephy-base = /bits/ 8 <12>;
};

&wmac {
Expand Down
4 changes: 4 additions & 0 deletions target/linux/ramips/dts/mt7620a_netis_wf2770.dts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@
};
};

&gsw {
mediatek,ephy-base = /bits/ 8 <12>;
};

&pcie {
status = "okay";
};
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@
mediatek,portmap = "llllw";
};

&gsw {
mediatek,port4 = "ephy";
};

&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@
mediatek,portmap = "llllw";
};

&gsw {
ralink,port4 = "ephy";
};

&sdhci {
status = "okay";
};
Expand Down
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@
mediatek,portmap = "llllw";
};

&gsw {
mediatek,port4 = "ephy";
};

&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
4 changes: 0 additions & 4 deletions target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@
mediatek,portmap = "llllw";
};

&gsw {
mediatek,port4 = "ephy";
};

&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
Expand Down
3 changes: 2 additions & 1 deletion target/linux/ramips/dts/mt7620a_ralink_mt7620a-evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
};

&gsw {
mediatek,port4 = "gmac";
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};

&sdhci {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
};

&gsw {
mediatek,port4 = "gmac";
mediatek,ephy-base = /bits/ 8 <12>;
};

&pcie {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@
mediatek,portmap = "llllw";
};

&gsw {
mediatek,port4 = "ephy";
};

&sdhci {
status = "okay";
};
Expand Down