af0efb256564a361d5835697c839581c0096ca07
[openwrt/staging/jow.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 partition@0 {
86 label = "SBL1";
87 reg = <0x0 0x20000>;
88 read-only;
89 };
90
91 partition@20000 {
92 label = "MIBIB";
93 reg = <0x20000 0x20000>;
94 read-only;
95 };
96
97 partition@40000 {
98 label = "SBL2";
99 reg = <0x40000 0x20000>;
100 read-only;
101 };
102
103 partition@60000 {
104 label = "SBL3";
105 reg = <0x60000 0x30000>;
106 read-only;
107 };
108
109 partition@90000 {
110 label = "DDRCONFIG";
111 reg = <0x90000 0x10000>;
112 read-only;
113 };
114
115 partition@a0000 {
116 label = "SSD";
117 reg = <0xa0000 0x10000>;
118 read-only;
119 };
120
121 partition@b0000 {
122 label = "TZ";
123 reg = <0xb0000 0x30000>;
124 read-only;
125 };
126
127 partition@e0000 {
128 label = "RPM";
129 reg = <0xe0000 0x20000>;
130 read-only;
131 };
132
133 partition@100000 {
134 label = "fs-uboot";
135 reg = <0x100000 0x70000>;
136 read-only;
137 };
138
139 partition@170000 {
140 label = "uboot-env";
141 reg = <0x170000 0x40000>;
142 read-only;
143 };
144
145 partition@1b0000 {
146 label = "radio";
147 reg = <0x1b0000 0x40000>;
148 read-only;
149 };
150
151 partition@1f0000 {
152 label = "os-image";
153 reg = <0x1f0000 0x400000>;
154 };
155
156 partition@5f0000 {
157 label = "rootfs";
158 reg = <0x5f0000 0x1900000>;
159 };
160
161 defaultmac: partition@1ef0000 {
162 label = "default-mac";
163 reg = <0x1ef0000 0x00200>;
164 read-only;
165 };
166
167 partition@1ef0200 {
168 label = "pin";
169 reg = <0x1ef0200 0x00200>;
170 read-only;
171 };
172
173 partition@1ef0400 {
174 label = "product-info";
175 reg = <0x1ef0400 0x0fc00>;
176 read-only;
177 };
178
179 partition@1f00000 {
180 label = "partition-table";
181 reg = <0x1f00000 0x10000>;
182 read-only;
183 };
184
185 partition@1f10000 {
186 label = "soft-version";
187 reg = <0x1f10000 0x10000>;
188 read-only;
189 };
190
191 partition@1f20000 {
192 label = "support-list";
193 reg = <0x1f20000 0x10000>;
194 read-only;
195 };
196
197 partition@1f30000 {
198 label = "profile";
199 reg = <0x1f30000 0x10000>;
200 read-only;
201 };
202
203 partition@1f40000 {
204 label = "default-config";
205 reg = <0x1f40000 0x10000>;
206 read-only;
207 };
208
209 partition@1f50000 {
210 label = "user-config";
211 reg = <0x1f50000 0x40000>;
212 read-only;
213 };
214
215 partition@1f90000 {
216 label = "qos-db";
217 reg = <0x1f90000 0x40000>;
218 read-only;
219 };
220
221 partition@1fd0000 {
222 label = "usb-config";
223 reg = <0x1fd0000 0x10000>;
224 read-only;
225 };
226
227 partition@1fe0000 {
228 label = "log";
229 reg = <0x1fe0000 0x20000>;
230 read-only;
231 };
232 };
233 };
234 };
235
236 &usb3_0 {
237 status = "okay";
238
239 pinctrl-0 = <&usb0_pwr_en_pin>;
240 pinctrl-names = "default";
241 };
242
243 &usb3_1 {
244 status = "okay";
245
246 pinctrl-0 = <&usb1_pwr_en_pin>;
247 pinctrl-names = "default";
248 };
249
250 &pcie0 {
251 status = "okay";
252 };
253
254 &pcie1 {
255 status = "okay";
256 max-link-speed = <1>;
257 };
258
259 &mdio0 {
260 status = "okay";
261
262 pinctrl-0 = <&mdio0_pins>;
263 pinctrl-names = "default";
264
265 phy0: ethernet-phy@0 {
266 reg = <0>;
267 qca,ar8327-initvals = <
268 0x00004 0x7600000 /* PAD0_MODE */
269 0x00008 0x1000000 /* PAD5_MODE */
270 0x0000c 0x80 /* PAD6_MODE */
271 0x000e4 0x6a545 /* MAC_POWER_SEL */
272 0x000e0 0xc74164de /* SGMII_CTRL */
273 0x0007c 0x4e /* PORT0_STATUS */
274 0x00094 0x4e /* PORT6_STATUS */
275 >;
276 };
277
278 phy4: ethernet-phy@4 {
279 reg = <4>;
280 };
281 };
282
283 &gmac1 {
284 status = "okay";
285 phy-mode = "rgmii";
286 qcom,id = <1>;
287
288 pinctrl-0 = <&rgmii2_pins>;
289 pinctrl-names = "default";
290
291 mtd-mac-address = <&defaultmac 0x8>;
292 mtd-mac-address-increment = <1>;
293
294 fixed-link {
295 speed = <1000>;
296 full-duplex;
297 };
298 };
299
300 &gmac2 {
301 status = "okay";
302 phy-mode = "sgmii";
303 qcom,id = <2>;
304
305 mtd-mac-address = <&defaultmac 0x8>;
306
307 fixed-link {
308 speed = <1000>;
309 full-duplex;
310 };
311 };
312
313 &adm_dma {
314 status = "okay";
315 };