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