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