2d135d64da4ab1b156aba0a00e16cabb6def3b03
[openwrt/staging/stintel.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 debounce-interval = <60>;
135 };
136 };
137
138 LEDS: leds {
139 compatible = "gpio-leds";
140
141 status: power {
142 label = "wndap6x0:green:power";
143 gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;
144 };
145
146 failsafe: test {
147 label = "wndap6x0:amber:test";
148 gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
149 panic-indicator;
150 };
151
152 activity {
153 label = "wndap6x0:green:activity";
154 gpios = <&GPIO0 21 GPIO_ACTIVE_HIGH>;
155 };
156
157 wlan2g {
158 label = "wndap6x0:green:wlan2g";
159 gpios = <&GPIO0 19 GPIO_ACTIVE_HIGH>;
160 };
161
162 wlan5g {
163 label = "wndap6x0:green:wlan5g";
164 gpios = <&GPIO0 20 GPIO_ACTIVE_HIGH>;
165 };
166 };
167
168 gpio-export {
169 compatible = "gpio-export";
170
171 internal-antenna {
172 gpio-export,name = "wndap6x0:internal-antenna";
173 gpio-export,output = <1>;
174 gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>;
175 };
176
177 external-antenna {
178 gpio-export,name = "wndap6x0:external-antenna";
179 gpio-export,output = <0>;
180 gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
181 };
182
183 mains-powered {
184 /*
185 * Input pin describing what powers the AP
186 * 0/Low = PoE
187 * 1/High = 12v mains powered
188 */
189 gpio-export,name = "wndap620:mains-powered";
190 gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>;
191 };
192 };
193
194 rtl8367b {
195 compatible = "realtek,rtl8367b";
196 cpu_port = <5>;
197 realtek,extif0 = <1 2 1 1 1 1 1 1 2>;
198 mii-bus = <&mdio0>;
199 };
200 };
201
202 &PCIE0 {
203 status = "okay";
204 };
205
206 &MSI {
207 status = "okay";
208 };
209
210 &IIC0 {
211 status = "okay";
212
213 at24@52 {
214 compatible = "atmel,24c04";
215 reg = <0x52>;
216 pagesize = <16>;
217 read-only;
218 };
219 };
220