lantiq: remove read-only flag on two partitions on BTHOMEHUBV3A
[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                                 partition@0 {
45                                         label = "uboot";
46                                         reg = <0x00000 0x20000>;
47                                         read-only;
48                                 };
49
50                                 partition@20000 {
51                                         label = "uboot_env";
52                                         reg = <0x20000 0x10000>;
53                                         read-only;
54                                 };
55
56                                 partition@30000 {
57                                         label = "firmware";
58                                         reg = <0x30000 0x3c0000>;
59                                 };
60
61                                 partition@7f0000 {
62                                         label = "boardconfig";
63                                         reg = <0x3f0000 0x10000>;
64                                         read-only;
65                                 };
66                         };
67
68                         mac_addr {
69                                 compatible = "lantiq,eth-mac";
70                                 reg = <0 0x3f0016 0x6>;
71                                 mac-increment = <2>;
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                 };
117
118                 ifxhcd@E101000 {
119                         status = "okay";
120                         gpios = <&gpio 28 0>;
121                 };
122
123                 pci@E105400 {
124                         status = "okay";
125                         lantiq,external-clock;
126                         gpio-reset = <&gpio 21 0>;
127                 };
128
129         };
130
131 // gpiomm 10 - switch
132
133         gpio-keys-polled {
134                 compatible = "gpio-keys-polled";
135                 #address-cells = <1>;
136                 #size-cells = <0>;
137                 poll-interval = <100>;
138
139                 rfkill {
140                         label = "wps";
141                         gpios = <&gpio 29 1>;
142                         linux,code = <0x211>;
143                 };
144                 reset {
145                         label = "reset";
146                         gpios = <&gpio 30 1>;
147                         linux,code = <0x198>;
148                 };
149         };
150
151         gpio-leds {
152                 compatible = "gpio-leds";
153
154                 power_blue: power {
155                         label = "arv4520pw:blue:power";
156                         gpios = <&gpio 3 1>;
157                         default-state = "keep";
158                 };
159                 dsl: dsl {
160                         label = "arv4520pw:blue:dsl";
161                         gpios = <&gpio 4 1>;
162                 };
163                 internet_blue: internet {
164                         label = "arv4520pw:blue:internet";
165                         gpios = <&gpio 5 1>;
166                 };
167                 power_red: power2 {
168                         label = "arv4520pw:red:power";
169                         gpios = <&gpio 6 1>;
170                 };
171                 wps {
172                         label = "arv4520pw:yellow:wps";
173                         gpios = <&gpio 7 1>;
174                 };
175                 wps2 {
176                         label = "arv4520pw:red:wps";
177                         gpios = <&gpio 9 1>;
178                 };
179                 /*
180                         wps green is missing
181                 */
182                 fxs1 {
183                         label = "arv4520pw:blue:telefon1";
184                         gpios = <&gpiomm 0 1>;
185                 };
186                 fxs2 {
187                         label = "arv4520pw:blue:telefon2";
188                         gpios = <&gpiomm 1 1>;
189                 };
190                 isdn {
191                         label = "arv4520pw:blue:isdn";
192                         gpios = <&gpiomm 2 1>;
193                 };
194                 fxo {
195                         label = "arv4520pw:blue:line";
196                         gpios = <&gpiomm 3 1>;
197                 };
198                 voice {
199                         label = "arv4520pw:blue:sprache";
200                         gpios = <&gpiomm 4 1>;
201                 };
202                 usb: usb {
203                         label = "arv4520pw:blue:usb";
204                         gpios = <&gpiomm 5 1>;
205                 };
206                 wifi: wifi {
207                         label = "arv4520pw:blue:wifi";
208                         gpios = <&gpiomm 6 1>;
209                 };
210                 internet2 {
211                         label = "arv4520pw:red:internet";
212                         gpios = <&gpiomm 9 1>;
213                 };
214                 /*
215                         info is missing
216                 */
217         };
218 };