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