31b429ba0228bf2bc932fb5be9852367797781b9
[openwrt/staging/chunkeey.git] / target / linux / lantiq / dts / VGV7519.dtsi
1 #include "vr9.dtsi"
2
3 / {
4
5 model = "VGV7519 - KPN Experiabox V8";
6
7 chosen {
8 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
9 };
10
11 aliases {
12 led-boot = &power_green;
13 led-failsafe = &power_red;
14 led-running = &power_green;
15
16 led-dsl = &broadband_green;
17 led-internet = &internet_green;
18 led-wifi = &wireless_green;
19 };
20
21 memory@0 {
22 reg = <0x0 0x4000000>;
23 };
24
25 fpi@10000000 {
26 localbus@0 {
27 nor-boot@0 {
28 compatible = "lantiq,nor";
29 bank-width = <2>;
30 reg = <0 0x0 0x800000>, <1 0x800000 0x800000>;
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partitions {
35 compatible = "fixed-partitions";
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 boardconfig: partition@40000 {
40 label = "board_config";
41 reg = <0x40000 0x10000>;
42 read-only;
43 };
44 };
45 };
46 };
47
48 gpio: pinmux@E100B10 {
49 pinctrl-names = "default";
50 pinctrl-0 = <&state_default>;
51
52 state_default: pinmux {
53 stp {
54 lantiq,groups = "stp";
55 lantiq,function = "stp";
56 lantiq,open-drain = <0>;
57 lantiq,output = <1>;
58 lantiq,pull = <0>;
59 };
60 mdio {
61 lantiq,groups = "mdio";
62 lantiq,function = "mdio";
63 };
64 pci-rst {
65 lantiq,pins = "io21";
66 lantiq,open-drain = <0>;
67 lantiq,pull = <0>;
68 lantiq,output = <1>;
69 };
70 gphy-leds {
71 lantiq,groups = "gphy0 led1", "gphy1 led0";
72 lantiq,function = "gphy";
73 lantiq,open-drain = <0>;
74 lantiq,pull = <0>;
75 lantiq,output = <1>;
76 };
77 };
78 };
79
80 stp: stp@E100BB0 {
81 compatible = "lantiq,gpio-stp-xway";
82 reg = <0xE100BB0 0x40>;
83 #gpio-cells = <2>;
84 gpio-controller;
85
86 lantiq,shadow = <0xffff>;
87 lantiq,groups = <0x3>;
88 lantiq,dsl = <0x0>;
89 lantiq,phy1 = <0x0>;
90 lantiq,phy2 = <0x0>;
91 /* lantiq,rising; */
92 };
93
94 ifxhcd@E101000 {
95 status = "okay";
96 gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
97 lantiq,portmask = <0x3>;
98 };
99
100 ifxhcd@E106000 {
101 status = "okay";
102 gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
103 };
104
105 pci@E105400 {
106 status = "okay";
107 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
108 };
109
110 pcie@d900000 {
111 status = "disabled";
112 };
113 };
114
115 gphy-xrx200 {
116 compatible = "lantiq,phy-xrx200";
117 firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /*VR9 1.1*/
118 firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /*VR9 1.2*/
119 phys = [ 00 01 ];
120 };
121
122 ralink_eep {
123 compatible = "ralink,eeprom";
124 ralink,eeprom = "RT2860.eeprom";
125 };
126
127 gpio-keys-polled {
128 compatible = "gpio-keys-polled";
129 #address-cells = <1>;
130 #size-cells = <0>;
131 poll-interval = <100>;
132 reset {
133 label = "reset";
134 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
135 linux,code = <KEY_RESTART>;
136 };
137 eco {
138 label = "eco";
139 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
140 linux,code = <KEY_RFKILL>;
141 };
142 rfkill {
143 label = "rfkill";
144 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
145 linux,code = <KEY_RFKILL>;
146 };
147 wps {
148 label = "wps";
149 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
150 linux,code = <KEY_WPS_BUTTON>;
151 };
152 };
153
154 gpio-leds {
155 compatible = "gpio-leds";
156
157 eco {
158 label = "vgv7519:blue:eco";
159 gpios = <&stp 2 GPIO_ACTIVE_LOW>;
160 };
161 wps_red {
162 label = "vgv7519:red:wps";
163 gpios = <&stp 3 GPIO_ACTIVE_LOW>;
164 };
165 wps_green {
166 label = "vgv7519:green:wps";
167 gpios = <&stp 4 GPIO_ACTIVE_LOW>;
168 };
169 upgrade {
170 label = "vgv7519:blue:upgrade";
171 gpios = <&stp 5 GPIO_ACTIVE_LOW>;
172 };
173 tv {
174 label = "vgv7519:green:tv";
175 gpios = <&stp 6 GPIO_ACTIVE_LOW>;
176 };
177 internet_green: internet_green {
178 label = "vgv7519:green:internet";
179 gpios = <&stp 7 GPIO_ACTIVE_LOW>;
180 };
181 internet_red {
182 label = "vgv7519:red:internet";
183 gpios = <&stp 8 GPIO_ACTIVE_LOW>;
184 };
185 broadband_red {
186 label = "vgv7519:red:broadband";
187 gpios = <&stp 9 GPIO_ACTIVE_LOW>;
188 };
189 broadband_green: broadband_green {
190 label = "vgv7519:green:broadband";
191 gpios = <&stp 10 GPIO_ACTIVE_LOW>;
192 };
193 voice {
194 label = "vgv7519:green:voice";
195 gpios = <&stp 11 GPIO_ACTIVE_LOW>;
196 };
197 wireless_red {
198 label = "vgv7519:red:wireless";
199 gpios = <&stp 12 GPIO_ACTIVE_LOW>;
200 };
201 wireless_green: wireless_green {
202 label = "vgv7519:green:wireless";
203 gpios = <&stp 13 GPIO_ACTIVE_LOW>;
204 };
205 power_green: power2 {
206 label = "vgv7519:green:power";
207 gpios = <&stp 14 GPIO_ACTIVE_LOW>;
208 default-state = "keep";
209 };
210 power_red: power {
211 label = "vgv7519:red:power";
212 gpios = <&stp 15 GPIO_ACTIVE_LOW>;
213 };
214 };
215 };
216
217 &eth0 {
218 lan: interface@0 {
219 compatible = "lantiq,xrx200-pdi";
220 #address-cells = <1>;
221 #size-cells = <0>;
222 reg = <0>;
223 mtd-mac-address = <&boardconfig 0x16>;
224 lantiq,switch;
225
226 ethernet@0 {
227 compatible = "lantiq,xrx200-pdi-port";
228 reg = <0>;
229 phy-mode = "rgmii";
230 phy-handle = <&phy0>;
231 };
232 ethernet@1 {
233 compatible = "lantiq,xrx200-pdi-port";
234 reg = <1>;
235 phy-mode = "rgmii";
236 phy-handle = <&phy1>;
237 };
238 ethernet@2 {
239 compatible = "lantiq,xrx200-pdi-port";
240 reg = <2>;
241 phy-mode = "gmii";
242 phy-handle = <&phy11>;
243 };
244 ethernet@4 {
245 compatible = "lantiq,xrx200-pdi-port";
246 reg = <4>;
247 phy-mode = "gmii";
248 phy-handle = <&phy13>;
249 };
250 };
251
252 wan: interface@1 {
253 compatible = "lantiq,xrx200-pdi";
254 #address-cells = <1>;
255 #size-cells = <0>;
256 reg = <1>;
257 mtd-mac-address = <&boardconfig 0x16>;
258 mtd-mac-address-increment = <2>;
259 lantiq,wan;
260
261 ethernet@5 {
262 compatible = "lantiq,xrx200-pdi-port";
263 reg = <5>;
264 phy-mode = "rgmii";
265 phy-handle = <&phy5>;
266 };
267 };
268
269 mdio@0 {
270 #address-cells = <1>;
271 #size-cells = <0>;
272 compatible = "lantiq,xrx200-mdio";
273 phy0: ethernet-phy@0 {
274 reg = <0x0>;
275 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
276 };
277 phy1: ethernet-phy@1 {
278 reg = <0x1>;
279 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
280 };
281 phy5: ethernet-phy@5 {
282 reg = <0x5>;
283 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
284 };
285 phy11: ethernet-phy@11 {
286 reg = <0x11>;
287 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
288 };
289 phy13: ethernet-phy@13 {
290 reg = <0x13>;
291 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
292 };
293 };
294 };