8822497250b251bf7f1dbd079464eae407be0488
[openwrt/openwrt.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 #include <dt-bindings/soc/qcom,tcsr.h>
22
23 / {
24 model = "ASUS RT-AC58U";
25 compatible = "asus,rt-ac58u", "qcom,ipq4019";
26
27 memory {
28 device_type = "memory";
29 reg = <0x80000000 0x8000000>;
30 };
31
32 aliases {
33 led-boot = &power;
34 led-failsafe = &power;
35 led-running = &power;
36 led-upgrade = &power;
37 };
38
39 reserved-memory {
40 #address-cells = <0x1>;
41 #size-cells = <0x1>;
42 ranges;
43
44 rsvd1@87E00000 {
45 reg = <0x87e00000 0x200000>;
46 no-map;
47 };
48 };
49
50 soc {
51
52 tcsr@194b000 {
53 /* select hostmode */
54 compatible = "qcom,tcsr";
55 reg = <0x194b000 0x100>;
56 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
57 status = "ok";
58 };
59
60 ess_tcsr@1953000 {
61 compatible = "qcom,tcsr";
62 reg = <0x1953000 0x1000>;
63 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
64 };
65
66
67 tcsr@1949000 {
68 compatible = "qcom,tcsr";
69 reg = <0x1949000 0x100>;
70 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
71 };
72
73 tcsr@1957000 {
74 compatible = "qcom,tcsr";
75 reg = <0x1957000 0x100>;
76 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
77 };
78
79 counter@4a1000 {
80 compatible = "qcom,qca-gcnt";
81 reg = <0x4a1000 0x4>;
82 };
83
84 mdio@90000 {
85 status = "okay";
86 };
87
88 ess-switch@c000000 {
89 status = "okay";
90 };
91
92 ess-psgmii@98000 {
93 status = "okay";
94 };
95
96 edma@c080000 {
97 status = "okay";
98 };
99
100 wifi@a000000 {
101 status = "okay";
102 };
103
104 wifi@a800000 {
105 status = "okay";
106 };
107 };
108
109 gpio-keys {
110 compatible = "gpio-keys";
111
112 reset {
113 label = "reset";
114 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_RESTART>;
116 };
117
118 wps {
119 label = "wps";
120 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_WPS_BUTTON>;
122 };
123 };
124
125 gpio-leds {
126 compatible = "gpio-leds";
127
128 power: status {
129 label = "rt-ac58u:blue:status";
130 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
131 };
132
133 wan {
134 label = "rt-ac58u:blue:wan";
135 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
136 };
137
138 wlan2G {
139 label = "rt-ac58u:blue:wlan2G";
140 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
141 };
142
143 wan5G {
144 label = "rt-ac58u:blue:wlan5G";
145 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
146 };
147
148 usb {
149 label = "rt-ac58u:blue:usb";
150 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
151 };
152
153 lan {
154 label = "rt-ac58u:blue:lan";
155 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
156 };
157 };
158 };
159
160 &spi_0_pins {
161 pinmux_cs {
162 function = "gpio";
163 pins = "gpio54", "gpio59";
164 };
165 pinconf_cs {
166 pins = "gpio54", "gpio59";
167 drive-strength = <2>;
168 bias-disable;
169 output-high;
170 };
171 };
172
173
174 &spi_0 { /* BLSP1 QUP1 */
175 status = "ok";
176 cs-gpios = <&tlmm 54 0>,
177 <&tlmm 59 0>;
178
179 mx25l25635e@0 {
180 status = "disabled";
181 };
182
183 m25p80@0 {
184 #address-cells = <1>;
185 #size-cells = <0>;
186 /*
187 * U-boot looks for "n25q128a11" node,
188 * if we don't have it, it will spit out the following warning:
189 * "ipq: fdt fixup unable to find compatible node".
190 */
191 compatible = "mx25l1606e", "n25q128a11";
192 reg = <0>;
193 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
194 spi-max-frequency = <24000000>;
195
196 partitions {
197 compatible = "fixed-partitions";
198 #address-cells = <1>;
199 #size-cells = <1>;
200
201 partition0@0 {
202 label = "SBL1";
203 reg = <0x00000000 0x00040000>;
204 read-only;
205 };
206 partition1@40000 {
207 label = "MIBIB";
208 reg = <0x00040000 0x00020000>;
209 read-only;
210 };
211 partition2@60000 {
212 label = "QSEE";
213 reg = <0x00060000 0x00060000>;
214 read-only;
215 };
216 partition3@c0000 {
217 label = "CDT";
218 reg = <0x000c0000 0x00010000>;
219 read-only;
220 };
221 partition4@d0000 {
222 label = "DDRPARAMS";
223 reg = <0x000d0000 0x00010000>;
224 read-only;
225 };
226 partition5@e0000 {
227 label = "APPSBLENV"; /* uboot env*/
228 reg = <0x000e0000 0x00010000>;
229 read-only;
230 };
231 partition5@f0000 {
232 label = "APPSBL"; /* uboot */
233 reg = <0x000f0000 0x00080000>;
234 read-only;
235 };
236 partition5@170000 {
237 label = "ART";
238 reg = <0x00170000 0x00010000>;
239 read-only;
240 };
241 /* 0x00180000 - 0x00200000 unused */
242 };
243 };
244
245 mt29f@1 {
246 #address-cells = <1>;
247 #size-cells = <0>;
248 compatible = "spinand,mt29f", "w25n01gv";
249 reg = <1>;
250 spi-max-frequency = <24000000>;
251
252 partitions {
253 compatible = "fixed-partitions";
254 #address-cells = <1>;
255 #size-cells = <1>;
256
257 partition0@0 {
258 label = "ubi";
259 reg = <0x00000000 0x08000000>;
260 };
261 };
262 };
263 };