uhttpd: add direct dependency on libjson-c
[openwrt/staging/ynezz.git] / target / linux / apm821xx / dts / netgear-wndap6x0.dtsi
1 /*
2 * Device Tree Source for Netgear WNDAP620 and WNDAP660
3 *
4 * This file is licensed under the terms of the GNU General Public
5 * License version 2. This program is licensed "as is" without
6 * any warranty of any kind, whether express or implied.
7 */
8
9 #include "apm82181.dtsi"
10
11 / {
12 aliases {
13 serial0 = &UART0;
14 led-boot = &status;
15 led-failsafe = &failsafe;
16 led-running = &status;
17 led-upgrade = &status;
18 };
19
20 chosen {
21 stdout-path = "/plb/opb/serial@ef600300";
22 };
23 };
24
25 &CRYPTO {
26 status = "okay";
27 };
28
29 &PKA {
30 status = "okay";
31 };
32
33 &TRNG {
34 status = "okay";
35 };
36
37 &EBC0 {
38 ndfc@1,0 {
39 status = "okay";
40 /* 32 MiB SLC NAND Flash */
41 nand {
42 partition@0 {
43 label = "u-boot";
44 reg = <0x00000000 0x00100000>;
45 read-only;
46 };
47
48 partition@100000 {
49 label = "u-boot-env";
50 reg = <0x00100000 0x00010000>;
51 read-only;
52 };
53
54 partition@110000,0 {
55 label = "firmware";
56 reg = <0x00110000 0x01ac0000>;
57 };
58
59 partition@110000,1 {
60 /*
61 * The u-boot bootloader will look at this
62 * offset (0x110000) for an uImage binary.
63 */
64 label = "kernel";
65 reg = <0x00110000 0x003f0000>;
66 };
67
68 partition@500000 {
69 label = "ubi";
70 reg = <0x00500000 0x016d0000>;
71 };
72
73 partition@1bd0000 {
74 /*
75 * original vendor device-tree - do not use or
76 * overwrite. The original u-boot also supports
77 * the gzipped legacy monolithic/Multi-File Image
78 * format, which is a better choice.
79 */
80 label = "device-tree";
81 reg = <0x01bd0000 0x0010000>;
82 read-only;
83 };
84
85 partition@1be0000 {
86 label = "var";
87 reg = <0x01be0000 0x0400000>;
88 read-only;
89 };
90
91 partition@1fe0000 {
92 label = "manudata";
93 reg = <0x01fe0000 0x20000 >;
94 read-only;
95 };
96 };
97 };
98 };
99
100 &UART0 {
101 status = "okay";
102 };
103
104 &GPIO0 {
105 status = "okay";
106 };
107
108 &EMAC0 {
109 status = "okay";
110
111 fixed-link {
112 speed = <1000>;
113 full-duplex;
114 pause;
115 asym-pause;
116 };
117
118 mdio0: mdio {
119 #address-cells = <1>;
120 #size-cells = <0>;
121 };
122 };
123
124 &POB0 {
125 keys {
126 compatible = "gpio-keys";
127
128 reset {
129 label = "Reset Button";
130 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
131 linux,code = <KEY_RESTART>;
132 interrupt-parent = <&UIC1>;
133 interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
134 };
135 };
136
137 LEDS: leds {
138 compatible = "gpio-leds";
139
140 status: power {
141 label = "wndap6x0:green:power";
142 gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;
143 };
144
145 failsafe: test {
146 label = "wndap6x0:amber:test";
147 gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
148 panic-indicator;
149 };
150
151 activity {
152 label = "wndap6x0:green:activity";
153 gpios = <&GPIO0 21 GPIO_ACTIVE_HIGH>;
154 };
155
156 wlan2g {
157 label = "wndap6x0:green:wlan2g";
158 gpios = <&GPIO0 19 GPIO_ACTIVE_HIGH>;
159 };
160
161 wlan5g {
162 label = "wndap6x0:green:wlan5g";
163 gpios = <&GPIO0 20 GPIO_ACTIVE_HIGH>;
164 };
165 };
166
167 gpio-export {
168 compatible = "gpio-export";
169
170 internal-antenna {
171 gpio-export,name = "wndap6x0:internal-antenna";
172 gpio-export,output = <1>;
173 gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>;
174 };
175
176 external-antenna {
177 gpio-export,name = "wndap6x0:external-antenna";
178 gpio-export,output = <0>;
179 gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
180 };
181
182 mains-powered {
183 /*
184 * Input pin describing what powers the AP
185 * 0/Low = PoE
186 * 1/High = 12v mains powered
187 */
188 gpio-export,name = "wndap620:mains-powered";
189 gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>;
190 };
191 };
192
193 rtl8367b {
194 compatible = "realtek,rtl8367b";
195 cpu_port = <5>;
196 realtek,extif0 = <1 2 1 1 1 1 1 1 2>;
197 mii-bus = <&mdio0>;
198 };
199 };
200
201 &PCIE0 {
202 status = "okay";
203 };
204
205 &MSI {
206 status = "okay";
207 };
208
209 &IIC0 {
210 status = "okay";
211
212 at24@52 {
213 compatible = "atmel,24c04";
214 reg = <0x52>;
215 pagesize = <16>;
216 read-only;
217 };
218 };
219