0466968e6f39c66c3fbf0a57ff169e6395dc2052
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4520PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "ARV4520PW - Easybox 800, WAV-281";
9
10 chosen {
11 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
12 };
13
14 aliases {
15 led-boot = &power_blue;
16 led-failsafe = &power_red;
17 led-running = &power_blue;
18
19 led-dsl = &dsl;
20 led-internet = &internet_blue;
21 led-usb = &usb;
22 led-wifi = &wifi;
23 };
24
25 memory@0 {
26 reg = <0x0 0x2000000>;
27 };
28
29 sram@1F000000 {
30 vmmc@107000 {
31 status = "okay";
32 gpios = <&gpio 31 GPIO_ACTIVE_HIGH
33 &gpiomm 7 GPIO_ACTIVE_HIGH>;
34 };
35 };
36
37 fpi@10000000 {
38 localbus@0 {
39 nor-boot@0 {
40 compatible = "lantiq,nor";
41 bank-width = <2>;
42 reg = <0 0x0 0x800000>;
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partitions {
47 compatible = "fixed-partitions";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 partition@0 {
52 label = "uboot";
53 reg = <0x00000 0x20000>;
54 read-only;
55 };
56
57 partition@20000 {
58 label = "uboot_env";
59 reg = <0x20000 0x10000>;
60 read-only;
61 };
62
63 partition@30000 {
64 label = "firmware";
65 reg = <0x30000 0x3c0000>;
66 };
67
68 boardconfig: partition@7f0000 {
69 label = "boardconfig";
70 reg = <0x3f0000 0x10000>;
71 read-only;
72 };
73 };
74 };
75
76 gpiomm: gpiomm@4000000 {
77 compatible = "lantiq,gpio-mm";
78 reg = <1 0x0 0x10 >;
79 #address-cells = <1>;
80 #size-cells = <1>;
81 #gpio-cells = <2>;
82 gpio-controller;
83 lantiq,shadow = <0x400>;
84 };
85 };
86
87 gpio: pinmux@E100B10 {
88 pinctrl-names = "default";
89 pinctrl-0 = <&state_default>;
90
91 state_default: pinmux {
92 ebu {
93 lantiq,groups = "ebu cs1";
94 lantiq,function = "ebu";
95 };
96 pci_in {
97 lantiq,groups = "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,open-drain = <0>;
111 lantiq,pull = <0>;
112 };
113 };
114 };
115
116 etop@E180000 {
117 phy-mode = "rmii";
118 mtd-mac-address = <&boardconfig 0x16>;
119 };
120
121 ifxhcd@E101000 {
122 status = "okay";
123 gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
124 };
125
126 pci@E105400 {
127 status = "okay";
128 lantiq,external-clock;
129 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
130 };
131 };
132
133 // gpiomm 10 - switch
134
135 gpio-keys-polled {
136 compatible = "gpio-keys-polled";
137 #address-cells = <1>;
138 #size-cells = <0>;
139 poll-interval = <100>;
140
141 rfkill {
142 label = "wps";
143 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
144 linux,code = <KEY_WPS_BUTTON>;
145 };
146 reset {
147 label = "reset";
148 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
149 linux,code = <KEY_RESTART>;
150 };
151 };
152
153 gpio-leds {
154 compatible = "gpio-leds";
155
156 power_blue: power {
157 label = "arv4520pw:blue:power";
158 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
159 default-state = "keep";
160 };
161 dsl: dsl {
162 label = "arv4520pw:blue:dsl";
163 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
164 };
165 internet_blue: internet {
166 label = "arv4520pw:blue:internet";
167 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
168 };
169 power_red: power2 {
170 label = "arv4520pw:red:power";
171 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
172 };
173 wps {
174 label = "arv4520pw:yellow:wps";
175 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
176 };
177 wps2 {
178 label = "arv4520pw:red:wps";
179 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
180 };
181 /*
182 wps green is missing
183 */
184 fxs1 {
185 label = "arv4520pw:blue:telefon1";
186 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
187 };
188 fxs2 {
189 label = "arv4520pw:blue:telefon2";
190 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
191 };
192 isdn {
193 label = "arv4520pw:blue:isdn";
194 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
195 };
196 fxo {
197 label = "arv4520pw:blue:line";
198 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
199 };
200 voice {
201 label = "arv4520pw:blue:sprache";
202 gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
203 };
204 usb: usb {
205 label = "arv4520pw:blue:usb";
206 gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
207 };
208 wifi: wifi {
209 label = "arv4520pw:blue:wifi";
210 gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
211 };
212 internet2 {
213 label = "arv4520pw:red:internet";
214 gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
215 };
216 /*
217 info is missing
218 */
219 };
220 };