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