ipq806x: add ipq4019 support
[librecmc/librecmc.git] / target / linux / ipq806x / files-4.9 / arch / arm / boot / dts / qcom-ipq4019-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-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 = "ZyXEL NBG6617";
25         compatible = "zyxel,nbg6617", "qcom,ipq4019";
26
27         memory {
28                 device_type = "memory";
29                 reg = <0x80000000 0x10000000>;
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@87000000 {
45                         reg = <0x87000000 0x0500000>;
46                         no-map;
47                 };
48
49                 wifi_dump@87500000 {
50                         reg = <0x87500000 0x600000>;
51                         no-map;
52                 };
53
54                 rsvd2@87B00000 {
55                         reg = <0x87b00000 0x500000>;
56                         no-map;
57                 };
58         };
59
60         soc {
61                 pinctrl@0x01000000 {
62                         led_pinmux {
63                                 mux {
64                                         pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
65                                         drive-strength = <0x8>;
66                                         bias-pull-up;
67                                         output-high;
68                                 };
69                         };
70                 };
71
72                 tcsr@194b000 {
73                         /* select hostmode */
74                         compatible = "qcom,tcsr";
75                         reg = <0x194b000 0x100>;
76                         qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
77                         status = "ok";
78                 };
79
80                 ess_tcsr@1953000 {
81                         compatible = "qcom,tcsr";
82                         reg = <0x1953000 0x1000>;
83                         qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
84                 };
85
86
87                 tcsr@1949000 {
88                         compatible = "qcom,tcsr";
89                         reg = <0x1949000 0x100>;
90                         qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
91                 };
92
93                 tcsr@1957000 {
94                         compatible = "qcom,tcsr";
95                         reg = <0x1957000 0x100>;
96                         qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
97                 };
98
99                 counter@4a1000 {
100                         compatible = "qcom,qca-gcnt";
101                         reg = <0x4a1000 0x4>;
102                 };
103
104                 mdio@90000 {
105                         status = "okay";
106                 };
107
108                 ess-switch@c000000 {
109                         status = "okay";
110                 };
111
112                 ess-psgmii@98000 {
113                         status = "okay";
114                 };
115
116                 edma@c080000 {
117                         status = "okay";
118                 };
119
120                 wifi@a000000 {
121                         status = "okay";
122                 };
123
124                 wifi@a800000 {
125                         status = "okay";
126                 };
127
128                 cryptobam: dma@8e04000 {
129                         status = "okay";
130                 };
131
132                 crypto@8e3a000 {
133                         status = "okay";
134                 };
135         };
136
137         gpio-keys {
138                 compatible = "gpio-keys";
139
140                 wlan {
141                         label = "wlan";
142                         gpios = <&tlmm 0x2 GPIO_ACTIVE_HIGH>;
143                         linux,code = <KEY_RFKILL>;
144                 };
145
146                 wps {
147                         label = "wps";
148                         gpios = <&tlmm 0x3f GPIO_ACTIVE_LOW>;
149                         linux,code = <KEY_WPS_BUTTON>;
150                 };
151
152                 reset {
153                         label = "reset";
154                         gpios = <&tlmm 0x4 GPIO_ACTIVE_LOW>;
155                         linux,code = <KEY_RESTART>;
156                 };
157         };
158
159         gpio-leds {
160                 compatible = "gpio-leds";
161
162                 power: power {
163                         label = "nbg6617:green:power";
164                         gpios = <&tlmm 0x3 GPIO_ACTIVE_HIGH>;
165                 };
166
167                 wps {
168                         label = "nbg6617:green:wps";
169                         gpios = <&tlmm 0x1 GPIO_ACTIVE_HIGH>;
170                 };
171
172                 wlan2G {
173                         label = "nbg6617:green:wlan2G";
174                         gpios = <&tlmm 0x3a GPIO_ACTIVE_HIGH>;
175                 };
176
177                 wlan5G {
178                         label = "nbg6617:green:wlan5G";
179                         gpios = <&tlmm 0x5 GPIO_ACTIVE_HIGH>;
180                 };
181         };
182 };
183
184
185 &spi_0 { /* BLSP1 QUP1 */
186         status = "ok";
187
188         mx25l25635e@0 {
189                 status = "disabled";
190         };
191
192         n25q128a11@0 {
193                 status = "okay";
194
195                 partitions {
196                         compatible = "fixed-partitions";
197                         #address-cells = <1>;
198                         #size-cells = <1>;
199
200                         partition0@0 {
201                                 label = "all";
202                                 reg = <0x00000000 0x08000000>;
203                                 read-only; /* for now */
204                         };
205                 };
206
207         };
208 };