lantiq: remove the former board name from device tree model
[openwrt/openwrt.git] / target / linux / lantiq / dts / VR200v.dts
1 /dts-v1/;
2
3 #include "vr9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "tplink,vr200v", "lantiq,xway", "lantiq,vr9";
9 model = "TP-LINK Archer VR200v";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power;
17 led-failsafe = &power;
18
19 led-dsl = &dsl;
20 led-internet = &internet;
21 led-usb = &usb;
22 led-usb2 = &usb;
23 };
24
25 memory@0 {
26 reg = <0x0 0x7f00000>;
27 };
28
29 fpi@10000000 {
30 gpio: pinmux@E100B10 {
31 pinctrl-names = "default";
32 pinctrl-0 = <&state_default>;
33
34 state_default: pinmux {
35 mdio {
36 lantiq,groups = "mdio";
37 lantiq,function = "mdio";
38 };
39 gphy-leds {
40 lantiq,groups = "gphy0 led1", "gphy1 led1";
41 lantiq,function = "gphy";
42 lantiq,pull = <2>;
43 lantiq,open-drain = <0>;
44 lantiq,output = <1>;
45 };
46 phy-rst {
47 lantiq,pins = "io42";
48 lantiq,pull = <0>;
49 lantiq,open-drain = <0>;
50 lantiq,output = <1>;
51 };
52 pcie-rst {
53 lantiq,pins = "io38";
54 lantiq,pull = <0>;
55 lantiq,output = <1>;
56 };
57 };
58 pins_spi_default: pins_spi_default {
59 spi_in {
60 lantiq,groups = "spi_di";
61 lantiq,function = "spi";
62 };
63 spi_out {
64 lantiq,groups = "spi_do", "spi_clk",
65 "spi_cs4";
66 lantiq,function = "spi";
67 lantiq,output = <1>;
68 };
69 };
70 };
71
72 ifxhcd@E101000 {
73 status = "okay";
74 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
75 lantiq,portmask = <0x3>;
76 };
77
78 ifxhcd@E106000 {
79 status = "okay";
80 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
81 };
82
83 pci0: pci@E105400 {
84 status = "okay";
85 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
86 };
87 };
88
89 gphy-xrx200 {
90 compatible = "lantiq,phy-xrx200";
91 firmware = "lantiq/vr9_phy11g_a2x.bin";
92 phys = [ 00 01 ];
93 };
94
95 gpio-keys-polled {
96 compatible = "gpio-keys-polled";
97 #address-cells = <1>;
98 #size-cells = <0>;
99 poll-interval = <100>;
100 reset {
101 label = "reset";
102 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_RESTART>;
104 };
105
106 wifi {
107 label = "wifi";
108 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
109 linux,code = <KEY_RFKILL>;
110 linux,input-type = <EV_SW>;
111 };
112
113 wps {
114 label = "wps";
115 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
116 linux,code = <KEY_WPS_BUTTON>;
117 };
118
119 dect_paging {
120 label = "dect_paging";
121 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
122 linux,code = <KEY_PHONE>;
123 };
124 };
125
126 gpio-leds {
127 compatible = "gpio-leds";
128 power: power {
129 label = "vr200v:blue:power";
130 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
131 };
132 dsl: dsl {
133 label = "vr200v:blue:dsl";
134 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
135 };
136 internet: internet {
137 label = "vr200v:blue:internet";
138 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
139 };
140 usb: usb {
141 label = "vr200v:blue:usb";
142 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
143 };
144 eth {
145 label = "vr200v:blue:lan";
146 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
147 };
148 wlan {
149 label = "vr200v:blue:wlan";
150 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
151 };
152 wlan5g {
153 label = "vr200v:blue:wlan5g";
154 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
155 };
156 phone {
157 label = "vr200v:blue:phone";
158 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
159 };
160 };
161 };
162
163 &spi {
164 pinctrl-names = "default";
165 pinctrl-0 = <&pins_spi_default>;
166
167 status = "ok";
168
169 m25p80@4 {
170 #address-cells = <1>;
171 #size-cells = <1>;
172 compatible = "jedec,spi-nor";
173 reg = <4 0>;
174 spi-max-frequency = <33250000>;
175 m25p,fast-read;
176
177 partitions {
178 compatible = "fixed-partitions";
179 #address-cells = <1>;
180 #size-cells = <1>;
181
182 partition@0 {
183 reg = <0x0 0x20000>;
184 label = "u-boot";
185 read-only;
186 };
187
188 partition@20000 {
189 reg = <0x20000 0xf90000>;
190 label = "firmware";
191 };
192
193 partition@fb0000 {
194 reg = <0xfb0000 0x10000>;
195 label = "radioDECT";
196 read-only;
197 };
198
199 partition@fc0000 {
200 reg = <0xfc0000 0x10000>;
201 label = "config";
202 read-only;
203 };
204
205 romfile: partition@fd0000 {
206 reg = <0xfd0000 0x10000>;
207 label = "romfile";
208 read-only;
209 };
210
211 partition@fe0000 {
212 reg = <0xfe0000 0x10000>;
213 label = "rom";
214 read-only;
215 };
216
217 partition@ff0000 {
218 reg = <0xff0000 0x10000>;
219 label = "radio";
220 read-only;
221 };
222 };
223 };
224 };
225
226 &eth0 {
227 lan: interface@0 {
228 compatible = "lantiq,xrx200-pdi";
229 #address-cells = <1>;
230 #size-cells = <0>;
231 reg = <0>;
232 mtd-mac-address = <&romfile 0xf100>;
233 lantiq,switch;
234
235 ethernet@0 {
236 compatible = "lantiq,xrx200-pdi-port";
237 reg = <0>;
238 phy-mode = "rgmii";
239 phy-handle = <&phy0>;
240 // gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
241 };
242 ethernet@5 {
243 compatible = "lantiq,xrx200-pdi-port";
244 reg = <5>;
245 phy-mode = "rgmii";
246 phy-handle = <&phy5>;
247 };
248 ethernet@2 {
249 compatible = "lantiq,xrx200-pdi-port";
250 reg = <2>;
251 phy-mode = "gmii";
252 phy-handle = <&phy11>;
253 };
254 ethernet@3 {
255 compatible = "lantiq,xrx200-pdi-port";
256 reg = <4>;
257 phy-mode = "gmii";
258 phy-handle = <&phy13>;
259 };
260 };
261
262 mdio@0 {
263 #address-cells = <1>;
264 #size-cells = <0>;
265 compatible = "lantiq,xrx200-mdio";
266 phy0: ethernet-phy@0 {
267 reg = <0x0>;
268 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
269 };
270 phy5: ethernet-phy@5 {
271 reg = <0x5>;
272 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
273 };
274 phy11: ethernet-phy@11 {
275 reg = <0x11>;
276 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
277 };
278 phy13: ethernet-phy@13 {
279 reg = <0x13>;
280 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
281 };
282 };
283 };