3381bc9477fef7e0f04270a128c1073192a61d46
[openwrt/staging/stintel.git] / target / linux / ipq806x / files-5.4 / arch / arm / boot / dts / qcom-ipq8064-r7500v2.dts
1 #include "qcom-ipq8064-v2.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "Netgear Nighthawk X4 R7500v2";
7 compatible = "netgear,r7500v2", "qcom,ipq8064";
8
9 memory@0 {
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
12 };
13
14 reserved-memory {
15 #address-cells = <1>;
16 #size-cells = <1>;
17 ranges;
18 rsvd@41200000 {
19 reg = <0x41200000 0x300000>;
20 no-map;
21 };
22
23 rsvd@5fe00000 {
24 reg = <0x5fe00000 0x200000>;
25 reusable;
26 };
27 };
28
29 aliases {
30 serial0 = &gsbi4_serial;
31 mdio-gpio0 = &mdio0;
32
33 led-boot = &power;
34 led-failsafe = &power;
35 led-running = &power;
36 led-upgrade = &power;
37 };
38
39 chosen {
40 bootargs = "rootfstype=squashfs noinitrd";
41 };
42
43 keys {
44 compatible = "gpio-keys";
45 pinctrl-0 = <&button_pins>;
46 pinctrl-names = "default";
47
48 wifi {
49 label = "wifi";
50 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RFKILL>;
52 };
53
54 reset {
55 label = "reset";
56 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
58 };
59
60 wps {
61 label = "wps";
62 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_WPS_BUTTON>;
64 };
65 };
66
67 leds {
68 compatible = "gpio-leds";
69 pinctrl-0 = <&led_pins>;
70 pinctrl-names = "default";
71
72 usb1 {
73 label = "r7500v2:amber:usb1";
74 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
75 };
76
77 usb3 {
78 label = "r7500v2:amber:usb3";
79 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
80 };
81
82 status {
83 label = "r7500v2:amber:status";
84 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
85 };
86
87 internet {
88 label = "r7500v2:white:internet";
89 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
90 };
91
92 wan {
93 label = "r7500v2:white:wan";
94 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
95 };
96
97 wps {
98 label = "r7500v2:white:wps";
99 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
100 };
101
102 esata {
103 label = "r7500v2:white:esata";
104 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
105 };
106
107 power: power {
108 label = "r7500v2:white:power";
109 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
110 default-state = "keep";
111 };
112
113 wifi {
114 label = "r7500v2:white:wifi";
115 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
116 };
117 };
118 };
119
120 &adm_dma {
121 status = "okay";
122 };
123
124 &qcom_pinmux {
125 button_pins: button_pins {
126 mux {
127 pins = "gpio6", "gpio54", "gpio65";
128 function = "gpio";
129 drive-strength = <2>;
130 bias-pull-up;
131 };
132 };
133
134 led_pins: led_pins {
135 mux {
136 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
137 "gpio24","gpio26", "gpio53", "gpio64";
138 function = "gpio";
139 drive-strength = <2>;
140 bias-pull-up;
141 };
142 };
143
144 usb0_pwr_en_pins: usb0_pwr_en_pins {
145 mux {
146 pins = "gpio15";
147 function = "gpio";
148 drive-strength = <12>;
149 bias-pull-down;
150 output-high;
151 };
152 };
153
154 usb1_pwr_en_pins: usb1_pwr_en_pins {
155 mux {
156 pins = "gpio16", "gpio68";
157 function = "gpio";
158 drive-strength = <12>;
159 bias-pull-down;
160 output-high;
161 };
162 };
163 };
164
165 &gsbi4 {
166 qcom,mode = <GSBI_PROT_I2C_UART>;
167 status = "okay";
168 serial@16340000 {
169 status = "okay";
170 };
171 /*
172 * The i2c device on gsbi4 should not be enabled.
173 * On ipq806x designs gsbi4 i2c is meant for exclusive
174 * RPM usage. Turning this on in kernel manifests as
175 * i2c failure for the RPM.
176 */
177 };
178
179 &sata_phy {
180 status = "okay";
181 };
182
183 &sata {
184 status = "okay";
185 };
186
187 &usb3_0 {
188 status = "okay";
189
190 pinctrl-0 = <&usb0_pwr_en_pins>;
191 pinctrl-names = "default";
192 };
193
194 &usb3_1 {
195 status = "okay";
196
197 pinctrl-0 = <&usb1_pwr_en_pins>;
198 pinctrl-names = "default";
199 };
200
201 &pcie0 {
202 status = "okay";
203 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
204 pinctrl-0 = <&pcie0_pins>;
205 pinctrl-names = "default";
206 };
207
208 &pcie1 {
209 status = "okay";
210 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
211 pinctrl-0 = <&pcie1_pins>;
212 pinctrl-names = "default";
213 force_gen1 = <1>;
214 };
215
216 &nand_controller {
217 status = "okay";
218
219 pinctrl-0 = <&nand_pins>;
220 pinctrl-names = "default";
221
222 nand@0 {
223 reg = <0>;
224 compatible = "qcom,nandcs";
225
226 nand-ecc-strength = <4>;
227 nand-bus-width = <8>;
228 nand-ecc-step-size = <512>;
229
230 partitions {
231 compatible = "fixed-partitions";
232 #address-cells = <1>;
233 #size-cells = <1>;
234
235 qcadata@0 {
236 label = "qcadata";
237 reg = <0x0000000 0x0c80000>;
238 read-only;
239 };
240
241 APPSBL@c80000 {
242 label = "APPSBL";
243 reg = <0x0c80000 0x0500000>;
244 read-only;
245 };
246
247 APPSBLENV@1180000 {
248 label = "APPSBLENV";
249 reg = <0x1180000 0x0080000>;
250 read-only;
251 };
252
253 art: art@1200000 {
254 label = "art";
255 reg = <0x1200000 0x0140000>;
256 read-only;
257 };
258
259 artbak: art@1340000 {
260 label = "artbak";
261 reg = <0x1340000 0x0140000>;
262 read-only;
263 };
264
265 kernel@1480000 {
266 label = "kernel";
267 reg = <0x1480000 0x0400000>;
268 };
269
270 ubi@1880000 {
271 label = "ubi";
272 reg = <0x1880000 0x6080000>;
273 };
274
275 reserve@7900000 {
276 label = "reserve";
277 reg = <0x7900000 0x0700000>;
278 read-only;
279 };
280 };
281 };
282 };
283
284 &mdio0 {
285 status = "okay";
286
287 pinctrl-0 = <&mdio0_pins>;
288 pinctrl-names = "default";
289
290 phy0: ethernet-phy@0 {
291 reg = <0>;
292 qca,ar8327-initvals = <
293 0x00004 0x7600000 /* PAD0_MODE */
294 0x00008 0x1000000 /* PAD5_MODE */
295 0x0000c 0x80 /* PAD6_MODE */
296 0x000e4 0xaa545 /* MAC_POWER_SEL */
297 0x000e0 0xc74164de /* SGMII_CTRL */
298 0x0007c 0x4e /* PORT0_STATUS */
299 0x00094 0x4e /* PORT6_STATUS */
300 >;
301 };
302
303 phy4: ethernet-phy@4 {
304 reg = <4>;
305 };
306 };
307
308 &gmac1 {
309 status = "okay";
310 phy-mode = "rgmii";
311 qcom,id = <1>;
312
313 pinctrl-0 = <&rgmii2_pins>;
314 pinctrl-names = "default";
315
316 mtd-mac-address = <&art 6>;
317
318 fixed-link {
319 speed = <1000>;
320 full-duplex;
321 };
322 };
323
324 &gmac2 {
325 status = "okay";
326 phy-mode = "sgmii";
327 qcom,id = <2>;
328
329 mtd-mac-address = <&art 0>;
330
331 fixed-link {
332 speed = <1000>;
333 full-duplex;
334 };
335 };