cd6c0ea77d4ab6fb50d71ed8ef9caa85ca11f00a
[openwrt/staging/stintel.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-ad7200-c2600.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq8064-v2.0.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 memory@0 {
9 reg = <0x42000000 0x1e000000>;
10 device_type = "memory";
11 };
12
13 aliases {
14 mdio-gpio0 = &mdio0;
15 label-mac-device = &gmac2;
16 };
17 };
18
19 &qcom_pinmux {
20 spi_pins: spi_pins {
21 mux {
22 pins = "gpio18", "gpio19", "gpio21";
23 function = "gsbi5";
24 bias-pull-down;
25 };
26
27 data {
28 pins = "gpio18", "gpio19";
29 drive-strength = <10>;
30 };
31
32 cs {
33 pins = "gpio20";
34 function = "gpio";
35 drive-strength = <10>;
36 bias-pull-up;
37 };
38
39 clk {
40 pins = "gpio21";
41 drive-strength = <12>;
42 };
43 };
44
45 usb0_pwr_en_pin: usb0_pwr_en_pin {
46 mux {
47 pins = "gpio25";
48 function = "gpio";
49 drive-strength = <10>;
50 bias-pull-up;
51 output-high;
52 };
53 };
54
55 usb1_pwr_en_pin: usb1_pwr_en_pin {
56 mux {
57 pins = "gpio23";
58 function = "gpio";
59 drive-strength = <10>;
60 bias-pull-up;
61 output-high;
62 };
63 };
64 };
65
66 &gsbi5 {
67 qcom,mode = <GSBI_PROT_SPI>;
68 status = "okay";
69
70 spi@1a280000 {
71 status = "okay";
72
73 pinctrl-0 = <&spi_pins>;
74 pinctrl-names = "default";
75
76 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
77
78 flash@0 {
79 compatible = "jedec,spi-nor";
80 #address-cells = <1>;
81 #size-cells = <1>;
82 spi-max-frequency = <50000000>;
83 reg = <0>;
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partition@0 {
91 label = "SBL1";
92 reg = <0x0 0x20000>;
93 read-only;
94 };
95
96 partition@20000 {
97 label = "MIBIB";
98 reg = <0x20000 0x20000>;
99 read-only;
100 };
101
102 partition@40000 {
103 label = "SBL2";
104 reg = <0x40000 0x20000>;
105 read-only;
106 };
107
108 partition@60000 {
109 label = "SBL3";
110 reg = <0x60000 0x30000>;
111 read-only;
112 };
113
114 partition@90000 {
115 label = "DDRCONFIG";
116 reg = <0x90000 0x10000>;
117 read-only;
118 };
119
120 partition@a0000 {
121 label = "SSD";
122 reg = <0xa0000 0x10000>;
123 read-only;
124 };
125
126 partition@b0000 {
127 label = "TZ";
128 reg = <0xb0000 0x30000>;
129 read-only;
130 };
131
132 partition@e0000 {
133 label = "RPM";
134 reg = <0xe0000 0x20000>;
135 read-only;
136 };
137
138 partition@100000 {
139 label = "fs-uboot";
140 reg = <0x100000 0x70000>;
141 read-only;
142 };
143
144 partition@170000 {
145 label = "uboot-env";
146 reg = <0x170000 0x40000>;
147 read-only;
148 };
149
150 partition@1b0000 {
151 label = "radio";
152 reg = <0x1b0000 0x40000>;
153 read-only;
154 };
155
156 partition@1f0000 {
157 label = "os-image";
158 reg = <0x1f0000 0x400000>;
159 };
160
161 partition@5f0000 {
162 label = "rootfs";
163 reg = <0x5f0000 0x1900000>;
164 };
165
166 defaultmac: partition@1ef0000 {
167 label = "default-mac";
168 reg = <0x1ef0000 0x00200>;
169 read-only;
170 };
171
172 partition@1ef0200 {
173 label = "pin";
174 reg = <0x1ef0200 0x00200>;
175 read-only;
176 };
177
178 partition@1ef0400 {
179 label = "product-info";
180 reg = <0x1ef0400 0x0fc00>;
181 read-only;
182 };
183
184 partition@1f00000 {
185 label = "partition-table";
186 reg = <0x1f00000 0x10000>;
187 read-only;
188 };
189
190 partition@1f10000 {
191 label = "soft-version";
192 reg = <0x1f10000 0x10000>;
193 read-only;
194 };
195
196 partition@1f20000 {
197 label = "support-list";
198 reg = <0x1f20000 0x10000>;
199 read-only;
200 };
201
202 partition@1f30000 {
203 label = "profile";
204 reg = <0x1f30000 0x10000>;
205 read-only;
206 };
207
208 partition@1f40000 {
209 label = "default-config";
210 reg = <0x1f40000 0x10000>;
211 read-only;
212 };
213
214 partition@1f50000 {
215 label = "user-config";
216 reg = <0x1f50000 0x40000>;
217 read-only;
218 };
219
220 partition@1f90000 {
221 label = "qos-db";
222 reg = <0x1f90000 0x40000>;
223 read-only;
224 };
225
226 partition@1fd0000 {
227 label = "usb-config";
228 reg = <0x1fd0000 0x10000>;
229 read-only;
230 };
231
232 partition@1fe0000 {
233 label = "log";
234 reg = <0x1fe0000 0x20000>;
235 read-only;
236 };
237 };
238 };
239 };
240 };
241
242 &usb3_0 {
243 status = "okay";
244
245 pinctrl-0 = <&usb0_pwr_en_pin>;
246 pinctrl-names = "default";
247 };
248
249 &usb3_1 {
250 status = "okay";
251
252 pinctrl-0 = <&usb1_pwr_en_pin>;
253 pinctrl-names = "default";
254 };
255
256 &pcie0 {
257 status = "okay";
258 };
259
260 &pcie1 {
261 status = "okay";
262 max-link-speed = <1>;
263 };
264
265 &mdio0 {
266 status = "okay";
267
268 pinctrl-0 = <&mdio0_pins>;
269 pinctrl-names = "default";
270
271 phy0: ethernet-phy@0 {
272 reg = <0>;
273 qca,ar8327-initvals = <
274 0x00004 0x7600000 /* PAD0_MODE */
275 0x00008 0x1000000 /* PAD5_MODE */
276 0x0000c 0x80 /* PAD6_MODE */
277 0x000e4 0x6a545 /* MAC_POWER_SEL */
278 0x000e0 0xc74164de /* SGMII_CTRL */
279 0x0007c 0x4e /* PORT0_STATUS */
280 0x00094 0x4e /* PORT6_STATUS */
281 >;
282 };
283
284 phy4: ethernet-phy@4 {
285 reg = <4>;
286 };
287 };
288
289 &gmac1 {
290 status = "okay";
291 phy-mode = "rgmii";
292 qcom,id = <1>;
293
294 pinctrl-0 = <&rgmii2_pins>;
295 pinctrl-names = "default";
296
297 nvmem-cells = <&macaddr_defaultmac_8>;
298 nvmem-cell-names = "mac-address";
299 mac-address-increment = <1>;
300
301 fixed-link {
302 speed = <1000>;
303 full-duplex;
304 };
305 };
306
307 &gmac2 {
308 status = "okay";
309 phy-mode = "sgmii";
310 qcom,id = <2>;
311
312 nvmem-cells = <&macaddr_defaultmac_8>;
313 nvmem-cell-names = "mac-address";
314
315 fixed-link {
316 speed = <1000>;
317 full-duplex;
318 };
319 };
320
321 &adm_dma {
322 status = "okay";
323 };
324
325 &defaultmac {
326 compatible = "nvmem-cells";
327 #address-cells = <1>;
328 #size-cells = <1>;
329
330 macaddr_defaultmac_8: macaddr@8 {
331 reg = <0x8 0x6>;
332 };
333 };