ipq40xx: drop bus driver, its a no-op and only does lots of alloc/free
[openwrt/openwrt.git] / target / linux / ipq40xx / files-4.14 / arch / arm / boot / dts / qcom-ipq4018-nbg6617.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.dtsi"
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20 #include <dt-bindings/input/linux-event-codes.h>
21 #include <dt-bindings/soc/qcom,tcsr.h>
22
23 / {
24 model = "ZyXEL NBG6617";
25 compatible = "zyxel,nbg6617", "qcom,ipq4019";
26
27 chosen {
28 /*
29 * the vendor u-boot adds root and mtdparts cmdline parameters
30 * which we don't want... but we have to overwrite them or else
31 * the kernel will take them at face value.
32 */
33 bootargs-append = " mtdparts= root=31:13";
34 };
35
36 aliases {
37 led-boot = &power;
38 led-failsafe = &power;
39 led-running = &power;
40 led-upgrade = &power;
41 };
42
43 soc {
44 mdio@90000 {
45 status = "okay";
46 };
47
48 ess-psgmii@98000 {
49 status = "okay";
50 };
51
52 tcsr@1949000 {
53 compatible = "qcom,tcsr";
54 reg = <0x1949000 0x100>;
55 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
56 };
57
58 tcsr@194b000 {
59 compatible = "qcom,tcsr";
60 reg = <0x194b000 0x100>;
61 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
62 };
63
64 ess_tcsr@1953000 {
65 compatible = "qcom,tcsr";
66 reg = <0x1953000 0x1000>;
67 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
68 };
69
70 tcsr@1957000 {
71 compatible = "qcom,tcsr";
72 reg = <0x1957000 0x100>;
73 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
74 };
75
76 usb2@60f8800 {
77 status = "okay";
78 };
79
80 serial@78af000 {
81 pinctrl-0 = <&serial_pins>;
82 pinctrl-names = "default";
83 status = "okay";
84 };
85
86 usb3@8af8800 {
87 status = "okay";
88 };
89
90 crypto@8e3a000 {
91 status = "okay";
92 };
93
94 watchdog@b017000 {
95 status = "okay";
96 };
97
98 ess-switch@c000000 {
99 status = "okay";
100 };
101
102 edma@c080000 {
103 status = "okay";
104 };
105 };
106
107 gpio-keys {
108 compatible = "gpio-keys";
109
110 wlan {
111 label = "wlan";
112 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
113 linux,code = <KEY_RFKILL>;
114 linux,input-type = <EV_SW>;
115 };
116
117 wps {
118 label = "wps";
119 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
120 linux,code = <KEY_WPS_BUTTON>;
121 };
122
123 reset {
124 label = "reset";
125 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
126 linux,code = <KEY_RESTART>;
127 };
128 };
129
130 gpio-leds {
131 compatible = "gpio-leds";
132 pinctrl-0 = <&led_pins>;
133 pinctrl-names = "default";
134
135 power: power {
136 label = "nbg6617:green:power";
137 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
138 };
139
140 usb {
141 label = "nbg6617:green:usb";
142 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
143 };
144
145 wlan2G {
146 label = "nbg6617:green:wlan2G";
147 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
148 };
149
150 wlan5G {
151 label = "nbg6617:green:wlan5G";
152 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
153 };
154
155 wps {
156 label = "nbg6617:green:wps";
157 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
158 };
159 };
160 };
161
162 &tlmm {
163 serial_pins: serial_pinmux {
164 mux {
165 pins = "gpio60", "gpio61";
166 function = "blsp_uart0";
167 bias-disable;
168 };
169 };
170 spi_0_pins: spi_0_pinmux {
171 mux {
172 function = "blsp_spi0";
173 pins = "gpio55", "gpio56", "gpio57";
174 drive-strength = <12>;
175 bias-disable;
176 };
177
178 mux_cs {
179 function = "gpio";
180 pins = "gpio54";
181 drive-strength = <2>;
182 bias-disable;
183 output-low;
184 };
185 };
186 led_pins: led_pinmux {
187 mux {
188 pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
189 drive-strength = <0x8>;
190 bias-disable;
191 output-low;
192 };
193 };
194 };
195
196 &spi_0 { /* BLSP1 QUP1 */
197 pinctrl-0 = <&spi_0_pins>;
198 pinctrl-names = "default";
199 status = "okay";
200 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
201
202 mx25l25635f@0 {
203 compatible = "mx25l25635f", "jedec,spi-nor";
204 #address-cells = <1>;
205 #size-cells = <0>;
206 reg = <0>;
207 spi-max-frequency = <24000000>;
208 status = "okay";
209 m25p,fast-read;
210
211 partitions {
212 compatible = "fixed-partitions";
213 #address-cells = <1>;
214 #size-cells = <1>;
215
216 partition0@0 {
217 label = "SBL1";
218 reg = <0x00000000 0x00040000>;
219 read-only;
220 };
221 partition1@40000 {
222 label = "MIBIB";
223 reg = <0x00040000 0x00020000>;
224 read-only;
225 };
226 partition2@60000 {
227 label = "QSEE";
228 reg = <0x00060000 0x00060000>;
229 read-only;
230 };
231 partition3@c0000 {
232 label = "CDT";
233 reg = <0x000c0000 0x00010000>;
234 read-only;
235 };
236 partition4@d0000 {
237 label = "DDRPARAMS";
238 reg = <0x000d0000 0x00010000>;
239 read-only;
240 };
241 partition5@e0000 {
242 label = "APPSBL"; /* u-boot */
243 reg = <0x000e0000 0x00080000>;
244 /* U-Boot Standalone App "zloader" is located at 0x64000 */
245 read-only;
246 };
247 partition6@160000 {
248 label = "APPSBLENV"; /* u-boot env */
249 reg = <0x00160000 0x00010000>;
250 };
251 partition7@170000 {
252 /* make a backup of this partition! */
253 label = "ART";
254 reg = <0x00170000 0x00010000>;
255 read-only;
256 };
257 partition8@180000 {
258 label = "kernel";
259 reg = <0x00180000 0x00400000>;
260 };
261 partition9@580000 {
262 label = "dualflag";
263 reg = <0x00580000 0x00010000>;
264 read-only;
265 };
266 partition10@590000 {
267 label = "header";
268 reg = <0x00590000 0x00010000>;
269 };
270 partition11@5a0000 {
271 label = "romd";
272 reg = <0x005a0000 0x00100000>;
273 read-only;
274 };
275 partition12@6a0000 {
276 label = "not_root_data";
277 /*
278 * for some strange reason, someone at ZyXEL
279 * had the "great" idea to put the rootfs_data
280 * in front of rootfs... Don't do that!
281 * As a result this one, full MebiByte remains
282 * unused.
283 */
284 reg = <0x006a0000 0x00100000>;
285 };
286 partition13@7a0000 {
287 label = "rootfs";
288 reg = <0x007a0000 0x01860000>;
289 };
290 };
291 };
292 };
293
294 &cryptobam {
295 status = "okay";
296 };
297
298 &blsp_dma {
299 status = "okay";
300 };
301
302 &wifi0 {
303 status = "okay";
304 };
305
306 &wifi1 {
307 status = "okay";
308 };
309
310 &usb3_ss_phy {
311 status = "okay";
312 };
313
314 &usb3_hs_phy {
315 status = "okay";
316 };
317
318 &usb2_hs_phy {
319 status = "okay";
320 };