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