lantiq: add support for indicating the boot state using three leds
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV452CQW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV452CQW - Arcor 801";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11 leds {
12 boot = &power0;
13 failsafe = &power1;
14 running = &power0;
15
16 internet = &dsl;
17 usb = &usb;
18 wifi = &wifi;
19 };
20 };
21
22 memory@0 {
23 reg = <0x0 0x2000000>;
24 };
25
26 sram@1F000000 {
27 vmmc@107000 {
28 status = "okay";
29 gpios = <&gpio 31 0
30 &gpiomm 7 0>;
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 0x400000>;
40 #address-cells = <1>;
41 #size-cells = <1>;
42
43 partition@0 {
44 label = "uboot";
45 reg = <0x00000 0x10000>;
46 read-only;
47 };
48
49 partition@10000 {
50 label = "uboot_env";
51 reg = <0x10000 0x10000>;
52 read-only;
53 };
54
55 partition@20000 {
56 label = "firmware";
57 reg = <0x20000 0x3d0000>;
58 };
59
60 partition@3f0000 {
61 label = "boardconfig";
62 reg = <0x3f0000 0x10000>;
63 read-only;
64 };
65 };
66
67 mac_addr {
68 compatible = "lantiq,eth-mac";
69 reg = <0 0x3f0016 0x6>;
70 mac-increment = <2>;
71 };
72
73 ath5k_eep {
74 compatible = "ath5k,eeprom";
75 reg = <0 0x3f0400 0x1000>;
76 ath,mac-offset = <0>;
77 ath,eep-swap;
78 };
79 gpiomm: gpiomm@4000000 {
80 compatible = "lantiq,gpio-mm";
81 reg = <1 0x0 0x10>;
82 #address-cells = <1>;
83 #size-cells = <1>;
84 #gpio-cells = <2>;
85 gpio-controller;
86 lantiq,shadow = <0x77f>;
87 };
88 };
89
90 gpio: pinmux@E100B10 {
91 pinctrl-names = "default";
92 pinctrl-0 = <&state_default>;
93
94 state_default: pinmux {
95 ebu {
96 lantiq,groups = "ebu cs1";
97 lantiq,function = "ebu";
98 };
99 pci_in {
100 lantiq,groups = "req1";
101 lantiq,function = "pci";
102 lantiq,open-drain = <1>;
103 lantiq,pull = <2>;
104 lantiq,output = <0>;
105 };
106 pci_out {
107 lantiq,groups = "gnt1";
108 lantiq,function = "pci";
109 lantiq,output = <1>;
110 };
111 pci_rst {
112 lantiq,pins = "io21";
113 lantiq,pull = <0>;
114 lantiq,output = <1>;
115 };
116 leds {
117 lantiq,pins = "io3", "io5", "io6", "io7", "io9";
118 lantiq,output = <1>;
119 };
120 };
121 };
122
123 ifxhcd@E101000 {
124 status = "okay";
125 gpios = <&gpio 28 0>;
126 };
127
128 etop@E180000 {
129 phy-mode = "rmii";
130 };
131
132 pci@E105400 {
133 status = "okay";
134 lantiq,external-clock;
135 gpio-reset = <&gpio 21 0>;
136 };
137
138 };
139
140 /*
141 #define ARV452CPW_SWITCH_RESET 110
142 */
143 gpio-keys-polled {
144 compatible = "gpio-keys-polled1";
145 #address-cells = <1>;
146 #size-cells = <0>;
147 poll-interval = <100>;
148
149 wps {
150 label = "wps";
151 gpios = <&gpio 11 1>;
152 linux,code = <0x101>;
153 };
154 restart {
155 label = "restart";
156 gpios = <&gpio 12 1>;
157 linux,code = <0x110>;
158 };
159 reset {
160 label = "reset";
161 gpios = <&gpio 28 1>;
162 linux,code = <0x198>;
163 };
164 };
165
166 gpio-leds {
167 compatible = "gpio-leds";
168 power0: power0 {
169 label = "power0";
170 gpios = <&gpio 3 1>;
171 default-state = "keep";
172 };
173 dsl: dsl {
174 label = "dsl";
175 gpios = <&gpio 4 1>;
176 };
177 isdn {
178 label = "isdn";
179 gpios = <&gpio 5 1>;
180 };
181 power1: power1 {
182 label = "power1";
183 gpios = <&gpio 6 1>;
184 };
185 wps {
186 label = "wps";
187 gpios = <&gpio 7 1>;
188 };
189 wps1 {
190 label = "wps1";
191 gpios = <&gpio 9 1>;
192 };
193 fxs1 {
194 label = "fxs1";
195 gpios = <&gpiomm 0 1>;
196 };
197 fxs2 {
198 label = "fxs2";
199 gpios = <&gpiomm 1 1>;
200 };
201 wps2 {
202 label = "wps2";
203 gpios = <&gpiomm 2 1>;
204 };
205 fxo {
206 label = "fxo";
207 gpios = <&gpiomm 3 1>;
208 };
209 voice {
210 label = "voice";
211 gpios = <&gpiomm 4 1>;
212 };
213 usb: usb {
214 label = "usb";
215 gpios = <&gpiomm 5 1>;
216 };
217 wifi: wifi {
218 label = "wifi";
219 gpios = <&gpiomm 6 1>;
220 };
221 dsl2 {
222 label = "dsl2";
223 gpios = <&gpiomm 8 1>;
224 };
225 dsl3 {
226 label = "dsl3";
227 gpios = <&gpiomm 9 1>;
228 };
229 };
230 };