ipq806x: ipq4019: dts: move ap-dk01 tcsr nodes to dtsi
[librecmc/librecmc.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                 counter@4a1000 {
63                         compatible = "qcom,qca-gcnt";
64                         reg = <0x4a1000 0x4>;
65                 };
66
67                 mdio@90000 {
68                         status = "okay";
69                 };
70
71                 qca8075: ess-switch@c000000 {
72                         status = "okay";
73
74                         #gpio-cells = <2>;
75                         gpio-controller;
76
77                         enable-usb-power {
78                                 gpio-hog;
79                                 line-name = "enable USB3 power";
80                                 gpios = <0x7 GPIO_ACTIVE_HIGH>;
81                                 output-high;
82                         };
83                 };
84
85                 ess-psgmii@98000 {
86                         status = "okay";
87                 };
88
89                 edma@c080000 {
90                         status = "okay";
91                 };
92
93                 wifi@a000000 {
94                         status = "okay";
95                 };
96
97                 wifi@a800000 {
98                         status = "okay";
99                 };
100         };
101
102         gpio-keys {
103                 compatible = "gpio-keys";
104
105                 wlan {
106                         label = "wlan";
107                         gpios = <&tlmm 0x3a GPIO_ACTIVE_LOW>;
108                         linux,code = <KEY_RFKILL>;
109                 };
110
111                 wps {
112                         label = "wps";
113                         gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
114                         linux,code = <KEY_WPS_BUTTON>;
115                 };
116         };
117
118         aliases {
119                 led-boot = &power;
120                 led-failsafe = &flash;
121                 led-running = &power;
122                 led-upgrade = &flash;
123         };
124
125         gpio-leds {
126                 compatible = "gpio-leds";
127
128                 wlan {
129                         label = "fritz4040:green:wlan";
130                         gpios = <&qca8075 0x1 GPIO_ACTIVE_HIGH>;
131                 };
132
133                 panic: info_red {
134                         label = "fritz4040:red:info";
135                         gpios = <&qca8075 0x3 GPIO_ACTIVE_HIGH>;
136                         panic-indicator;
137                 };
138
139                 wan {
140                         label = "fritz4040:green:wan";
141                         gpios = <&qca8075 0x5 GPIO_ACTIVE_HIGH>;
142                 };
143
144                 power: power {
145                         label = "fritz4040:green:power";
146                         gpios = <&qca8075 0xb GPIO_ACTIVE_HIGH>;
147                 };
148
149                 lan {
150                         label = "fritz4040:green:lan";
151                         gpios = <&qca8075 0xd GPIO_ACTIVE_HIGH>;
152                 };
153
154                 flash: info_amber {
155                         label = "fritz4040:amber:info";
156                         gpios = <&qca8075 0xf GPIO_ACTIVE_HIGH>;
157                 };
158         };
159 };
160
161 &spi_0 { /* BLSP1 QUP1 */
162         status = "ok";
163
164         mx25l25635e@0 {
165                 status = "disabled";
166         };
167
168         mx25l25635f@0 {
169                 compatible = "mx25l25635f", "jedec,spi-nor";
170                 #address-cells = <1>;
171                 #size-cells = <0>;
172                 reg = <0>;
173                 spi-max-frequency = <24000000>;
174                 status = "ok";
175                 m25p,fast-read;
176
177                 partitions {
178                         compatible = "fixed-partitions";
179                         #address-cells = <1>;
180                         #size-cells = <1>;
181
182                         partition0@0 {
183                                 label = "SBL1";
184                                 reg = <0x00000000 0x00040000>;
185                                 read-only;
186                         };
187                         partition1@40000 {
188                                 label = "MIBIB";
189                                 reg = <0x00040000 0x00020000>;
190                                 read-only;
191                         };
192                         partition2@60000 {
193                                 label = "QSEE";
194                                 reg = <0x00060000 0x00060000>;
195                                 read-only;
196                         };
197                         partition3@c0000 {
198                                 label = "CDT";
199                                 reg = <0x000c0000 0x00010000>;
200                                 read-only;
201                         };
202                         partition4@d0000 {
203                                 label = "DDRPARAMS";
204                                 reg = <0x000d0000 0x00010000>;
205                                 read-only;
206                         };
207                         partition5@e0000 {
208                                 label = "APPSBLENV"; /* uboot env - empty */
209                                 reg = <0x000e0000 0x00010000>;
210                                 read-only;
211                         };
212                         partition6@f0000 {
213                                 label = "urlader"; /* APPSBL */
214                                 reg = <0x000f0000 0x0002dc000>;
215                                 read-only;
216                         };
217                         partition7@11dc00 {
218                                 /* make a backup of this partition! */
219                                 label = "urlader_config";
220                                 reg = <0x0011dc00 0x00002400>;
221                                 read-only;
222                         };
223                         partition8@120000 {
224                                 label = "tffs1";
225                                 reg = <0x00120000 0x00080000>;
226                                 read-only;
227                         };
228                         partition9@1a0000 {
229                                 label = "tffs2";
230                                 reg = <0x001a0000 0x00080000>;
231                                 read-only;
232                         };
233                         partition10@220000 {
234                                 label = "uboot";
235                                 reg = <0x00220000 0x00080000>;
236                                 read-only;
237                         };
238                         partition11@2A0000 {
239                                 label = "firmware";
240                                 reg = <0x002A0000 0x01C60000>;
241                         };
242                         partition12@1f00000 {
243                                 label = "jffs2";
244                                 reg = <0x01F00000 0x00100000>;
245                         };
246                 };
247         };
248 };
249
250 &cpu0_opp_table {
251         /delete-node/ opp@666000000;
252
253         opp@710000000 {
254                 opp-hz = /bits/ 64 <710000000>;
255                 clock-latency-ns = <256000>;
256         };
257 };