mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
lantiq: set port numbers corresponding to reg value
Fix inconsistencies found in DTS files and sort ethernet ports based on updated names. Signed-off-by: Aleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl> [squash two separate patches, rephrase commit title/message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
3866fefa38
commit
f496939f15
@ -110,30 +110,30 @@
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
};
|
||||
ethernet@1 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <4>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy13>;
|
||||
};
|
||||
ethernet@2 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <5>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy14>;
|
||||
};
|
||||
ethernet@3 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <2>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy11>;
|
||||
};
|
||||
ethernet@4 {
|
||||
ethernet@3 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <3>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy12>;
|
||||
};
|
||||
ethernet@4 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <4>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy13>;
|
||||
};
|
||||
ethernet@5 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <5>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy14>;
|
||||
};
|
||||
};
|
||||
|
||||
mdio {
|
||||
|
@ -105,7 +105,7 @@
|
||||
phy-handle = <&phy11>;
|
||||
};
|
||||
|
||||
ethernet@3 {
|
||||
ethernet@4 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <4>;
|
||||
phy-mode = "gmii";
|
||||
|
@ -162,30 +162,30 @@
|
||||
reg = <0>;
|
||||
lantiq,switch;
|
||||
|
||||
ethernet@1 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <4>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy13>;
|
||||
};
|
||||
ethernet@2 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <5>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy14>;
|
||||
};
|
||||
ethernet@3 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <2>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy11>;
|
||||
};
|
||||
ethernet@4 {
|
||||
ethernet@3 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <3>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy12>;
|
||||
};
|
||||
ethernet@4 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <4>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy13>;
|
||||
};
|
||||
ethernet@5 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <5>;
|
||||
phy-mode = "mii";
|
||||
phy-handle = <&phy14>;
|
||||
};
|
||||
};
|
||||
|
||||
mdio {
|
||||
|
@ -103,17 +103,11 @@
|
||||
reg = <0>;
|
||||
lantiq,switch;
|
||||
|
||||
ethernet@4 {
|
||||
ethernet@0 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <4>;
|
||||
phy-mode = "gmii";
|
||||
phy-handle = <&phy13>;
|
||||
};
|
||||
ethernet@2 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <2>;
|
||||
phy-mode = "gmii";
|
||||
phy-handle = <&phy11>;
|
||||
reg = <0>;
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
};
|
||||
ethernet@1 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
@ -121,11 +115,17 @@
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy1>;
|
||||
};
|
||||
ethernet@0 {
|
||||
ethernet@2 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <0>;
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
reg = <2>;
|
||||
phy-mode = "gmii";
|
||||
phy-handle = <&phy11>;
|
||||
};
|
||||
ethernet@4 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <4>;
|
||||
phy-mode = "gmii";
|
||||
phy-handle = <&phy13>;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -121,24 +121,24 @@
|
||||
phy-handle = <&phy0>;
|
||||
// gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
ethernet@5 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <5>;
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy5>;
|
||||
};
|
||||
ethernet@2 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <2>;
|
||||
phy-mode = "gmii";
|
||||
phy-handle = <&phy11>;
|
||||
};
|
||||
ethernet@3 {
|
||||
ethernet@4 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <4>;
|
||||
phy-mode = "gmii";
|
||||
phy-handle = <&phy13>;
|
||||
};
|
||||
ethernet@5 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <5>;
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy5>;
|
||||
};
|
||||
};
|
||||
|
||||
mdio {
|
||||
|
@ -41,24 +41,24 @@
|
||||
phy-handle = <&phy0>;
|
||||
// gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
ethernet@5 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <5>;
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy5>;
|
||||
};
|
||||
ethernet@2 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <2>;
|
||||
phy-mode = "gmii";
|
||||
phy-handle = <&phy11>;
|
||||
};
|
||||
ethernet@3 {
|
||||
ethernet@4 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <4>;
|
||||
phy-mode = "gmii";
|
||||
phy-handle = <&phy13>;
|
||||
};
|
||||
ethernet@5 {
|
||||
compatible = "lantiq,xrx200-pdi-port";
|
||||
reg = <5>;
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy5>;
|
||||
};
|
||||
};
|
||||
|
||||
mdio {
|
||||
|
Loading…
Reference in New Issue
Block a user