ad4233a43d050ff95b9a894e1efe5e9dc705557b
[oweals/openwrt.git] / target / linux / lantiq / dts / VGV7519.dtsi
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6
7         model = "VGV7519 - KPN Experiabox V8";
8
9         chosen {
10                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
11         };
12
13         aliases {
14                 led-boot = &power_green;
15                 led-failsafe = &power_red;
16                 led-running = &power_green;
17
18                 led-dsl = &broadband_green;
19                 led-internet = &internet_green;
20                 led-wifi = &wireless_green;
21         };
22
23         memory@0 {
24                 reg = <0x0 0x4000000>;
25         };
26
27         fpi@10000000 {
28                 localbus@0 {
29                         nor-boot@0 {
30                                 compatible = "lantiq,nor";
31                                 bank-width = <2>;
32                                 reg = <0 0x0 0x800000>, <1 0x800000 0x800000>;
33                                 #address-cells = <1>;
34                                 #size-cells = <1>;
35
36                                 partitions {
37                                         compatible = "fixed-partitions";
38                                         #address-cells = <1>;
39                                         #size-cells = <1>;
40
41                                         boardconfig: partition@40000 {
42                                                 label = "board_config";
43                                                 reg = <0x40000 0x10000>;
44                                                 read-only;
45                                         };
46                                 };
47                         };
48                 };
49
50                 gpio: pinmux@E100B10 {
51                         pinctrl-names = "default";
52                         pinctrl-0 = <&state_default>;
53
54                         state_default: pinmux {
55                                 stp {
56                                         lantiq,groups = "stp";
57                                         lantiq,function = "stp";
58                                         lantiq,open-drain = <0>;
59                                         lantiq,output = <1>;
60                                         lantiq,pull = <0>;
61                                 };
62                                 mdio {
63                                         lantiq,groups = "mdio";
64                                         lantiq,function = "mdio";
65                                 };
66                                 pci-rst {
67                                         lantiq,pins = "io21";
68                                         lantiq,open-drain = <0>;
69                                         lantiq,pull = <0>;
70                                         lantiq,output = <1>;
71                                 };
72                                 gphy-leds {
73                                         lantiq,groups = "gphy0 led1", "gphy1 led0";
74                                         lantiq,function = "gphy";
75                                         lantiq,open-drain = <0>;
76                                         lantiq,pull = <0>;
77                                         lantiq,output = <1>;
78                                 };
79                         };
80                 };
81
82                 stp: stp@E100BB0 {
83                         compatible = "lantiq,gpio-stp-xway";
84                         reg = <0xE100BB0 0x40>;
85                         #gpio-cells = <2>;
86                         gpio-controller;
87
88                         lantiq,shadow = <0xffff>;
89                         lantiq,groups = <0x3>;
90                         lantiq,dsl = <0x0>;
91                         lantiq,phy1 = <0x0>;
92                         lantiq,phy2 = <0x0>;
93                         /* lantiq,rising; */
94                 };
95
96                 ifxhcd@E101000 {
97                         status = "okay";
98                         gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
99                         lantiq,portmask = <0x3>;
100                 };
101
102                 ifxhcd@E106000 {
103                         status = "okay";
104                         gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
105                 };
106
107                 pcie@d900000 {
108                         status = "disabled";
109                 };
110         };
111
112         gphy-xrx200 {
113                 compatible = "lantiq,phy-xrx200";
114                 firmware1 = "lantiq/vr9_phy11g_a1x.bin";        /*VR9 1.1*/
115                 firmware2 = "lantiq/vr9_phy11g_a2x.bin";        /*VR9 1.2*/
116                 phys = [ 00 01 ];
117         };
118
119         gpio-keys-polled {
120                 compatible = "gpio-keys-polled";
121                 #address-cells = <1>;
122                 #size-cells = <0>;
123                 poll-interval = <100>;
124                 reset {
125                         label = "reset";
126                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
127                         linux,code = <KEY_RESTART>;
128                 };
129                 eco {
130                         label = "eco";
131                         gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
132                         linux,code = <KEY_RFKILL>;
133                 };
134                 rfkill {
135                         label = "rfkill";
136                         gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
137                         linux,code = <KEY_RFKILL>;
138                 };
139                 wps {
140                         label = "wps";
141                         gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
142                         linux,code = <KEY_WPS_BUTTON>;
143                 };
144         };
145
146         gpio-leds {
147                 compatible = "gpio-leds";
148
149                 eco {
150                         label = "vgv7519:blue:eco";
151                         gpios = <&stp 2 GPIO_ACTIVE_LOW>;
152                 };
153                 wps_red {
154                         label = "vgv7519:red:wps";
155                         gpios = <&stp 3 GPIO_ACTIVE_LOW>;
156                 };
157                 wps_green {
158                         label = "vgv7519:green:wps";
159                         gpios = <&stp 4 GPIO_ACTIVE_LOW>;
160                 };
161                 upgrade {
162                         label = "vgv7519:blue:upgrade";
163                         gpios = <&stp 5 GPIO_ACTIVE_LOW>;
164                 };
165                 tv {
166                         label = "vgv7519:green:tv";
167                         gpios = <&stp 6 GPIO_ACTIVE_LOW>;
168                 };
169                 internet_green: internet_green {
170                         label = "vgv7519:green:internet";
171                         gpios = <&stp 7 GPIO_ACTIVE_LOW>;
172                 };
173                 internet_red {
174                         label = "vgv7519:red:internet";
175                         gpios = <&stp 8 GPIO_ACTIVE_LOW>;
176                 };
177                 broadband_red {
178                         label = "vgv7519:red:broadband";
179                         gpios = <&stp 9 GPIO_ACTIVE_LOW>;
180                 };
181                 broadband_green: broadband_green {
182                         label = "vgv7519:green:broadband";
183                         gpios = <&stp 10 GPIO_ACTIVE_LOW>;
184                 };
185                 voice {
186                         label = "vgv7519:green:voice";
187                         gpios = <&stp 11 GPIO_ACTIVE_LOW>;
188                 };
189                 wireless_red {
190                         label = "vgv7519:red:wireless";
191                         gpios = <&stp 12 GPIO_ACTIVE_LOW>;
192                 };
193                 wireless_green: wireless_green {
194                         label = "vgv7519:green:wireless";
195                         gpios = <&stp 13 GPIO_ACTIVE_LOW>;
196                 };
197                 power_green: power2 {
198                         label = "vgv7519:green:power";
199                         gpios = <&stp 14 GPIO_ACTIVE_LOW>;
200                         default-state = "keep";
201                 };
202                 power_red: power {
203                         label = "vgv7519:red:power";
204                         gpios = <&stp 15 GPIO_ACTIVE_LOW>;
205                 };
206         };
207 };
208
209 &pci0 {
210         status = "okay";
211         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
212
213         wifi@1814,3091 {
214                 compatible = "pci1814,3091";
215                 reg = <0x7000 0 0 0 0>;
216                 ralink,mtd-eeprom = <&boardconfig 0x410>;
217                 ralink,mtd-eeprom-swap;
218                 mtd-mac-address = <&boardconfig 0x16>;
219                 mtd-mac-address-increment = <1>;
220         };
221 };
222
223 &eth0 {
224         lan: interface@0 {
225                 compatible = "lantiq,xrx200-pdi";
226                 #address-cells = <1>;
227                 #size-cells = <0>;
228                 reg = <0>;
229                 mtd-mac-address = <&boardconfig 0x16>;
230                 mtd-mac-address-increment = <1>;
231                 lantiq,switch;
232
233                 ethernet@0 {
234                         compatible = "lantiq,xrx200-pdi-port";
235                         reg = <0>;
236                         phy-mode = "rgmii";
237                         phy-handle = <&phy0>;
238                 };
239                 ethernet@1 {
240                         compatible = "lantiq,xrx200-pdi-port";
241                         reg = <1>;
242                         phy-mode = "rgmii";
243                         phy-handle = <&phy1>;
244                 };
245                 ethernet@2 {
246                         compatible = "lantiq,xrx200-pdi-port";
247                         reg = <2>;
248                         phy-mode = "gmii";
249                         phy-handle = <&phy11>;
250                 };
251                 ethernet@4 {
252                         compatible = "lantiq,xrx200-pdi-port";
253                         reg = <4>;
254                         phy-mode = "gmii";
255                         phy-handle = <&phy13>;
256                 };
257         };
258
259         wan: interface@1 {
260                 compatible = "lantiq,xrx200-pdi";
261                 #address-cells = <1>;
262                 #size-cells = <0>;
263                 reg = <1>;
264                 mtd-mac-address = <&boardconfig 0x16>;
265                 lantiq,wan;
266
267                 ethernet@5 {
268                         compatible = "lantiq,xrx200-pdi-port";
269                         reg = <5>;
270                         phy-mode = "rgmii";
271                         phy-handle = <&phy5>;
272                 };
273         };
274
275         mdio@0 {
276                 #address-cells = <1>;
277                 #size-cells = <0>;
278                 compatible = "lantiq,xrx200-mdio";
279                 phy0: ethernet-phy@0 {
280                         reg = <0x0>;
281                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
282                 };
283                 phy1: ethernet-phy@1 {
284                         reg = <0x1>;
285                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
286                 };
287                 phy5: ethernet-phy@5 {
288                         reg = <0x5>;
289                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
290                 };
291                 phy11: ethernet-phy@11 {
292                         reg = <0x11>;
293                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
294                 };
295                 phy13: ethernet-phy@13 {
296                         reg = <0x13>;
297                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
298                 };
299         };
300 };