Skip to content

Commit

Permalink
ramips: mt7620: tidy up ethernet node in DTS files
Browse files Browse the repository at this point in the history
This tidies up the ethernet node in mt7620 DTS files by:

- removing unnecessary status as it is not disabled
- reordering properties consistently
- adding empty lines to enhance readability

This should make comparison and reviewing new PRs based on C/P easier.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
  • Loading branch information
adschm committed May 17, 2020
1 parent 631c437 commit d7a28e8
Show file tree
Hide file tree
Showing 69 changed files with 107 additions and 39 deletions.
1 change: 1 addition & 0 deletions target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@

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

mediatek,portmap = "llllw";
};

Expand Down
6 changes: 4 additions & 2 deletions target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@
};

&ethernet {
mtd-mac-address = <&factory 0x28>;
mediatek,portmap = "llllw";
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};

&gpio1 {
Expand Down
1 change: 1 addition & 0 deletions target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@

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

mediatek,portmap = "llllw";
};

Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};

Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};

Expand Down
1 change: 1 addition & 0 deletions target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@

&ethernet {
mtd-mac-address = <&factory 0x28>;

mediatek,portmap = "llllw";
};

Expand Down
1 change: 0 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 @@ -155,7 +155,6 @@
};

&ethernet {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;

Expand Down
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 @@ -153,11 +153,11 @@
};

&ethernet {
status = "okay";
mediatek,portmap = "wllll";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;

mediatek,portmap = "wllll";

port@4 {
status = "okay";
phy-handle = <&phy0>;
Expand Down
3 changes: 1 addition & 2 deletions target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@
};

&ethernet {
status = "okay";

pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;

mediatek,portmap = "wllll";

port@5 {
Expand Down
2 changes: 1 addition & 1 deletion target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@
};

&ethernet {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;

mediatek,portmap = "llllw";

port@4 {
Expand Down
5 changes: 3 additions & 2 deletions target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@
};

&ethernet {
status = "okay";
mtd-mac-address = <&factory 0x4>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;

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

mediatek,portmap = "wllll";

port@5 {
Expand Down
5 changes: 3 additions & 2 deletions target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@
};

&ethernet {
status = "okay";
mtd-mac-address = <&factory 0x4>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;

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

mediatek,portmap = "wllll";

port@5 {
Expand Down
6 changes: 2 additions & 4 deletions target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,11 @@
};

&ethernet {
status = "okay";

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

pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>;

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

mediatek,mdio-mode = <1>;

phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
Expand Down
2 changes: 1 addition & 1 deletion target/linux/ramips/dts/mt7620a_engenius_esr600.dts
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@
};

&ethernet {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;

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

port@5 {
Expand Down
1 change: 1 addition & 0 deletions target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@

&ethernet {
mtd-mac-address = <&factory 0x4000>;

mediatek,portmap = "wllll";
};

Expand Down
1 change: 1 addition & 0 deletions target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@

&ethernet {
mtd-mac-address = <&factory 0x4000>;

mediatek,portmap = "wllll";
};

Expand Down
1 change: 1 addition & 0 deletions target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@

&ethernet {
mtd-mac-address = <&factory 0x4000>;

mediatek,portmap = "llllw";
};

Expand Down
5 changes: 2 additions & 3 deletions target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,11 @@
};

&ethernet {
status = "okay";

mtd-mac-address = <&factory 0x4>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;

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

port@4 {
status = "okay";
phy-handle = <&phy4>;
Expand Down
5 changes: 3 additions & 2 deletions target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@
};

&ethernet {
status = "okay";
mtd-mac-address = <&factory 0x4>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;

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

mediatek,portmap = "wllll";

port@5 {
Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "wllll";
};

Expand Down
1 change: 1 addition & 0 deletions target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;

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

port@5 {
Expand Down
1 change: 1 addition & 0 deletions target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins>;

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

port@5 {
Expand Down
1 change: 0 additions & 1 deletion target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@
};

&ethernet {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;

Expand Down
6 changes: 3 additions & 3 deletions target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@
};

&ethernet {
status = "okay";

mtd-mac-address = <&factory 0x28>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;

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

mediatek,portmap = "wllll";

port@5 {
Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};
5 changes: 3 additions & 2 deletions target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@
};

&ethernet {
status = "okay";
mtd-mac-address = <&factory 0x28>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;

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

mediatek,portmap = "wllll";

port@4 {
Expand Down
4 changes: 2 additions & 2 deletions target/linux/ramips/dts/mt7620a_linksys_e1700.dts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@
};

&ethernet {
status = "okay";
mtd-mac-address = <&factory 0x28>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;

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

port@5 {
status = "okay";
mediatek,fixed-link = <1000 1 1 1>;
Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};

Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};

Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;

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

mediatek,portmap = "llllw";

port@5 {
Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};

Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};

Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};

Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};

Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};

Expand Down
2 changes: 2 additions & 0 deletions target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;

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

mediatek,portmap = "llllw";
};

Expand Down
Loading

0 comments on commit d7a28e8

Please sign in to comment.