Commit 9dff6733 authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller

arm: dt: vf610-zii-devel-b: Make use of new DSA binding

Hang the three switches of the three MDIO busses using the new DSA
binding. Also, make use of the mdio-bus and explicitly list the phys
on one device. This is not required, but good for testing.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 83c0afae
...@@ -85,41 +85,17 @@ mdio_mux_1: mdio@1 { ...@@ -85,41 +85,17 @@ mdio_mux_1: mdio@1 {
reg = <1>; reg = <1>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
};
mdio_mux_2: mdio@2 { switch0: switch0@0 {
reg = <2>; compatible = "marvell,mv88e6085";
#address-cells = <1>;
#size-cells = <0>;
};
mdio_mux_4: mdio@4 {
reg = <4>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
}; reg = <0>;
dsa,member = <0 0>;
mdio_mux_8: mdio@8 {
reg = <8>;
#address-cells = <1>;
#size-cells = <0>;
};
};
dsa {
compatible = "marvell,dsa";
#address-cells = <2>;
#size-cells = <0>;
dsa,ethernet = <&fec1>;
dsa,mii-bus = <&mdio_mux_1>;
/* 6352 - Primary - 7 ports */ ports {
switch0: switch@0-0 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0x00 0>;
eeprom-length = <512>;
port@0 { port@0 {
reg = <0>; reg = <0>;
label = "lan0"; label = "lan0";
...@@ -141,7 +117,6 @@ switch0port5: port@5 { ...@@ -141,7 +117,6 @@ switch0port5: port@5 {
phy-mode = "rgmii-txid"; phy-mode = "rgmii-txid";
link = <&switch1port6 link = <&switch1port6
&switch2port9>; &switch2port9>;
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
full-duplex; full-duplex;
...@@ -151,36 +126,47 @@ fixed-link { ...@@ -151,36 +126,47 @@ fixed-link {
port@6 { port@6 {
reg = <6>; reg = <6>;
label = "cpu"; label = "cpu";
ethernet = <&fec1>;
fixed-link { fixed-link {
speed = <100>; speed = <100>;
full-duplex; full-duplex;
}; };
}; };
}; };
};
};
mdio_mux_2: mdio@2 {
reg = <2>;
#address-cells = <1>;
#size-cells = <0>;
/* 6352 - Secondary - 7 ports */ switch1: switch1@0 {
switch1: switch@0-1 { compatible = "marvell,mv88e6085";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0x00 1>; reg = <0>;
eeprom-length = <512>; dsa,member = <0 1>;
mii-bus = <&mdio_mux_2>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 { port@0 {
reg = <0>; reg = <0>;
label = "lan3"; label = "lan3";
phy-handle = <&switch1phy0>;
}; };
port@1 { port@1 {
reg = <1>; reg = <1>;
label = "lan4"; label = "lan4";
phy-handle = <&switch1phy1>;
}; };
port@2 { port@2 {
reg = <2>; reg = <2>;
label = "lan5"; label = "lan5";
phy-handle = <&switch1phy2>;
}; };
switch1port5: port@5 { switch1port5: port@5 {
...@@ -188,7 +174,6 @@ switch1port5: port@5 { ...@@ -188,7 +174,6 @@ switch1port5: port@5 {
label = "dsa"; label = "dsa";
link = <&switch2port9>; link = <&switch2port9>;
phy-mode = "rgmii-txid"; phy-mode = "rgmii-txid";
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
full-duplex; full-duplex;
...@@ -200,21 +185,43 @@ switch1port6: port@6 { ...@@ -200,21 +185,43 @@ switch1port6: port@6 {
label = "dsa"; label = "dsa";
phy-mode = "rgmii-txid"; phy-mode = "rgmii-txid";
link = <&switch0port5>; link = <&switch0port5>;
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
full-duplex; full-duplex;
}; };
}; };
}; };
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch1phy0: switch1phy0@0 {
reg = <0>;
};
switch1phy1: switch1phy0@1 {
reg = <1>;
};
switch1phy2: switch1phy0@2 {
reg = <2>;
};
};
};
};
/* 6185 - 10 ports */ mdio_mux_4: mdio@4 {
switch2: switch@0-2 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0x00 2>; reg = <4>;
mii-bus = <&mdio_mux_4>;
switch2: switch2@0 {
compatible = "marvell,mv88e6085";
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
dsa,member = <0 2>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 { port@0 {
reg = <0>; reg = <0>;
label = "lan6"; label = "lan6";
...@@ -233,7 +240,6 @@ port@2 { ...@@ -233,7 +240,6 @@ port@2 {
port@3 { port@3 {
reg = <3>; reg = <3>;
label = "optical3"; label = "optical3";
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
full-duplex; full-duplex;
...@@ -245,7 +251,6 @@ fixed-link { ...@@ -245,7 +251,6 @@ fixed-link {
port@4 { port@4 {
reg = <4>; reg = <4>;
label = "optical4"; label = "optical4";
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
full-duplex; full-duplex;
...@@ -260,7 +265,6 @@ switch2port9: port@9 { ...@@ -260,7 +265,6 @@ switch2port9: port@9 {
phy-mode = "rgmii-txid"; phy-mode = "rgmii-txid";
link = <&switch1port5 link = <&switch1port5
&switch0port5>; &switch0port5>;
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
full-duplex; full-duplex;
...@@ -268,6 +272,14 @@ fixed-link { ...@@ -268,6 +272,14 @@ fixed-link {
}; };
}; };
}; };
};
mdio_mux_8: mdio@8 {
reg = <8>;
#address-cells = <1>;
#size-cells = <0>;
};
};
reg_vcc_3v3_mcu: regulator-vcc-3v3-mcu { reg_vcc_3v3_mcu: regulator-vcc-3v3-mcu {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
......
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