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