a34d2cd1c9edbb34b20ac57be4cb021aeb0a6d1c
[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 smem@87e00000 {
44 reg = <0x87e00000 0x080000>;
45 no-map;
46 };
47
48 tz@87e80000 {
49 reg = <0x87e80000 0x180000>;
50 no-map;
51 };
52 };
53
54 soc {
55 mdio@90000 {
56 status = "okay";
57 };
58
59 ess-psgmii@98000 {
60 status = "okay";
61 };
62
63 tcsr@1949000 {
64 compatible = "qcom,tcsr";
65 reg = <0x1949000 0x100>;
66 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
67 };
68
69 tcsr@194b000 {
70 /* select hostmode */
71 compatible = "qcom,tcsr";
72 reg = <0x194b000 0x100>;
73 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
74 status = "okay";
75 };
76
77 ess_tcsr@1953000 {
78 compatible = "qcom,tcsr";
79 reg = <0x1953000 0x1000>;
80 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
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 usb2@60f8800 {
90 status = "okay";
91 };
92
93 serial@78af000 {
94 pinctrl-0 = <&serial_pins>;
95 pinctrl-names = "default";
96 status = "okay";
97 };
98
99 usb3@8af8800 {
100 status = "okay";
101 };
102
103 crypto@8e3a000 {
104 status = "okay";
105 };
106
107 watchdog@b017000 {
108 status = "okay";
109 };
110
111 ess-switch@c000000 {
112 status = "okay";
113 switch_lan_bmp = <0x18>;
114 switch_wan_bmp = <0x20>;
115 };
116
117 edma@c080000 {
118 status = "okay";
119 };
120 };
121
122 gpio-keys {
123 compatible = "gpio-keys";
124
125 wps {
126 label = "wps";
127 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
128 linux,code = <KEY_WPS_BUTTON>;
129 };
130
131 reset {
132 label = "reset";
133 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
134 linux,code = <KEY_RESTART>;
135 };
136 };
137
138 gpio-leds {
139 compatible = "gpio-leds";
140
141 power: power {
142 label = "gl-b1300:green:power";
143 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
144 default-state = "on";
145 };
146
147 mesh {
148 label = "gl-b1300:green:mesh";
149 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
150 };
151
152 wlan {
153 label = "gl-b1300:green:wlan";
154 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
155 };
156 };
157 };
158
159 &blsp_dma {
160 status = "okay";
161 };
162
163 &cryptobam {
164 status = "okay";
165 };
166
167 &spi_0 {
168 pinctrl-0 = <&spi_0_pins>;
169 pinctrl-names = "default";
170 status = "okay";
171 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
172
173 mx25l25635f@0 {
174 compatible = "jedec,spi-nor";
175 #address-cells = <1>;
176 #size-cells = <1>;
177 reg = <0>;
178 spi-max-frequency = <24000000>;
179
180 SBL1@0 {
181 label = "SBL1";
182 reg = <0x0 0x40000>;
183 read-only;
184 };
185
186 MIBIB@40000 {
187 label = "MIBIB";
188 reg = <0x40000 0x20000>;
189 read-only;
190 };
191
192 QSEE@60000 {
193 label = "QSEE";
194 reg = <0x60000 0x60000>;
195 read-only;
196 };
197
198 CDT@c0000 {
199 label = "CDT";
200 reg = <0xc0000 0x10000>;
201 read-only;
202 };
203
204 DDRPARAMS@d0000 {
205 label = "DDRPARAMS";
206 reg = <0xd0000 0x10000>;
207 read-only;
208 };
209
210 APPSBLENV@e0000 {
211 label = "APPSBLENV";
212 reg = <0xe0000 0x10000>;
213 read-only;
214 };
215
216 APPSBL@f0000 {
217 label = "APPSBL";
218 reg = <0xf0000 0x80000>;
219 read-only;
220 };
221
222 ART@170000 {
223 label = "ART";
224 reg = <0x170000 0x10000>;
225 read-only;
226 };
227
228 firmware@180000 {
229 label = "firmware";
230 reg = <0x180000 0x1e80000>;
231 };
232 };
233 };
234
235 &tlmm {
236 serial_pins: serial_pinmux {
237 mux {
238 pins = "gpio60", "gpio61";
239 function = "blsp_uart0";
240 bias-disable;
241 };
242 };
243
244 spi_0_pins: spi_0_pinmux {
245 pinmux {
246 function = "blsp_spi0";
247 pins = "gpio55", "gpio56", "gpio57";
248 };
249 pinmux_cs {
250 function = "gpio";
251 pins = "gpio54";
252 };
253 pinconf {
254 pins = "gpio55", "gpio56", "gpio57";
255 drive-strength = <12>;
256 bias-disable;
257 };
258 pinconf_cs {
259 pins = "gpio54";
260 drive-strength = <2>;
261 bias-disable;
262 output-high;
263 };
264 };
265 };
266
267 &usb2_hs_phy {
268 status = "okay";
269 };
270
271 &usb3_hs_phy {
272 status = "okay";
273 };
274
275 &usb3_ss_phy {
276 status = "okay";
277 };
278
279 &wifi0 {
280 status = "okay";
281 };
282
283 &wifi1 {
284 status = "okay";
285 };