Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[linux-2.6-microblaze.git] / arch / arm / boot / dts / bcm47094-linksys-panamera.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3  * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
4  */
5
6 /dts-v1/;
7
8 #include "bcm47094.dtsi"
9 #include "bcm5301x-nand-cs0-bch8.dtsi"
10
11 / {
12         compatible = "linksys,panamera", "brcm,bcm47094", "brcm,bcm4708";
13         model = "Linksys EA9500";
14
15         chosen {
16                 bootargs = "console=ttyS0,115200";
17         };
18
19         memory@0 {
20                 device_type = "memory";
21                 reg = <0x00000000 0x08000000
22                        0x88000000 0x08000000>;
23         };
24
25         gpio-keys {
26                 compatible = "gpio-keys";
27
28                 wps {
29                         label = "WPS";
30                         linux,code = <KEY_WPS_BUTTON>;
31                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
32                 };
33
34                 rfkill {
35                                 label = "WiFi";
36                                 linux,code = <KEY_RFKILL>;
37                                 gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
38                 };
39
40                 reset {
41                                 label = "Reset";
42                                 linux,code = <KEY_RESTART>;
43                                 gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
44                 };
45         };
46
47         leds {
48                 compatible = "gpio-leds";
49
50                 wps {
51                         label = "bcm53xx:white:wps";
52                         gpios = <&chipcommon 22 GPIO_ACTIVE_LOW>;
53                 };
54
55                 usb2 {
56                         label = "bcm53xx:green:usb2";
57                         gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
58                         trigger-sources = <&ohci_port2>, <&ehci_port2>;
59                         linux,default-trigger = "usbport";
60                 };
61
62                 usb3 {
63                         label = "bcm53xx:green:usb3";
64                         gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
65                         trigger-sources = <&ohci_port1>, <&ehci_port1>,
66                                           <&xhci_port1>;
67                         linux,default-trigger = "usbport";
68                 };
69
70                 power {
71                         label = "bcm53xx:white:power";
72                         gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
73                 };
74
75                 wifi-disabled {
76                         label = "bcm53xx:amber:wifi-disabled";
77                         gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
78                 };
79
80                 wifi-enabled {
81                         label = "bcm53xx:white:wifi-enabled";
82                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
83                 };
84
85                 bluebar1 {
86                         label = "bcm53xx:white:bluebar1";
87                         gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
88                 };
89
90                 bluebar2 {
91                         label = "bcm53xx:white:bluebar2";
92                         gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
93                 };
94
95                 bluebar3 {
96                         label = "bcm53xx:white:bluebar3";
97                         gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
98                 };
99
100                 bluebar4 {
101                         label = "bcm53xx:white:bluebar4";
102                         gpios = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
103                 };
104
105                 bluebar5 {
106                         label = "bcm53xx:white:bluebar5";
107                         gpios = <&chipcommon 19 GPIO_ACTIVE_HIGH>;
108                 };
109
110                 bluebar6 {
111                         label = "bcm53xx:white:bluebar6";
112                         gpios = <&chipcommon 20 GPIO_ACTIVE_HIGH>;
113                 };
114
115                 bluebar7 {
116                         label = "bcm53xx:white:bluebar7";
117                         gpios = <&chipcommon 21 GPIO_ACTIVE_HIGH>;
118                 };
119
120                 bluebar8 {
121                         label = "bcm53xx:white:bluebar8";
122                         gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
123                 };
124         };
125
126         mdio-bus-mux@18003000 {
127
128                 /* BIT(9) = 1 => external mdio */
129                 mdio@200 {
130                         reg = <0x200>;
131                         #address-cells = <1>;
132                         #size-cells = <0>;
133
134                         switch@0  {
135                                 compatible = "brcm,bcm53125";
136                                 #address-cells = <1>;
137                                 #size-cells = <0>;
138                                 reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
139                                 reset-names = "robo_reset";
140                                 reg = <0>;
141                                 dsa,member = <1 0>;
142                                 pinctrl-names = "default";
143                                 pinctrl-0 = <&pinmux_mdio>;
144
145                                 ports {
146                                         #address-cells = <1>;
147                                         #size-cells = <0>;
148
149                                         port@0 {
150                                                 reg = <0>;
151                                                 label = "lan1";
152                                         };
153
154                                         port@1 {
155                                                 reg = <1>;
156                                                 label = "lan5";
157                                         };
158
159                                         port@2 {
160                                                 reg = <2>;
161                                                 label = "lan2";
162                                         };
163
164                                         port@3 {
165                                                 reg = <3>;
166                                                 label = "lan6";
167                                         };
168
169                                         port@4 {
170                                                 reg = <4>;
171                                                 label = "lan3";
172                                         };
173
174                                         sw1_p8: port@8 {
175                                                 reg = <8>;
176                                                 ethernet = <&sw0_p0>;
177                                                 label = "cpu";
178
179                                                 fixed-link {
180                                                         speed = <1000>;
181                                                         full-duplex;
182                                                 };
183                                         };
184                                 };
185                         };
186                 };
187         };
188 };
189
190 &usb2 {
191         vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
192 };
193
194 &usb3 {
195         vcc-gpio = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
196 };
197
198 &srab {
199         compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
200         status = "okay";
201         dsa,member = <0 0>;
202
203         ports {
204                 port@1 {
205                         reg = <1>;
206                         label = "lan7";
207                 };
208
209                 port@2 {
210                         reg = <2>;
211                         label = "lan4";
212                 };
213
214                 port@3 {
215                         reg = <3>;
216                         label = "lan8";
217                 };
218
219                 port@4 {
220                         reg = <4>;
221                         label = "wan";
222                 };
223
224                 port@5 {
225                         reg = <5>;
226                         ethernet = <&gmac0>;
227                         label = "cpu";
228                         status = "disabled";
229
230                         fixed-link {
231                                 speed = <1000>;
232                                 full-duplex;
233                         };
234                 };
235
236                 port@7 {
237                         reg = <7>;
238                         ethernet = <&gmac1>;
239                         label = "cpu";
240                         status = "disabled";
241
242                         fixed-link {
243                                 speed = <1000>;
244                                 full-duplex;
245                         };
246                 };
247
248                 port@8 {
249                         reg = <8>;
250                         ethernet = <&gmac2>;
251                         label = "cpu";
252
253                         fixed-link {
254                                 speed = <1000>;
255                                 full-duplex;
256                         };
257                 };
258
259                 sw0_p0: port@0 {
260                         reg = <0>;
261                         label = "extsw";
262
263                         fixed-link {
264                                 speed = <1000>;
265                                 full-duplex;
266                         };
267                 };
268         };
269 };
270
271 &usb3_phy {
272         status = "okay";
273 };
274
275 &nandcs {
276         partitions {
277                 compatible = "fixed-partitions";
278                 #address-cells = <1>;
279                 #size-cells = <1>;
280
281                 partition@0 {
282                         label = "boot";
283                         reg = <0x0000000 0x0080000>;
284                         read-only;
285                 };
286
287                 partition@80000 {
288                         label = "nvram";
289                         reg = <0x080000 0x0100000>;
290                 };
291
292                 partition@180000{
293                         label = "devinfo";
294                         reg = <0x0180000 0x080000>;
295                 };
296
297                 partition@200000 {
298                         label = "firmware";
299                         reg = <0x0200000 0x01D00000>;
300                         compatible = "brcm,trx";
301                 };
302
303                 partition@1F00000 {
304                         label = "failsafe";
305                         reg = <0x01F00000 0x01D00000>;
306                         read-only;
307                 };
308
309                 partition@5200000 {
310                         label = "system";
311                         reg = <0x05200000 0x02E00000>;
312                 };
313         };
314 };