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