ipq806x: move further common nodes to the DTSI files
[openwrt/staging/wigyori.git] / target / linux / ipq806x / files-5.4 / arch / arm / boot / dts / qcom-ipq8064-ea7500-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include "qcom-ipq8064-v2.0.dtsi"
3
4 #include <dt-bindings/input/input.h>
5
6 / {
7 model = "Linksys EA7500 V1 WiFi Router";
8 compatible = "linksys,ea7500-v1", "qcom,ipq8064";
9
10 memory@0 {
11 reg = <0x42000000 0xe000000>;
12 device_type = "memory";
13 };
14
15 aliases {
16 led-boot = &led_power;
17 led-failsafe = &led_power;
18 led-running = &led_power;
19 led-upgrade = &led_power;
20 };
21
22 chosen {
23 bootargs = "console=ttyMSM0,115200n8";
24
25 append-rootblock = "ubi.mtd="; /* append to bootargs adding the root deviceblock nbr from bootloader */
26 find-rootblock = "ubi.mtd="; /* look for root deviceblock nbr in this bootarg */
27 };
28
29 keys {
30 compatible = "gpio-keys";
31 pinctrl-0 = <&button_pins>;
32 pinctrl-names = "default";
33
34 reset {
35 label = "reset";
36 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39
40 wps {
41 label = "wps";
42 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
44 };
45 };
46
47 leds {
48 compatible = "gpio-leds";
49 pinctrl-0 = <&led_pins>;
50 pinctrl-names = "default";
51
52 led_power: power {
53 label = "ea7500-v1:white:power";
54 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
55 default-state = "keep";
56 };
57 };
58 };
59
60 &qcom_pinmux {
61 button_pins: button_pins {
62 mux {
63 pins = "gpio65", "gpio68";
64 function = "gpio";
65 drive-strength = <2>;
66 bias-pull-up;
67 };
68 };
69
70 led_pins: led_pins {
71 mux {
72 pins = "gpio6";
73 function = "gpio";
74 drive-strength = <2>;
75 bias-pull-up;
76 };
77 };
78 };
79
80 &usb3_0 {
81 status = "okay";
82 };
83
84 &usb3_1 {
85 status = "okay";
86 };
87
88 &pcie0 {
89 status = "okay";
90 force_gen1 = <1>;
91 };
92
93 &pcie1 {
94 status = "okay";
95 };
96
97 &pcie2 {
98 status = "okay";
99 };
100
101 &nand_controller {
102 status = "okay";
103
104 pinctrl-0 = <&nand_pins>;
105 pinctrl-names = "default";
106
107 nand@0 {
108 reg = <0>;
109 compatible = "qcom,nandcs";
110
111 nand-ecc-strength = <4>;
112 nand-bus-width = <8>;
113 nand-ecc-step-size = <512>;
114
115 partitions {
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 partition@0 {
121 label = "SBL1";
122 reg = <0x0000000 0x0040000>;
123 read-only;
124 };
125
126 partition@40000 {
127 label = "MIBIB";
128 reg = <0x0040000 0x0140000>;
129 read-only;
130 };
131
132 partition@180000 {
133 label = "SBL2";
134 reg = <0x0180000 0x0140000>;
135 read-only;
136 };
137
138 partition@2c0000 {
139 label = "SBL3";
140 reg = <0x02c0000 0x0280000>;
141 read-only;
142 };
143
144 partition@540000 {
145 label = "DDRCONFIG";
146 reg = <0x0540000 0x0120000>;
147 read-only;
148 };
149
150 partition@660000 {
151 label = "SSD";
152 reg = <0x0660000 0x0120000>;
153 read-only;
154 };
155
156 partition@780000 {
157 label = "TZ";
158 reg = <0x0780000 0x0280000>;
159 read-only;
160 };
161
162 partition@a00000 {
163 label = "RPM";
164 reg = <0x0a00000 0x0280000>;
165 read-only;
166 };
167
168 art: partition@c80000 {
169 label = "art";
170 reg = <0x0c80000 0x0140000>;
171 read-only;
172 };
173
174 partition@dc0000 {
175 label = "APPSBL";
176 reg = <0x0dc0000 0x0100000>;
177 read-only;
178 };
179
180 partition@ec0000 {
181 label = "u_env";
182 reg = <0x0ec0000 0x0040000>;
183 };
184
185 partition@f00000 {
186 label = "s_env";
187 reg = <0x0f00000 0x0040000>;
188 };
189
190 partition@f40000 {
191 label = "devinfo";
192 reg = <0x0f40000 0x0040000>;
193 };
194
195 partition@f80000 {
196 label = "kernel1";
197 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
198 };
199
200 partition@1280000 {
201 label = "rootfs1";
202 reg = <0x1280000 0x2500000>;
203 };
204
205 partition@3780000 {
206 label = "kernel2";
207 reg = <0x3780000 0x2800000>;
208 };
209
210 partition@3a80000 {
211 label = "rootfs2";
212 reg = <0x3a80000 0x2500000>;
213 };
214
215 partition@5f80000 {
216 label = "sysdiag";
217 reg = <0x5f80000 0x100000>;
218 };
219
220 partition@6080000 {
221 label = "syscfg";
222 reg = <0x6080000 0x1f80000>;
223 };
224 };
225 };
226 };
227
228 &mdio0 {
229 status = "okay";
230
231 pinctrl-0 = <&mdio0_pins>;
232 pinctrl-names = "default";
233
234 phy0: ethernet-phy@0 {
235 reg = <0>;
236 qca,ar8327-initvals = <
237 0x00004 0x7600000 /* PAD0_MODE */
238 0x00008 0x1000000 /* PAD5_MODE */
239 0x0000c 0x80 /* PAD6_MODE */
240 0x00010 0x2613a0 /* PWS_REG */
241 0x000e4 0x6a545 /* MAC_POWER_SEL */
242 0x000e0 0xc74164de /* SGMII_CTRL */
243 0x0007c 0x4e /* PORT0_STATUS */
244 0x00094 0x4e /* PORT6_STATUS */
245 >;
246 };
247 };
248
249 &gmac1 {
250 status = "okay";
251 phy-mode = "rgmii";
252 qcom,id = <1>;
253
254 pinctrl-0 = <&rgmii2_pins>;
255 pinctrl-names = "default";
256
257 fixed-link {
258 speed = <1000>;
259 full-duplex;
260 };
261 };
262
263 &gmac2 {
264 status = "okay";
265 phy-mode = "sgmii";
266 qcom,id = <2>;
267
268 fixed-link {
269 speed = <1000>;
270 full-duplex;
271 };
272 };
273
274 &adm_dma {
275 status = "okay";
276 };