cd5b4c6ccc3754ca0eba944d018a82752fd16f64
[openwrt/staging/hauke.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-ea6350v3.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
7
8 / {
9 model = "Linksys EA6350v3";
10 compatible = "linksys,ea6350v3";
11
12 aliases {
13 led-boot = &power;
14 led-failsafe = &power;
15 led-running = &power;
16 led-upgrade = &power;
17 };
18
19 soc {
20 rng@22000 {
21 status = "okay";
22 };
23
24 mdio@90000 {
25 status = "okay";
26 };
27
28 tcsr@1949000 {
29 compatible = "qcom,tcsr";
30 reg = <0x1949000 0x100>;
31 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
32 };
33
34 tcsr@194b000 {
35 compatible = "qcom,tcsr";
36 reg = <0x194b000 0x100>;
37 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
38 };
39
40 ess_tcsr@1953000 {
41 compatible = "qcom,tcsr";
42 reg = <0x1953000 0x1000>;
43 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
44 };
45
46 tcsr@1957000 {
47 compatible = "qcom,tcsr";
48 reg = <0x1957000 0x100>;
49 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
50 };
51
52 usb2@60f8800 {
53 status = "okay";
54 };
55
56 usb3@8af8800 {
57 status = "okay";
58 };
59
60 crypto@8e3a000 {
61 status = "okay";
62 };
63
64 watchdog@b017000 {
65 status = "okay";
66 };
67 };
68
69 keys {
70 compatible = "gpio-keys";
71
72 reset {
73 label = "reset";
74 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RESTART>;
76 };
77
78 wps {
79 label = "wps";
80 gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
82 };
83 };
84
85 leds {
86 compatible = "gpio-leds";
87
88 power: status {
89 label = "green:status";
90 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
91 };
92 };
93 };
94
95 &blsp1_uart1 {
96 pinctrl-0 = <&serial_pins>;
97 pinctrl-names = "default";
98 status = "okay";
99 };
100
101 &cryptobam {
102 status = "okay";
103 };
104
105 &gmac {
106 status = "okay";
107 };
108
109 &switch {
110 status = "okay";
111 };
112
113 &swport1 {
114 status = "okay";
115 };
116
117 &swport2 {
118 status = "okay";
119 };
120
121 &swport3 {
122 status = "okay";
123 };
124
125 &swport4 {
126 status = "okay";
127 };
128
129 &swport5 {
130 status = "okay";
131 };
132
133 &wifi0 {
134 status = "okay";
135 nvmem-cell-names = "pre-calibration";
136 nvmem-cells = <&precal_art_1000>;
137 qcom,ath10k-calibration-variant = "linksys-ea6350v3";
138 };
139
140 &wifi1 {
141 status = "okay";
142 nvmem-cell-names = "pre-calibration";
143 nvmem-cells = <&precal_art_5000>;
144 qcom,ath10k-calibration-variant = "linksys-ea6350v3";
145 };
146
147 &blsp_dma {
148 status = "okay";
149 };
150
151 &tlmm {
152 serial_pins: serial_pinmux {
153 mux {
154 pins = "gpio60", "gpio61";
155 function = "blsp_uart0";
156 bias-disable;
157 };
158 };
159
160 spi_0_pins: spi_0_pinmux {
161 mux {
162 function = "blsp_spi0";
163 pins = "gpio55", "gpio56", "gpio57";
164 drive-strength = <12>;
165 bias-disable;
166 };
167
168 mux_cs {
169 function = "gpio";
170 pins = "gpio54", "gpio59";
171 drive-strength = <2>;
172 bias-disable;
173 output-high;
174 };
175 };
176 };
177
178 &blsp1_spi1 { /* BLSP1 QUP1 */
179 pinctrl-0 = <&spi_0_pins>;
180 pinctrl-names = "default";
181 status = "okay";
182 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
183 <&tlmm 59 GPIO_ACTIVE_HIGH>;
184
185 flash@0 {
186 compatible = "jedec,spi-nor";
187 reg = <0>;
188 spi-max-frequency = <24000000>;
189
190 partitions {
191 compatible = "fixed-partitions";
192 #address-cells = <1>;
193 #size-cells = <1>;
194
195 SBL1@0 {
196 label = "SBL1";
197 reg = <0x00000000 0x00040000>;
198 read-only;
199 };
200 MBIB@40000 {
201 label = "MIBIB";
202 reg = <0x00040000 0x00020000>;
203 read-only;
204 };
205 QSEE@60000 {
206 label = "QSEE";
207 reg = <0x00060000 0x00060000>;
208 read-only;
209 };
210 CDT@c0000 {
211 label = "CDT";
212 reg = <0x000c0000 0x00010000>;
213 read-only;
214 };
215 APPSBLENV@d0000 {
216 label = "APPSBLENV";
217 reg = <0x000d0000 0x00010000>;
218 read-only;
219 };
220 APPSBL@e0000 {
221 label = "APPSBL"; /* uboot */
222 reg = <0x000e0000 0x00080000>;
223 read-only;
224 };
225 ART@160000 {
226 label = "ART";
227 reg = <0x00160000 0x00010000>;
228 read-only;
229 compatible = "nvmem-cells";
230 #address-cells = <1>;
231 #size-cells = <1>;
232
233 precal_art_1000: precal@1000 {
234 reg = <0x1000 0x2f20>;
235 };
236
237 precal_art_5000: precal@5000 {
238 reg = <0x5000 0x2f20>;
239 };
240 };
241 u_env@170000 {
242 label = "u_env";
243 reg = <0x00170000 0x00020000>;
244 };
245 s_env@190000 {
246 label = "s_env";
247 reg = <0x00190000 0x00020000>;
248 };
249 devinfo@1b0000 {
250 label = "devinfo";
251 reg = <0x001b0000 0x00010000>;
252 };
253 /* 0x001c0000 - 0x00200000 unused */
254 };
255 };
256
257 flash@1 {
258 status = "okay";
259 compatible = "spi-nand";
260 reg = <1>;
261 spi-max-frequency = <24000000>;
262
263 partitions {
264 compatible = "fixed-partitions";
265 #address-cells = <1>;
266 #size-cells = <1>;
267
268 kernel@0 {
269 label = "kernel";
270 reg = <0x00000000 0x02800000>;
271 };
272 rootfs@500000 {
273 label = "rootfs";
274 reg = <0x00500000 0x02300000>;
275 };
276 alt_kernel@2800000 {
277 label = "alt_kernel";
278 reg = <0x02800000 0x02800000>;
279 };
280 alt_rootfs@2d00000 {
281 label = "alt_rootfs";
282 reg = <0x02d00000 0x02300000>;
283 };
284 sysdiag@5000000 {
285 label = "sysdiag";
286 reg = <0x05000000 0x00100000>;
287 };
288 syscfg@5100000 {
289 label = "syscfg";
290 reg = <0x05100000 0x02F00000>;
291 };
292 /* 0x00000000 - 0x08000000: 128 MiB */
293 };
294 };
295 };
296
297 &usb3_ss_phy {
298 status = "okay";
299 };
300
301 &usb3_hs_phy {
302 status = "okay";
303 };
304
305 &usb2_hs_phy {
306 status = "okay";
307 };