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