lantiq: define default leds in dts files
[openwrt.git] / target / linux / lantiq / dts / ARV4520PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV4520PW - Easybox 800, WAV-281";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         dsl = &adsl;
13                         internet = &internet;
14                         power = &power;
15                         power2 = &power2;
16                         usb = &usb;
17                         wifi = &wifi;
18                 };
19         };
20
21         memory@0 {
22                 reg = <0x0 0x2000000>;
23         };
24
25         sram@1F000000 {
26                 vmmc@107000 {
27                         status = "okay";
28                         gpios = <&gpio 31 0
29                                 &gpiomm 7 0>;
30                 };
31         };
32
33         fpi@10000000 {
34                 localbus@0 {
35                         nor-boot@0 {
36                                 compatible = "lantiq,nor";
37                                 bank-width = <2>;
38                                 reg = <0 0x0 0x800000>;
39                                 #address-cells = <1>;
40                                 #size-cells = <1>;
41
42                                 partition@0 {
43                                         label = "uboot";
44                                         reg = <0x00000 0x20000>;
45                                         read-only;
46                                 };
47
48                                 partition@20000 {
49                                         label = "uboot_env";
50                                         reg = <0x20000 0x10000>;
51                                         read-only;
52                                 };
53
54                                 partition@30000 {
55                                         label = "firmware";
56                                         reg = <0x30000 0x3c0000>;
57                                 };
58
59                                 partition@7f0000 {
60                                         label = "boardconfig";
61                                         reg = <0x3f0000 0x10000>;
62                                         read-only;
63                                 };
64                         };
65
66                         mac_addr {
67                                 compatible = "lantiq,eth-mac";
68                                 reg = <0 0x3f0016 0x6>;
69                                 mac-increment = <2>;
70                         };
71
72                         gpiomm: gpiomm@4000000 {
73                                 compatible = "lantiq,gpio-mm";
74                                 reg = <1 0x0 0x10 >;
75                                 #address-cells = <1>;
76                                 #size-cells = <1>;
77                                 #gpio-cells = <2>;
78                                 gpio-controller;
79                                 lantiq,shadow = <0x400>;
80                         };
81                 };
82
83                 gpio: pinmux@E100B10 {
84                         pinctrl-names = "default";
85                         pinctrl-0 = <&state_default>;
86
87                         state_default: pinmux {
88                                 ebu {
89                                         lantiq,groups = "ebu cs1";
90                                         lantiq,function = "ebu";
91                                 };
92                                 pci_in {
93                                         lantiq,groups = "req1";
94                                         lantiq,function = "pci";
95                                         lantiq,open-drain = <1>;
96                                         lantiq,pull = <2>;
97                                         lantiq,output = <0>;
98                                 };
99                                 pci_out {
100                                         lantiq,groups = "gnt1";
101                                         lantiq,function = "pci";
102                                         lantiq,output = <1>;
103                                 };
104                                 pci_rst {
105                                         lantiq,pins = "io21";
106                                         lantiq,open-drain = <0>;
107                                         lantiq,pull = <0>;
108                                 };
109                         };
110                 };
111
112                 etop@E180000 {
113                         phy-mode = "rmii";
114                 };
115
116                 ifxhcd@E101000 {
117                         status = "okay";
118                         gpios = <&gpio 28 0>;
119                 };
120
121                 pci@E105400 {
122                         status = "okay";
123                         lantiq,external-clock;
124                         gpio-reset = <&gpio 21 0>;
125                 };
126
127         };
128
129 // gpiomm 10 - switch
130
131         gpio-keys-polled {
132                 compatible = "gpio-keys-polled";
133                 #address-cells = <1>;
134                 #size-cells = <0>;
135                 poll-interval = <100>;
136
137                 rfkill {
138                         label = "wps";
139                         gpios = <&gpio 29 1>;
140                         linux,code = <0x211>;
141                 };
142                 reset {
143                         label = "reset";
144                         gpios = <&gpio 30 1>;
145                         linux,code = <0x198>;
146                 };
147         };
148
149         gpio-leds {
150                 compatible = "gpio-leds";
151
152                 power: power {
153                         label = "power";
154                         gpios = <&gpio 3 1>;
155                 };
156                 adsl: adsl {
157                         label = "adsl";
158                         gpios = <&gpio 4 1>;
159                 };
160                 internet: internet {
161                         label = "internet";
162                         gpios = <&gpio 5 1>;
163                 };
164                 power2: power2 {
165                         label = "power2";
166                         gpios = <&gpio 6 1>;
167                 };
168                 wps {
169                         label = "wps";
170                         gpios = <&gpio 7 1>;
171                 };
172                 wps2 {
173                         label = "wps2";
174                         gpios = <&gpio 9 1>;
175                 };
176                 fxs1 {
177                         label = "fxs1";
178                         gpios = <&gpiomm 0 1>;
179                 };
180                 fxs2 {
181                         label = "fxs2";
182                         gpios = <&gpiomm 1 1>;
183                 };
184                 isdn {
185                         label = "isdn";
186                         gpios = <&gpiomm 2 1>;
187                 };
188                 fxo {
189                         label = "fxo";
190                         gpios = <&gpiomm 3 1>;
191                 };
192                 voice {
193                         label = "voice";
194                         gpios = <&gpiomm 4 1>;
195                 };
196                 usb: usb {
197                         label = "usb";
198                         gpios = <&gpiomm 5 1>;
199                 };
200                 wifi: wifi {
201                         label = "wifi";
202                         gpios = <&gpiomm 6 1>;
203                 };
204                 internet2 {
205                         label = "internet2";
206                         gpios = <&gpiomm 9 1>;
207                 };
208         };
209 };