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