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-fritz4040.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 = "AVM FRITZ!Box 4040";
24 compatible = "avm,fritzbox-4040", "qcom,ipq4019";
25
26 reserved-memory {
27 #address-cells = <0x1>;
28 #size-cells = <0x1>;
29 ranges;
30
31 rsvd1@87000000 {
32 reg = <0x87000000 0x500000>;
33 no-map;
34 };
35
36 wifi_dump@87500000 {
37 reg = <0x87500000 0x600000>;
38 no-map;
39 };
40
41 rsvd2@87B00000 {
42 reg = <0x87b00000 0x500000>;
43 no-map;
44 };
45 };
46 /*
47 This also works. Maybe it could be smaller still.
48
49 reserved-memory {
50 #address-cells = <0x1>;
51 #size-cells = <0x1>;
52 ranges;
53
54 rsvd1@87E00000 {
55 reg = <0x87e00000 0x200000>;
56 no-map;
57 };
58 };
59 */
60
61 soc {
62 mdio@90000 {
63 status = "okay";
64 };
65
66 qca8075: ess-switch@c000000 {
67 status = "okay";
68
69 #gpio-cells = <2>;
70 gpio-controller;
71
72 enable-usb-power {
73 gpio-hog;
74 line-name = "enable USB3 power";
75 gpios = <0x7 GPIO_ACTIVE_HIGH>;
76 output-high;
77 };
78 };
79
80 ess-psgmii@98000 {
81 status = "okay";
82 };
83
84 edma@c080000 {
85 status = "okay";
86 };
87
88 wifi@a000000 {
89 status = "okay";
90 };
91
92 wifi@a800000 {
93 status = "okay";
94 };
95 };
96
97 gpio-keys {
98 compatible = "gpio-keys";
99
100 wlan {
101 label = "wlan";
102 gpios = <&tlmm 0x3a GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_RFKILL>;
104 };
105
106 wps {
107 label = "wps";
108 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_WPS_BUTTON>;
110 };
111 };
112
113 aliases {
114 led-boot = &power;
115 led-failsafe = &flash;
116 led-running = &power;
117 led-upgrade = &flash;
118 };
119
120 gpio-leds {
121 compatible = "gpio-leds";
122
123 wlan {
124 label = "fritz4040:green:wlan";
125 gpios = <&qca8075 0x1 GPIO_ACTIVE_HIGH>;
126 };
127
128 panic: info_red {
129 label = "fritz4040:red:info";
130 gpios = <&qca8075 0x3 GPIO_ACTIVE_HIGH>;
131 panic-indicator;
132 };
133
134 wan {
135 label = "fritz4040:green:wan";
136 gpios = <&qca8075 0x5 GPIO_ACTIVE_HIGH>;
137 };
138
139 power: power {
140 label = "fritz4040:green:power";
141 gpios = <&qca8075 0xb GPIO_ACTIVE_HIGH>;
142 };
143
144 lan {
145 label = "fritz4040:green:lan";
146 gpios = <&qca8075 0xd GPIO_ACTIVE_HIGH>;
147 };
148
149 flash: info_amber {
150 label = "fritz4040:amber:info";
151 gpios = <&qca8075 0xf GPIO_ACTIVE_HIGH>;
152 };
153 };
154 };
155
156 &spi_0 { /* BLSP1 QUP1 */
157 status = "ok";
158
159 mx25l25635e@0 {
160 status = "disabled";
161 };
162
163 mx25l25635f@0 {
164 compatible = "mx25l25635f", "jedec,spi-nor";
165 #address-cells = <1>;
166 #size-cells = <0>;
167 reg = <0>;
168 spi-max-frequency = <24000000>;
169 status = "ok";
170 m25p,fast-read;
171
172 partitions {
173 compatible = "fixed-partitions";
174 #address-cells = <1>;
175 #size-cells = <1>;
176
177 partition0@0 {
178 label = "SBL1";
179 reg = <0x00000000 0x00040000>;
180 read-only;
181 };
182 partition1@40000 {
183 label = "MIBIB";
184 reg = <0x00040000 0x00020000>;
185 read-only;
186 };
187 partition2@60000 {
188 label = "QSEE";
189 reg = <0x00060000 0x00060000>;
190 read-only;
191 };
192 partition3@c0000 {
193 label = "CDT";
194 reg = <0x000c0000 0x00010000>;
195 read-only;
196 };
197 partition4@d0000 {
198 label = "DDRPARAMS";
199 reg = <0x000d0000 0x00010000>;
200 read-only;
201 };
202 partition5@e0000 {
203 label = "APPSBLENV"; /* uboot env - empty */
204 reg = <0x000e0000 0x00010000>;
205 read-only;
206 };
207 partition6@f0000 {
208 label = "urlader"; /* APPSBL */
209 reg = <0x000f0000 0x0002dc000>;
210 read-only;
211 };
212 partition7@11dc00 {
213 /* make a backup of this partition! */
214 label = "urlader_config";
215 reg = <0x0011dc00 0x00002400>;
216 read-only;
217 };
218 partition8@120000 {
219 label = "tffs1";
220 reg = <0x00120000 0x00080000>;
221 read-only;
222 };
223 partition9@1a0000 {
224 label = "tffs2";
225 reg = <0x001a0000 0x00080000>;
226 read-only;
227 };
228 partition10@220000 {
229 label = "uboot";
230 reg = <0x00220000 0x00080000>;
231 read-only;
232 };
233 partition11@2A0000 {
234 label = "firmware";
235 reg = <0x002A0000 0x01C60000>;
236 };
237 partition12@1f00000 {
238 label = "jffs2";
239 reg = <0x01F00000 0x00100000>;
240 };
241 };
242 };
243 };
244
245 &cpu0_opp_table {
246 /delete-node/ opp@666000000;
247
248 opp@710000000 {
249 opp-hz = /bits/ 64 <710000000>;
250 clock-latency-ns = <256000>;
251 };
252 };