ipq40xx: tidy up dts-v1 statements
[openwrt/staging/blogic.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4019-xx8300.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /*
4 * Device Tree Source for Linksys xx8300 (Dallas)
5 *
6 * Copyright (C) 2019 Jeff Kletsky
7 * Updated 2020 Hans Geiblinger
8 *
9 */
10
11 #include "qcom-ipq4019.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/soc/qcom,tcsr.h>
15
16 //
17 // OEM U-Boot provides either
18 // init=/sbin/init rootfstype=ubifs ubi.mtd=11,2048 \
19 // root=ubi0:ubifs rootwait rw
20 // or the same with ubi.mtd=13,2048
21 //
22
23 / {
24 chosen {
25 bootargs-append = " root=/dev/ubiblock0_0 rootfstype=squashfs ro";
26 };
27
28
29 soc {
30 rng@22000 {
31 status = "okay";
32 };
33
34 mdio@90000 {
35 status = "okay";
36 };
37
38 ess-psgmii@98000 {
39 status = "okay";
40 };
41
42 tcsr@1949000 {
43 compatible = "qcom,tcsr";
44 reg = <0x1949000 0x100>;
45 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
46 };
47
48 tcsr@194b000 {
49 compatible = "qcom,tcsr";
50 reg = <0x194b000 0x100>;
51 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
52 };
53
54 ess_tcsr@1953000 {
55 compatible = "qcom,tcsr";
56 reg = <0x1953000 0x1000>;
57 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
58 };
59
60 tcsr@1957000 {
61 compatible = "qcom,tcsr";
62 reg = <0x1957000 0x100>;
63 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
64 };
65
66 usb2@60f8800 {
67 status = "okay";
68
69 dwc3@6000000 {
70 #address-cells = <1>;
71 #size-cells = <0>;
72
73 usb2_port1: port@1 {
74 reg = <1>;
75 #trigger-source-cells = <0>;
76 };
77 };
78 };
79
80 usb3@8af8800 {
81 status = "okay";
82
83 dwc3@8a00000 {
84 #address-cells = <1>;
85 #size-cells = <0>;
86
87 usb3_port1: port@1 {
88 reg = <1>;
89 #trigger-source-cells = <0>;
90 };
91
92 usb3_port2: port@2 {
93 reg = <2>;
94 #trigger-source-cells = <0>;
95 };
96 };
97 };
98
99 crypto@8e3a000 {
100 status = "okay";
101 };
102
103 watchdog@b017000 {
104 status = "okay";
105 };
106
107 ess-switch@c000000 {
108 status = "okay";
109 };
110
111 edma@c080000 {
112 status = "okay";
113 };
114 };
115 };
116
117
118 &blsp_dma {
119 status = "okay";
120 };
121
122 &blsp1_uart1 {
123 status = "okay";
124 pinctrl-0 = <&serial_0_pins>;
125 pinctrl-names = "default";
126
127 };
128
129 &cryptobam {
130 status = "okay";
131 };
132
133 &nand {
134 status = "okay";
135
136 pinctrl-0 = <&nand_pins>;
137 pinctrl-names = "default";
138
139 nand@0 {
140 partitions {
141 compatible = "fixed-partitions";
142 #address-cells = <1>;
143 #size-cells = <1>;
144
145 partition@0 {
146 label = "sbl1";
147 reg = <0x0 0x100000>;
148 read-only;
149 };
150
151 partition@100000 {
152 label = "mibib";
153 reg = <0x100000 0x100000>;
154 read-only;
155 };
156
157 partition@200000 {
158 label = "qsee";
159 reg = <0x200000 0x100000>;
160 read-only;
161 };
162
163 partition@300000 {
164 label = "cdt";
165 reg = <0x300000 0x80000>;
166 read-only;
167 };
168
169 partition@380000 {
170 label = "appsblenv";
171 reg = <0x380000 0x80000>;
172 read-only;
173 };
174
175 partition@400000 {
176 label = "ART";
177 reg = <0x400000 0x80000>;
178 read-only;
179 };
180
181 partition@480000 {
182 label = "appsbl";
183 reg = <0x480000 0x200000>;
184 read-only;
185 };
186
187 partition@680000 {
188 label = "u_env";
189 reg = <0x680000 0x80000>;
190 // writable -- U-Boot environment
191 };
192
193 partition@700000 {
194 label = "s_env";
195 reg = <0x700000 0x40000>;
196 // writable -- Boot counter records
197 };
198
199 partition@740000 {
200 label = "devinfo";
201 reg = <0x740000 0x40000>;
202 read-only;
203 };
204
205 partition@780000 {
206 label = "kernel";
207 reg = <0x780000 0x5800000>;
208 };
209
210 partition@a80000 {
211 label = "rootfs";
212 reg = <0xa80000 0x5500000>;
213 };
214
215 partition@5f80000 {
216 label = "alt_kernel";
217 reg = <0x5f80000 0x5800000>;
218 };
219
220 partition@6280000 {
221 label = "alt_rootfs";
222 reg = <0x6280000 0x5500000>;
223 };
224
225 partition@b780000 {
226 label = "sysdiag";
227 reg = <0xb780000 0x100000>;
228 read-only;
229 };
230
231 partition@b880000 {
232 label = "syscfg";
233 reg = <0xb880000 0x4680000>;
234 read-only;
235 };
236 };
237 };
238 };
239
240 &pcie0 {
241 status = "okay";
242
243 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
244 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
245
246 bridge@0,0 {
247 reg = <0x00000000 0 0 0 0>;
248 #address-cells = <3>;
249 #size-cells = <2>;
250 ranges;
251
252 wifi2: wifi@1,0 {
253 compatible = "qcom,ath10k";
254 reg = <0x00010000 0 0 0 0>;
255 };
256 };
257 };
258
259 &qpic_bam {
260 status = "okay";
261 };
262
263 &tlmm {
264 serial_0_pins: serial0-pinmux {
265 pins = "gpio16", "gpio17";
266 function = "blsp_uart0";
267 bias-disable;
268 };
269
270 nand_pins: nand_pins {
271 pullups {
272 pins = "gpio53", "gpio58", "gpio59";
273 function = "qpic";
274 bias-pull-up;
275 };
276
277 // gpio61 controls led_usb
278
279 pulldowns {
280 pins = "gpio55", "gpio56", "gpio57",
281 "gpio60", "gpio62", "gpio63",
282 "gpio64", "gpio65", "gpio66",
283 "gpio67", "gpio68", "gpio69";
284 function = "qpic";
285 bias-pull-down;
286 };
287 };
288 };
289
290 &usb2_hs_phy {
291 status = "okay";
292 };
293
294 &usb3_hs_phy {
295 status = "okay";
296 };
297
298 &usb3_ss_phy {
299 status = "okay";
300 };