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