ipq40xx: use existing labels for MDIO node
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / 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/leds/common.h>
22 #include <dt-bindings/soc/qcom,tcsr.h>
23
24 / {
25 model = "ZyXEL WRE6606";
26 compatible = "zyxel,wre6606";
27
28 aliases {
29 led-boot = &power;
30 led-failsafe = &power;
31 led-running = &power;
32 led-upgrade = &power;
33 };
34
35 chosen {
36 bootargs-append = " mtdparts=";
37 };
38
39 soc {
40 tcsr@1949000 {
41 compatible = "qcom,tcsr";
42 reg = <0x1949000 0x100>;
43 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
44 };
45
46 ess_tcsr@1953000 {
47 compatible = "qcom,tcsr";
48 reg = <0x1953000 0x1000>;
49 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
50 };
51
52 tcsr@1957000 {
53 compatible = "qcom,tcsr";
54 reg = <0x1957000 0x100>;
55 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
56 };
57 };
58
59 leds {
60 compatible = "gpio-leds";
61
62 wps {
63 function = LED_FUNCTION_WPS;
64 color = <LED_COLOR_ID_GREEN>;
65 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
66 };
67
68 wlan5g_green {
69 label = "green:wlan5g";
70 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
71 };
72
73 power: power {
74 function = LED_FUNCTION_POWER;
75 color = <LED_COLOR_ID_GREEN>;
76 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
77 };
78
79 wlan5g_red {
80 label = "red:wlan5g";
81 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
82 };
83
84 wlan2g_red {
85 label = "red:wlan2g";
86 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
87 };
88
89 wlan2g_green {
90 label = "green:wlan2g";
91 gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
92 };
93 };
94
95 keys {
96 compatible = "gpio-keys";
97
98 wps {
99 label = "wps";
100 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_WPS_BUTTON>;
102 };
103 };
104 };
105
106 &watchdog {
107 status = "okay";
108 };
109
110 &prng {
111 status = "okay";
112 };
113
114 &crypto {
115 status = "okay";
116 };
117
118 &tlmm {
119 serial_pins: serial_pinmux {
120 mux {
121 pins = "gpio60", "gpio61";
122 function = "blsp_uart0";
123 bias-disable;
124 };
125 };
126
127 spi_0_pins: spi_0_pinmux {
128 pin {
129 function = "blsp_spi0";
130 pins = "gpio55", "gpio56", "gpio57";
131 drive-strength = <12>;
132 bias-disable;
133 };
134 pin_cs {
135 function = "gpio";
136 pins = "gpio54";
137 drive-strength = <2>;
138 bias-disable;
139 output-high;
140 };
141 };
142 };
143
144 &blsp_dma {
145 status = "okay";
146 };
147
148 &blsp1_spi1 {
149 pinctrl-0 = <&spi_0_pins>;
150 pinctrl-names = "default";
151 status = "okay";
152 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
153
154 mx25l12805d@0 {
155 compatible = "jedec,spi-nor";
156 reg = <0>;
157 spi-max-frequency = <24000000>;
158
159 partitions {
160 compatible = "fixed-partitions";
161 #address-cells = <1>;
162 #size-cells = <1>;
163
164 partition0@0 {
165 label = "SBL1";
166 reg = <0x00000000 0x00040000>;
167 read-only;
168 };
169
170 partition1@40000 {
171 label = "MIBIB";
172 reg = <0x00040000 0x00020000>;
173 read-only;
174 };
175
176 partition2@60000 {
177 label = "QSEE";
178 reg = <0x00060000 0x00060000>;
179 read-only;
180 };
181
182 partition3@c0000 {
183 label = "CDT";
184 reg = <0x000c0000 0x00010000>;
185 read-only;
186 };
187
188 partition4@d0000 {
189 label = "DDRPARAMS";
190 reg = <0x000d0000 0x00010000>;
191 read-only;
192 };
193
194 partition5@E0000 {
195 label = "APPSBLENV";
196 reg = <0x000e0000 0x00010000>;
197 read-only;
198 };
199
200 partition6@F0000 {
201 label = "APPSBL";
202 reg = <0x000f0000 0x00080000>;
203 read-only;
204 };
205
206 partition7@170000 {
207 label = "ART";
208 reg = <0x00170000 0x00010000>;
209 read-only;
210 };
211
212 partition8@180000 {
213 compatible = "denx,fit";
214 label = "firmware";
215 reg = <0x00180000 0x00ce0000>;
216 };
217
218 partition9@e60000 {
219 label = "manufacture";
220 reg = <0x00e60000 0x00050000>;
221 read-only;
222 };
223
224 partition10@eb0000 {
225 label = "storage";
226 reg = <0x00eb0000 0x00150000>;
227 read-only;
228 };
229 };
230 };
231 };
232
233 &blsp1_uart1 {
234 pinctrl-0 = <&serial_pins>;
235 pinctrl-names = "default";
236 status = "okay";
237 };
238
239 &cryptobam {
240 status = "okay";
241 };
242
243 &mdio {
244 status = "okay";
245 };
246
247 &wifi0 {
248 status = "okay";
249 qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";
250 };
251
252 &wifi1 {
253 status = "okay";
254 qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";
255 };