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