lantiq: use the etop driver DT bindings only
[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 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 = <0x3>;
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 = "req2", "req1";
99 lantiq,function = "pci";
100 lantiq,open-drain = <1>;
101 lantiq,pull = <2>;
102 lantiq,output = <0>;
103 };
104 pci_out {
105 lantiq,groups = "gnt1";
106 lantiq,function = "pci";
107 lantiq,output = <1>;
108 };
109 pci_rst {
110 lantiq,pins = "io21";
111 lantiq,pull = <2>;
112 lantiq,output = <1>;
113 };
114 leds {
115 lantiq,pins = "io3", "io5", "io6", "io8";
116 lantiq,output = <1>;
117 lantiq,pull = <0>;
118 };
119 keys {
120 lantiq,pins = "io11", "io12", "io13", "io28";
121 lantiq,output = <0>;
122 lantiq,pull = <2>;
123 lantiq,open-drain = <1>;
124 };
125 };
126 };
127
128 ifxhcd@E101000 {
129 status = "okay";
130 gpios = <&gpiomm 0 0>;
131 };
132
133 etop@E180000 {
134 phy-mode = "rmii";
135 mtd-mac-address = <&boardconfig 0x16>;
136 };
137
138 pci@E105400 {
139 status = "okay";
140 lantiq,external-clock;
141 gpio-reset = <&gpio 21 0>;
142 interrupt-map = <0x7000 0 0 1 &icu0 135>;
143 req-mask = <0x3>;
144 };
145
146 };
147
148 ralink_eep {
149 compatible = "ralink,eeprom";
150 ralink,eeprom = "RT2860.eeprom";
151 };
152
153 gpio-keys-polled {
154 compatible = "gpio-keys-polled";
155 #address-cells = <1>;
156 #size-cells = <0>;
157 poll-interval = <100>;
158
159 /* wps {
160 label = "wps";
161 gpios = <&gpio 11 1>;
162 linux,code = <0x211>;
163 }; */
164 restart {
165 label = "restart";
166 gpios = <&gpio 12 1>;
167 linux,code = <0x110>;
168 };
169 dsl {
170 label = "dsl";
171 gpios = <&gpio 13 1>;
172 linux,code = <0x111>;
173 };
174 reset {
175 label = "reset";
176 gpios = <&gpio 28 1>;
177 linux,code = <0x198>;
178 };
179 };
180
181 gpio-leds {
182 compatible = "gpio-leds";
183 power_blue: power1 {
184 label = "arv752dpw:blue:power";
185 gpios = <&gpio 3 1>;
186 };
187 internet_red: internet {
188 label = "arv752dpw:red:internet";
189 gpios = <&gpio 4 1>;
190 };
191 message {
192 label = "arv752dpw:red:message";
193 gpios = <&gpio 5 1>;
194 };
195 power_red: power {
196 label = "arv752dpw:red:power";
197 gpios = <&gpio 6 1>;
198 default-state = "keep";
199 };
200 voice1 {
201 label = "arv752dpw:red:voice";
202 gpios = <&gpio 8 1>;
203 };
204 microphone {
205 label = "arv752dpw:red:umts";
206 gpios = <&gpiomm 3 1>;
207 };
208 wifi: wifi {
209 label = "arv752dpw:red:wifi";
210 gpios = <&gpiomm 4 1>;
211 };
212 fxs1 {
213 label = "arv752dpw:green:tae-n";
214 gpios = <&gpiomm 5 1>;
215 };
216 fxs2 {
217 label = "arv752dpw:green:tae-u";
218 gpios = <&gpiomm 6 1>;
219 };
220 fxo {
221 label = "arv752dpw:green:isdn";
222 gpios = <&gpiomm 7 1>;
223 };
224 internet2 {
225 label = "arv752dpw:blue:internet";
226 gpios = <&gpiomm 8 1>;
227 };
228 voice2 {
229 label = "arv752dpw:blue:voice";
230 gpios = <&gpiomm 9 1>;
231 };
232 };
233 };