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