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