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