lantiq: BT Home Hub 2B - overlayfs on top of ubi
[openwrt.git] / target / linux / lantiq / dts / BTHOMEHUBV2B.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "BTHOMEHUBV2B - BT Home Hub 2B";  /* SoC: Lantiq Danube-S PSB 50712 @ 333MHz V1.3/1.5 */
7
8         chosen {
9                 // uncomment for overlayfs on top of ubi
10                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit ubi.mtd=rootfs_ubi,256 root=/dev/mtdblock8";
11                 // uncomment for ubifs
12 //              bootargs = "console=ttyLTQ0,115200 init=/etc/preinit ubi.mtd=rootfs_ubi,256 root=ubi0:rootfs rootfstype=ubifs";
13         };
14
15         memory@0 {                                /* RAM: Samsung K4H511638F-LC 64MB */
16                 reg = <0x0 0x4000000>;
17         };
18
19         sram@1F000000 {
20                 vmmc@107000 {
21                         status = "okay";
22                         gpios = <&gpio 31 0>;
23                 };
24         };
25
26         fpi@10000000 {
27                 #address-cells = <1>;
28                 #size-cells = <1>;
29                 localbus@0 {
30                         #address-cells = <2>;
31                         #size-cells = <1>;
32                         ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
33                                 1 0 0x4000000 0x4000010>; /* addsel1 */
34                         compatible = "lantiq,localbus", "simple-bus";
35
36                         nor-boot@0 {                            /* NOR Flash: Spansion S29AL004D 512KB */
37                                 compatible = "lantiq,nor";      /* "AMD AM29LV400BB" compatible on 3.3.8 */
38                                 lantiq,cs = <0>;
39                                 bank-width = <2>;
40                                 reg = <0 0x0 0x80000>;
41                                 #address-cells = <1>;
42                                 #size-cells = <1>;
43
44                                 partition@0 {
45                                         label = "uboot";
46                                         reg = <0x00000 0x40000>; /* 256KB */
47                                 };
48
49                                 partition@40000 {
50                                         label = "uboot_env";
51                                         reg = <0x40000 0x10000>; /* 64KB */
52                                 };
53
54                                 partition@50000 {
55                                         label = "rg_conf_1";
56                                         reg = <0x50000 0x10000>;
57                                 };
58
59                                 partition@60000 {
60                                         label = "rg_conf_2";
61                                         reg = <0x60000 0x10000>;
62                                 };
63
64                                 partition@70000 {
65                                         label = "rg_conf_factory";
66                                         reg = <0x70000 0x10000>;
67                                 };
68                         };
69
70                         nand-parts@0 {            /* NAND Flash: Samsung K9F5608U0D-JIB0 32MB */
71                                 compatible = "gen_nand", "lantiq,nand-xway";
72                                 lantiq,cs = <1>;
73                                 bank-width = <2>;
74                                 reg = <1 0x0 0x2000000 >;
75                                 #address-cells = <1>;
76                                 #size-cells = <1>;
77                                 req-mask = <0x1>;  /* PCI request lines to mask during NAND access */
78
79                                 ath9k_cal: partition@0 {
80                                         label = "art";     /* Atheros 9160 wifi b/g/n radio EEPROM */
81                                         reg = <0x00000 0x4000>;
82                                         read-only;
83                                 };
84
85                                 partition@4000 {
86                                         label = "kernel";
87                                         reg = <0x4000 0x160000>;
88                                 };
89
90                                 partition@164000 {
91                                         label = "rootfs_ubi";
92                                         reg = <0x164000 0x1E9C000>;
93                                 };
94
95                         };
96
97
98                         ath9k_eep {
99                                 compatible = "ath9k,eeprom";
100                                 ath,eep-flash = <&ath9k_cal 0x0000>;
101                                 ath,mac-increment = <1>;
102                                 ath,pci-slot = <14>;
103                                 ath,eep-endian;
104                         };
105                 };
106
107                 gpio: pinmux@E100B10 {
108                         compatible = "lantiq,pinctrl-xway";
109                         pinctrl-names = "default";
110                         pinctrl-0 = <&state_default>;
111
112                         #gpio-cells = <2>;
113                         gpio-controller;
114                         reg = <0xE100B10 0xA0>;
115
116                         state_default: pinmux {
117                                 stp {
118                                         lantiq,groups = "stp";
119                                         lantiq,function = "stp";
120                                         lantiq,output = <1>;
121                                         lantiq,open-drain = <0>;
122                                         lantiq,pull = <0>;
123                                 };
124                                 nand_out {
125                                         lantiq,groups = "nand cle", "nand ale";
126                                         lantiq,function = "ebu";
127                                         lantiq,output = <1>;
128                                         lantiq,open-drain = <0>;
129                                         lantiq,pull = <0>;
130                                 };
131                                 nand_cs1 {
132                                         lantiq,groups = "nand cs1";
133                                         lantiq,function = "ebu";
134                                         lantiq,open-drain = <0>;
135                                         lantiq,pull = <0>;
136                                 };
137                                 exin {
138                                         lantiq,groups = "exin1";
139                                         lantiq,function = "exin";
140                                 };
141                                 pci_in {
142                                         lantiq,groups = "req1";
143                                         lantiq,function = "pci";
144                                         lantiq,output = <0>;
145                                         lantiq,open-drain = <1>;
146                                         lantiq,pull = <2>;
147                                 };
148                                 pci_out {
149                                         lantiq,groups = "gnt1";
150                                         lantiq,function = "pci";
151                                         lantiq,output = <1>;
152                                         lantiq,open-drain = <0>;
153                                         lantiq,pull = <0>;
154                                 };
155
156                                 pci_rst {
157                                         lantiq,pins = "io21";
158                                         lantiq,output = <1>;
159                                         lantiq,open-drain = <0>;
160                                 };
161
162                                 btn_in {
163                                         lantiq,pins = "io2", "io15", "io22";
164                                         lantiq,output = <0>;
165                                         lantiq,open-drain = <1>;
166                                         lantiq,pull = <2>;
167                                 };
168                         };
169                 };
170
171                 etop@E180000 {
172                         compatible = "lantiq,etop-xway";
173                         reg = <0xE180000 0x40000>;
174                         interrupt-parent = <&icu0>;
175                         interrupts = <73 78>;
176                         phy-mode = "rmii";
177                         mac-address = [ 00 11 22 33 44 55 ];
178                 };
179
180                 ifxhcd@E101000 {
181                         status = "okay";
182                 };
183
184                 stp0: stp@E100BB0 {
185                         status = "okay";
186                         #gpio-cells = <2>;
187                         compatible = "lantiq,gpio-stp-xway";
188                         gpio-controller;
189                         reg = <0xE100BB0 0x40>;
190
191                         lantiq,shadow = <0xfff>;
192                         lantiq,groups = <0x3>;
193                 };
194
195                 pci@E105400 {
196                         status = "okay";
197                         lantiq,bus-clock = <33333333>;
198                         interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
199                         interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
200                         gpio-reset = <&gpio 21 0>;
201                         req-mask = <0x1>;                /* GNT1 */
202                 };
203
204         };
205
206         gpio-keys-polled {
207                 compatible = "gpio-keys-polled";
208                 #address-cells = <1>;
209                 #size-cells = <0>;
210                 poll-interval = <100>;
211
212                 reset {
213                         label = "reset";
214                         gpios = <&gpio 2 1>;
215                         linux,code = <0x198>;
216                 };
217                 findhandset {
218                         label = "findhandset";
219                         gpios = <&gpio 15 1>;
220                         linux,code = <0x101>;
221                 };
222                 wps {
223                         label = "wps";
224                         gpios = <&gpio 22 1>;
225                         linux,code = <0x211>;
226                 };
227         };
228
229         gpio-leds {
230                 compatible = "gpio-leds";
231
232                 upgrading-orange {
233                         label = "soc:orange:upgrading";
234                         gpios = <&stp0 5 0>;
235                 };
236
237                 phone-orange {
238                         label = "soc:orange:phone";
239                         gpios = <&stp0 6 0>;
240                 };
241                 phone-blue {
242                         label = "soc:blue:phone";
243                         gpios = <&stp0 7 0>;
244                 };
245
246                 wireless-orange {
247                         label = "soc:orange:wireless";
248                         gpios = <&stp0 8 0>;
249                 };
250                 wireless-blue {
251                         label = "soc:blue:wireless";
252                         gpios = <&stp0 9 0>;
253                 };
254
255                 broadband-red {
256                         label = "soc:red:broadband";
257                         gpios = <&stp0 10 0>;
258                 };
259                 broadband-orange {
260                         label = "soc:orange:broadband";
261                         gpios = <&stp0 11 0>;
262                 };
263                 broadband-blue {
264                         label = "soc:blue:broadband";
265                         gpios = <&stp0 12 0>;
266                 };
267
268                 power-red {
269                         label = "soc:red:power";
270                         gpios = <&stp0 13 0>;
271                 };
272                 power-orange {
273                         label = "soc:orange:power";
274                         gpios = <&stp0 14 0>;
275                 };
276                 power-blue {
277                         label = "soc:blue:power";
278                         gpios = <&stp0 15 0>;
279                 };
280         };
281
282 };
283