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