41294e1931f7d86e733b3f2f2a76eb97b569e5c5
[openwrt/openwrt.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4019-r619ac.dtsi
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 #include <dt-bindings/leds/common.h>
8
9 / {
10 chosen {
11 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
12 };
13
14 aliases {
15 led-boot = &led_sys;
16 led-failsafe = &led_sys;
17 led-running = &led_sys;
18 led-upgrade = &led_sys;
19 label-mac-device = &gmac0;
20 };
21
22 soc {
23 rng@22000 {
24 status = "okay";
25 };
26
27 mdio@90000 {
28 status = "okay";
29 pinctrl-0 = <&mdio_pins>;
30 pinctrl-names = "default";
31 };
32
33 ess-psgmii@98000 {
34 status = "okay";
35 };
36
37 tcsr@1949000 {
38 compatible = "qcom,tcsr";
39 reg = <0x1949000 0x100>;
40 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
41 };
42
43 tcsr@194b000 {
44 compatible = "qcom,tcsr";
45 reg = <0x194b000 0x100>;
46 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
47 };
48
49 ess_tcsr@1953000 {
50 compatible = "qcom,tcsr";
51 reg = <0x1953000 0x1000>;
52 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
53 };
54
55 tcsr@1957000 {
56 compatible = "qcom,tcsr";
57 reg = <0x1957000 0x100>;
58 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
59 };
60
61 usb2@60f8800 {
62 status = "okay";
63 };
64
65 usb3@8af8800 {
66 status = "okay";
67 };
68
69 crypto@8e3a000 {
70 status = "okay";
71 };
72
73 watchdog@b017000 {
74 status = "okay";
75 };
76
77 ess-switch@c000000 {
78 status = "okay";
79 };
80
81 edma@c080000 {
82 status = "okay";
83 };
84 };
85
86 leds {
87 compatible = "gpio-leds";
88
89 led_sys: led-0 {
90 label = "blue:sys";
91 gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>;
92 color = <LED_COLOR_ID_BLUE>;
93 function = LED_FUNCTION_POWER;
94 };
95
96 led-1 {
97 label = "blue:wlan2g";
98 gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
99 linux,default-trigger = "phy0tpt";
100 color = <LED_COLOR_ID_BLUE>;
101 function = LED_FUNCTION_WLAN;
102 function-enumerator = <0>;
103 };
104
105 led-2 {
106 label = "blue:wlan5g";
107 gpios = <&tlmm 50 GPIO_ACTIVE_HIGH>;
108 linux,default-trigger = "phy1tpt";
109 color = <LED_COLOR_ID_BLUE>;
110 function = LED_FUNCTION_WLAN;
111 function-enumerator = <1>;
112 };
113 };
114
115 keys {
116 compatible = "gpio-keys";
117
118 reset {
119 label = "reset";
120 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_RESTART>;
122 };
123 };
124 };
125
126 &blsp_dma {
127 status = "okay";
128 };
129
130 &blsp1_spi1 {
131 status = "okay";
132
133 flash@0 {
134 reg = <0>;
135 compatible = "jedec,spi-nor";
136 spi-max-frequency = <24000000>;
137
138 partitions {
139 compatible = "fixed-partitions";
140 #address-cells = <1>;
141 #size-cells = <1>;
142
143 partition@0 {
144 label = "SBL1";
145 reg = <0x0 0x40000>;
146 read-only;
147 };
148
149 partition@40000 {
150 label = "MIBIB";
151 reg = <0x40000 0x20000>;
152 read-only;
153 };
154
155 partition@60000 {
156 label = "QSEE";
157 reg = <0x60000 0x60000>;
158 read-only;
159 };
160
161 partition@c0000 {
162 label = "CDT";
163 reg = <0xc0000 0x10000>;
164 read-only;
165 };
166
167 partition@d0000 {
168 label = "DDRPARAMS";
169 reg = <0xd0000 0x10000>;
170 read-only;
171 };
172
173 partition@e0000 {
174 label = "APPSBLENV";
175 reg = <0xe0000 0x10000>;
176 read-only;
177 };
178
179 partition@f0000 {
180 label = "APPSBL";
181 reg = <0xf0000 0x80000>;
182 read-only;
183 };
184
185 partition@170000 {
186 label = "ART";
187 reg = <0x170000 0x10000>;
188 read-only;
189 };
190 };
191 };
192 };
193
194 &nand {
195 status = "okay";
196
197 nand@0 {
198 partitions {
199 compatible = "fixed-partitions";
200 #address-cells = <1>;
201 #size-cells = <1>;
202
203 nand_rootfs: partition@0 {
204 label = "ubi";
205 /* reg defined in 64M/128M variant dts. */
206 };
207 };
208 };
209 };
210
211 &blsp1_uart1 {
212 pinctrl-0 = <&serial_0_pins>;
213 pinctrl-names = "default";
214 status = "okay";
215 };
216
217 &cryptobam {
218 status = "okay";
219 };
220
221 &pcie0 {
222 status = "okay";
223 pinctrl-names = "default";
224 pinctrl-0 = <&pcie_pins>;
225 perst-gpio = <&tlmm 4 GPIO_ACTIVE_LOW>;
226 wake-gpio = <&tlmm 40 GPIO_ACTIVE_HIGH>;
227
228 /* Free slot for use */
229 bridge@0,0 {
230 reg = <0x00000000 0 0 0 0>;
231 #address-cells = <3>;
232 #size-cells = <2>;
233 ranges;
234 };
235 };
236
237 &qpic_bam {
238 status = "okay";
239 };
240
241 &sdhci {
242 pinctrl-0 = <&sd_0_pins>;
243 pinctrl-names = "default";
244 vqmmc-supply = <&vqmmc>;
245 status = "okay";
246 };
247
248 &tlmm {
249 pcie_pins: pcie_pinmux {
250 mux {
251 pins = "gpio2";
252 function = "gpio";
253 output-low;
254 bias-pull-down;
255 };
256 };
257
258 mdio_pins: mdio_pinmux {
259 mux_1 {
260 pins = "gpio6";
261 function = "mdio";
262 bias-pull-up;
263 };
264
265 mux_2 {
266 pins = "gpio7";
267 function = "mdc";
268 bias-pull-up;
269 };
270 };
271
272 sd_0_pins: sd_0_pinmux {
273 mux_1 {
274 pins = "gpio23", "gpio24", "gpio25", "gpio26", "gpio28";
275 function = "sdio";
276 drive-strength = <10>;
277 };
278
279 mux_2 {
280 pins = "gpio27";
281 function = "sdio";
282 drive-strength = <16>;
283 };
284 };
285
286 serial_0_pins: serial0-pinmux {
287 mux {
288 pins = "gpio16", "gpio17";
289 function = "blsp_uart0";
290 bias-disable;
291 };
292 };
293 };
294
295 &ethphy0 {
296 qcom,single-led-1000;
297 qcom,single-led-100;
298 qcom,single-led-10;
299 };
300
301 &ethphy1 {
302 qcom,single-led-1000;
303 qcom,single-led-100;
304 qcom,single-led-10;
305 };
306
307 &ethphy2 {
308 qcom,single-led-1000;
309 qcom,single-led-100;
310 qcom,single-led-10;
311 };
312
313 &ethphy3 {
314 qcom,single-led-1000;
315 qcom,single-led-100;
316 qcom,single-led-10;
317 };
318
319 &ethphy4 {
320 qcom,single-led-1000;
321 qcom,single-led-100;
322 qcom,single-led-10;
323 };
324
325 &usb3_ss_phy {
326 status = "okay";
327 };
328
329 &usb3_hs_phy {
330 status = "okay";
331 };
332
333 &usb2_hs_phy {
334 status = "okay";
335 };
336
337 &vqmmc {
338 status = "okay";
339 };
340
341 &wifi0 {
342 status = "okay";
343 qcom,ath10k-calibration-variant = "P&W R619AC";
344 };
345
346 &wifi1 {
347 status = "okay";
348 qcom,ath10k-calibration-variant = "P&W R619AC";
349 };