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