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