ipq40xx: Remove unused reserved-memory nodes
[openwrt/staging/wigyori.git] / target / linux / ipq40xx / files-4.14 / arch / arm / boot / dts / qcom-ipq4029-mr33.dts
1 /*
2 * Device Tree Source for Meraki MR33 (Stinkbug)
3 *
4 * Copyright (C) 2017 Chris Blake <chrisrblake93@gmail.com>
5 * Copyright (C) 2017 Christian Lamparter <chunkeey@googlemail.com>
6 *
7 * Based on Cisco Meraki DTS from GPL release r25-linux-3.14-20170427
8 *
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without
11 * any warranty of any kind, whether express or implied.
12 */
13
14 #include "qcom-ipq4019.dtsi"
15 #include "qcom-ipq4019-bus.dtsi"
16 #include <dt-bindings/gpio/gpio.h>
17 #include <dt-bindings/input/input.h>
18 #include <dt-bindings/soc/qcom,tcsr.h>
19
20 / {
21 model = "Meraki MR33 Access Point";
22 compatible = "meraki,mr33", "qcom,ipq4019";
23
24 aliases {
25 led-boot = &status_green;
26 led-failsafe = &status_red;
27 led-running = &status_green;
28 led-upgrade = &power_orange;
29 };
30
31 /* Do we really need this defined? */
32 memory {
33 device_type = "memory";
34 reg = <0x80000000 0x10000000>;
35 };
36
37 reserved-memory {
38 #address-cells = <0x1>;
39 #size-cells = <0x1>;
40 ranges;
41
42 smem@87e00000 {
43 reg = <0x87e00000 0x080000>;
44 no-map;
45 };
46
47 tz@87e80000 {
48 reg = <0x87e80000 0x180000>;
49 no-map;
50 };
51 };
52
53 soc {
54 mdio@90000 {
55 status = "okay";
56 pinctrl-0 = <&mdio_pins>;
57 pinctrl-names = "default";
58 /delete-node/ ethernet-phy@0;
59 /delete-node/ ethernet-phy@2;
60 /delete-node/ ethernet-phy@3;
61 /delete-node/ ethernet-phy@4;
62 };
63
64 /* It is a 56-bit counter that supplies the count to the ARM arch
65 timers and without upstream driver */
66 counter@4a1000 {
67 compatible = "qcom,qca-gcnt";
68 reg = <0x4a1000 0x4>;
69 };
70
71 ess_tcsr@1953000 {
72 compatible = "qcom,tcsr";
73 reg = <0x1953000 0x1000>;
74 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
75 };
76
77 tcsr@1949000 {
78 compatible = "qcom,tcsr";
79 reg = <0x1949000 0x100>;
80 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
81 };
82
83 tcsr@1957000 {
84 compatible = "qcom,tcsr";
85 reg = <0x1957000 0x100>;
86 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
87 };
88
89 serial@78af000 {
90 pinctrl-0 = <&serial_0_pins>;
91 pinctrl-names = "default";
92 status = "okay";
93 };
94
95 serial@78b0000 {
96 pinctrl-0 = <&serial_1_pins>;
97 pinctrl-names = "default";
98 status = "okay";
99
100 bluetooth {
101 compatible = "ti,cc2650";
102 enable-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
103 };
104 };
105
106 crypto@8e3a000 {
107 status = "okay";
108 };
109
110 watchdog@b017000 {
111 status = "okay";
112 };
113
114 ess-switch@c000000 {
115 switch_mac_mode = <0x3>; /* mac mode for RGMII RMII */
116 switch_lan_bmp = <0x0>; /* lan port bitmap */
117 switch_wan_bmp = <0x10>; /* wan port bitmap */
118 };
119
120 edma@c080000 {
121 qcom,single-phy;
122 qcom,num_gmac = <1>;
123 phy-mode = "rgmii-rxid";
124 status = "okay";
125 };
126 };
127
128 gpio-keys {
129 compatible = "gpio-keys";
130
131 reset {
132 label = "reset";
133 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
134 linux,code = <KEY_RESTART>;
135 };
136 };
137
138 gpio-leds {
139 compatible = "gpio-leds";
140
141 power_orange: power {
142 label = "mr33:orange:power";
143 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
144 panic-indicator;
145 };
146 };
147 };
148
149 &blsp_dma {
150 status = "okay";
151 };
152
153 &cryptobam {
154 status = "okay";
155 };
156
157 &gmac0 {
158 qcom,phy_mdio_addr = <1>;
159 qcom,poll_required = <1>;
160 vlan_tag = <0 0x20>;
161 };
162
163 &i2c_0 {
164 pinctrl-0 = <&i2c_0_pins>;
165 pinctrl-names = "default";
166 status = "okay";
167 at24@50 {
168 compatible = "atmel,24c64";
169 pagesize = <32>;
170 reg = <0x50>;
171 read-only; /* This holds our MAC & Meraki board-data */
172 };
173 };
174
175 &i2c_1 {
176 pinctrl-0 = <&i2c_1_pins>;
177 pinctrl-names = "default";
178 status = "okay";
179
180 lp5562@30 {
181 enable-gpio = <&tlmm 48 GPIO_ACTIVE_HIGH>;
182 compatible = "ti,lp5562";
183 clock-mode = /bits/8 <2>;
184 reg = <0x30>;
185
186 /* RGB led */
187 status_red: chan0 {
188 chan-name = "mr33:red:status";
189 led-cur = /bits/ 8 <0x20>;
190 max-cur = /bits/ 8 <0x60>;
191 };
192
193 status_green: chan1 {
194 chan-name = "mr33:green:status";
195 led-cur = /bits/ 8 <0x20>;
196 max-cur = /bits/ 8 <0x60>;
197 };
198
199 chan2 {
200 chan-name = "mr33:blue:status";
201 led-cur = /bits/ 8 <0x20>;
202 max-cur = /bits/ 8 <0x60>;
203 };
204
205 chan3 {
206 chan-name = "mr33:white:status";
207 led-cur = /bits/ 8 <0x20>;
208 max-cur = /bits/ 8 <0x60>;
209 };
210 };
211 };
212
213 &nand {
214 pinctrl-0 = <&nand_pins>;
215 pinctrl-names = "default";
216 status = "okay";
217
218 nand@0 {
219 partitions {
220 compatible = "fixed-partitions";
221 #address-cells = <1>;
222 #size-cells = <1>;
223
224 partition@0 {
225 label = "sbl1";
226 reg = <0x000000000000 0x000000100000>;
227 read-only;
228 };
229 partition@1 {
230 label = "mibib";
231 reg = <0x000000100000 0x000000100000>;
232 read-only;
233 };
234 partition@2 {
235 label = "bootconfig";
236 reg = <0x000000200000 0x000000100000>;
237 read-only;
238 };
239 partition@3 {
240 label = "qsee";
241 reg = <0x000000300000 0x000000100000>;
242 read-only;
243 };
244 partition@4 {
245 label = "qsee_alt";
246 reg = <0x000000400000 0x000000100000>;
247 read-only;
248 };
249 partition@5 {
250 label = "cdt";
251 reg = <0x000000500000 0x000000080000>;
252 read-only;
253 };
254 partition@6 {
255 label = "cdt_alt";
256 reg = <0x000000580000 0x000000080000>;
257 read-only;
258 };
259 partition@7 {
260 label = "ddrparams";
261 reg = <0x000000600000 0x000000080000>;
262 read-only;
263 };
264 partition@8 {
265 label = "u-boot";
266 reg = <0x000000700000 0x000000200000>;
267 read-only;
268 };
269 partition@9 {
270 label = "u-boot-backup";
271 reg = <0x000000900000 0x000000200000>;
272 read-only;
273 };
274 partition@10 {
275 label = "ART";
276 reg = <0x000000b00000 0x000000080000>;
277 read-only;
278 };
279 partition@11 {
280 label = "ubi";
281 reg = <0x000000c00000 0x000007000000>;
282 };
283 };
284 };
285 };
286
287 &pcie0 {
288 status = "okay";
289 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
290 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
291 };
292
293 &qpic_bam {
294 status = "okay";
295 };
296
297 &tlmm {
298 /*
299 * GPIO43 should be 0/1 whenever the unit is
300 * powered through PoE or AC-Adapter.
301 * That said, playing with this seems to
302 * reset the AP.
303 */
304
305 mdio_pins: mdio_pinmux {
306 mux_1 {
307 pins = "gpio6";
308 function = "mdio";
309 bias-pull-up;
310 };
311 mux_2 {
312 pins = "gpio7";
313 function = "mdc";
314 bias-pull-up;
315 };
316 };
317
318 serial_0_pins: serial_pinmux {
319 mux {
320 pins = "gpio16", "gpio17";
321 function = "blsp_uart0";
322 bias-disable;
323 };
324 };
325
326 serial_1_pins: serial1_pinmux {
327 mux {
328 /* We use the i2c-0 pins for serial_1 */
329 pins = "gpio8", "gpio9";
330 function = "blsp_uart1";
331 bias-disable;
332 };
333 };
334
335 i2c_0_pins: i2c_0_pinmux {
336 pinmux {
337 function = "blsp_i2c0";
338 pins = "gpio20", "gpio21";
339 };
340 pinconf {
341 pins = "gpio20", "gpio21";
342 drive-strength = <16>;
343 bias-disable;
344 };
345 };
346
347 i2c_1_pins: i2c_1_pinmux {
348 pinmux {
349 function = "blsp_i2c1";
350 pins = "gpio34", "gpio35";
351 };
352 pinconf {
353 pins = "gpio34", "gpio35";
354 drive-strength = <16>;
355 bias-disable;
356 };
357 };
358
359 nand_pins: nand_pins {
360 /*
361 * There are 18 pins. 15 pins are common between LCD and NAND.
362 * The QPIC controller arbitrates between LCD and NAND. Of the
363 * remaining 4, 2 are for NAND and 2 are for LCD exclusively.
364 *
365 * The meraki source hints that the bluetooth module claims
366 * pin 52 as well. But sadly, there's no data whenever this
367 * is a NAND or LCD exclusive pin or not.
368 */
369
370 pullups {
371 pins = "gpio52", "gpio53", "gpio58",
372 "gpio59";
373 function = "qpic";
374 bias-pull-up;
375 };
376
377 pulldowns {
378 pins = "gpio54", "gpio55", "gpio56",
379 "gpio57", "gpio60", "gpio61",
380 "gpio62", "gpio63", "gpio64",
381 "gpio65", "gpio66", "gpio67",
382 "gpio68", "gpio69";
383 function = "qpic";
384 bias-pull-down;
385 };
386 };
387 };
388
389 &wifi0 {
390 status = "okay";
391 /* qcom,ath10k-calibration-variant = "MERAKI-MR33"; */
392 };
393
394 &wifi1 {
395 status = "okay";
396 /* qcom,ath10k-calibration-variant = "MERAKI-MR33"; */
397 };