ed8ab3dbfadd436f50f232ce3adbe40e0a58ff38
[openwrt/openwrt.git] / target / linux / ipq806x / files-5.4 / 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 partitions {
178 compatible = "fixed-partitions";
179 #address-cells = <1>;
180 #size-cells = <1>;
181
182 qcadata@0 {
183 label = "qcadata";
184 reg = <0x0000000 0x0c80000>;
185 read-only;
186 };
187
188 APPSBL@c80000 {
189 label = "APPSBL";
190 reg = <0x0c80000 0x0500000>;
191 read-only;
192 };
193
194 APPSBLENV@1180000 {
195 label = "APPSBLENV";
196 reg = <0x1180000 0x0080000>;
197 read-only;
198 };
199
200 art: art@1200000 {
201 label = "art";
202 reg = <0x1200000 0x0140000>;
203 read-only;
204 };
205
206 kernel@1340000 {
207 label = "kernel";
208 reg = <0x1340000 0x0400000>;
209 };
210
211 ubi@1740000 {
212 label = "ubi";
213 reg = <0x1740000 0x1600000>;
214 };
215
216 netgear@2d40000 {
217 label = "netgear";
218 reg = <0x2d40000 0x0c00000>;
219 read-only;
220 };
221
222 reserve@3940000 {
223 label = "reserve";
224 reg = <0x3940000 0x46c0000>;
225 read-only;
226 };
227 };
228 };
229 };
230
231 &mdio0 {
232 status = "okay";
233
234 pinctrl-0 = <&mdio0_pins>;
235 pinctrl-names = "default";
236
237 phy0: ethernet-phy@0 {
238 reg = <0>;
239 qca,ar8327-initvals = <
240 0x00004 0x7600000 /* PAD0_MODE */
241 0x00008 0x1000000 /* PAD5_MODE */
242 0x0000c 0x80 /* PAD6_MODE */
243 0x000e4 0x6a545 /* MAC_POWER_SEL */
244 0x000e0 0xc74164de /* SGMII_CTRL */
245 0x0007c 0x4e /* PORT0_STATUS */
246 0x00094 0x4e /* PORT6_STATUS */
247 >;
248 };
249
250 phy4: ethernet-phy@4 {
251 reg = <4>;
252 };
253 };
254
255 &gmac1 {
256 status = "okay";
257 phy-mode = "rgmii";
258 qcom,id = <1>;
259
260 pinctrl-0 = <&rgmii2_pins>;
261 pinctrl-names = "default";
262
263 mtd-mac-address = <&art 6>;
264
265 fixed-link {
266 speed = <1000>;
267 full-duplex;
268 };
269 };
270
271 &gmac2 {
272 status = "okay";
273 phy-mode = "sgmii";
274 qcom,id = <2>;
275
276 mtd-mac-address = <&art 0>;
277
278 fixed-link {
279 speed = <1000>;
280 full-duplex;
281 };
282 };
283
284 &tcsr {
285 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
286 compatible = "qcom,tcsr";
287 };
288
289 &adm_dma {
290 status = "okay";
291 };