lantiq: fix building AVM/EVA sysupgrade images on NOR devices
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV4519PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         boot = &power_green;
13                         failsafe = &power_red;
14                         running = &power_green;
15
16                         dsl = &dsl;
17                         internet = &internet_green;
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                 };
32         };
33
34         fpi@10000000 {
35                 localbus@0 {
36                         nor-boot@0 {
37                                 compatible = "lantiq,nor";
38                                 bank-width = <2>;
39                                 reg = <0 0x0 0x2000000>;
40                                 #address-cells = <1>;
41                                 #size-cells = <1>;
42
43                                 partitions {
44                                         compatible = "fixed-partitions";
45                                         #address-cells = <1>;
46                                         #size-cells = <1>;
47
48                                         partition@0 {
49                                                 label = "uboot";
50                                                 reg = <0x00000 0x10000>;
51                                                 read-only;
52                                         };
53
54                                         partition@10000 {
55                                                 label = "uboot_env";
56                                                 reg = <0x10000 0x10000>;
57                                         };
58
59                                         partition@20000 {
60                                                 label = "firmware";
61                                                 reg = <0x20000 0x3d0000>;
62                                         };
63
64                                         boardconfig: partition@3f0000 {
65                                                 label = "boardconfig";
66                                                 reg = <0x3f0000 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 = <0x400>;
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                         };
93                 };
94
95                 etop@E180000 {
96                         phy-mode = "mii";
97                         mtd-mac-address = <&boardconfig 0x16>;
98                 };
99
100                 ifxhcd@E101000 {
101                         status = "okay";
102                         gpios = <&gpio 14 0>;
103                 };
104
105                 pci@E105400 {
106                         status = "okay";
107                         lantiq,external-clock;
108                         gpio-reset = <&gpio 21 0>;
109                         req-mask = <0xf>;
110                 };
111         };
112
113         gpio-keys-polled {
114                 compatible = "gpio-keys-polled";
115                 #address-cells = <1>;
116                 #size-cells = <0>;
117                 poll-interval = <100>;
118
119                 rfkill {
120                         label = "rfkill";
121                         gpios = <&gpio 28 1>;
122                         linux,code = <0xf7>;
123                 };
124                 reset {
125                         label = "reset";
126                         gpios = <&gpio 30 1>;
127                         linux,code = <0x198>;
128                 };
129         };
130
131         gpio-leds {
132                 compatible = "gpio-leds";
133
134                 power_green: power {
135                         label = "arv4519pw:green:power";
136                         gpios = <&gpio 2 1>;
137                         default-state = "keep";
138                 };
139                 power_red: power2 {
140                         label = "arv4519pw:red:power";
141                         gpios = <&gpio 7 1>;
142                 };
143                 wifi: wifi {
144                         label = "arv4519pw:green:wlan";
145                         gpios = <&gpio 6 1>;
146                 };
147                 dsl: dsl {
148                         label = "arv4519pw:green:dsl";
149                         gpios = <&gpio 4 1>;
150                 };
151                 internet_green: online {
152                         label = "arv4519pw:green:internet";
153                         gpios = <&gpio 5 1>;
154                 };
155                 online2 {
156                         label = "arv4519pw:red:internet";
157                         gpios = <&gpio 8 1>;
158                 };
159                 usb: usb {
160                         label = "arv4519pw:green:usb";
161                         gpios = <&gpio 19 1>;
162                 };
163                 voip {
164                         label = "arv4519pw:green:voip";
165                         gpios = <&gpiomm 0 1>;
166                 };
167                 fxs1 {
168                         label = "arv4519pw:green:phone1";
169                         gpios = <&gpiomm 1 1>;
170                 };
171                 fxs2 {
172                         label = "arv4519pw:green:phone2";
173                         gpios = <&gpiomm 2 1>;
174                 };
175                 fxo {
176                         label = "arv4519pw:green:line";
177                         gpios = <&gpiomm 3 1>;
178                 };
179                 wps2 {
180                         label = "arv4519pw:green:wps";
181                         gpios = <&gpiomm 4 1>;
182                 };
183                 wps {
184                         label = "arv4519pw:orange:wps";
185                         gpios = <&gpiomm 5 1>;
186                 };
187                 wps3 {
188                         label = "arv4519pw:red:wps";
189                         gpios = <&gpiomm 6 1>;
190                 };
191         };
192 };