ipq8065: update dtsi with new opp table
[oweals/openwrt.git] / target / linux / ipq806x / files-4.19 / arch / arm / boot / dts / qcom-ipq8064-ea8500.dts
1 #include "qcom-ipq8064-v2.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6         model = "Linksys EA8500 WiFi Router";
7         compatible = "linksys,ea8500", "qcom,ipq8064";
8
9         memory@0 {
10                 reg = <0x42000000 0x1e000000>;
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 = &gsbi4_serial;
26                 mdio-gpio0 = &mdio0;
27
28                 led-boot = &power;
29                 led-failsafe = &power;
30                 led-running = &power;
31                 led-upgrade = &power;
32         };
33
34         chosen {
35                 bootargs = "console=ttyMSM0,115200n8";
36                 stdout-path = "serial0:115200n8";
37                 append-rootblock = "ubi.mtd=";  /* append to bootargs adding the root deviceblock nbr from bootloader */
38         };
39
40         soc {
41                 pinmux@800000 {
42                         button_pins: button_pins {
43                                 mux {
44                                         pins = "gpio65", "gpio67", "gpio68";
45                                         function = "gpio";
46                                         drive-strength = <2>;
47                                         bias-pull-up;
48                                 };
49                         };
50
51                         i2c4_pins: i2c4_pinmux {
52                                 mux {
53                                         pins = "gpio12", "gpio13";
54                                         function = "gsbi4";
55                                         drive-strength = <12>;
56                                         bias-disable;
57                                 };
58                         };
59
60                         led_pins: led_pins {
61                                 mux {
62                                         pins = "gpio6", "gpio53", "gpio54";
63                                         function = "gpio";
64                                         drive-strength = <2>;
65                                         bias-pull-up;
66                                 };
67                         };
68
69                         mdio0_pins: mdio0_pins {
70                                 mux {
71                                         pins = "gpio0", "gpio1";
72                                         function = "gpio";
73                                         drive-strength = <8>;
74                                         bias-disable;
75                                 };
76                         };
77
78                         nand_pins: nand_pins {
79                                 mux {
80                                         pins = "gpio34", "gpio35", "gpio36",
81                                                "gpio37", "gpio38", "gpio39",
82                                                "gpio40", "gpio41", "gpio42",
83                                                "gpio43", "gpio44", "gpio45",
84                                                "gpio46", "gpio47";
85                                         function = "nand";
86                                         drive-strength = <10>;
87                                         bias-disable;
88                                 };
89                                 pullups {
90                                         pins = "gpio39";
91                                         bias-pull-up;
92                                 };
93                                 hold {
94                                         pins = "gpio40", "gpio41", "gpio42",
95                                                "gpio43", "gpio44", "gpio45",
96                                                "gpio46", "gpio47";
97                                         bias-bus-hold;
98                                 };
99                         };
100
101                         rgmii2_pins: rgmii2_pins {
102                                 mux {
103                                         pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
104                                                "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
105                                         function = "rgmii2";
106                                         drive-strength = <8>;
107                                         bias-disable;
108                                 };
109                         };
110                 };
111
112                 gsbi@16300000 {
113                         qcom,mode = <GSBI_PROT_I2C_UART>;
114                         status = "okay";
115                         serial@16340000 {
116                                 status = "okay";
117                         };
118                         /*
119                          * The i2c device on gsbi4 should not be enabled.
120                          * On ipq806x designs gsbi4 i2c is meant for exclusive
121                          * RPM usage. Turning this on in kernel manifests as
122                          * i2c failure for the RPM.
123                          */
124                 };
125
126                 sata-phy@1b400000 {
127                         status = "okay";
128                 };
129
130                 sata@29000000 {
131                         status = "okay";
132                 };
133
134                 usb3_0: usb3@110f8800 {
135                         status = "okay";
136                 };
137
138                 usb3_1: usb3@100f8800 {
139                         status = "okay";
140                 };
141
142                 pcie0: pci@1b500000 {
143                         status = "okay";
144                         force_gen1 = <1>;
145                 };
146
147                 pcie1: pci@1b700000 {
148                         status = "okay";
149                 };
150
151                 pcie2: pci@1b900000 {
152                         status = "okay";
153                 };
154
155                 nand@1ac00000 {
156                         status = "okay";
157
158                         pinctrl-0 = <&nand_pins>;
159                         pinctrl-names = "default";
160
161                         cs0 {
162                                 reg = <0>;
163                                 compatible = "qcom,nandcs";
164
165                                 nand-ecc-strength = <4>;
166                                 nand-bus-width = <8>;
167                                 nand-ecc-step-size = <512>;
168
169                                 partitions {
170                                         compatible = "fixed-partitions";
171                                         #address-cells = <1>;
172                                         #size-cells = <1>;
173
174                                         SBL1@0 {
175                                                 label = "SBL1";
176                                                 reg = <0x0000000 0x0040000>;
177                                                 read-only;
178                                         };
179
180                                         MIBIB@40000 {
181                                                 label = "MIBIB";
182                                                 reg = <0x0040000 0x0140000>;
183                                                 read-only;
184                                         };
185
186                                         SBL2@180000 {
187                                                 label = "SBL2";
188                                                 reg = <0x0180000 0x0140000>;
189                                                 read-only;
190                                         };
191
192                                         SBL3@2c0000 {
193                                                 label = "SBL3";
194                                                 reg = <0x02c0000 0x0280000>;
195                                                 read-only;
196                                         };
197
198                                         DDRCONFIG@540000 {
199                                                 label = "DDRCONFIG";
200                                                 reg = <0x0540000 0x0120000>;
201                                                 read-only;
202                                         };
203
204                                         SSD@660000 {
205                                                 label = "SSD";
206                                                 reg = <0x0660000 0x0120000>;
207                                                 read-only;
208                                         };
209
210                                         TZ@780000 {
211                                                 label = "TZ";
212                                                 reg = <0x0780000 0x0280000>;
213                                                 read-only;
214                                         };
215
216                                         RPM@a00000 {
217                                                 label = "RPM";
218                                                 reg = <0x0a00000 0x0280000>;
219                                                 read-only;
220                                         };
221
222                                         art: art@c80000 {
223                                                 label = "art";
224                                                 reg = <0x0c80000 0x0140000>;
225                                                 read-only;
226                                         };
227
228                                         APPSBL@dc0000 {
229                                                 label = "APPSBL";
230                                                 reg = <0x0dc0000 0x0100000>;
231                                                 read-only;
232                                         };
233
234                                         u_env@ec0000 {
235                                                 label = "u_env";
236                                                 reg = <0x0ec0000 0x0040000>;
237                                         };
238
239                                         s_env@f00000 {
240                                                 label = "s_env";
241                                                 reg = <0x0f00000 0x0040000>;
242                                         };
243
244                                         devinfo@f40000 {
245                                                 label = "devinfo";
246                                                 reg = <0x0f40000 0x0040000>;
247                                         };
248
249                                         linux@f80000 {
250                                                 label = "kernel1";
251                                                 reg = <0x0f80000 0x2800000>;  /* 3 MB spill to rootfs*/
252                                         };
253
254                                         rootfs@1280000 {
255                                                 label = "rootfs1";
256                                                 reg = <0x1280000 0x2500000>;
257                                         };
258
259                                         linux2@3780000 {
260                                                 label = "kernel2";
261                                                 reg = <0x3780000 0x2800000>;
262                                         };
263
264                                         rootfs2@3a80000 {
265                                                 label = "rootfs2";
266                                                 reg = <0x3a80000 0x2500000>;
267                                         };
268
269                                         syscfg@5f80000 {
270                                                 label = "syscfg";
271                                                 reg = <0x5f80000 0x2080000>;
272                                         };
273                                 };
274                         };
275                 };
276
277                 mdio0: mdio {
278                         compatible = "virtual,mdio-gpio";
279                         #address-cells = <1>;
280                         #size-cells = <0>;
281                         gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
282                                 <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
283                         pinctrl-0 = <&mdio0_pins>;
284                         pinctrl-names = "default";
285
286                         phy0: ethernet-phy@0 {
287                                 reg = <0>;
288                                 qca,ar8327-initvals = <
289                                         0x00004 0x7600000   /* PAD0_MODE */
290                                         0x00008 0x1000000   /* PAD5_MODE */
291                                         0x0000c 0x80        /* PAD6_MODE */
292                                         0x000e4 0x6a545     /* MAC_POWER_SEL */
293                                         0x000e0 0xc74164de  /* SGMII_CTRL */
294                                         0x0007c 0x4e        /* PORT0_STATUS */
295                                         0x00094 0x4e        /* PORT6_STATUS */
296                                         >;
297                         };
298
299                         phy4: ethernet-phy@4 {
300                                 reg = <4>;
301                         };
302                 };
303
304                 gmac1: ethernet@37200000 {
305                         status = "okay";
306                         phy-mode = "rgmii";
307                         qcom,id = <1>;
308                         qcom,phy_mdio_addr = <4>;
309                         qcom,poll_required = <1>;
310                         qcom,rgmii_delay = <0>;
311                         qcom,emulation = <0>;
312                         pinctrl-0 = <&rgmii2_pins>;
313                         pinctrl-names = "default";
314                         fixed-link {
315                                 speed = <1000>;
316                                 full-duplex;
317                         };
318                 };
319                 //lan
320                 gmac2: ethernet@37400000 {
321                         status = "okay";
322                         phy-mode = "sgmii";
323                         qcom,id = <2>;
324                         qcom,phy_mdio_addr = <0>;       /* none */
325                         qcom,poll_required = <0>;       /* no polling */
326                         qcom,rgmii_delay = <0>;
327                         qcom,emulation = <0>;
328                         fixed-link {
329                                 speed = <1000>;
330                                 full-duplex;
331                         };
332                 };
333
334                 adm_dma: dma@18300000 {
335                         status = "okay";
336                 };
337         };
338
339         keys {
340                 compatible = "gpio-keys";
341                 pinctrl-0 = <&button_pins>;
342                 pinctrl-names = "default";
343
344                 wifi {
345                         label = "wifi";
346                         gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
347                         linux,code = <KEY_RFKILL>;
348                 };
349
350                 reset {
351                         label = "reset";
352                         gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
353                         linux,code = <KEY_RESTART >;
354                 };
355
356                 wps {
357                         label = "wps";
358                         gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
359                         linux,code = <KEY_WPS_BUTTON>;
360                 };
361         };
362
363         leds {
364                 compatible = "gpio-leds";
365                 pinctrl-0 = <&led_pins>;
366                 pinctrl-names = "default";
367
368                 wps {
369                         label = "ea8500:green:wps";
370                         gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
371                 };
372
373                 power: power {
374                         label = "ea8500:white:power";
375                         gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
376                         default-state = "keep";
377                 };
378
379                 wifi {
380                         label = "ea8500:green:wifi";
381                         gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;
382                 };
383         };
384 };
385