OpenWrt – Blame information for rev 1

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