9e8783eee271baa04d3832f07648f90413a23e51
[openwrt/openwrt.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@1000000 {
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
129 gpio-keys {
130 compatible = "gpio-keys";
131
132 wlan {
133 label = "wlan";
134 gpios = <&tlmm 0x2 GPIO_ACTIVE_HIGH>;
135 linux,code = <KEY_RFKILL>;
136 };
137
138 wps {
139 label = "wps";
140 gpios = <&tlmm 0x3f GPIO_ACTIVE_LOW>;
141 linux,code = <KEY_WPS_BUTTON>;
142 };
143
144 reset {
145 label = "reset";
146 gpios = <&tlmm 0x4 GPIO_ACTIVE_LOW>;
147 linux,code = <KEY_RESTART>;
148 };
149 };
150
151 gpio-leds {
152 compatible = "gpio-leds";
153
154 power: power {
155 label = "nbg6617:green:power";
156 gpios = <&tlmm 0x3 GPIO_ACTIVE_HIGH>;
157 };
158
159 wps {
160 label = "nbg6617:green:wps";
161 gpios = <&tlmm 0x1 GPIO_ACTIVE_HIGH>;
162 };
163
164 wlan2G {
165 label = "nbg6617:green:wlan2G";
166 gpios = <&tlmm 0x3a GPIO_ACTIVE_HIGH>;
167 };
168
169 wlan5G {
170 label = "nbg6617:green:wlan5G";
171 gpios = <&tlmm 0x5 GPIO_ACTIVE_HIGH>;
172 };
173 };
174 };
175
176
177 &spi_0 { /* BLSP1 QUP1 */
178 status = "ok";
179
180 mx25l25635e@0 {
181 status = "disabled";
182 };
183
184 n25q128a11@0 {
185 status = "okay";
186
187 partitions {
188 compatible = "fixed-partitions";
189 #address-cells = <1>;
190 #size-cells = <1>;
191
192 partition0@0 {
193 label = "all";
194 reg = <0x00000000 0x08000000>;
195 read-only; /* for now */
196 };
197 };
198
199 };
200 };