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