apm821xx: add support for kernel 5.10 for testing
[openwrt/staging/rmilecki.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 nand-is-boot-medium;
40
41 partition@0 {
42 label = "u-boot";
43 reg = <0x00000000 0x00100000>;
44 read-only;
45 };
46
47 partition@100000 {
48 label = "u-boot-env";
49 reg = <0x00100000 0x00010000>;
50 read-only;
51 };
52
53 partition@110000,0 {
54 label = "firmware";
55 reg = <0x00110000 0x01ac0000>;
56 };
57
58 partition@110000,1 {
59 /*
60 * The u-boot bootloader will look at this
61 * offset (0x110000) for an uImage binary.
62 */
63 label = "kernel";
64 reg = <0x00110000 0x003f0000>;
65 };
66
67 partition@500000 {
68 label = "ubi";
69 reg = <0x00500000 0x016d0000>;
70 };
71
72 partition@1bd0000 {
73 /*
74 * original vendor device-tree - do not use or
75 * overwrite. The original u-boot also supports
76 * the gzipped legacy monolithic/Multi-File Image
77 * format, which is a better choice.
78 */
79 label = "device-tree";
80 reg = <0x01bd0000 0x0010000>;
81 read-only;
82 };
83
84 partition@1be0000 {
85 label = "var";
86 reg = <0x01be0000 0x0400000>;
87 read-only;
88 };
89
90 partition@1fe0000 {
91 label = "manudata";
92 reg = <0x01fe0000 0x20000 >;
93 read-only;
94 };
95 };
96 };
97 };
98
99 &UART0 {
100 status = "okay";
101 };
102
103 &GPIO0 {
104 status = "okay";
105 };
106
107 &EMAC0 {
108 status = "okay";
109
110 fixed-link {
111 speed = <1000>;
112 full-duplex;
113 pause;
114 asym-pause;
115 };
116
117 mdio0: mdio {
118 #address-cells = <1>;
119 #size-cells = <0>;
120 };
121 };
122
123 &POB0 {
124 keys {
125 compatible = "gpio-keys";
126
127 reset {
128 label = "Reset Button";
129 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_RESTART>;
131 interrupt-parent = <&UIC1>;
132 interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
133 debounce-interval = <60>;
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