lantiq: dts: drop superfluous address and size cells
[openwrt/staging/stintel.git] / target / linux / lantiq / files / arch / mips / boot / dts / VGV7510KW22.dtsi
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
5
6 / {
7 compatible = "arcadyan,vgv7510kw22", "lantiq,xway", "lantiq,vr9";
8
9 chosen {
10 bootargs = "console=ttyLTQ0,115200 mem=62M vpe1_load_addr=0x83e00000 vpe1_mem=2M maxvpes=1 maxtcs=1 nosmp";
11 };
12
13 aliases {
14 led-boot = &power_green;
15 led-failsafe = &power_red;
16 led-running = &power_green;
17 led-upgrade = &power_green;
18
19 led-dsl = &dsl;
20 led-internet = &internet_green;
21 led-wifi = &wifi;
22 };
23
24 memory@0 {
25 device_type = "memory";
26 reg = <0x0 0x4000000>;
27 };
28
29 gpio-keys-polled {
30 compatible = "gpio-keys-polled";
31 poll-interval = <100>;
32
33 reset {
34 label = "reset";
35 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 };
38
39 wps {
40 label = "wps";
41 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
43 };
44 };
45
46 gpio-leds {
47 compatible = "gpio-leds";
48
49 dsl: dsl {
50 label = "vgv7510kw22:green:dsl";
51 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
52 };
53
54 internet_red {
55 label = "vgv7510kw22:red:internet";
56 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
57 };
58
59 info_red {
60 label = "vgv7510kw22:red:info";
61 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
62 };
63
64 power_green: power {
65 label = "vgv7510kw22:green:power";
66 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
67 default-state = "keep";
68 };
69
70 info_green {
71 label = "vgv7510kw22:green:info";
72 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
73 };
74
75 internet_green: internet_green {
76 label = "vgv7510kw22:green:internet";
77 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
78 };
79
80 wifi: wifi {
81 label = "vgv7510kw22:green:wlan";
82 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
83 };
84
85 power_red: power2 {
86 label = "vgv7510kw22:red:power";
87 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
88 };
89
90 phone {
91 label = "vgv7510kw22:green:telefon";
92 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
93 };
94 };
95
96 usb_vbus: regulator-usb-vbus {
97 compatible = "regulator-fixed";
98
99 regulator-name = "USB_VBUS";
100
101 regulator-min-microvolt = <5000000>;
102 regulator-max-microvolt = <5000000>;
103
104 gpio = <&gpio 47 GPIO_ACTIVE_HIGH>;
105 enable-active-high;
106 };
107 };
108
109 &eth0 {
110 lan: interface@0 {
111 compatible = "lantiq,xrx200-pdi";
112 #address-cells = <1>;
113 #size-cells = <0>;
114 reg = <0>;
115 mtd-mac-address = <&boardconfig 0x16>;
116 lantiq,switch;
117
118 ethernet@0 {
119 compatible = "lantiq,xrx200-pdi-port";
120 reg = <0>;
121 phy-mode = "mii";
122 phy-handle = <&phy1>;
123 };
124 ethernet@2 {
125 compatible = "lantiq,xrx200-pdi-port";
126 reg = <2>;
127 phy-mode = "mii";
128 phy-handle = <&phy11>;
129 };
130 ethernet@3 {
131 compatible = "lantiq,xrx200-pdi-port";
132 reg = <3>;
133 phy-mode = "mii";
134 phy-handle = <&phy12>;
135 };
136 ethernet@4 {
137 compatible = "lantiq,xrx200-pdi-port";
138 reg = <4>;
139 phy-mode = "mii";
140 phy-handle = <&phy13>;
141 };
142 ethernet@5 {
143 compatible = "lantiq,xrx200-pdi-port";
144 reg = <5>;
145 phy-mode = "mii";
146 phy-handle = <&phy14>;
147 };
148 };
149
150 mdio {
151 #address-cells = <1>;
152 #size-cells = <0>;
153 compatible = "lantiq,xrx200-mdio";
154
155 phy1: ethernet-phy@1 {
156 reg = <0x1>;
157 compatible = "ethernet-phy-ieee802.3-c22";
158 };
159
160 phy11: ethernet-phy@11 {
161 reg = <0x11>;
162 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
163 };
164 phy12: ethernet-phy@12 {
165 reg = <0x12>;
166 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
167 };
168 phy13: ethernet-phy@13 {
169 reg = <0x13>;
170 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
171 };
172 phy14: ethernet-phy@14 {
173 reg = <0x14>;
174 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
175 };
176 };
177 };
178
179 &gphy0 {
180 lantiq,gphy-mode = <GPHY_MODE_FE>;
181 };
182
183 &gphy1 {
184 lantiq,gphy-mode = <GPHY_MODE_FE>;
185 };
186
187 &gpio {
188 pinctrl-names = "default";
189 pinctrl-0 = <&state_default>;
190
191 state_default: pinmux {
192 gphy-leds {
193 lantiq,groups = "gphy0 led0", "gphy0 led1",
194 "gphy1 led0", "gphy1 led1";
195 lantiq,function = "gphy";
196 lantiq,open-drain = <0>;
197 lantiq,pull = <2>;
198 lantiq,output = <1>;
199 };
200 mdio {
201 lantiq,groups = "mdio";
202 lantiq,function = "mdio";
203 };
204 pci-rst {
205 lantiq,pins = "io21";
206 lantiq,open-drain = <0>;
207 lantiq,pull = <0>;
208 lantiq,output = <1>;
209 };
210 };
211 };
212
213 &localbus {
214 nor@0 {
215 compatible = "lantiq,nor";
216 bank-width = <2>;
217 reg = <0 0x0 0x1000000>;
218
219 partitions {
220 compatible = "fixed-partitions";
221 #address-cells = <1>;
222 #size-cells = <1>;
223
224 boardconfig: partition@fe0000 {
225 label = "board_config";
226 reg = <0xfe0000 0x20000>;
227 read-only;
228 };
229 };
230 };
231 };
232
233 &pci0 {
234 status = "okay";
235 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
236
237 wifi@1814,3592 {
238 compatible = "pci1814,3592";
239 reg = <0x7000 0 0 0 0>;
240 ralink,mtd-eeprom = <&boardconfig 0x410>;
241 ralink,mtd-eeprom-swap;
242 mtd-mac-address = <&boardconfig 0x16>;
243 mtd-mac-address-increment = <1>;
244 };
245 };
246
247 &pcie0 {
248 status = "disabled";
249 };
250
251 &usb_phy0 {
252 status = "okay";
253 };
254
255 &usb0 {
256 status = "okay";
257 vbus-supply = <&usb_vbus>;
258 };
259
260 &vmmc {
261 status = "okay";
262 gpios = <&gpio 30 GPIO_ACTIVE_HIGH //fxs relay
263 &gpio 31 GPIO_ACTIVE_HIGH //still unknown
264 &gpio 3 GPIO_ACTIVE_HIGH>; //reset_slic?
265 };