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