summaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx/dts/netgear-wndap6x0.dtsi
blob: 9d987766264c8eaff10415520c4c83f8618b5b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Device Tree Source for Netgear WNDAP620 and WNDAP660
 */

#include <dt-bindings/leds/common.h>
#include "apm82181.dtsi"

/ {
	aliases {
		serial0 = &UART0;
	};

	chosen {
		stdout-path = "/plb/opb/serial@ef600300";
	};
};

&CRYPTO {
	status = "okay";
};

&PKA {
	status = "okay";
};

&TRNG {
	status = "okay";
};

&ndfc {
	status = "okay";
	/* 32 MiB SLC NAND Flash */

	nand {
		nand-is-boot-medium;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "u-boot";
				reg = <0x00000000 0x00100000>;
				read-only;
			};

			partition@100000 {
				compatible = "u-boot,env";
				label = "u-boot-env";
				reg = <0x00100000 0x0004000>;
				read-only;

				ethaddr {
				};

				bootcmd {
				};

				serno {
				};

				ProductID {
				};

				HardwareVer {
				};
			};

			/* 0x104000 - 0x10ffff free */

			partition@110000 {
				label = "firmware";
				reg = <0x00110000 0x01ac0000>;

				compatible = "fixed-partitions";
				#address-cells = <1>;
				#size-cells = <1>;

				partition@0 {
					/*
					 * The u-boot bootloader will look at this
					 * offset (0x110000) for an uImage binary.
					 */
					label = "kernel";
					reg = <0x00000000 0x005f0000>;
				};

				partition@5f0000 {
					label = "ubi";
					reg = <0x005f0000 0x014d0000>;
				};
			};

			partition@1bd0000 {
				/*
				 * original vendor device-tree - do not use or
				 * overwrite. The original u-boot also supports
				 * the gzipped legacy monolithic/Multi-File Image
				 * format, which is a better choice.
				 */
				label = "device-tree";
				reg = <0x01bd0000 0x0010000>;
				read-only;
			};

			partition@1be0000 {
				label = "var";
				reg = <0x01be0000 0x00400000>;
				read-only;
			};

			partition@1fe0000 {
				label = "manudata";
				reg = <0x01fe0000 0x00020000>;
				read-only;
			};
		};
	};
};

&UART0 {
	status = "okay";
};

&GPIO0 {
	status = "okay";
};

&EMAC0 {
	status = "okay";

	fixed-link {
		speed = <1000>;
		full-duplex;
		pause;
		asym-pause;
	};

	mdio0: mdio {
		#address-cells = <1>;
		#size-cells = <0>;
	};
};

&POB0 {
	keys {
		compatible = "gpio-keys";

		button-restart {
			label = "Reset Button";
			gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART>;
			interrupt-parent = <&UIC1>;
			interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
			debounce-interval = <60>;
		};
	};

	LEDS: leds {
		compatible = "gpio-leds";

		led-0 {
			color = <LED_COLOR_ID_GREEN>;
			function = LED_FUNCTION_POWER;
			gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;
		};

		led-1 {
			color = <LED_COLOR_ID_AMBER>;
			function = LED_FUNCTION_FAULT;
			gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
			panic-indicator;
		};

		led-2 {
			color = <LED_COLOR_ID_GREEN>;
			function = LED_FUNCTION_LAN;
			function-enumerator = <0>;
			gpios = <&GPIO0 21 GPIO_ACTIVE_HIGH>;
		};

		led-3 {
			color = <LED_COLOR_ID_GREEN>;
			function = LED_FUNCTION_WLAN;
			function-enumerator = <0>;
			gpios = <&GPIO0 19 GPIO_ACTIVE_HIGH>;
		};

		led-4 {
			color = <LED_COLOR_ID_GREEN>;
			function = LED_FUNCTION_WLAN;
			function-enumerator = <1>;
			gpios = <&GPIO0 20 GPIO_ACTIVE_HIGH>;
		};
	};

	gpio-export {
		compatible = "gpio-export";

		internal-antenna {
			gpio-export,name = "wndap6x0:internal-antenna";
			gpio-export,output = <1>;
			gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>;
		};

		external-antenna {
			gpio-export,name = "wndap6x0:external-antenna";
			gpio-export,output = <0>;
			gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
		};

		mains-powered {
			/*
			 * Input pin describing what powers the AP
			 * 0/Low = PoE
			 * 1/High = 12v mains powered
			 */
			gpio-export,name = "wndap620:mains-powered";
			gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>;
		};
	};

	rtl8367b {
		compatible = "realtek,rtl8367b";
		realtek,extif0 = <1 2 1 1 1 1 1 1 2>;
		mii-bus = <&mdio0>;
	};
};

&PCIE0 {
	status = "okay";
};

&IIC0 {
	status = "okay";

	at24@52 {
		compatible = "atmel,24c04";
		reg = <0x52>;
		pagesize = <16>;
		read-only;
	};
};