ipq806x: ipq4019: dts: remove counter entry from ap-dk01 boards
[openwrt/staging/lynxis.git] / target / linux / ipq806x / files-4.9 / arch / arm / boot / dts / qcom-ipq4019-rt-ac58u.dts
1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 *
3 * Permission to use, copy, modify, and/or distribute this software for any
4 * purpose with or without fee is hereby granted, provided that the above
5 * copyright notice and this permission notice appear in all copies.
6 *
7 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 *
15 */
16
17 #include "qcom-ipq4019-ap.dk01.1.dtsi"
18 #include "qcom-ipq4019-bus.dtsi"
19 #include <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/input/input.h>
21
22 / {
23 model = "ASUS RT-AC58U";
24 compatible = "asus,rt-ac58u", "qcom,ipq4019";
25
26 memory {
27 device_type = "memory";
28 reg = <0x80000000 0x8000000>;
29 };
30
31 aliases {
32 led-boot = &power;
33 led-failsafe = &power;
34 led-running = &power;
35 led-upgrade = &power;
36 };
37
38 reserved-memory {
39 #address-cells = <0x1>;
40 #size-cells = <0x1>;
41 ranges;
42
43 rsvd1@87E00000 {
44 reg = <0x87e00000 0x200000>;
45 no-map;
46 };
47 };
48
49 soc {
50 mdio@90000 {
51 status = "okay";
52 };
53
54 ess-switch@c000000 {
55 status = "okay";
56 };
57
58 ess-psgmii@98000 {
59 status = "okay";
60 };
61
62 edma@c080000 {
63 status = "okay";
64 };
65
66 wifi@a000000 {
67 status = "okay";
68 };
69
70 wifi@a800000 {
71 status = "okay";
72 };
73 };
74
75 gpio-keys {
76 compatible = "gpio-keys";
77
78 reset {
79 label = "reset";
80 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_RESTART>;
82 };
83
84 wps {
85 label = "wps";
86 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_WPS_BUTTON>;
88 };
89 };
90
91 gpio-leds {
92 compatible = "gpio-leds";
93
94 power: status {
95 label = "rt-ac58u:blue:status";
96 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
97 };
98
99 wan {
100 label = "rt-ac58u:blue:wan";
101 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
102 };
103
104 wlan2G {
105 label = "rt-ac58u:blue:wlan2G";
106 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
107 };
108
109 wan5G {
110 label = "rt-ac58u:blue:wlan5G";
111 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
112 };
113
114 usb {
115 label = "rt-ac58u:blue:usb";
116 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
117 };
118
119 lan {
120 label = "rt-ac58u:blue:lan";
121 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
122 };
123 };
124 };
125
126 &spi_0_pins {
127 pinmux_cs {
128 function = "gpio";
129 pins = "gpio54", "gpio59";
130 };
131 pinconf_cs {
132 pins = "gpio54", "gpio59";
133 drive-strength = <2>;
134 bias-disable;
135 output-high;
136 };
137 };
138
139
140 &spi_0 { /* BLSP1 QUP1 */
141 status = "ok";
142 cs-gpios = <&tlmm 54 0>,
143 <&tlmm 59 0>;
144
145 mx25l25635e@0 {
146 status = "disabled";
147 };
148
149 m25p80@0 {
150 #address-cells = <1>;
151 #size-cells = <0>;
152 /*
153 * U-boot looks for "n25q128a11" node,
154 * if we don't have it, it will spit out the following warning:
155 * "ipq: fdt fixup unable to find compatible node".
156 */
157 compatible = "mx25l1606e", "n25q128a11";
158 reg = <0>;
159 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
160 spi-max-frequency = <24000000>;
161
162 partitions {
163 compatible = "fixed-partitions";
164 #address-cells = <1>;
165 #size-cells = <1>;
166
167 partition0@0 {
168 label = "SBL1";
169 reg = <0x00000000 0x00040000>;
170 read-only;
171 };
172 partition1@40000 {
173 label = "MIBIB";
174 reg = <0x00040000 0x00020000>;
175 read-only;
176 };
177 partition2@60000 {
178 label = "QSEE";
179 reg = <0x00060000 0x00060000>;
180 read-only;
181 };
182 partition3@c0000 {
183 label = "CDT";
184 reg = <0x000c0000 0x00010000>;
185 read-only;
186 };
187 partition4@d0000 {
188 label = "DDRPARAMS";
189 reg = <0x000d0000 0x00010000>;
190 read-only;
191 };
192 partition5@e0000 {
193 label = "APPSBLENV"; /* uboot env*/
194 reg = <0x000e0000 0x00010000>;
195 read-only;
196 };
197 partition5@f0000 {
198 label = "APPSBL"; /* uboot */
199 reg = <0x000f0000 0x00080000>;
200 read-only;
201 };
202 partition5@170000 {
203 label = "ART";
204 reg = <0x00170000 0x00010000>;
205 read-only;
206 };
207 /* 0x00180000 - 0x00200000 unused */
208 };
209 };
210
211 mt29f@1 {
212 #address-cells = <1>;
213 #size-cells = <0>;
214 compatible = "spinand,mt29f", "w25n01gv";
215 reg = <1>;
216 spi-max-frequency = <24000000>;
217
218 partitions {
219 compatible = "fixed-partitions";
220 #address-cells = <1>;
221 #size-cells = <1>;
222
223 partition0@0 {
224 label = "ubi";
225 reg = <0x00000000 0x08000000>;
226 };
227 };
228 };
229 };