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