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