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