3838f9252efb4336a43aee589a16576287ca5b82
[openwrt/staging/jogo.git] / target / linux / ipq40xx / files-4.14 / arch / arm / boot / dts / qcom-ipq4018-wre6606.dts
1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 * Copyright (c) 2018, David Bauer <mail@david-bauer.net>
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 *
16 */
17
18 #include "qcom-ipq4019.dtsi"
19 #include <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/input/input.h>
21 #include <dt-bindings/soc/qcom,tcsr.h>
22
23 / {
24 model = "ZyXEL WRE6606";
25 compatible = "zyxel,wre6606", "qcom,ipq4019";
26
27 aliases {
28 led-boot = &power;
29 led-failsafe = &power;
30 led-running = &power;
31 led-upgrade = &power;
32 };
33
34 chosen {
35 bootargs-append = " mtdparts=";
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 ess_tcsr@1953000 {
54 compatible = "qcom,tcsr";
55 reg = <0x1953000 0x1000>;
56 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
57 };
58
59 tcsr@1957000 {
60 compatible = "qcom,tcsr";
61 reg = <0x1957000 0x100>;
62 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
63 };
64
65 serial@78af000 {
66 pinctrl-0 = <&serial_pins>;
67 pinctrl-names = "default";
68 status = "okay";
69 };
70
71 crypto@8e3a000 {
72 status = "okay";
73 };
74
75 watchdog@b017000 {
76 status = "okay";
77 };
78
79 ess-switch@c000000 {
80 status = "okay";
81 };
82
83 edma@c080000 {
84 status = "okay";
85 qcom,num_gmac = <1>;
86 };
87 };
88
89 gpio-leds {
90 compatible = "gpio-leds";
91
92 wps {
93 label = "wre6606:green:wps";
94 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
95 };
96
97 wlan5g_green {
98 label = "wre6606:green:wlan5g";
99 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
100 };
101
102 power: power {
103 label = "wre6606:green:power";
104 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
105 };
106
107 wlan5g_red {
108 label = "wre6606:red:wlan5g";
109 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
110 };
111
112 wlan2g_red {
113 label = "wre6606:red:wlan2g";
114 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
115 };
116
117 wlan2g_green {
118 label = "wre6606:green:wlan2g";
119 gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
120 };
121 };
122
123 gpio-keys {
124 compatible = "gpio-keys";
125
126 wps {
127 label = "wps";
128 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
129 linux,code = <KEY_WPS_BUTTON>;
130 };
131 };
132 };
133
134 &tlmm {
135 serial_pins: serial_pinmux {
136 mux {
137 pins = "gpio60", "gpio61";
138 function = "blsp_uart0";
139 bias-disable;
140 };
141 };
142
143 spi_0_pins: spi_0_pinmux {
144 pin {
145 function = "blsp_spi0";
146 pins = "gpio55", "gpio56", "gpio57";
147 drive-strength = <12>;
148 bias-disable;
149 };
150 pin_cs {
151 function = "gpio";
152 pins = "gpio54";
153 drive-strength = <2>;
154 bias-disable;
155 output-high;
156 };
157 };
158 };
159
160 &blsp1_spi1 {
161 pinctrl-0 = <&spi_0_pins>;
162 pinctrl-names = "default";
163 status = "okay";
164 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
165
166 mx25l12805d@0 {
167 compatible = "jedec,spi-nor";
168 reg = <0>;
169 spi-max-frequency = <24000000>;
170
171 partitions {
172 compatible = "fixed-partitions";
173 #address-cells = <1>;
174 #size-cells = <1>;
175
176 partition0@0 {
177 label = "SBL1";
178 reg = <0x00000000 0x00040000>;
179 read-only;
180 };
181
182 partition1@40000 {
183 label = "MIBIB";
184 reg = <0x00040000 0x00020000>;
185 read-only;
186 };
187
188 partition2@60000 {
189 label = "QSEE";
190 reg = <0x00060000 0x00060000>;
191 read-only;
192 };
193
194 partition3@c0000 {
195 label = "CDT";
196 reg = <0x000c0000 0x00010000>;
197 read-only;
198 };
199
200 partition4@d0000 {
201 label = "DDRPARAMS";
202 reg = <0x000d0000 0x00010000>;
203 read-only;
204 };
205
206 partition5@E0000 {
207 label = "APPSBLENV";
208 reg = <0x000e0000 0x00010000>;
209 read-only;
210 };
211
212 partition6@F0000 {
213 label = "APPSBL";
214 reg = <0x000f0000 0x00080000>;
215 read-only;
216 };
217
218 partition7@170000 {
219 label = "ART";
220 reg = <0x00170000 0x00010000>;
221 read-only;
222 };
223
224 partition8@180000 {
225 compatible = "denx,fit";
226 label = "firmware";
227 reg = <0x00180000 0x00ce0000>;
228 };
229
230 partition9@e60000 {
231 label = "manufacture";
232 reg = <0x00e60000 0x00050000>;
233 read-only;
234 };
235
236 partition10@eb0000 {
237 label = "storage";
238 reg = <0x00eb0000 0x00150000>;
239 read-only;
240 };
241 };
242 };
243 };
244
245 &blsp_dma {
246 status = "okay";
247 };
248
249 &cryptobam {
250 status = "okay";
251 };
252
253 &wifi0 {
254 status = "okay";
255 qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";
256 };
257
258 &wifi1 {
259 status = "okay";
260 qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";
261 };