lantiq: move partitions into partion table node
[openwrt.git] / target / linux / lantiq / dts / ARV7518PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV7518PW - Astoria Networks";
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 = &online_green;
18                         usb = &usb;
19                         wifi = &wifi;
20                 };
21         };
22
23         memory@0 {
24                 reg = <0x0 0x4000000>;
25         };
26
27         sram@1F000000 {
28                 vmmc@107000 {
29                         status = "okay";
30                 };
31         };
32
33         fpi@10000000 {
34                 localbus@0 {
35                         nor-boot@0 {
36                                 compatible = "lantiq,nor";
37                                 bank-width = <2>;
38                                 reg = <0 0x0 0x2000000>;
39                                 #address-cells = <1>;
40                                 #size-cells = <1>;
41
42                                 partitions {
43                                         compatible = "fixed-partitions";
44                                         #address-cells = <1>;
45                                         #size-cells = <1>;
46
47                                         partition@0 {
48                                                 label = "uboot";
49                                                 reg = <0x00000 0x10000>;
50                                                 read-only;
51                                         };
52
53                                         partition@10000 {
54                                                 label = "uboot_env";
55                                                 reg = <0x10000 0x10000>;
56                                         };
57
58                                         partition@20000 {
59                                                 label = "firmware";
60                                                 reg = <0x20000 0x7d0000>;
61                                         };
62
63                                         partition@400000 {
64                                                 label = "boardconfig";
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 = <0x0>;
79                         };
80
81                         mac_addr {
82                                 compatible = "lantiq,eth-mac";
83                                 reg = <0 0x7f0016 0x6>;
84                                 mac-increment = <2>;
85                         };
86
87                         ath9k_eep {
88                                 compatible = "ath9k,eeprom";
89                                 reg = <0 0x7f0400 0x1000
90                                         0 0x7f0016 0x6>;
91                                 ath,mac-increment = <1>;
92                                 ath,pci-slot = <14>;
93                                 ath,eep-endian;
94                         };
95                 };
96
97                 gpio: pinmux@E100B10 {
98                         pinctrl-names = "default";
99                         pinctrl-0 = <&state_default>;
100
101                         state_default: pinmux {
102                                 ebu {
103                                         lantiq,groups = "ebu cs1";
104                                         lantiq,function = "ebu";
105                                 };
106                                 pci_in {
107                                         lantiq,groups = "req1";
108                                         lantiq,function = "pci";
109                                         lantiq,open-drain = <1>;
110                                         lantiq,pull = <2>;
111                                         lantiq,output = <0>;
112                                 };
113                                 pci_out {
114                                         lantiq,groups = "gnt1";
115                                         lantiq,function = "pci";
116                                         lantiq,pull = <0>;
117                                         lantiq,output = <1>;
118                                 };
119                                 pci_rst {
120                                         lantiq,pins = "io21";
121                                         lantiq,pull = <2>;
122                                         lantiq,output = <1>;
123                                 };
124                                 leds {
125                                         lantiq,pins = "io2", "io4", "io5", "io6", "io7", "io8", "io19";
126                                         lantiq,output = <1>;
127                                 };
128                                 keys {
129                                         lantiq,pins = "io28", "io30";
130                                         lantiq,output = <0>;
131                                         lantiq,pull = <2>;
132                                         lantiq,open-drain = <1>;
133                                 };
134                         };
135                 };
136
137                 etop@E180000 {
138                         phy-mode = "mii";
139                 };
140
141                 ifxhcd@E101000 {
142                         status = "okay";
143                         gpios = <&gpio 14 0>;
144                 };
145
146                 pci@E105400 {
147                         status = "okay";
148                         lantiq,external-clock;
149                         gpio-reset = <&gpio 21 0>;
150                         req-mask = <0xf>;
151                 };
152
153         };
154
155 /*
156 #define SWITCH_RESET          13
157 */
158         gpio-keys-polled {
159                 compatible = "gpio-keys-polled";
160                 #address-cells = <1>;
161                 #size-cells = <0>;
162                 poll-interval = <100>;
163
164                 rfkill {
165                         label = "rfkill";
166                         gpios = <&gpio 28 1>;
167                         linux,code = <0xf7>;
168                 };
169                 reset {
170                         label = "reset";
171                         gpios = <&gpio 30 1>;
172                         linux,code = <0x198>;
173                 };
174         };
175
176         gpio-leds {
177                 compatible = "gpio-leds";
178                 power_green: power {
179                         label = "arv7518pw:green:power";
180                         gpios = <&gpio 2 1>;
181                         default-state = "keep";
182                 };
183                 dsl: dsl {
184                         label = "arv7518pw:green:dsl";
185                         gpios = <&gpio 4 1>;
186                 };
187                 online_green: online {
188                         label = "arv7518pw:green:internet";
189                         gpios = <&gpio 5 1>;
190                 };
191                 wifi: wifi {
192                         label = "arv7518pw:green:wlan";
193                         gpios = <&gpio 6 1>;
194                 };
195                 power_red: power2 {
196                         label = "arv7518pw:red:power";
197                         gpios = <&gpio 7 1>;
198                 };
199                 online2 {
200                         label = "arv7518pw:red:internet";
201                         gpios = <&gpio 8 1>;
202                 };
203                 usb: usb {
204                         label = "arv7518pw:green:usb";
205                         gpios = <&gpio 19 1>;
206                 };
207                 voice {
208                         label = "arv7518pw:green:voip";
209                         gpios = <&gpiomm 0 1>;
210                 };
211                 fxs1 {
212                         label = "arv7518pw:green:phone1";
213                         gpios = <&gpiomm 1 1>;
214                 };
215                 fxs2 {
216                         label = "arv7518pw:green:phone2";
217                         gpios = <&gpiomm 2 1>;
218                 };
219                 unlabeled {
220                         label = "arv7518pw:amber:unlabeled";
221                         gpios = <&gpiomm 3 1>;
222                 };
223                 wps {
224                         label = "arv7518pw:amber:wps";
225                         gpios = <&gpiomm 4 1>;
226                 };
227                 wps2 {
228                         label = "arv7518pw:green:wps";
229                         gpios = <&gpiomm 5 1>;
230                 };
231                 wps3 {
232                         label = "arv7518pw:red:wps";
233                         gpios = <&gpiomm 6 1>;
234                 };
235         };
236 };