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