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