ipq40xx: drop ESSEDMA + AR40xx DTS nodes
[openwrt/staging/dedeckeh.git] / target / linux / ipq40xx / files / 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";
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 rng@22000 {
40 status = "okay";
41 };
42
43 mdio@90000 {
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 crypto@8e3a000 {
66 status = "okay";
67 };
68
69 watchdog@b017000 {
70 status = "okay";
71 };
72 };
73
74 leds {
75 compatible = "gpio-leds";
76
77 wps {
78 label = "green:wps";
79 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
80 };
81
82 wlan5g_green {
83 label = "green:wlan5g";
84 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
85 };
86
87 power: power {
88 label = "green:power";
89 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
90 };
91
92 wlan5g_red {
93 label = "red:wlan5g";
94 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
95 };
96
97 wlan2g_red {
98 label = "red:wlan2g";
99 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
100 };
101
102 wlan2g_green {
103 label = "green:wlan2g";
104 gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
105 };
106 };
107
108 keys {
109 compatible = "gpio-keys";
110
111 wps {
112 label = "wps";
113 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_WPS_BUTTON>;
115 };
116 };
117 };
118
119 &tlmm {
120 serial_pins: serial_pinmux {
121 mux {
122 pins = "gpio60", "gpio61";
123 function = "blsp_uart0";
124 bias-disable;
125 };
126 };
127
128 spi_0_pins: spi_0_pinmux {
129 pin {
130 function = "blsp_spi0";
131 pins = "gpio55", "gpio56", "gpio57";
132 drive-strength = <12>;
133 bias-disable;
134 };
135 pin_cs {
136 function = "gpio";
137 pins = "gpio54";
138 drive-strength = <2>;
139 bias-disable;
140 output-high;
141 };
142 };
143 };
144
145 &blsp_dma {
146 status = "okay";
147 };
148
149 &blsp1_spi1 {
150 pinctrl-0 = <&spi_0_pins>;
151 pinctrl-names = "default";
152 status = "okay";
153 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
154
155 mx25l12805d@0 {
156 compatible = "jedec,spi-nor";
157 reg = <0>;
158 spi-max-frequency = <24000000>;
159
160 partitions {
161 compatible = "fixed-partitions";
162 #address-cells = <1>;
163 #size-cells = <1>;
164
165 partition0@0 {
166 label = "SBL1";
167 reg = <0x00000000 0x00040000>;
168 read-only;
169 };
170
171 partition1@40000 {
172 label = "MIBIB";
173 reg = <0x00040000 0x00020000>;
174 read-only;
175 };
176
177 partition2@60000 {
178 label = "QSEE";
179 reg = <0x00060000 0x00060000>;
180 read-only;
181 };
182
183 partition3@c0000 {
184 label = "CDT";
185 reg = <0x000c0000 0x00010000>;
186 read-only;
187 };
188
189 partition4@d0000 {
190 label = "DDRPARAMS";
191 reg = <0x000d0000 0x00010000>;
192 read-only;
193 };
194
195 partition5@E0000 {
196 label = "APPSBLENV";
197 reg = <0x000e0000 0x00010000>;
198 read-only;
199 };
200
201 partition6@F0000 {
202 label = "APPSBL";
203 reg = <0x000f0000 0x00080000>;
204 read-only;
205 };
206
207 partition7@170000 {
208 label = "ART";
209 reg = <0x00170000 0x00010000>;
210 read-only;
211 };
212
213 partition8@180000 {
214 compatible = "denx,fit";
215 label = "firmware";
216 reg = <0x00180000 0x00ce0000>;
217 };
218
219 partition9@e60000 {
220 label = "manufacture";
221 reg = <0x00e60000 0x00050000>;
222 read-only;
223 };
224
225 partition10@eb0000 {
226 label = "storage";
227 reg = <0x00eb0000 0x00150000>;
228 read-only;
229 };
230 };
231 };
232 };
233
234 &blsp1_uart1 {
235 pinctrl-0 = <&serial_pins>;
236 pinctrl-names = "default";
237 status = "okay";
238 };
239
240 &cryptobam {
241 status = "okay";
242 };
243
244 &wifi0 {
245 status = "okay";
246 qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";
247 };
248
249 &wifi1 {
250 status = "okay";
251 qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";
252 };