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