lantiq: VGV7510KW22 - enable the IP101A phy
[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 gphy-leds {
53 lantiq,groups = "gphy0 led0", "gphy0 led1",
54 "gphy1 led0", "gphy1 led1";
55 lantiq,function = "gphy";
56 lantiq,open-drain = <0>;
57 lantiq,pull = <2>;
58 lantiq,output = <1>;
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 };
71 };
72
73 ifxhcd@E101000 {
74 status = "okay";
75 gpios = <&gpio 47 0>;
76 };
77
78 pci@E105400 {
79 status = "okay";
80 lantiq,bus-clock = <33333333>;
81 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
82 interrupt-map = <
83 0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
84 >;
85 gpio-reset = <&gpio 21 0>;
86 req-mask = <0x1>; /* GNT1 */
87 };
88
89 pcie@d900000 {
90 status = "disabled";
91 };
92 };
93
94 gphy-xrx200 {
95 compatible = "lantiq,phy-xrx200";
96 firmware1 = "lantiq/vr9_phy22f_a1x.bin"; /*VR9 1.1*/
97 firmware2 = "lantiq/vr9_phy22f_a2x.bin"; /*VR9 1.2*/
98 phys = [ 00 01 ];
99 };
100
101 ralink_eep {
102 compatible = "ralink,eeprom";
103 ralink,eeprom = "RT3062.eeprom";
104 };
105
106 gpio-keys-polled {
107 compatible = "gpio-keys-polled";
108 #address-cells = <1>;
109 #size-cells = <0>;
110 poll-interval = <100>;
111
112 reset {
113 label = "reset";
114 gpios = <&gpio 6 1>;
115 linux,code = <0x198>;
116 };
117
118 wps {
119 label = "wps";
120 gpios = <&gpio 9 1>;
121 linux,code = <0x211>;
122 };
123 };
124
125 gpio-leds {
126 compatible = "gpio-leds";
127
128 dsl: dsl {
129 label = "vgv7510kw22:green:dsl";
130 gpios = <&gpio 2 1>;
131 };
132
133 internet_red {
134 label = "vgv7510kw22:red:internet";
135 gpios = <&gpio 10 1>;
136 };
137
138 info_red {
139 label = "vgv7510kw22:red:info";
140 gpios = <&gpio 12 1>;
141 };
142
143 power_green: power {
144 label = "vgv7510kw22:green:power";
145 gpios = <&gpio 14 1>;
146 default-state = "keep";
147 };
148
149 info_green {
150 label = "vgv7510kw22:green:info";
151 gpios = <&gpio 15 1>;
152 };
153
154 internet_green: internet_green {
155 label = "vgv7510kw22:green:internet";
156 gpios = <&gpio 19 1>;
157 };
158
159 wifi: wifi {
160 label = "vgv7510kw22:green:wlan";
161 gpios = <&gpio 20 1>;
162 };
163
164 power_red: power2 {
165 label = "vgv7510kw22:red:power";
166 gpios = <&gpio 28 1>;
167 };
168
169 phone {
170 label = "vgv7510kw22:green:telefon";
171 gpios = <&gpio 29 1>;
172 };
173 };
174 };
175
176 &eth0 {
177 lan: interface@0 {
178 compatible = "lantiq,xrx200-pdi";
179 #address-cells = <1>;
180 #size-cells = <0>;
181 reg = <0>;
182 mtd-mac-address = <&boardconfig 0x16>;
183 lantiq,switch;
184
185 ethernet@2 {
186 compatible = "lantiq,xrx200-pdi-port";
187 reg = <2>;
188 phy-mode = "mii";
189 phy-handle = <&phy11>;
190 };
191 ethernet@3 {
192 compatible = "lantiq,xrx200-pdi-port";
193 reg = <3>;
194 phy-mode = "mii";
195 phy-handle = <&phy12>;
196 };
197 ethernet@4 {
198 compatible = "lantiq,xrx200-pdi-port";
199 reg = <4>;
200 phy-mode = "mii";
201 phy-handle = <&phy13>;
202 };
203 ethernet@5 {
204 compatible = "lantiq,xrx200-pdi-port";
205 reg = <5>;
206 phy-mode = "mii";
207 phy-handle = <&phy14>;
208 };
209 };
210
211 wan: interface@1 {
212 compatible = "lantiq,xrx200-pdi";
213 #address-cells = <1>;
214 #size-cells = <0>;
215 reg = <1>;
216 mtd-mac-address = <&boardconfig 0x16>;
217 mtd-mac-address-increment = <2>;
218 lantiq,wan;
219
220 ethernet@0 {
221 compatible = "lantiq,xrx200-pdi-port";
222 reg = <0>;
223 phy-mode = "mii";
224 phy-handle = <&phy1>;
225 };
226 };
227
228 mdio@0 {
229 #address-cells = <1>;
230 #size-cells = <0>;
231 compatible = "lantiq,xrx200-mdio";
232
233 phy1: ethernet-phy@1 {
234 reg = <0x1>;
235 compatible = "ethernet-phy-id0243.0c54", "ethernet-phy-ieee802.3-c22";
236 };
237
238 phy11: ethernet-phy@11 {
239 reg = <0x11>;
240 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
241 };
242 phy12: ethernet-phy@12 {
243 reg = <0x12>;
244 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
245 };
246 phy13: ethernet-phy@13 {
247 reg = <0x13>;
248 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
249 };
250 phy14: ethernet-phy@14 {
251 reg = <0x14>;
252 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
253 };
254 };
255 };