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