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