a2f05d3d9f57177f4459be21c300a5510030bdd6
[openwrt/staging/ldir.git] /
1 From 99e5a32902d9e144568add5dd8791aa66a69f0bf Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Mon, 8 Jun 2020 11:37:33 +0200
4 Subject: [PATCH] ARM: dts: BCM5301X: Specify switch ports for Luxul devices
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 All those devices use standard BCM53011 (rev 5) or BCM53012 (rev 0).
10
11 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
12 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
13 ---
14 arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts | 25 ++++++++++++
15 arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts | 20 ++++++++++
16 arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts | 20 ++++++++++
17 arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts | 40 +++++++++++++++++++
18 arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts | 25 ++++++++++++
19 arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts | 20 ++++++++++
20 arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 40 +++++++++++++++++++
21 .../boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 40 +++++++++++++++++++
22 8 files changed, 230 insertions(+)
23
24 --- a/arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts
25 +++ b/arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts
26 @@ -60,3 +60,28 @@
27 &usb3_phy {
28 status = "okay";
29 };
30 +
31 +&srab {
32 + status = "okay";
33 +
34 + ports {
35 + #address-cells = <1>;
36 + #size-cells = <0>;
37 +
38 + port@0 {
39 + reg = <0>;
40 + label = "poe";
41 + };
42 +
43 + port@4 {
44 + reg = <4>;
45 + label = "lan";
46 + };
47 +
48 + port@5 {
49 + reg = <5>;
50 + label = "cpu";
51 + ethernet = <&gmac0>;
52 + };
53 + };
54 +};
55 --- a/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
56 +++ b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
57 @@ -67,3 +67,23 @@
58 &usb3_phy {
59 status = "okay";
60 };
61 +
62 +&srab {
63 + status = "okay";
64 +
65 + ports {
66 + #address-cells = <1>;
67 + #size-cells = <0>;
68 +
69 + port@4 {
70 + reg = <4>;
71 + label = "lan";
72 + };
73 +
74 + port@5 {
75 + reg = <5>;
76 + label = "cpu";
77 + ethernet = <&gmac0>;
78 + };
79 + };
80 +};
81 --- a/arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts
82 +++ b/arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts
83 @@ -60,3 +60,23 @@
84 &usb3_phy {
85 status = "okay";
86 };
87 +
88 +&srab {
89 + status = "okay";
90 +
91 + ports {
92 + #address-cells = <1>;
93 + #size-cells = <0>;
94 +
95 + port@4 {
96 + reg = <4>;
97 + label = "poe";
98 + };
99 +
100 + port@5 {
101 + reg = <5>;
102 + label = "cpu";
103 + ethernet = <&gmac0>;
104 + };
105 + };
106 +};
107 --- a/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
108 +++ b/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
109 @@ -108,3 +108,43 @@
110 &usb3_phy {
111 status = "okay";
112 };
113 +
114 +&srab {
115 + status = "okay";
116 +
117 + ports {
118 + #address-cells = <1>;
119 + #size-cells = <0>;
120 +
121 + port@0 {
122 + reg = <0>;
123 + label = "lan4";
124 + };
125 +
126 + port@1 {
127 + reg = <1>;
128 + label = "lan3";
129 + };
130 +
131 + port@2 {
132 + reg = <2>;
133 + label = "lan2";
134 + };
135 +
136 + port@3 {
137 + reg = <3>;
138 + label = "lan1";
139 + };
140 +
141 + port@4 {
142 + reg = <4>;
143 + label = "wan";
144 + };
145 +
146 + port@5 {
147 + reg = <5>;
148 + label = "cpu";
149 + ethernet = <&gmac0>;
150 + };
151 + };
152 +};
153 --- a/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
154 +++ b/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
155 @@ -54,3 +54,28 @@
156 &spi_nor {
157 status = "okay";
158 };
159 +
160 +&srab {
161 + status = "okay";
162 +
163 + ports {
164 + #address-cells = <1>;
165 + #size-cells = <0>;
166 +
167 + port@0 {
168 + reg = <0>;
169 + label = "poe";
170 + };
171 +
172 + port@1 {
173 + reg = <1>;
174 + label = "lan";
175 + };
176 +
177 + port@5 {
178 + reg = <5>;
179 + label = "cpu";
180 + ethernet = <&gmac0>;
181 + };
182 + };
183 +};
184 --- a/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
185 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
186 @@ -52,3 +52,23 @@
187 &spi_nor {
188 status = "okay";
189 };
190 +
191 +&srab {
192 + status = "okay";
193 +
194 + ports {
195 + #address-cells = <1>;
196 + #size-cells = <0>;
197 +
198 + port@0 {
199 + reg = <0>;
200 + label = "lan";
201 + };
202 +
203 + port@5 {
204 + reg = <5>;
205 + label = "cpu";
206 + ethernet = <&gmac0>;
207 + };
208 + };
209 +};
210 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
211 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
212 @@ -103,3 +103,43 @@
213 &usb3_phy {
214 status = "okay";
215 };
216 +
217 +&srab {
218 + status = "okay";
219 +
220 + ports {
221 + #address-cells = <1>;
222 + #size-cells = <0>;
223 +
224 + port@0 {
225 + reg = <0>;
226 + label = "lan4";
227 + };
228 +
229 + port@1 {
230 + reg = <1>;
231 + label = "lan3";
232 + };
233 +
234 + port@2 {
235 + reg = <2>;
236 + label = "lan2";
237 + };
238 +
239 + port@3 {
240 + reg = <3>;
241 + label = "lan1";
242 + };
243 +
244 + port@4 {
245 + reg = <4>;
246 + label = "wan";
247 + };
248 +
249 + port@5 {
250 + reg = <5>;
251 + label = "cpu";
252 + ethernet = <&gmac0>;
253 + };
254 + };
255 +};
256 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
257 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
258 @@ -74,3 +74,43 @@
259 &spi_nor {
260 status = "okay";
261 };
262 +
263 +&srab {
264 + status = "okay";
265 +
266 + ports {
267 + #address-cells = <1>;
268 + #size-cells = <0>;
269 +
270 + port@0 {
271 + reg = <0>;
272 + label = "lan4";
273 + };
274 +
275 + port@1 {
276 + reg = <1>;
277 + label = "lan3";
278 + };
279 +
280 + port@2 {
281 + reg = <2>;
282 + label = "lan2";
283 + };
284 +
285 + port@3 {
286 + reg = <3>;
287 + label = "lan1";
288 + };
289 +
290 + port@4 {
291 + reg = <4>;
292 + label = "wan";
293 + };
294 +
295 + port@5 {
296 + reg = <5>;
297 + label = "cpu";
298 + ethernet = <&gmac0>;
299 + };
300 + };
301 +};