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