1d6be1288a4e5fcf48206306b3dddab8931eb71c
[openwrt/openwrt.git] / target / linux / ipq806x / files-4.19 / arch / arm / boot / dts / qcom-ipq8064-r7500.dts
1 #include "qcom-ipq8064-v1.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/soc/qcom,tcsr.h>
5
6 / {
7 model = "Netgear Nighthawk X4 R7500";
8 compatible = "netgear,r7500", "qcom,ipq8064";
9
10 memory@0 {
11 reg = <0x42000000 0xe000000>;
12 device_type = "memory";
13 };
14
15 reserved-memory {
16 #address-cells = <1>;
17 #size-cells = <1>;
18 ranges;
19 rsvd@41200000 {
20 reg = <0x41200000 0x300000>;
21 no-map;
22 };
23 };
24
25 aliases {
26 serial0 = &gsbi4_serial;
27 mdio-gpio0 = &mdio0;
28
29 led-boot = &power_white;
30 led-failsafe = &power_amber;
31 led-running = &power_white;
32 led-upgrade = &power_amber;
33 };
34
35 chosen {
36 bootargs = "rootfstype=squashfs noinitrd";
37 stdout-path = "serial0:115200n8";
38 };
39
40 soc {
41 pinmux@800000 {
42 button_pins: button_pins {
43 mux {
44 pins = "gpio6", "gpio54", "gpio65";
45 function = "gpio";
46 drive-strength = <2>;
47 bias-pull-up;
48 };
49 };
50
51 i2c4_pins: i2c4_pinmux {
52 mux {
53 pins = "gpio12", "gpio13";
54 function = "gsbi4";
55 drive-strength = <12>;
56 bias-disable;
57 };
58 };
59
60 led_pins: led_pins {
61 mux {
62 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
63 "gpio24","gpio26", "gpio53", "gpio64";
64 function = "gpio";
65 drive-strength = <2>;
66 bias-pull-up;
67 };
68 };
69
70 mdio0_pins: mdio0_pins {
71 mux {
72 pins = "gpio0", "gpio1";
73 function = "gpio";
74 drive-strength = <8>;
75 bias-disable;
76 };
77 };
78
79 nand_pins: nand_pins {
80 disable {
81 pins = "gpio34", "gpio35", "gpio36",
82 "gpio37", "gpio38";
83 function = "nand";
84 drive-strength = <10>;
85 bias-disable;
86 };
87
88 pullups {
89 pins = "gpio39";
90 function = "nand";
91 drive-strength = <10>;
92 bias-pull-up;
93 };
94
95 hold {
96 pins = "gpio40", "gpio41", "gpio42",
97 "gpio43", "gpio44", "gpio45",
98 "gpio46", "gpio47";
99 function = "nand";
100 drive-strength = <10>;
101 bias-bus-hold;
102 };
103 };
104
105 rgmii2_pins: rgmii2_pins {
106 mux {
107 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
108 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
109 function = "rgmii2";
110 drive-strength = <8>;
111 bias-disable;
112 };
113 };
114 };
115
116 gsbi@16300000 {
117 qcom,mode = <GSBI_PROT_I2C_UART>;
118 status = "okay";
119 serial@16340000 {
120 status = "okay";
121 };
122 /*
123 * The i2c device on gsbi4 should not be enabled.
124 * On ipq806x designs gsbi4 i2c is meant for exclusive
125 * RPM usage. Turning this on in kernel manifests as
126 * i2c failure for the RPM.
127 */
128 };
129
130 sata-phy@1b400000 {
131 status = "okay";
132 };
133
134 sata@29000000 {
135 status = "okay";
136 };
137
138 usb3_0: usb3@110f8800 {
139 clocks = <&gcc USB30_1_MASTER_CLK>;
140 status = "okay";
141 };
142
143 usb3_1: usb3@100f8800 {
144 clocks = <&gcc USB30_0_MASTER_CLK>;
145 status = "okay";
146 };
147
148 pcie0: pci@1b500000 {
149 status = "okay";
150 };
151
152 pcie1: pci@1b700000 {
153 status = "okay";
154 force_gen1 = <1>;
155 };
156
157 nand@1ac00000 {
158 status = "okay";
159
160 pinctrl-0 = <&nand_pins>;
161 pinctrl-names = "default";
162
163 cs0 {
164 reg = <0>;
165 compatible = "qcom,nandcs";
166
167 nand-ecc-strength = <4>;
168 nand-bus-width = <8>;
169 nand-ecc-step-size = <512>;
170
171 partitions {
172 compatible = "fixed-partitions";
173 #address-cells = <1>;
174 #size-cells = <1>;
175
176 qcadata@0 {
177 label = "qcadata";
178 reg = <0x0000000 0x0c80000>;
179 read-only;
180 };
181
182 APPSBL@c80000 {
183 label = "APPSBL";
184 reg = <0x0c80000 0x0500000>;
185 read-only;
186 };
187
188 APPSBLENV@1180000 {
189 label = "APPSBLENV";
190 reg = <0x1180000 0x0080000>;
191 read-only;
192 };
193
194 art: art@1200000 {
195 label = "art";
196 reg = <0x1200000 0x0140000>;
197 read-only;
198 };
199
200 kernel@1340000 {
201 label = "kernel";
202 reg = <0x1340000 0x0400000>;
203 };
204
205 ubi@1740000 {
206 label = "ubi";
207 reg = <0x1740000 0x1600000>;
208 };
209
210 netgear@2d40000 {
211 label = "netgear";
212 reg = <0x2d40000 0x0c00000>;
213 read-only;
214 };
215
216 reserve@3940000 {
217 label = "reserve";
218 reg = <0x3940000 0x46c0000>;
219 read-only;
220 };
221 };
222 };
223 };
224
225 mdio0: mdio {
226 compatible = "virtual,mdio-gpio";
227 #address-cells = <1>;
228 #size-cells = <0>;
229 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
230 <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
231 pinctrl-0 = <&mdio0_pins>;
232 pinctrl-names = "default";
233
234 phy0: ethernet-phy@0 {
235 reg = <0>;
236 qca,ar8327-initvals = <
237 0x00004 0x7600000 /* PAD0_MODE */
238 0x00008 0x1000000 /* PAD5_MODE */
239 0x0000c 0x80 /* PAD6_MODE */
240 0x000e4 0x6a545 /* MAC_POWER_SEL */
241 0x000e0 0xc74164de /* SGMII_CTRL */
242 0x0007c 0x4e /* PORT0_STATUS */
243 0x00094 0x4e /* PORT6_STATUS */
244 >;
245 };
246
247 phy4: ethernet-phy@4 {
248 reg = <4>;
249 };
250 };
251
252 gmac1: ethernet@37200000 {
253 status = "okay";
254 phy-mode = "rgmii";
255 qcom,id = <1>;
256
257 pinctrl-0 = <&rgmii2_pins>;
258 pinctrl-names = "default";
259
260 mtd-mac-address = <&art 6>;
261
262 fixed-link {
263 speed = <1000>;
264 full-duplex;
265 };
266 };
267
268 gmac2: ethernet@37400000 {
269 status = "okay";
270 phy-mode = "sgmii";
271 qcom,id = <2>;
272
273 mtd-mac-address = <&art 0>;
274
275 fixed-link {
276 speed = <1000>;
277 full-duplex;
278 };
279 };
280 };
281
282 keys {
283 compatible = "gpio-keys";
284 pinctrl-0 = <&button_pins>;
285 pinctrl-names = "default";
286
287 wifi {
288 label = "wifi";
289 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
290 linux,code = <KEY_RFKILL>;
291 };
292
293 reset {
294 label = "reset";
295 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
296 linux,code = <KEY_RESTART>;
297 };
298
299 wps {
300 label = "wps";
301 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
302 linux,code = <KEY_WPS_BUTTON>;
303 };
304 };
305
306 leds {
307 compatible = "gpio-leds";
308 pinctrl-0 = <&led_pins>;
309 pinctrl-names = "default";
310
311 usb1 {
312 label = "white:usb1";
313 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
314 };
315
316 usb2 {
317 label = "white:usb2";
318 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
319 };
320
321 power_amber: power_amber {
322 label = "amber:power";
323 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
324 };
325
326 wan_white {
327 label = "white:wan";
328 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
329 };
330
331 wan_amber {
332 label = "amber:wan";
333 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
334 };
335
336 wps {
337 label = "white:wps";
338 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
339 };
340
341 esata {
342 label = "white:esata";
343 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
344 };
345
346 power_white: power_white {
347 label = "white:power";
348 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
349 default-state = "keep";
350 };
351
352 wifi {
353 label = "white:wifi";
354 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
355 };
356 };
357 };
358
359 &tcsr {
360 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
361 compatible = "qcom,tcsr";
362 };
363
364 &adm_dma {
365 status = "okay";
366 };