Commit 6f04e524 authored by Justin Swartz's avatar Justin Swartz Committed by Thomas Bogendoerfer

mips: dts: ralink: mt7621: reorder ethernet node attributes and kids

Rearrange attributes and descendents declared under the
ethernet node, recursively, to follow the DTS style guide.
Signed-off-by: default avatarJustin Swartz <justin.swartz@risingedge.co.za>
Reviewed-by: default avatarArınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent a76a20f9
...@@ -364,46 +364,22 @@ ethernet: ethernet@1e100000 { ...@@ -364,46 +364,22 @@ ethernet: ethernet@1e100000 {
compatible = "mediatek,mt7621-eth"; compatible = "mediatek,mt7621-eth";
reg = <0x1e100000 0x10000>; reg = <0x1e100000 0x10000>;
clocks = <&sysc MT7621_CLK_FE>, <&sysc MT7621_CLK_ETH>;
clock-names = "fe", "ethif";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
resets = <&sysc MT7621_RST_FE>, <&sysc MT7621_RST_ETH>; clock-names = "fe", "ethif";
reset-names = "fe", "eth"; clocks = <&sysc MT7621_CLK_FE>, <&sysc MT7621_CLK_ETH>;
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>;
mediatek,ethsys = <&sysc>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>, <&rgmii2_pins>; pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>, <&rgmii2_pins>;
gmac0: mac@0 { reset-names = "fe", "eth";
compatible = "mediatek,eth-mac"; resets = <&sysc MT7621_RST_FE>, <&sysc MT7621_RST_ETH>;
reg = <0>;
phy-mode = "trgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
gmac1: mac@1 {
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "rgmii";
fixed-link { mediatek,ethsys = <&sysc>;
speed = <1000>;
full-duplex;
pause;
};
};
mdio: mdio-bus { mdio: mdio-bus {
#address-cells = <1>; #address-cells = <1>;
...@@ -412,73 +388,105 @@ mdio: mdio-bus { ...@@ -412,73 +388,105 @@ mdio: mdio-bus {
switch0: switch@1f { switch0: switch@1f {
compatible = "mediatek,mt7621"; compatible = "mediatek,mt7621";
reg = <0x1f>; reg = <0x1f>;
mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
reset-names = "mcm";
interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <1>;
interrupt-controller;
interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
reset-names = "mcm";
resets = <&sysc MT7621_RST_MCM>;
mediatek,mcm;
ports { ports {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
port@0 { port@0 {
status = "disabled";
reg = <0>; reg = <0>;
label = "swp0"; label = "swp0";
status = "disabled";
}; };
port@1 { port@1 {
status = "disabled";
reg = <1>; reg = <1>;
label = "swp1"; label = "swp1";
status = "disabled";
}; };
port@2 { port@2 {
status = "disabled";
reg = <2>; reg = <2>;
label = "swp2"; label = "swp2";
status = "disabled";
}; };
port@3 { port@3 {
status = "disabled";
reg = <3>; reg = <3>;
label = "swp3"; label = "swp3";
status = "disabled";
}; };
port@4 { port@4 {
status = "disabled";
reg = <4>; reg = <4>;
label = "swp4"; label = "swp4";
status = "disabled";
}; };
port@5 { port@5 {
reg = <5>; reg = <5>;
ethernet = <&gmac1>; ethernet = <&gmac1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
fixed-link { fixed-link {
speed = <1000>;
full-duplex; full-duplex;
pause; pause;
speed = <1000>;
}; };
}; };
port@6 { port@6 {
reg = <6>; reg = <6>;
ethernet = <&gmac0>; ethernet = <&gmac0>;
phy-mode = "trgmii"; phy-mode = "trgmii";
fixed-link { fixed-link {
speed = <1000>;
full-duplex; full-duplex;
pause; pause;
speed = <1000>;
}; };
}; };
}; };
}; };
}; };
gmac0: mac@0 {
compatible = "mediatek,eth-mac";
reg = <0>;
phy-mode = "trgmii";
fixed-link {
full-duplex;
pause;
speed = <1000>;
};
};
gmac1: mac@1 {
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "rgmii";
fixed-link {
full-duplex;
pause;
speed = <1000>;
};
};
}; };
pcie: pcie@1e140000 { pcie: pcie@1e140000 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment