lantiq: use the etop driver DT bindings only
[openwrt/staging/wigyori.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 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 0x30000>;
49 read-only;
50 };
51
52 partition@10000 {
53 label = "uboot_env";
54 reg = <0x30000 0x10000>;
55 read-only;
56 };
57
58 partition@20000 {
59 label = "firmware";
60 reg = <0x40000 0x7b0000>;
61 };
62
63 boardconfig: partition@7f0000 {
64 label = "board_config";
65 reg = <0x7f0000 0x10000>;
66 read-only;
67 };
68 };
69 };
70
71 gpiomm: gpiomm@4000000 {
72 compatible = "lantiq,gpio-mm";
73 reg = <1 0x0 0x10 >;
74 #address-cells = <1>;
75 #size-cells = <1>;
76 #gpio-cells = <2>;
77 gpio-controller;
78 lantiq,shadow = <3>;
79 };
80 };
81
82 gpio: pinmux@E100B10 {
83 pinctrl-names = "default";
84 pinctrl-0 = <&state_default>;
85
86 state_default: pinmux {
87 ebu {
88 lantiq,groups = "ebu cs1";
89 lantiq,function = "ebu";
90 };
91 exin {
92 lantiq,groups = "exin1";
93 lantiq,function = "exin";
94 lantiq,pull = <2>;
95 lantiq,output = <0>;
96 };
97 pci_in {
98 lantiq,groups = "req1";
99 lantiq,function = "pci";
100 lantiq,pull = <2>;
101 lantiq,output = <0>;
102 };
103 pci_out {
104 lantiq,groups = "gnt1";
105 lantiq,function = "pci";
106 lantiq,open-drain = <1>;
107 lantiq,output = <1>;
108 };
109 pci_rst {
110 lantiq,pins = "io21";
111 lantiq,open-drain = <1>;
112 lantiq,output = <1>;
113 };
114 leds {
115 lantiq,pins = "io3", "io5", "io6", "io8";
116 lantiq,open-drain = <1>;
117 lantiq,output = <1>;
118 };
119 buttons {
120 lantiq,pins = "io11", "io12", "io13", "io28";
121 lantiq,pull = <2>;
122 lantiq,output = <0>;
123 };
124 };
125 };
126
127 ifxhcd@E101000 {
128 status = "okay";
129 gpios = <&gpiomm 0 0>;
130 };
131
132 etop@E180000 {
133 phy-mode = "mii";
134 mtd-mac-address = <&boardconfig 0x16>;
135 };
136
137 pci@E105400 {
138 status = "okay";
139 lantiq,external-clock;
140 interrupt-map = <
141 0x7000 0 0 1 &icu0 30
142 0x7800 0 0 1 &icu0 135
143 0x7800 0 0 2 &icu0 135
144 0x7800 0 0 3 &icu0 135
145 >;
146 gpio-reset = <&gpio 21 0>;
147 req-mask = <0x3>;
148 };
149
150 };
151
152 ralink_eep {
153 compatible = "ralink,eeprom";
154 ralink,eeprom = "RT2860.eeprom";
155 };
156
157 gpio-keys-polled {
158 compatible = "gpio-keys-polled";
159 #address-cells = <1>;
160 #size-cells = <0>;
161 poll-interval = <100>;
162
163 wps {
164 label = "wps";
165 gpios = <&gpio 11 1>;
166 linux,code = <0x211>;
167 };
168 restart {
169 label = "restart";
170 gpios = <&gpio 12 1>;
171 linux,code = <0x110>;
172 };
173 dsl {
174 label = "dsl";
175 gpios = <&gpio 13 1>;
176 linux,code = <0x111>;
177 };
178 reset {
179 label = "reset";
180 gpios = <&gpio 28 1>;
181 linux,code = <0x198>;
182 };
183 };
184
185 gpio-leds {
186 compatible = "gpio-leds";
187 power_blue: power1 {
188 label = "arv752dpw22:blue:power";
189 gpios = <&gpio 3 1>;
190 };
191 internet_red: internet {
192 label = "arv752dpw22:red:internet";
193 gpios = <&gpio 4 1>;
194 };
195 message {
196 label = "arv752dpw22:red:message";
197 gpios = <&gpio 5 1>;
198 };
199 power_red: power {
200 label = "arv752dpw22:red:power";
201 gpios = <&gpio 6 1>;
202 default-state = "keep";
203 };
204 voice1 {
205 label = "arv752dpw22:red:voice";
206 gpios = <&gpio 8 1>;
207 };
208 microphone {
209 label = "arv752dpw22:red:umts";
210 gpios = <&gpiomm 3 1>;
211 };
212 wifi: wifi {
213 label = "arv752dpw22:red:wifi";
214 gpios = <&gpiomm 4 1>;
215 };
216 fxs1 {
217 label = "arv752dpw22:green:tae-n";
218 gpios = <&gpiomm 5 1>;
219 };
220 fxs2 {
221 label = "arv752dpw22:green:tae-u";
222 gpios = <&gpiomm 6 1>;
223 };
224 fxo {
225 label = "arv752dpw22:green:isdn";
226 gpios = <&gpiomm 7 1>;
227 };
228 internet2 {
229 label = "arv752dpw22:blue:internet";
230 gpios = <&gpiomm 8 1>;
231 };
232 voice2 {
233 label = "arv752dpw22:blue:voice";
234 gpios = <&gpiomm 9 1>;
235 };
236 eth1 {
237 label = "arv752dpw22:green:lan1";
238 gpios = <&gpiomm 11 1>;
239 };
240 eth2 {
241 label = "arv752dpw22:green:lan2";
242 gpios = <&gpiomm 12 1>;
243 };
244 eth3 {
245 label = "arv752dpw22:green:lan3";
246 gpios = <&gpiomm 13 1>;
247 };
248 eth4 {
249 label = "arv752dpw22:green:lan4";
250 gpios = <&gpiomm 14 1>;
251 };
252 };
253 };