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