3cc2e1d62e016c5952cee1a88782ed4c9a1c2971
[openwrt/openwrt.git] / target / linux / lantiq / dts / VGV7510KW22.dtsi
1 /include/ "vr9.dtsi"
2
3 / {
4 model = "VGV7510KW22 - o2 Box 6431";
5
6 chosen {
7 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
8
9 leds {
10 dsl = &dsl;
11 internet = &internet_green;
12 power = &power;
13 power2 = &power2;
14 wifi = &wifi;
15 };
16 };
17
18 memory@0 {
19 reg = <0x0 0x4000000>;
20 };
21
22 fpi@10000000 {
23 localbus@0 {
24 nor-boot@0 {
25 compatible = "lantiq,nor";
26 bank-width = <2>;
27 reg = <0 0x0 0x1000000>;
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 boardconfig: partition@fe0000 {
32 label = "board_config";
33 reg = <0xfe0000 0x20000>;
34 read-only;
35 };
36 };
37 };
38
39 gpio: pinmux@E100B10 {
40 pinctrl-names = "default";
41 pinctrl-0 = <&state_default>;
42
43 state_default: pinmux {
44 ip101a-rst {
45 lantiq,pins = "io46";
46 lantiq,output = <0>;
47 lantiq,pull = <1>;
48 };
49 gphy-leds {
50 lantiq,groups = "gphy0 led1",
51 "gphy1 led0", "gphy1 led1";
52 lantiq,function = "gphy";
53 lantiq,open-drain = <0>;
54 lantiq,pull = <0>;
55 lantiq,output = <1>;
56 };
57 stp {
58 lantiq,groups = "stp";
59 lantiq,function = "stp";
60 lantiq,pull = <2>;
61 lantiq,open-drain = <0>;
62 lantiq,output = <1>;
63 };
64 mdio {
65 lantiq,groups = "mdio";
66 lantiq,function = "mdio";
67 };
68 pci-rst {
69 lantiq,pins = "io21";
70 lantiq,open-drain = <0>;
71 lantiq,pull = <0>;
72 lantiq,output = <1>;
73 };
74 spi {
75 lantiq,groups = "spi";
76 lantiq,function = "spi";
77 };
78 };
79 };
80
81 eth@E108000 {
82 #address-cells = <1>;
83 #size-cells = <0>;
84 compatible = "lantiq,xrx200-net";
85 reg = < 0xE108000 0x3000 /* switch */
86 0xE10B100 0x70 /* mdio */
87 0xE10B1D8 0x30 /* mii */
88 0xE10B308 0x30 /* pmac */
89 >;
90 interrupt-parent = <&icu0>;
91 interrupts = <73 72>;
92
93 lan: interface@0 {
94 compatible = "lantiq,xrx200-pdi";
95 #address-cells = <1>;
96 #size-cells = <0>;
97 reg = <0>;
98 mtd-mac-address = <&boardconfig 0x16>;
99 lantiq,switch;
100
101 ethernet@2 {
102 compatible = "lantiq,xrx200-pdi-port";
103 reg = <2>;
104 phy-mode = "mii";
105 phy-handle = <&phy11>;
106 };
107 ethernet@3 {
108 compatible = "lantiq,xrx200-pdi-port";
109 reg = <3>;
110 phy-mode = "mii";
111 phy-handle = <&phy12>;
112 };
113 ethernet@4 {
114 compatible = "lantiq,xrx200-pdi-port";
115 reg = <4>;
116 phy-mode = "mii";
117 phy-handle = <&phy13>;
118 };
119 ethernet@5 {
120 compatible = "lantiq,xrx200-pdi-port";
121 reg = <5>;
122 phy-mode = "mii";
123 phy-handle = <&phy14>;
124 };
125 };
126
127 mdio@0 {
128 #address-cells = <1>;
129 #size-cells = <0>;
130 compatible = "lantiq,xrx200-mdio";
131
132 phy11: ethernet-phy@11 {
133 reg = <0x11>;
134 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
135 };
136 phy12: ethernet-phy@12 {
137 reg = <0x12>;
138 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
139 };
140 phy13: ethernet-phy@13 {
141 reg = <0x13>;
142 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
143 };
144 phy14: ethernet-phy@14 {
145 reg = <0x14>;
146 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
147 };
148 };
149 };
150
151 stp: stp@E100BB0 {
152 compatible = "lantiq,gpio-stp-xway";
153 reg = <0xE100BB0 0x40>;
154 #gpio-cells = <2>;
155 gpio-controller;
156
157 lantiq,shadow = <0xff>;
158 lantiq,groups = <0x1>;
159 lantiq,dsl = <0x0>;
160 lantiq,phy1 = <0x7>;
161 lantiq,phy2 = <0x7>; /* enable gphy0 led2 = LAN2 LED */
162 };
163
164 ifxhcd@E101000 {
165 status = "okay";
166 gpios = <&gpio 47 0>;
167 };
168
169 pci@E105400 {
170 status = "okay";
171 lantiq,bus-clock = <33333333>;
172 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
173 interrupt-map = <
174 0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
175 >;
176 gpio-reset = <&gpio 21 0>;
177 req-mask = <0x1>; /* GNT1 */
178 };
179
180 pcie@d900000 {
181 status = "disabled";
182 };
183 };
184
185 gphy-xrx200 {
186 compatible = "lantiq,phy-xrx200";
187 firmware1 = "lantiq/vr9_phy22f_a1x.bin"; /*VR9 1.1*/
188 firmware2 = "lantiq/vr9_phy22f_a2x.bin"; /*VR9 1.2*/
189 phys = [ 00 01 ];
190 };
191
192 ralink_eep {
193 compatible = "ralink,eeprom";
194 ralink,eeprom = "RT3062.eeprom";
195 };
196
197 gpio-keys-polled {
198 compatible = "gpio-keys-polled";
199 #address-cells = <1>;
200 #size-cells = <0>;
201 poll-interval = <100>;
202
203 reset {
204 label = "reset";
205 gpios = <&gpio 6 1>;
206 linux,code = <0x198>;
207 };
208
209 wps {
210 label = "wps";
211 gpios = <&gpio 9 1>;
212 linux,code = <0x211>;
213 };
214 };
215
216 gpio-leds {
217 compatible = "gpio-leds";
218
219 dsl: dsl {
220 label = "dsl";
221 gpios = <&gpio 2 1>;
222 };
223
224 internet_red {
225 label = "internet_red";
226 gpios = <&gpio 10 1>;
227 };
228
229 info_red {
230 label = "info_red";
231 gpios = <&gpio 12 1>;
232 };
233
234 power: power {
235 label = "power"; /* green */
236 gpios = <&gpio 14 1>;
237 };
238
239 info_green {
240 label = "info_green";
241 gpios = <&gpio 15 1>;
242 };
243
244 internet_green: internet_green {
245 label = "internet_green";
246 gpios = <&gpio 19 1>;
247 };
248
249 wifi: wifi {
250 label = "wifi";
251 gpios = <&gpio 20 1>;
252 };
253
254 power2: power2 {
255 label = "power2"; /* red */
256 gpios = <&gpio 28 1>;
257 };
258
259 phone_red {
260 label = "phone_red";
261 gpios = <&gpio 29 1>;
262 };
263 };
264 };