aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-01-17 13:22:24 -0500
committerGregory CLEMENT <gregory.clement@free-electrons.com>2017-01-19 17:47:11 -0500
commita3fe1d5dce142400945ecdc0d2e91b1645b6ebfa (patch)
tree2917d24fb2f36c8358d7b5178a258df97afb8c6d
parentcd0cc11acba94299247926243c33df865a2949b3 (diff)
ARM: dts: kirkwood-rd88f6281: Utilize new DSA binding
Utilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/kirkwood-rd88f6281-a.dts9
-rw-r--r--arch/arm/boot/dts/kirkwood-rd88f6281-z0.dts11
-rw-r--r--arch/arm/boot/dts/kirkwood-rd88f6281.dtsi44
3 files changed, 59 insertions, 5 deletions
diff --git a/arch/arm/boot/dts/kirkwood-rd88f6281-a.dts b/arch/arm/boot/dts/kirkwood-rd88f6281-a.dts
index 6f771a99cb02..9ec5a65561e9 100644
--- a/arch/arm/boot/dts/kirkwood-rd88f6281-a.dts
+++ b/arch/arm/boot/dts/kirkwood-rd88f6281-a.dts
@@ -19,11 +19,6 @@
19 model = "Marvell RD88f6281 Reference design, with A0 or higher SoC"; 19 model = "Marvell RD88f6281 Reference design, with A0 or higher SoC";
20 compatible = "marvell,rd88f6281-a", "marvell,rd88f6281","marvell,kirkwood-88f6281", "marvell,kirkwood"; 20 compatible = "marvell,rd88f6281-a", "marvell,rd88f6281","marvell,kirkwood-88f6281", "marvell,kirkwood";
21 21
22 dsa {
23 switch@0 {
24 reg = <10 0>; /* MDIO address 10, switch 0 in tree */
25 };
26 };
27}; 22};
28 23
29&mdio { 24&mdio {
@@ -34,6 +29,10 @@
34 }; 29 };
35}; 30};
36 31
32&switch {
33 reg = <10>;
34};
35
37&eth1 { 36&eth1 {
38 status = "okay"; 37 status = "okay";
39 38
diff --git a/arch/arm/boot/dts/kirkwood-rd88f6281-z0.dts b/arch/arm/boot/dts/kirkwood-rd88f6281-z0.dts
index 1a797381d3d4..6a4a65ec7944 100644
--- a/arch/arm/boot/dts/kirkwood-rd88f6281-z0.dts
+++ b/arch/arm/boot/dts/kirkwood-rd88f6281-z0.dts
@@ -33,3 +33,14 @@
33&eth1 { 33&eth1 {
34 status = "disabled"; 34 status = "disabled";
35}; 35};
36
37&switch {
38 reg = <0>;
39
40 ports {
41 port@4 {
42 reg = <4>;
43 label = "wan";
44 };
45 };
46};
diff --git a/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi b/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
index d5aacf137e40..91f5da5dae5f 100644
--- a/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
+++ b/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
@@ -54,6 +54,8 @@
54 }; 54 };
55 55
56 dsa { 56 dsa {
57 status = "disabled";
58
57 compatible = "marvell,dsa"; 59 compatible = "marvell,dsa";
58 #address-cells = <2>; 60 #address-cells = <2>;
59 #size-cells = <0>; 61 #size-cells = <0>;
@@ -115,6 +117,48 @@
115 117
116&mdio { 118&mdio {
117 status = "okay"; 119 status = "okay";
120
121 switch: switch@0 {
122 compatible = "marvell,mv88e6085";
123 #address-cells = <1>;
124 #size-cells = <0>;
125
126 ports {
127 #address-cells = <1>;
128 #size-cells = <0>;
129
130 port@0 {
131 reg = <0>;
132 label = "lan1";
133 };
134
135 port@1 {
136 reg = <1>;
137 label = "lan2";
138 };
139
140 port@2 {
141 reg = <2>;
142 label = "lan3";
143 };
144
145 port@3 {
146 reg = <3>;
147 label = "lan4";
148 };
149
150 port@5 {
151 reg = <5>;
152 label = "cpu";
153 ethernet = <&eth0port>;
154 fixed-link {
155 speed = <1000>;
156 full-duplex;
157 };
158 };
159
160 };
161 };
118}; 162};
119 163
120&eth0 { 164&eth0 {