OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "vr9.dtsi" |
||
4 | |||
5 | #include <dt-bindings/input/input.h> |
||
6 | |||
7 | / { |
||
8 | compatible = "bt,homehub-v5a", "lantiq,xway", "lantiq,vr9"; |
||
9 | model = "BT Home Hub 5A"; |
||
10 | |||
11 | chosen { |
||
12 | bootargs = "console=ttyLTQ0,115200"; |
||
13 | }; |
||
14 | |||
15 | aliases { |
||
16 | led-boot = &power_green; |
||
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 { |
||
25 | reg = <0x0 0x8000000>; |
||
26 | }; |
||
27 | |||
28 | fpi@10000000 { |
||
29 | localbus@0 { |
||
30 | nand-parts@0 { |
||
31 | compatible = "lantiq,nand-xway"; |
||
32 | lantiq,cs = <1>; |
||
33 | bank-width = <2>; |
||
34 | reg = <0x1 0x0 0x2000000>; |
||
35 | #address-cells = <1>; |
||
36 | #size-cells = <1>; |
||
37 | nand-on-flash-bbt; |
||
38 | nand-ecc-strength = <3>; |
||
39 | nand-ecc-step-size = <256>; |
||
40 | |||
41 | partitions { |
||
42 | compatible = "fixed-partitions"; |
||
43 | #address-cells = <1>; |
||
44 | #size-cells = <1>; |
||
45 | |||
46 | partition@0 { |
||
47 | label = "u-boot"; |
||
48 | reg = <0x0 0xa0000>; |
||
49 | read-only; |
||
50 | }; |
||
51 | partition@a0000 { |
||
52 | label = "uboot-env"; |
||
53 | reg = <0xa0000 0x20000>; |
||
54 | read-only; |
||
55 | }; |
||
56 | partition@c0000 { |
||
57 | label = "unused"; |
||
58 | reg = <0xc0000 0x40000>; |
||
59 | }; |
||
60 | partition@100000 { |
||
61 | label = "ubi"; |
||
62 | reg = <0x100000 0x7e80000>; |
||
63 | }; |
||
64 | /* |
||
65 | * last 512 KiB are for the bad block table, not writable |
||
66 | */ |
||
67 | }; |
||
68 | }; |
||
69 | }; |
||
70 | |||
71 | gpio: pinmux@E100B10 { |
||
72 | pinctrl-names = "default"; |
||
73 | pinctrl-0 = <&state_default>; |
||
74 | |||
75 | state_default: pinmux { |
||
76 | mdio { |
||
77 | lantiq,groups = "mdio"; |
||
78 | lantiq,function = "mdio"; |
||
79 | }; |
||
80 | pci_rst { |
||
81 | lantiq,pins = "io21"; |
||
82 | lantiq,output = <1>; |
||
83 | lantiq,open-drain; |
||
84 | }; |
||
85 | pcie_rst { |
||
86 | lantiq,pins = "io38"; |
||
87 | lantiq,pull = <0>; |
||
88 | lantiq,output = <1>; |
||
89 | lantiq,open-drain; |
||
90 | }; |
||
91 | usb_vbus { |
||
92 | lantiq,pins = "io33"; |
||
93 | lantiq,pull = <0>; |
||
94 | lantiq,open-drain = <0>; |
||
95 | lantiq,output = <1>; |
||
96 | }; |
||
97 | nand_out { |
||
98 | lantiq,groups = "nand cle", "nand ale"; |
||
99 | lantiq,function = "ebu"; |
||
100 | lantiq,output = <1>; |
||
101 | lantiq,open-drain = <0>; |
||
102 | lantiq,pull = <0>; |
||
103 | }; |
||
104 | nand_cs1 { |
||
105 | lantiq,groups = "nand cs1"; |
||
106 | lantiq,function = "ebu"; |
||
107 | lantiq,open-drain = <0>; |
||
108 | lantiq,pull = <0>; |
||
109 | }; |
||
110 | }; |
||
111 | }; |
||
112 | |||
113 | ifxhcd@E101000 { |
||
114 | status = "okay"; |
||
115 | gpios = <&gpio 33 GPIO_ACTIVE_HIGH>; |
||
116 | }; |
||
117 | }; |
||
118 | |||
119 | gphy-xrx200 { |
||
120 | compatible = "lantiq,phy-xrx200"; |
||
121 | firmware1 = "lantiq/xrx200_phy11g_a14.bin"; /*VR9 1.1*/ |
||
122 | firmware2 = "lantiq/xrx200_phy11g_a22.bin"; /*VR9 1.2*/ |
||
123 | phys = [ 00 01 ]; |
||
124 | }; |
||
125 | |||
126 | gpio-keys-polled { |
||
127 | compatible = "gpio-keys-polled"; |
||
128 | #address-cells = <1>; |
||
129 | #size-cells = <0>; |
||
130 | poll-interval = <100>; |
||
131 | |||
132 | reset { |
||
133 | label = "reset"; |
||
134 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
||
135 | linux,code = <KEY_RESTART>; |
||
136 | }; |
||
137 | |||
138 | wps { |
||
139 | label = "wps"; |
||
140 | gpios = <&gpio 25 GPIO_ACTIVE_LOW>; |
||
141 | linux,code = <KEY_WPS_BUTTON>; |
||
142 | }; |
||
143 | |||
144 | restart { |
||
145 | label = "restart"; |
||
146 | gpios = <&gpio 39 GPIO_ACTIVE_LOW>; |
||
147 | linux,code = <KEY_POWER>; |
||
148 | }; |
||
149 | }; |
||
150 | |||
151 | gpio-leds { |
||
152 | compatible = "gpio-leds"; |
||
153 | |||
154 | /* broadband-* is a single RGB led */ |
||
155 | broadband-red { |
||
156 | label = "bthomehubv5a:red:broadband"; |
||
157 | gpios = <&gpio 0 GPIO_ACTIVE_LOW>; |
||
158 | }; |
||
159 | broadband-green { |
||
160 | label = "bthomehubv5a:green:broadband"; |
||
161 | gpios = <&gpio 3 GPIO_ACTIVE_LOW>; |
||
162 | }; |
||
163 | broadband_blue: broadband-blue { |
||
164 | label = "bthomehubv5a:blue:broadband"; |
||
165 | gpios = <&gpio 8 GPIO_ACTIVE_LOW>; |
||
166 | }; |
||
167 | |||
168 | /* wireless-* is a single RGB led */ |
||
169 | wireless-red { |
||
170 | label = "bthomehubv5a:red:wireless"; |
||
171 | gpios = <&gpio 9 GPIO_ACTIVE_LOW>; |
||
172 | }; |
||
173 | wireless-green { |
||
174 | label = "bthomehubv5a:green:wireless"; |
||
175 | gpios = <&gpio 10 GPIO_ACTIVE_LOW>; |
||
176 | }; |
||
177 | wireless_blue: wireless-blue { |
||
178 | label = "bthomehubv5a:blue:wireless"; |
||
179 | gpios = <&gpio 11 GPIO_ACTIVE_LOW>; |
||
180 | }; |
||
181 | |||
182 | /* power-* is a single RGB led */ |
||
183 | power_red: power-red { |
||
184 | label = "bthomehubv5a:red:power"; |
||
185 | gpios = <&gpio 12 GPIO_ACTIVE_LOW>; |
||
186 | }; |
||
187 | power_green: power-green { |
||
188 | label = "bthomehubv5a:green:power"; |
||
189 | gpios = <&gpio 14 GPIO_ACTIVE_LOW>; |
||
190 | default-state = "keep"; |
||
191 | }; |
||
192 | power_blue: power-blue { |
||
193 | label = "bthomehubv5a:blue:power"; |
||
194 | gpios = <&gpio 15 GPIO_ACTIVE_LOW>; |
||
195 | }; |
||
196 | |||
197 | dimmed { |
||
198 | label = "dimmed"; |
||
199 | gpios = <&gpio 19 GPIO_ACTIVE_HIGH>; |
||
200 | }; |
||
201 | }; |
||
202 | }; |
||
203 | |||
204 | &pci0 { |
||
205 | status = "okay"; |
||
206 | gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; |
||
207 | |||
208 | wifi@168c,002d { |
||
209 | compatible = "pci168c,002d"; |
||
210 | reg = <0x7000 0 0 0 0>; |
||
211 | qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */ |
||
212 | qca,disable-5ghz; |
||
213 | }; |
||
214 | }; |
||
215 | |||
216 | ð0 { |
||
217 | lan: interface@0 { |
||
218 | compatible = "lantiq,xrx200-pdi"; |
||
219 | #address-cells = <1>; |
||
220 | #size-cells = <0>; |
||
221 | reg = <0>; |
||
222 | lantiq,switch; |
||
223 | |||
224 | ethernet@0 { |
||
225 | compatible = "lantiq,xrx200-pdi-port"; |
||
226 | reg = <0>; |
||
227 | phy-mode = "rgmii"; |
||
228 | phy-handle = <&phy0>; |
||
229 | }; |
||
230 | ethernet@1 { |
||
231 | compatible = "lantiq,xrx200-pdi-port"; |
||
232 | reg = <1>; |
||
233 | phy-mode = "rgmii"; |
||
234 | phy-handle = <&phy1>; |
||
235 | }; |
||
236 | ethernet@2 { |
||
237 | compatible = "lantiq,xrx200-pdi-port"; |
||
238 | reg = <2>; |
||
239 | phy-mode = "gmii"; |
||
240 | phy-handle = <&phy11>; |
||
241 | }; |
||
242 | ethernet@4 { |
||
243 | compatible = "lantiq,xrx200-pdi-port"; |
||
244 | reg = <4>; |
||
245 | phy-mode = "gmii"; |
||
246 | phy-handle = <&phy13>; |
||
247 | }; |
||
248 | ethernet@5 { |
||
249 | compatible = "lantiq,xrx200-pdi-port"; |
||
250 | reg = <5>; |
||
251 | phy-mode = "rgmii"; |
||
252 | phy-handle = <&phy5>; |
||
253 | }; |
||
254 | }; |
||
255 | |||
256 | mdio@0 { |
||
257 | #address-cells = <1>; |
||
258 | #size-cells = <0>; |
||
259 | compatible = "lantiq,xrx200-mdio"; |
||
260 | |||
261 | phy0: ethernet-phy@0 { |
||
262 | reg = <0x0>; |
||
263 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
||
264 | }; |
||
265 | phy1: ethernet-phy@1 { |
||
266 | reg = <0x1>; |
||
267 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
||
268 | }; |
||
269 | phy5: ethernet-phy@5 { |
||
270 | reg = <0x5>; |
||
271 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
||
272 | }; |
||
273 | phy11: ethernet-phy@11 { |
||
274 | reg = <0x11>; |
||
275 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
||
276 | }; |
||
277 | phy13: ethernet-phy@13 { |
||
278 | reg = <0x13>; |
||
279 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
||
280 | }; |
||
281 | }; |
||
282 | }; |