lantiq: enable VMMC for VGV7510KW22
[oweals/openwrt.git] / target / linux / lantiq / dts / VGV7510KW22.dtsi
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6         model = "VGV7510KW22 - o2 Box 6431";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit mem=62M vpe1_load_addr=0x83e00000 vpe1_mem=2M maxvpes=1 maxtcs=1";
10         };
11
12         aliases {
13                 led-boot = &power_green;
14                 led-failsafe = &power_red;
15                 led-running = &power_green;
16
17                 led-dsl = &dsl;
18                 led-internet = &internet_green;
19                 led-wifi = &wifi;
20         };
21
22         sram@1F000000 {
23                 vmmc@107000 {
24                         status = "okay";
25                         gpios = <&gpio 30 GPIO_ACTIVE_HIGH  //fxs relay
26                                          &gpio 31 GPIO_ACTIVE_HIGH  //still unknown
27                                          &gpio 3  GPIO_ACTIVE_HIGH>; //reset_slic?
28                 };
29         };
30
31         memory@0 {
32                 reg = <0x0 0x4000000>;
33         };
34
35         fpi@10000000 {
36                 localbus@0 {
37                         nor-boot@0 {
38                                 compatible = "lantiq,nor";
39                                 bank-width = <2>;
40                                 reg = <0 0x0 0x1000000>;
41                                 #address-cells = <1>;
42                                 #size-cells = <1>;
43
44                                 partitions {
45                                         compatible = "fixed-partitions";
46                                         #address-cells = <1>;
47                                         #size-cells = <1>;
48
49                                         boardconfig: partition@fe0000 {
50                                                 label = "board_config";
51                                                 reg = <0xfe0000 0x20000>;
52                                                 read-only;
53                                         };
54                                 };
55                         };
56                 };
57
58                 gpio: pinmux@E100B10 {
59                         pinctrl-names = "default";
60                         pinctrl-0 = <&state_default>;
61
62                         state_default: pinmux {
63                                 gphy-leds {
64                                         lantiq,groups = "gphy0 led0", "gphy0 led1",
65                                                         "gphy1 led0", "gphy1 led1";
66                                         lantiq,function = "gphy";
67                                         lantiq,open-drain = <0>;
68                                         lantiq,pull = <2>;
69                                         lantiq,output = <1>;
70                                 };
71                                 mdio {
72                                         lantiq,groups = "mdio";
73                                         lantiq,function = "mdio";
74                                 };
75                                 pci-rst {
76                                         lantiq,pins = "io21";
77                                         lantiq,open-drain = <0>;
78                                         lantiq,pull = <0>;
79                                         lantiq,output = <1>;
80                                 };
81                         };
82                 };
83
84                 ifxhcd@E101000 {
85                         status = "okay";
86                         gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
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         gpio-keys-polled {
102                 compatible = "gpio-keys-polled";
103                 #address-cells = <1>;
104                 #size-cells = <0>;
105                 poll-interval = <100>;
106
107                 reset {
108                         label = "reset";
109                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
110                         linux,code = <KEY_RESTART>;
111                 };
112
113                 wps {
114                         label = "wps";
115                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
116                         linux,code = <KEY_WPS_BUTTON>;
117                 };
118         };
119
120         gpio-leds {
121                 compatible = "gpio-leds";
122
123                 dsl: dsl {
124                         label = "vgv7510kw22:green:dsl";
125                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
126                 };
127
128                 internet_red {
129                         label = "vgv7510kw22:red:internet";
130                         gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
131                 };
132
133                 info_red {
134                         label = "vgv7510kw22:red:info";
135                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
136                 };
137
138                 power_green: power {
139                         label = "vgv7510kw22:green:power";
140                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
141                         default-state = "keep";
142                 };
143
144                 info_green {
145                         label = "vgv7510kw22:green:info";
146                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
147                 };
148
149                 internet_green: internet_green {
150                         label = "vgv7510kw22:green:internet";
151                         gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
152                 };
153
154                 wifi: wifi {
155                         label = "vgv7510kw22:green:wlan";
156                         gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
157                 };
158
159                 power_red: power2 {
160                         label = "vgv7510kw22:red:power";
161                         gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
162                 };
163
164                 phone {
165                         label = "vgv7510kw22:green:telefon";
166                         gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
167                 };
168         };
169 };
170
171 &pci0 {
172         status = "okay";
173         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
174
175         wifi@1814,3592 {
176                 compatible = "pci1814,3592";
177                 reg = <0x7000 0 0 0 0>;
178                 ralink,mtd-eeprom = <&boardconfig 0x410>;
179                 ralink,mtd-eeprom-swap;
180                 mtd-mac-address = <&boardconfig 0x16>;
181                 mtd-mac-address-increment = <1>;
182         };
183 };
184
185 &eth0 {
186         lan: interface@0 {
187                 compatible = "lantiq,xrx200-pdi";
188                 #address-cells = <1>;
189                 #size-cells = <0>;
190                 reg = <0>;
191                 mtd-mac-address = <&boardconfig 0x16>;
192                 lantiq,switch;
193
194                 ethernet@2 {
195                         compatible = "lantiq,xrx200-pdi-port";
196                         reg = <2>;
197                         phy-mode = "mii";
198                         phy-handle = <&phy11>;
199                 };
200                 ethernet@3 {
201                         compatible = "lantiq,xrx200-pdi-port";
202                         reg = <3>;
203                         phy-mode = "mii";
204                         phy-handle = <&phy12>;
205                 };
206                 ethernet@4 {
207                         compatible = "lantiq,xrx200-pdi-port";
208                         reg = <4>;
209                         phy-mode = "mii";
210                         phy-handle = <&phy13>;
211                 };
212                 ethernet@5 {
213                         compatible = "lantiq,xrx200-pdi-port";
214                         reg = <5>;
215                         phy-mode = "mii";
216                         phy-handle = <&phy14>;
217                 };
218         };
219
220         wan: interface@1 {
221                 compatible = "lantiq,xrx200-pdi";
222                 #address-cells = <1>;
223                 #size-cells = <0>;
224                 reg = <1>;
225                 mtd-mac-address = <&boardconfig 0x16>;
226                 mtd-mac-address-increment = <3>;
227                 lantiq,wan;
228
229                 ethernet@0 {
230                         compatible = "lantiq,xrx200-pdi-port";
231                         reg = <0>;
232                         phy-mode = "mii";
233                         phy-handle = <&phy1>;
234                 };
235         };
236
237         mdio@0 {
238                 #address-cells = <1>;
239                 #size-cells = <0>;
240                 compatible = "lantiq,xrx200-mdio";
241
242                 phy1: ethernet-phy@1 {
243                         reg = <0x1>;
244                         compatible = "ethernet-phy-id0243.0c54", "ethernet-phy-ieee802.3-c22";
245                 };
246
247                 phy11: ethernet-phy@11 {
248                         reg = <0x11>;
249                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
250                 };
251                 phy12: ethernet-phy@12 {
252                         reg = <0x12>;
253                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
254                 };
255                 phy13: ethernet-phy@13 {
256                         reg = <0x13>;
257                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
258                 };
259                 phy14: ethernet-phy@14 {
260                         reg = <0x14>;
261                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
262                 };
263         };
264 };