lantiq: fixup last commits
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV752DPW22.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV752DPW22 - Arcor 803";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10 };
11
12 aliases {
13 led-boot = &power_red;
14 led-failsafe = &power_blue;
15 led-running = &power_red;
16
17 led-internet = &internet_red;
18 led-usb = &umts;
19 led-wifi = &wifi;
20 };
21
22 memory@0 {
23 reg = <0x0 0x4000000>;
24 };
25
26 sram@1F000000 {
27 vmmc@107000 {
28 status = "okay";
29 gpios = <&gpiomm 1 0>;
30 };
31 };
32
33 fpi@10000000 {
34 localbus@0 {
35 nor-boot@0 {
36 compatible = "lantiq,nor";
37 bank-width = <2>;
38 reg = <0 0x0 0x800000>;
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partitions {
43 compatible = "fixed-partitions";
44 #address-cells = <1>;
45 #size-cells = <1>;
46
47 partition@0 {
48 label = "uboot";
49 reg = <0x00000 0x30000>;
50 read-only;
51 };
52
53 partition@10000 {
54 label = "uboot_env";
55 reg = <0x30000 0x10000>;
56 read-only;
57 };
58
59 partition@20000 {
60 label = "firmware";
61 reg = <0x40000 0x7b0000>;
62 };
63
64 boardconfig: partition@7f0000 {
65 label = "board_config";
66 reg = <0x7f0000 0x10000>;
67 read-only;
68 };
69 };
70 };
71
72 gpiomm: gpiomm@4000000 {
73 compatible = "lantiq,gpio-mm";
74 reg = <1 0x0 0x10 >;
75 #address-cells = <1>;
76 #size-cells = <1>;
77 #gpio-cells = <2>;
78 gpio-controller;
79 lantiq,shadow = <3>;
80 };
81 };
82
83 gpio: pinmux@E100B10 {
84 pinctrl-names = "default";
85 pinctrl-0 = <&state_default>;
86
87 state_default: pinmux {
88 ebu {
89 lantiq,groups = "ebu cs1";
90 lantiq,function = "ebu";
91 };
92 exin {
93 lantiq,groups = "exin1";
94 lantiq,function = "exin";
95 lantiq,pull = <2>;
96 lantiq,output = <0>;
97 };
98 pci_in {
99 lantiq,groups = "req1";
100 lantiq,function = "pci";
101 lantiq,pull = <2>;
102 lantiq,output = <0>;
103 };
104 pci_out {
105 lantiq,groups = "gnt1";
106 lantiq,function = "pci";
107 lantiq,open-drain = <1>;
108 lantiq,output = <1>;
109 };
110 pci_rst {
111 lantiq,pins = "io21";
112 lantiq,open-drain = <1>;
113 lantiq,output = <1>;
114 };
115 leds {
116 lantiq,pins = "io3", "io5", "io6", "io8";
117 lantiq,open-drain = <1>;
118 lantiq,output = <1>;
119 };
120 buttons {
121 lantiq,pins = "io11", "io12", "io13", "io28";
122 lantiq,pull = <2>;
123 lantiq,output = <0>;
124 };
125 };
126 };
127
128 ifxhcd@E101000 {
129 status = "okay";
130 gpios = <&gpiomm 0 0>;
131 };
132
133 etop@E180000 {
134 phy-mode = "mii";
135 mtd-mac-address = <&boardconfig 0x16>;
136 };
137
138 pci@E105400 {
139 status = "okay";
140 lantiq,external-clock;
141 interrupt-map = <
142 0x7000 0 0 1 &icu0 30
143 0x7800 0 0 1 &icu0 135
144 0x7800 0 0 2 &icu0 135
145 0x7800 0 0 3 &icu0 135
146 >;
147 gpio-reset = <&gpio 21 0>;
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 = "arv752dpw22:blue:power";
190 gpios = <&gpio 3 1>;
191 };
192 internet_red: internet {
193 label = "arv752dpw22:red:internet";
194 gpios = <&gpio 4 1>;
195 };
196 message {
197 label = "arv752dpw22:red:message";
198 gpios = <&gpio 5 1>;
199 };
200 power_red: power {
201 label = "arv752dpw22:red:power";
202 gpios = <&gpio 6 1>;
203 default-state = "keep";
204 };
205 voice1 {
206 label = "arv752dpw22:red:voice";
207 gpios = <&gpio 8 1>;
208 };
209 umts: umts {
210 label = "arv752dpw22:red:umts";
211 gpios = <&gpiomm 3 1>;
212 };
213 wifi: wifi {
214 label = "arv752dpw22:red:wifi";
215 gpios = <&gpiomm 4 1>;
216 };
217 fxs1 {
218 label = "arv752dpw22:green:tae-n";
219 gpios = <&gpiomm 5 1>;
220 };
221 fxs2 {
222 label = "arv752dpw22:green:tae-u";
223 gpios = <&gpiomm 6 1>;
224 };
225 fxo {
226 label = "arv752dpw22:green:isdn";
227 gpios = <&gpiomm 7 1>;
228 };
229 internet2 {
230 label = "arv752dpw22:blue:internet";
231 gpios = <&gpiomm 8 1>;
232 };
233 voice2 {
234 label = "arv752dpw22:blue:voice";
235 gpios = <&gpiomm 9 1>;
236 };
237 eth1 {
238 label = "arv752dpw22:green:lan1";
239 gpios = <&gpiomm 11 1>;
240 };
241 eth2 {
242 label = "arv752dpw22:green:lan2";
243 gpios = <&gpiomm 12 1>;
244 };
245 eth3 {
246 label = "arv752dpw22:green:lan3";
247 gpios = <&gpiomm 13 1>;
248 };
249 eth4 {
250 label = "arv752dpw22:green:lan4";
251 gpios = <&gpiomm 14 1>;
252 };
253 };
254 };