ipq40xx: Fix DTS status parameter values
[openwrt/openwrt.git] / target / linux / ipq40xx / files-4.14 / arch / arm / boot / dts / qcom-ipq4029-gl-b1300.dts
1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 *
3 * Permission to use, copy, modify, and/or distribute this software for any
4 * purpose with or without fee is hereby granted, provided that the above
5 * copyright notice and this permission notice appear in all copies.
6 *
7 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 *
15 */
16
17 #include "qcom-ipq4019.dtsi"
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20 #include <dt-bindings/soc/qcom,tcsr.h>
21
22 / {
23 model = "GL.iNet GL-B1300";
24 compatible = "glinet,gl-b1300", "qcom,ipq4019";
25
26 aliases {
27 led-boot = &power;
28 led-failsafe = &power;
29 led-running = &power;
30 led-upgrade = &power;
31 };
32
33 memory {
34 device_type = "memory";
35 reg = <0x80000000 0x10000000>;
36 };
37
38 reserved-memory {
39 #address-cells = <0x1>;
40 #size-cells = <0x1>;
41 ranges;
42
43 apps_bl@87000000 {
44 reg = <0x87000000 0x400000>;
45 no-map;
46 };
47
48 sbl@87400000 {
49 reg = <0x87400000 0x100000>;
50 no-map;
51 };
52
53 cnss_debug@87500000 {
54 reg = <0x87500000 0x600000>;
55 no-map;
56 };
57
58 cpu_context_dump@87b00000 {
59 reg = <0x87b00000 0x080000>;
60 no-map;
61 };
62
63 tz_apps@87b80000 {
64 reg = <0x87b80000 0x280000>;
65 no-map;
66 };
67
68 smem@87e00000 {
69 reg = <0x87e00000 0x080000>;
70 no-map;
71 };
72
73 tz@87e80000 {
74 reg = <0x87e80000 0x180000>;
75 no-map;
76 };
77 };
78
79 soc {
80 mdio@90000 {
81 status = "okay";
82 };
83
84 ess-psgmii@98000 {
85 status = "okay";
86 };
87
88 tcsr@1949000 {
89 compatible = "qcom,tcsr";
90 reg = <0x1949000 0x100>;
91 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
92 };
93
94 tcsr@194b000 {
95 /* select hostmode */
96 compatible = "qcom,tcsr";
97 reg = <0x194b000 0x100>;
98 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
99 status = "okay";
100 };
101
102 ess_tcsr@1953000 {
103 compatible = "qcom,tcsr";
104 reg = <0x1953000 0x1000>;
105 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
106 };
107
108 tcsr@1957000 {
109 compatible = "qcom,tcsr";
110 reg = <0x1957000 0x100>;
111 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
112 };
113
114 usb2@60f8800 {
115 status = "okay";
116 };
117
118 serial@78af000 {
119 pinctrl-0 = <&serial_pins>;
120 pinctrl-names = "default";
121 status = "okay";
122 };
123
124 usb3@8af8800 {
125 status = "okay";
126 };
127
128 crypto@8e3a000 {
129 status = "okay";
130 };
131
132 watchdog@b017000 {
133 status = "okay";
134 };
135
136 ess-switch@c000000 {
137 status = "okay";
138 switch_lan_bmp = <0x18>;
139 switch_wan_bmp = <0x20>;
140 };
141
142 edma@c080000 {
143 status = "okay";
144 };
145 };
146
147 gpio-keys {
148 compatible = "gpio-keys";
149
150 wps {
151 label = "wps";
152 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
153 linux,code = <KEY_WPS_BUTTON>;
154 };
155
156 reset {
157 label = "reset";
158 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
159 linux,code = <KEY_RESTART>;
160 };
161 };
162
163 gpio-leds {
164 compatible = "gpio-leds";
165
166 power: power {
167 label = "gl-b1300:green:power";
168 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
169 default-state = "on";
170 };
171
172 mesh {
173 label = "gl-b1300:green:mesh";
174 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
175 };
176
177 wlan {
178 label = "gl-b1300:green:wlan";
179 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
180 };
181 };
182 };
183
184 &blsp_dma {
185 status = "okay";
186 };
187
188 &cryptobam {
189 status = "okay";
190 };
191
192 &spi_0 {
193 pinctrl-0 = <&spi_0_pins>;
194 pinctrl-names = "default";
195 status = "okay";
196 cs-gpios = <&tlmm 54 0>;
197
198 mx25l25635f@0 {
199 compatible = "jedec,spi-nor";
200 #address-cells = <1>;
201 #size-cells = <1>;
202 reg = <0>;
203 spi-max-frequency = <24000000>;
204
205 SBL1@0 {
206 label = "SBL1";
207 reg = <0x0 0x40000>;
208 read-only;
209 };
210
211 MIBIB@40000 {
212 label = "MIBIB";
213 reg = <0x40000 0x20000>;
214 read-only;
215 };
216
217 QSEE@60000 {
218 label = "QSEE";
219 reg = <0x60000 0x60000>;
220 read-only;
221 };
222
223 CDT@c0000 {
224 label = "CDT";
225 reg = <0xc0000 0x10000>;
226 read-only;
227 };
228
229 DDRPARAMS@d0000 {
230 label = "DDRPARAMS";
231 reg = <0xd0000 0x10000>;
232 read-only;
233 };
234
235 APPSBLENV@e0000 {
236 label = "APPSBLENV";
237 reg = <0xe0000 0x10000>;
238 read-only;
239 };
240
241 APPSBL@f0000 {
242 label = "APPSBL";
243 reg = <0xf0000 0x80000>;
244 read-only;
245 };
246
247 ART@170000 {
248 label = "ART";
249 reg = <0x170000 0x10000>;
250 read-only;
251 };
252
253 firmware@180000 {
254 label = "firmware";
255 reg = <0x180000 0x1e80000>;
256 };
257 };
258 };
259
260 &tlmm {
261 serial_pins: serial_pinmux {
262 mux {
263 pins = "gpio60", "gpio61";
264 function = "blsp_uart0";
265 bias-disable;
266 };
267 };
268
269 spi_0_pins: spi_0_pinmux {
270 pinmux {
271 function = "blsp_spi0";
272 pins = "gpio55", "gpio56", "gpio57";
273 };
274 pinmux_cs {
275 function = "gpio";
276 pins = "gpio54";
277 };
278 pinconf {
279 pins = "gpio55", "gpio56", "gpio57";
280 drive-strength = <12>;
281 bias-disable;
282 };
283 pinconf_cs {
284 pins = "gpio54";
285 drive-strength = <2>;
286 bias-disable;
287 output-high;
288 };
289 };
290 };
291
292 &usb2_hs_phy {
293 status = "okay";
294 };
295
296 &usb3_hs_phy {
297 status = "okay";
298 };
299
300 &usb3_ss_phy {
301 status = "okay";
302 };
303
304 &wifi0 {
305 status = "okay";
306 };
307
308 &wifi1 {
309 status = "okay";
310 };