aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx/dts/netgear-wndap6x0.dtsi
blob: fc428bca0f1bdba0628dfede3f5180e4deb6d745 (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
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Device Tree Source for Netgear WNDAP620 and WNDAP660
 */

#include "apm82181.dtsi"

/ {
	aliases {
		serial0 = &UART0;
		led-boot = &status;
		led-failsafe = &failsafe;
		led-running = &status;
		led-upgrade = &status;
	};

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

&CRYPTO {
	status = "okay";
};

&PKA {
	status = "okay";
};

&TRNG {
	status = "okay";
};

&EBC0 {
	ndfc@1,0 {
		status = "okay";
		/* 32 MiB SLC NAND Flash */
		nand {
			nand-is-boot-medium;

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

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

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

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

			partition@500000 {
				label = "ubi";
				reg = <0x00500000 0x016d0000>;
			};

			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 0x0400000>;
				read-only;
			};

			partition@1fe0000 {
				label = "manudata";
				reg   = <0x01fe0000 0x20000 >;
				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";

		reset {
			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";

		status: power {
			label = "wndap6x0:green:power";
			gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;
		};

		failsafe: test {
			label = "wndap6x0:amber:test";
			gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
			panic-indicator;
		};

		activity {
			label = "wndap6x0:green:activity";
			gpios = <&GPIO0 21 GPIO_ACTIVE_HIGH>;
		};

		wlan2g {
			label = "wndap6x0:green:wlan2g";
			gpios = <&GPIO0 19 GPIO_ACTIVE_HIGH>;
		};

		wlan5g {
			label = "wndap6x0:green:wlan5g";
			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";
		cpu_port = <5>;
		realtek,extif0 = <1 2 1 1 1 1 1 1 2>;
		mii-bus = <&mdio0>;
	};
};

&PCIE0 {
	status = "okay";
};

&MSI {
	status = "okay";
};

&IIC0 {
	status = "okay";

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