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