ipq40xx: convert to nvmem-layout
[openwrt/staging/blocktrron.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
230 nvmem-layout {
231 compatible = "fixed-layout";
232 #address-cells = <1>;
233 #size-cells = <1>;
234
235 precal_art_1000: precal@1000 {
236 reg = <0x1000 0x2f20>;
237 };
238
239 precal_art_5000: precal@5000 {
240 reg = <0x5000 0x2f20>;
241 };
242 };
243 };
244 u_env@170000 {
245 label = "u_env";
246 reg = <0x00170000 0x00020000>;
247 };
248 s_env@190000 {
249 label = "s_env";
250 reg = <0x00190000 0x00020000>;
251 };
252 devinfo@1b0000 {
253 label = "devinfo";
254 reg = <0x001b0000 0x00010000>;
255 };
256 /* 0x001c0000 - 0x00200000 unused */
257 };
258 };
259
260 flash@1 {
261 status = "okay";
262 compatible = "spi-nand";
263 reg = <1>;
264 spi-max-frequency = <24000000>;
265
266 partitions {
267 compatible = "fixed-partitions";
268 #address-cells = <1>;
269 #size-cells = <1>;
270
271 kernel@0 {
272 label = "kernel";
273 reg = <0x00000000 0x02800000>;
274 };
275 rootfs@500000 {
276 label = "rootfs";
277 reg = <0x00500000 0x02300000>;
278 };
279 alt_kernel@2800000 {
280 label = "alt_kernel";
281 reg = <0x02800000 0x02800000>;
282 };
283 alt_rootfs@2d00000 {
284 label = "alt_rootfs";
285 reg = <0x02d00000 0x02300000>;
286 };
287 sysdiag@5000000 {
288 label = "sysdiag";
289 reg = <0x05000000 0x00100000>;
290 };
291 syscfg@5100000 {
292 label = "syscfg";
293 reg = <0x05100000 0x02F00000>;
294 };
295 /* 0x00000000 - 0x08000000: 128 MiB */
296 };
297 };
298 };
299
300 &usb3_ss_phy {
301 status = "okay";
302 };
303
304 &usb3_hs_phy {
305 status = "okay";
306 };
307
308 &usb2_hs_phy {
309 status = "okay";
310 };