lantiq: VGV7519 - remove/merge redundant parts in dts
[openwrt/staging/mkresin.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 leds {
11 boot = &power_green;
12 failsafe = &power_red;
13 running = &power_green;
14
15 dsl = &broadband_green;
16 internet = &internet_green;
17 wifi = &wireless_green;
18 };
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 };
57 spi {
58 lantiq,groups = "spi_di", "spi_do", "spi_clk";
59 lantiq,function = "spi";
60 };
61 mdio {
62 lantiq,groups = "mdio";
63 lantiq,function = "mdio";
64 };
65 gphy-leds_out {
66 lantiq,pins = "io7", "io44";
67 lantiq,pull = <0>;
68 lantiq,output = <1>;
69 };
70 stp_out {
71 lantiq,pins = "io4", "io5", "io6";
72 lantiq,open-drain = <0>;
73 lantiq,output = <1>;
74 lantiq,pull = <0>;
75 };
76 pci-rst {
77 lantiq,pins = "io21";
78 lantiq,open-drain = <0>;
79 lantiq,pull = <0>;
80 lantiq,output = <1>;
81 };
82 gphy-leds {
83 lantiq,groups = "gphy0 led1", "gphy1 led0";
84 lantiq,function = "gphy";
85 lantiq,open-drain = <0>;
86 lantiq,pull = <0>;
87 lantiq,output = <1>;
88 };
89 };
90 };
91
92 stp: stp@E100BB0 {
93 compatible = "lantiq,gpio-stp-xway";
94 reg = <0xE100BB0 0x40>;
95 #gpio-cells = <2>;
96 gpio-controller;
97
98 lantiq,shadow = <0xffff>;
99 lantiq,groups = <0x3>;
100 lantiq,dsl = <0x0>;
101 lantiq,phy1 = <0x0>;
102 lantiq,phy2 = <0x0>;
103 /* lantiq,rising; */
104 };
105
106 ifxhcd@E101000 {
107 status = "okay";
108 gpios = <&gpio 32 0>;
109 lantiq,portmask = <0x3>;
110 };
111
112 pci@E105400 {
113 status = "okay";
114 lantiq,bus-clock = <33333333>;
115 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
116 interrupt-map = <
117 0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
118 >;
119 gpio-reset = <&gpio 21 0>;
120 req-mask = <0x1>; /* GNT1 */
121 };
122
123 pcie@d900000 {
124 status = "disabled";
125 };
126 };
127
128 gphy-xrx200 {
129 compatible = "lantiq,phy-xrx200";
130 firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /*VR9 1.1*/
131 firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /*VR9 1.2*/
132 phys = [ 00 01 ];
133 };
134
135 ralink_eep {
136 compatible = "ralink,eeprom";
137 ralink,eeprom = "RT2860.eeprom";
138 };
139
140 gpio-keys-polled {
141 compatible = "gpio-keys-polled";
142 #address-cells = <1>;
143 #size-cells = <0>;
144 poll-interval = <100>;
145 reset {
146 label = "reset";
147 gpios = <&gpio 9 1>;
148 linux,code = <0x198>;
149 };
150 eco {
151 label = "eco";
152 gpios = <&gpio 41 1>;
153 linux,code = <247>;
154 };
155 rfkill {
156 label = "rfkill";
157 gpios = <&gpio 45 1>;
158 linux,code = <0xf7>;
159 };
160 wps {
161 label = "wps";
162 gpios = <&gpio 10 1>;
163 linux,code = <0x211>;
164 };
165 };
166
167 gpio-leds {
168 compatible = "gpio-leds";
169
170 eco {
171 label = "vgv7519:blue:eco";
172 gpios = <&stp 2 1>;
173 };
174 wps_red {
175 label = "vgv7519:red:wps";
176 gpios = <&stp 3 1>;
177 };
178 wps_green {
179 label = "vgv7519:green:wps";
180 gpios = <&stp 4 1>;
181 };
182 upgrade {
183 label = "vgv7519:blue:upgrade";
184 gpios = <&stp 5 1>;
185 };
186 tv {
187 label = "vgv7519:green:tv";
188 gpios = <&stp 6 1>;
189 };
190 internet_green: internet_green {
191 label = "vgv7519:green:internet";
192 gpios = <&stp 7 1>;
193 };
194 internet_red {
195 label = "vgv7519:red:internet";
196 gpios = <&stp 8 1>;
197 };
198 broadband_red {
199 label = "vgv7519:red:broadband";
200 gpios = <&stp 9 1>;
201 };
202 broadband_green: broadband_green {
203 label = "vgv7519:green:broadband";
204 gpios = <&stp 10 1>;
205 };
206 voice {
207 label = "vgv7519:green:voice";
208 gpios = <&stp 11 1>;
209 };
210 wireless_red {
211 label = "vgv7519:red:wireless";
212 gpios = <&stp 12 1>;
213 };
214 wireless_green: wireless_green {
215 label = "vgv7519:green:wireless";
216 gpios = <&stp 13 1>;
217 };
218 power_green: power2 {
219 label = "vgv7519:green:power";
220 gpios = <&stp 14 1>;
221 default-state = "keep";
222 };
223 power_red: power {
224 label = "vgv7519:red:power";
225 gpios = <&stp 15 1>;
226 };
227 };
228 };
229
230 &eth0 {
231 lan: interface@0 {
232 compatible = "lantiq,xrx200-pdi";
233 #address-cells = <1>;
234 #size-cells = <0>;
235 reg = <0>;
236 mac-address = [ 00 11 22 33 44 55 ];
237
238 ethernet@0 {
239 compatible = "lantiq,xrx200-pdi-port";
240 reg = <0>;
241 phy-mode = "rgmii";
242 phy-handle = <&phy0>;
243 };
244 ethernet@1 {
245 compatible = "lantiq,xrx200-pdi-port";
246 reg = <1>;
247 phy-mode = "rgmii";
248 phy-handle = <&phy1>;
249 };
250 ethernet@2 {
251 compatible = "lantiq,xrx200-pdi-port";
252 reg = <2>;
253 phy-mode = "gmii";
254 phy-handle = <&phy11>;
255 };
256 ethernet@4 {
257 compatible = "lantiq,xrx200-pdi-port";
258 reg = <4>;
259 phy-mode = "gmii";
260 phy-handle = <&phy13>;
261 };
262 };
263
264 wan: interface@1 {
265 compatible = "lantiq,xrx200-pdi";
266 #address-cells = <1>;
267 #size-cells = <0>;
268 reg = <1>;
269 mac-address = [ 00 11 22 33 44 56 ];
270 lantiq,wan;
271
272 ethernet@5 {
273 compatible = "lantiq,xrx200-pdi-port";
274 reg = <5>;
275 phy-mode = "rgmii";
276 phy-handle = <&phy5>;
277 };
278 };
279
280 mdio@0 {
281 #address-cells = <1>;
282 #size-cells = <0>;
283 compatible = "lantiq,xrx200-mdio";
284 phy0: ethernet-phy@0 {
285 reg = <0x0>;
286 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
287 };
288 phy1: ethernet-phy@1 {
289 reg = <0x1>;
290 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
291 };
292 phy5: ethernet-phy@5 {
293 reg = <0x5>;
294 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
295 };
296 phy11: ethernet-phy@11 {
297 reg = <0x11>;
298 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
299 };
300 phy13: ethernet-phy@13 {
301 reg = <0x13>;
302 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
303 };
304 };
305 };