4c4f2dbf182843371ead1cac4cf985c7efa729f5
[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 counter@4a1000 {
51 compatible = "qcom,qca-gcnt";
52 reg = <0x4a1000 0x4>;
53 };
54
55 mdio@90000 {
56 status = "okay";
57 };
58
59 ess-switch@c000000 {
60 status = "okay";
61 };
62
63 ess-psgmii@98000 {
64 status = "okay";
65 };
66
67 edma@c080000 {
68 status = "okay";
69 };
70
71 wifi@a000000 {
72 status = "okay";
73 };
74
75 wifi@a800000 {
76 status = "okay";
77 };
78 };
79
80 gpio-keys {
81 compatible = "gpio-keys";
82
83 reset {
84 label = "reset";
85 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RESTART>;
87 };
88
89 wps {
90 label = "wps";
91 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
93 };
94 };
95
96 gpio-leds {
97 compatible = "gpio-leds";
98
99 power: status {
100 label = "rt-ac58u:blue:status";
101 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
102 };
103
104 wan {
105 label = "rt-ac58u:blue:wan";
106 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
107 };
108
109 wlan2G {
110 label = "rt-ac58u:blue:wlan2G";
111 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
112 };
113
114 wan5G {
115 label = "rt-ac58u:blue:wlan5G";
116 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
117 };
118
119 usb {
120 label = "rt-ac58u:blue:usb";
121 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
122 };
123
124 lan {
125 label = "rt-ac58u:blue:lan";
126 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
127 };
128 };
129 };
130
131 &spi_0_pins {
132 pinmux_cs {
133 function = "gpio";
134 pins = "gpio54", "gpio59";
135 };
136 pinconf_cs {
137 pins = "gpio54", "gpio59";
138 drive-strength = <2>;
139 bias-disable;
140 output-high;
141 };
142 };
143
144
145 &spi_0 { /* BLSP1 QUP1 */
146 status = "ok";
147 cs-gpios = <&tlmm 54 0>,
148 <&tlmm 59 0>;
149
150 mx25l25635e@0 {
151 status = "disabled";
152 };
153
154 m25p80@0 {
155 #address-cells = <1>;
156 #size-cells = <0>;
157 /*
158 * U-boot looks for "n25q128a11" node,
159 * if we don't have it, it will spit out the following warning:
160 * "ipq: fdt fixup unable to find compatible node".
161 */
162 compatible = "mx25l1606e", "n25q128a11";
163 reg = <0>;
164 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
165 spi-max-frequency = <24000000>;
166
167 partitions {
168 compatible = "fixed-partitions";
169 #address-cells = <1>;
170 #size-cells = <1>;
171
172 partition0@0 {
173 label = "SBL1";
174 reg = <0x00000000 0x00040000>;
175 read-only;
176 };
177 partition1@40000 {
178 label = "MIBIB";
179 reg = <0x00040000 0x00020000>;
180 read-only;
181 };
182 partition2@60000 {
183 label = "QSEE";
184 reg = <0x00060000 0x00060000>;
185 read-only;
186 };
187 partition3@c0000 {
188 label = "CDT";
189 reg = <0x000c0000 0x00010000>;
190 read-only;
191 };
192 partition4@d0000 {
193 label = "DDRPARAMS";
194 reg = <0x000d0000 0x00010000>;
195 read-only;
196 };
197 partition5@e0000 {
198 label = "APPSBLENV"; /* uboot env*/
199 reg = <0x000e0000 0x00010000>;
200 read-only;
201 };
202 partition5@f0000 {
203 label = "APPSBL"; /* uboot */
204 reg = <0x000f0000 0x00080000>;
205 read-only;
206 };
207 partition5@170000 {
208 label = "ART";
209 reg = <0x00170000 0x00010000>;
210 read-only;
211 };
212 /* 0x00180000 - 0x00200000 unused */
213 };
214 };
215
216 mt29f@1 {
217 #address-cells = <1>;
218 #size-cells = <0>;
219 compatible = "spinand,mt29f", "w25n01gv";
220 reg = <1>;
221 spi-max-frequency = <24000000>;
222
223 partitions {
224 compatible = "fixed-partitions";
225 #address-cells = <1>;
226 #size-cells = <1>;
227
228 partition0@0 {
229 label = "ubi";
230 reg = <0x00000000 0x08000000>;
231 };
232 };
233 };
234 };