3cdc54292f3048f9f7f027aac6d6b3649c6d9223
[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@0 {
153 #address-cells = <1>;
154 #size-cells = <0>;
155 compatible = "lantiq,xrx200-mdio";
156 reg = <0>;
157
158 phy1: ethernet-phy@1 {
159 reg = <0x1>;
160 compatible = "ethernet-phy-ieee802.3-c22";
161 };
162
163 phy11: ethernet-phy@11 {
164 reg = <0x11>;
165 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
166 };
167 phy12: ethernet-phy@12 {
168 reg = <0x12>;
169 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
170 };
171 phy13: ethernet-phy@13 {
172 reg = <0x13>;
173 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
174 };
175 phy14: ethernet-phy@14 {
176 reg = <0x14>;
177 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
178 };
179 };
180 };
181
182 &gphy0 {
183 lantiq,gphy-mode = <GPHY_MODE_FE>;
184 };
185
186 &gphy1 {
187 lantiq,gphy-mode = <GPHY_MODE_FE>;
188 };
189
190 &gpio {
191 pinctrl-names = "default";
192 pinctrl-0 = <&state_default>;
193
194 state_default: pinmux {
195 gphy-leds {
196 lantiq,groups = "gphy0 led0", "gphy0 led1",
197 "gphy1 led0", "gphy1 led1";
198 lantiq,function = "gphy";
199 lantiq,open-drain = <0>;
200 lantiq,pull = <2>;
201 lantiq,output = <1>;
202 };
203 mdio {
204 lantiq,groups = "mdio";
205 lantiq,function = "mdio";
206 };
207 pci-rst {
208 lantiq,pins = "io21";
209 lantiq,open-drain = <0>;
210 lantiq,pull = <0>;
211 lantiq,output = <1>;
212 };
213 };
214 };
215
216 &localbus {
217 nor@0 {
218 compatible = "lantiq,nor";
219 bank-width = <2>;
220 reg = <0 0x0 0x1000000>;
221 #address-cells = <1>;
222 #size-cells = <1>;
223
224 partitions {
225 compatible = "fixed-partitions";
226 #address-cells = <1>;
227 #size-cells = <1>;
228
229 boardconfig: partition@fe0000 {
230 label = "board_config";
231 reg = <0xfe0000 0x20000>;
232 read-only;
233 };
234 };
235 };
236 };
237
238 &pci0 {
239 status = "okay";
240 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
241
242 wifi@1814,3592 {
243 compatible = "pci1814,3592";
244 reg = <0x7000 0 0 0 0>;
245 ralink,mtd-eeprom = <&boardconfig 0x410>;
246 ralink,mtd-eeprom-swap;
247 mtd-mac-address = <&boardconfig 0x16>;
248 mtd-mac-address-increment = <1>;
249 };
250 };
251
252 &pcie0 {
253 status = "disabled";
254 };
255
256 &usb_phy0 {
257 status = "okay";
258 };
259
260 &usb0 {
261 status = "okay";
262 vbus-supply = <&usb_vbus>;
263 };
264
265 &vmmc {
266 status = "okay";
267 gpios = <&gpio 30 GPIO_ACTIVE_HIGH //fxs relay
268 &gpio 31 GPIO_ACTIVE_HIGH //still unknown
269 &gpio 3 GPIO_ACTIVE_HIGH>; //reset_slic?
270 };