Merge tag 'pci-v5.16-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[linux-2.6-microblaze.git] / arch / arm / boot / dts / bcm958625-meraki-alamo.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3  * Device Tree Bindings for Cisco Meraki MX65 series (Alamo).
4  *
5  * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
6  */
7
8 #include "bcm958625-meraki-mx6x-common.dtsi"
9
10 / {
11         keys {
12                 compatible = "gpio-keys-polled";
13                 autorepeat;
14                 poll-interval = <20>;
15
16                 reset {
17                         label = "reset";
18                         linux,code = <KEY_RESTART>;
19                         gpios = <&gpioa 8 GPIO_ACTIVE_LOW>;
20                 };
21         };
22
23         leds {
24                 compatible = "gpio-leds";
25
26                 led-0 {
27                         /* green:wan1-left */
28                         function = LED_FUNCTION_ACTIVITY;
29                         function-enumerator = <0>;
30                         color = <LED_COLOR_ID_GREEN>;
31                         gpios = <&gpioa 25 GPIO_ACTIVE_LOW>;
32                 };
33
34                 led-1 {
35                         /* green:wan1-right */
36                         function = LED_FUNCTION_ACTIVITY;
37                         function-enumerator = <1>;
38                         color = <LED_COLOR_ID_GREEN>;
39                         gpios = <&gpioa 24 GPIO_ACTIVE_LOW>;
40                 };
41
42                 led-2 {
43                         /* green:wan2-left */
44                         function = LED_FUNCTION_ACTIVITY;
45                         function-enumerator = <2>;
46                         color = <LED_COLOR_ID_GREEN>;
47                         gpios = <&gpioa 27 GPIO_ACTIVE_LOW>;
48                 };
49
50                 led-3 {
51                         /* green:wan2-right */
52                         function = LED_FUNCTION_ACTIVITY;
53                         function-enumerator = <3>;
54                         color = <LED_COLOR_ID_GREEN>;
55                         gpios = <&gpioa 26 GPIO_ACTIVE_LOW>;
56                 };
57
58                 led-4 {
59                         /* amber:power */
60                         function = LED_FUNCTION_POWER;
61                         color = <LED_COLOR_ID_AMBER>;
62                         gpios = <&gpioa 3 GPIO_ACTIVE_HIGH>;
63                         default-state = "on";
64                 };
65
66                 led-5 {
67                         /* white:status */
68                         function = LED_FUNCTION_STATUS;
69                         color = <LED_COLOR_ID_WHITE>;
70                         gpios = <&gpioa 31 GPIO_ACTIVE_HIGH>;
71                 };
72         };
73 };
74
75 &axi {
76         mdio-mux@3f1c0 {
77                 compatible = "mdio-mux-mmioreg", "mdio-mux";
78                 reg = <0x3f1c0 0x4>;
79                 mux-mask = <0x2000>;
80                 mdio-parent-bus = <&mdio_ext>;
81                 #address-cells = <1>;
82                 #size-cells = <0>;
83
84                 mdio@0 {
85                         reg = <0x0>;
86                         #address-cells = <1>;
87                         #size-cells = <0>;
88
89                         phy_port6: phy@0 {
90                                 reg = <0>;
91                         };
92
93                         phy_port7: phy@1 {
94                                 reg = <1>;
95                         };
96
97                         phy_port8: phy@2 {
98                                 reg = <2>;
99                         };
100
101                         phy_port9: phy@3 {
102                                 reg = <3>;
103                         };
104
105                         phy_port10: phy@4 {
106                                 reg = <4>;
107                         };
108
109                         switch@10 {
110                                 compatible = "qca,qca8337";
111                                 reg = <0x10>;
112                                 dsa,member = <1 0>;
113
114                                 ports {
115                                         #address-cells = <1>;
116                                         #size-cells = <0>;
117                                         port@0 {
118                                                 reg = <0>;
119                                                 ethernet = <&sgmii1>;
120                                                 phy-mode = "sgmii";
121                                                 fixed-link {
122                                                         speed = <1000>;
123                                                         full-duplex;
124                                                 };
125                                         };
126
127                                         port@1 {
128                                                 reg = <1>;
129                                                 label = "lan8";
130                                                 phy-handle = <&phy_port6>;
131                                         };
132
133                                         port@2 {
134                                                 reg = <2>;
135                                                 label = "lan9";
136                                                 phy-handle = <&phy_port7>;
137                                         };
138
139                                         port@3 {
140                                                 reg = <3>;
141                                                 label = "lan10";
142                                                 phy-handle = <&phy_port8>;
143                                         };
144
145                                         port@4 {
146                                                 reg = <4>;
147                                                 label = "lan11";
148                                                 phy-handle = <&phy_port9>;
149                                         };
150
151                                         port@5 {
152                                                 reg = <5>;
153                                                 label = "lan12";
154                                                 phy-handle = <&phy_port10>;
155                                         };
156                                 };
157                         };
158                 };
159
160                 mdio-mii@2000 {
161                         reg = <0x2000>;
162                         #address-cells = <1>;
163                         #size-cells = <0>;
164
165                         phy_port1: phy@0 {
166                                 reg = <0>;
167                         };
168
169                         phy_port2: phy@1 {
170                                 reg = <1>;
171                         };
172
173                         phy_port3: phy@2 {
174                                 reg = <2>;
175                         };
176
177                         phy_port4: phy@3 {
178                                 reg = <3>;
179                         };
180
181                         phy_port5: phy@4 {
182                                 reg = <4>;
183                         };
184
185                         switch@10 {
186                                 compatible = "qca,qca8337";
187                                 reg = <0x10>;
188                                 dsa,member = <2 0>;
189
190                                 ports {
191                                         #address-cells = <1>;
192                                         #size-cells = <0>;
193                                         port@0 {
194                                                 reg = <0>;
195                                                 ethernet = <&sgmii0>;
196                                                 phy-mode = "sgmii";
197                                                 fixed-link {
198                                                         speed = <1000>;
199                                                         full-duplex;
200                                                 };
201                                         };
202
203                                         port@1 {
204                                                 reg = <1>;
205                                                 label = "lan3";
206                                                 phy-handle = <&phy_port1>;
207                                         };
208
209                                         port@2 {
210                                                 reg = <2>;
211                                                 label = "lan4";
212                                                 phy-handle = <&phy_port2>;
213                                         };
214
215                                         port@3 {
216                                                 reg = <3>;
217                                                 label = "lan5";
218                                                 phy-handle = <&phy_port3>;
219                                         };
220
221                                         port@4 {
222                                                 reg = <4>;
223                                                 label = "lan6";
224                                                 phy-handle = <&phy_port4>;
225                                         };
226
227                                         port@5 {
228                                                 reg = <5>;
229                                                 label = "lan7";
230                                                 phy-handle = <&phy_port5>;
231                                         };
232                                 };
233                         };
234                 };
235         };
236 };
237
238 &srab {
239         compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
240         status = "okay";
241         dsa,member = <0 0>;
242
243         ports {
244                 port@0 {
245                         label = "wan1";
246                         reg = <0>;
247                 };
248
249                 port@1 {
250                         label = "wan2";
251                         reg = <1>;
252                 };
253
254                 sgmii0: port@4 {
255                         label = "sw0";
256                         reg = <4>;
257                         fixed-link {
258                                 speed = <1000>;
259                                 full-duplex;
260                         };
261                 };
262
263                 sgmii1: port@5 {
264                         label = "sw1";
265                         reg = <5>;
266                         fixed-link {
267                                 speed = <1000>;
268                                 full-duplex;
269                         };
270                 };
271
272                 port@8 {
273                         ethernet = <&amac2>;
274                         reg = <8>;
275                         fixed-link {
276                                 speed = <1000>;
277                                 full-duplex;
278                         };
279                 };
280         };
281 };