68aae2b246309efa29fa83b7e59e114e17a5dfe4
[librecmc/librecmc.git] / target / linux / lantiq / dts / ARV4510PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 / {
6         model = "ARV4510PW - Wippies, Elisa";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10         };
11
12         aliases {
13                 led-boot = &power;
14                 led-failsafe = &power2;
15                 led-running = &power;
16
17                 led-dsl = &adsl;
18                 led-internet = &internet;
19                 led-usb = &usb;
20                 led-usb2 = &usb2;
21                 led-wifi = &wifi;
22         };
23
24         memory@0 {
25                 reg = <0x0 0x2000000>;
26         };
27
28         sram@1F000000 {
29                 vmmc@107000 {
30                         status = "okay";
31                 };
32         };
33
34         fpi@10000000 {
35                 localbus@0 {
36                         nor-boot@0 {
37                                 compatible = "lantiq,nor";
38                                 bank-width = <2>;
39                                 reg = <0 0x0 0x1000000>;
40                                 #address-cells = <1>;
41                                 #size-cells = <1>;
42
43                                 lantiq,noxip;
44
45                                 partitions {
46                                         compatible = "fixed-partitions";
47                                         #address-cells = <1>;
48                                         #size-cells = <1>;
49
50                                         partition@0 {
51                                                 label = "uboot";
52                                                 reg = <0x00000 0x40000>;
53                                                 read-only;
54                                         };
55
56                                         partition@40000 {
57                                                 label = "uboot_env";
58                                                 reg = <0x40000 0x20000>;
59                                                 read-only;
60                                         };
61
62                                         partition@60000 {
63                                                 label = "firmware";
64                                                 reg = <0x60000 0xfa0000>;
65                                         };
66                                 };
67                         };
68                 };
69                 gpio: pinmux@E100B10 {
70                         pinctrl-names = "default";
71                         pinctrl-0 = <&state_default>;
72
73                         state_default: pinmux {
74                                 ebu {
75                                         lantiq,groups = "ebu a23";
76                                         lantiq,function = "ebu";
77                                         lantiq,open-drain = <0>;
78                                         lantiq,output = <1>;
79                                 };
80                                 stp {
81                                         lantiq,groups = "stp";
82                                         lantiq,function = "stp";
83                                         lantiq,open-drain = <0>;
84                                         lantiq,output = <1>;
85                                 };
86                                 exin {
87                                         lantiq,groups = "exin1", "exin2";
88                                         lantiq,function = "exin";
89                                         lantiq,output = <0>;
90                                 };
91                                 pci_in {
92                                         lantiq,groups = "req1", "req2";
93                                         lantiq,function = "pci";
94                                         lantiq,output = <0>;
95                                 };
96                                 pci_out {
97                                         lantiq,groups = "gnt1", "gnt2";
98                                         lantiq,function = "pci";
99                                         lantiq,open-drain = <0>;
100                                         lantiq,pull = <0>;
101                                         lantiq,output = <1>;
102                                 };
103                                 pci_rst {
104                                         lantiq,pins = "io21";
105                                         lantiq,open-drain = <0>;
106                                         lantiq,output = <1>;
107                                 };
108                                 buttons {
109                                         lantiq,pins = "io3", "io14";
110                                         lantiq,pull = <2>;
111                                         lantiq,output = <0>;
112                                 };
113                         };
114                 };
115
116                 gpios: stp@E100BB0 {
117                         status = "okay";
118                         lantiq,groups = <0x7>;
119                 };
120
121                 etop@E180000 {
122                         phy-mode = "rmii";
123                 };
124
125                 pci@E105400 {
126                         status = "okay";
127                         lantiq,external-clock;
128                         interrupt-map = <
129                                 0x6000 0 0 1 &icu0 135
130                                 0x7800 0 0 1 &icu0 66
131                                 0x7800 0 0 2 &icu0 66
132                                 0x7800 0 0 3 &icu0 66
133                         >;
134                         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
135                         req-mask = <0x7>;
136                 };
137
138         };
139
140         gpio-keys-polled {
141                 compatible = "gpio-keys-polled";
142                 #address-cells = <1>;
143                 #size-cells = <0>;
144                 poll-interval = <100>;
145
146                 wps {
147                         label = "wps";
148                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
149                         linux,code = <KEY_WPS_BUTTON>;
150                 };
151                 reset {
152                         label = "reset";
153                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
154                         linux,code = <KEY_RESTART>;
155                 };
156         };
157
158         gpio-leds {
159                 compatible = "gpio-leds";
160                 power: power {
161                         label = "power";
162                         gpios = <&gpios 21 GPIO_ACTIVE_HIGH>;
163                         default-state = "keep";
164                 };
165                 power2: power2 {
166                         label = "power2";
167                         gpios = <&gpios 20 GPIO_ACTIVE_HIGH>;
168                 };
169                 lan1 {
170                         label = "lan1";
171                         gpios = <&gpios 19 GPIO_ACTIVE_HIGH>;
172                 };
173                 lan2 {
174                         label = "lan2";
175                         gpios = <&gpios 18 GPIO_ACTIVE_HIGH>;
176                 };
177                 lan3 {
178                         label = "lan3";
179                         gpios = <&gpios 17 GPIO_ACTIVE_HIGH>;
180                 };
181                 lan4 {
182                         label = "lan4";
183                         gpios = <&gpios 16 GPIO_ACTIVE_HIGH>;
184                 };
185                 wifi: wifi {
186                         label = "wifi";
187                         gpios = <&gpios 15 GPIO_ACTIVE_HIGH>;
188                 };
189                 adsl: adsl {
190                         label = "adsl";
191                         gpios = <&gpios 14 GPIO_ACTIVE_HIGH>;
192                 };
193                 internet: internet {
194                         label = "internet";
195                         gpios = <&gpios 13 GPIO_ACTIVE_HIGH>;
196                 };
197                 internet2 {
198                         label = "internet2";
199                         gpios = <&gpios 12 GPIO_ACTIVE_HIGH>;
200                 };
201                 voip {
202                         label = "voip";
203                         gpios = <&gpios 11 GPIO_ACTIVE_HIGH>;
204                 };
205                 phone {
206                         label = "phone";
207                         gpios = <&gpios 10 GPIO_ACTIVE_HIGH>;
208                 };
209                 phone2 {
210                         label = "phone2";
211                         gpios = <&gpios 9 GPIO_ACTIVE_HIGH>;
212                 };
213                 usb: usb {
214                         label = "usb";
215                         gpios = <&gpios 8 GPIO_ACTIVE_HIGH>;
216                 };
217                 usb2: usb2 {
218                         label = "usb2";
219                         gpios = <&gpios 7 GPIO_ACTIVE_HIGH>;
220                 };
221                 usb3 {
222                         label = "usb3";
223                         gpios = <&gpios 6 GPIO_ACTIVE_HIGH>;
224                 };
225                 unlabeled {
226                         label = "unlabeled";
227                         gpios = <&gpios 5 GPIO_ACTIVE_HIGH>;
228                 };
229         };
230 };