1f457d99449ac205525d36e13d20ed720219fe14
[openwrt/staging/zorun.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 #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 mdio-gpio0 = &mdio0;
27
28 led-boot = &power_white;
29 led-failsafe = &power_amber;
30 led-running = &power_white;
31 led-upgrade = &power_amber;
32 };
33
34 chosen {
35 bootargs = "rootfstype=squashfs noinitrd";
36 };
37
38 keys {
39 compatible = "gpio-keys";
40 pinctrl-0 = <&button_pins>;
41 pinctrl-names = "default";
42
43 wifi {
44 label = "wifi";
45 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RFKILL>;
47 };
48
49 reset {
50 label = "reset";
51 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54
55 wps {
56 label = "wps";
57 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
59 };
60 };
61
62 leds {
63 compatible = "gpio-leds";
64 pinctrl-0 = <&led_pins>;
65 pinctrl-names = "default";
66
67 usb1 {
68 label = "white:usb1";
69 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
70 };
71
72 usb2 {
73 label = "white:usb2";
74 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
75 };
76
77 power_amber: power_amber {
78 label = "amber:power";
79 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
80 };
81
82 wan_white {
83 label = "white:wan";
84 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
85 };
86
87 wan_amber {
88 label = "amber:wan";
89 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
90 };
91
92 wps {
93 label = "white:wps";
94 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
95 };
96
97 esata {
98 label = "white:esata";
99 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
100 };
101
102 power_white: power_white {
103 label = "white:power";
104 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
105 default-state = "keep";
106 };
107
108 wifi {
109 label = "white:wifi";
110 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
111 };
112 };
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
136 &gsbi5 {
137 status = "disabled";
138
139 spi@1a280000 {
140 status = "disabled";
141 };
142 };
143
144 &usb3_0 {
145 clocks = <&gcc USB30_1_MASTER_CLK>;
146 status = "okay";
147 };
148
149 &usb3_1 {
150 clocks = <&gcc USB30_0_MASTER_CLK>;
151 status = "okay";
152 };
153
154 &pcie0 {
155 status = "okay";
156 };
157
158 &pcie1 {
159 status = "okay";
160 max-link-speed = <1>;
161 };
162
163 &nand_controller {
164 status = "okay";
165
166 pinctrl-0 = <&nand_pins>;
167 pinctrl-names = "default";
168
169 nand@0 {
170 reg = <0>;
171 compatible = "qcom,nandcs";
172
173 nand-ecc-strength = <4>;
174 nand-bus-width = <8>;
175 nand-ecc-step-size = <512>;
176
177 nand-is-boot-medium;
178 qcom,boot_pages_size = <0x1180000>;
179
180 partitions {
181 compatible = "fixed-partitions";
182 #address-cells = <1>;
183 #size-cells = <1>;
184
185 qcadata@0 {
186 label = "qcadata";
187 reg = <0x0000000 0x0c80000>;
188 read-only;
189 };
190
191 APPSBL@c80000 {
192 label = "APPSBL";
193 reg = <0x0c80000 0x0500000>;
194 read-only;
195 };
196
197 APPSBLENV@1180000 {
198 label = "APPSBLENV";
199 reg = <0x1180000 0x0080000>;
200 read-only;
201 };
202
203 art: art@1200000 {
204 label = "art";
205 reg = <0x1200000 0x0140000>;
206 read-only;
207 };
208
209 kernel@1340000 {
210 label = "kernel";
211 reg = <0x1340000 0x0400000>;
212 };
213
214 ubi@1740000 {
215 label = "ubi";
216 reg = <0x1740000 0x1600000>;
217 };
218
219 netgear@2d40000 {
220 label = "netgear";
221 reg = <0x2d40000 0x0c00000>;
222 read-only;
223 };
224
225 reserve@3940000 {
226 label = "reserve";
227 reg = <0x3940000 0x46c0000>;
228 read-only;
229 };
230 };
231 };
232 };
233
234 &mdio0 {
235 status = "okay";
236
237 pinctrl-0 = <&mdio0_pins>;
238 pinctrl-names = "default";
239
240 phy0: ethernet-phy@0 {
241 reg = <0>;
242 qca,ar8327-initvals = <
243 0x00004 0x7600000 /* PAD0_MODE */
244 0x00008 0x1000000 /* PAD5_MODE */
245 0x0000c 0x80 /* PAD6_MODE */
246 0x000e4 0x6a545 /* MAC_POWER_SEL */
247 0x000e0 0xc74164de /* SGMII_CTRL */
248 0x0007c 0x4e /* PORT0_STATUS */
249 0x00094 0x4e /* PORT6_STATUS */
250 >;
251 };
252
253 phy4: ethernet-phy@4 {
254 reg = <4>;
255 };
256 };
257
258 &gmac1 {
259 status = "okay";
260 phy-mode = "rgmii";
261 qcom,id = <1>;
262
263 pinctrl-0 = <&rgmii2_pins>;
264 pinctrl-names = "default";
265
266 mtd-mac-address = <&art 6>;
267
268 fixed-link {
269 speed = <1000>;
270 full-duplex;
271 };
272 };
273
274 &gmac2 {
275 status = "okay";
276 phy-mode = "sgmii";
277 qcom,id = <2>;
278
279 mtd-mac-address = <&art 0>;
280
281 fixed-link {
282 speed = <1000>;
283 full-duplex;
284 };
285 };
286
287 &tcsr {
288 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
289 compatible = "qcom,tcsr";
290 };
291
292 &adm_dma {
293 status = "okay";
294 };