97d08295484ca0ad3b5db31b613955c2882ac0ef
[openwrt/openwrt.git] / target / linux / lantiq / dts / BTHOMEHUBV5A.dts
1 /dts-v1/;
2
3 #include "vr9.dtsi"
4
5 / {
6 model = "BTHOMEHUBV5A - BT Home Hub 5A";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10 };
11
12 aliases {
13 led-boot = &power_green;
14 led-failsafe = &power_red;
15 led-running = &power_blue;
16
17 led-internet = &broadband_blue;
18 led-wifi = &wireless_blue;
19 };
20
21 memory@0 {
22 reg = <0x0 0x8000000>;
23 };
24
25 cputemp@0 {
26 compatible = "lantiq,cputemp";
27 };
28
29 fpi@10000000 {
30 localbus@0 {
31 nand-parts@0 {
32 compatible = "gen_nand", "lantiq,nand-xway";
33 lantiq,cs = <1>;
34 bank-width = <2>;
35 reg = <0x1 0x0 0x2000000>;
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "u-boot";
46 reg = <0x0 0x40000>;
47 read-only;
48 };
49 partition@40000 {
50 label = "uboot-env";
51 reg = <0x40000 0x40000>;
52 };
53 caldata: partition@80000 {
54 label = "caldata";
55 reg = <0x80000 0x20000>;
56 read-only;
57 };
58 partition@a0000 {
59 label = "kernel";
60 reg = <0xa0000 0x200000>;
61 };
62 partition@2a0000 {
63 label = "ubi";
64 reg = <0x2a0000 0x7d60000>;
65 };
66 };
67 };
68 };
69
70 gpio: pinmux@E100B10 {
71 pinctrl-names = "default";
72 pinctrl-0 = <&state_default>;
73
74 interrupt-parent = <&icu0>;
75 interrupts = <166 135 66 40 41 42 38>;
76
77 state_default: pinmux {
78 mdio {
79 lantiq,groups = "mdio";
80 lantiq,function = "mdio";
81 };
82 pci_rst {
83 lantiq,pins = "io21";
84 lantiq,output = <1>;
85 lantiq,open-drain;
86 };
87 pcie_rst {
88 lantiq,pins = "io38";
89 lantiq,pull = <0>;
90 lantiq,output = <1>;
91 lantiq,open-drain;
92 };
93 usb_vbus {
94 lantiq,pins = "io33";
95 lantiq,pull = <0>;
96 lantiq,open-drain = <0>;
97 lantiq,output = <1>;
98 };
99 nand_out {
100 lantiq,groups = "nand cle", "nand ale";
101 lantiq,function = "ebu";
102 lantiq,output = <1>;
103 lantiq,open-drain = <0>;
104 lantiq,pull = <0>;
105 };
106 nand_cs1 {
107 lantiq,groups = "nand cs1";
108 lantiq,function = "ebu";
109 lantiq,open-drain = <0>;
110 lantiq,pull = <0>;
111 };
112 };
113 };
114
115 ifxhcd@E101000 {
116 status = "okay";
117 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
118 };
119
120 pci@E105400 {
121 status = "okay";
122 lantiq,bus-clock = <33333333>;
123 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
124 interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
125 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
126 };
127 };
128
129 gphy-xrx200 {
130 compatible = "lantiq,phy-xrx200";
131 firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /*VR9 1.1*/
132 firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /*VR9 1.2*/
133 phys = [ 00 01 ];
134 };
135
136 ath9k_eep {
137 compatible = "ath9k,eeprom";
138 ath,eep-flash = <&caldata 0x1000>;
139 ath,mac-offset = <0x110c>;
140 ath,mac-increment = <2>;
141 ath,pci-slot = <0xe>; /* 14 */
142 };
143
144 gpio-keys-polled {
145 compatible = "gpio-keys-polled";
146 #address-cells = <1>;
147 #size-cells = <0>;
148 poll-interval = <100>;
149
150 reset {
151 label = "reset";
152 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
153 linux,code = <KEY_RESTART>;
154 };
155
156 wps {
157 label = "wps";
158 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
159 linux,code = <KEY_WPS_BUTTON>;
160 };
161
162 restart {
163 label = "restart";
164 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
165 linux,code = <KEY_POWER>;
166 };
167 };
168
169 gpio-leds {
170 compatible = "gpio-leds";
171
172 /* broadband-* is a single RGB led */
173 broadband-red {
174 label = "bthomehubv5a:red:broadband";
175 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
176 };
177 broadband-green {
178 label = "bthomehubv5a:green:broadband";
179 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
180 };
181 broadband_blue: broadband-blue {
182 label = "bthomehubv5a:blue:broadband";
183 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
184 };
185
186 /* wireless-* is a single RGB led */
187 wireless-red {
188 label = "bthomehubv5a:red:wireless";
189 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
190 };
191 wireless-green {
192 label = "bthomehubv5a:green:wireless";
193 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
194 };
195 wireless_blue: wireless-blue {
196 label = "bthomehubv5a:blue:wireless";
197 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
198 };
199
200 /* power-* is a single RGB led */
201 power_red: power-red {
202 label = "bthomehubv5a:red:power";
203 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
204 };
205 power_green: power-green {
206 label = "bthomehubv5a:green:power";
207 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
208 default-state = "keep";
209 };
210 power_blue: power-blue {
211 label = "bthomehubv5a:blue:power";
212 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
213 };
214
215 dimmed {
216 label = "dimmed";
217 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
218 };
219 };
220 };
221
222 &eth0 {
223 lan: interface@0 {
224 compatible = "lantiq,xrx200-pdi";
225 #address-cells = <1>;
226 #size-cells = <0>;
227 reg = <0>;
228 mtd-mac-address = <&caldata 0x110c>;
229 lantiq,switch;
230
231 ethernet@0 {
232 compatible = "lantiq,xrx200-pdi-port";
233 reg = <0>;
234 phy-mode = "rgmii";
235 phy-handle = <&phy0>;
236 };
237 ethernet@1 {
238 compatible = "lantiq,xrx200-pdi-port";
239 reg = <1>;
240 phy-mode = "rgmii";
241 phy-handle = <&phy1>;
242 };
243 ethernet@2 {
244 compatible = "lantiq,xrx200-pdi-port";
245 reg = <2>;
246 phy-mode = "gmii";
247 phy-handle = <&phy11>;
248 };
249 ethernet@4 {
250 compatible = "lantiq,xrx200-pdi-port";
251 reg = <4>;
252 phy-mode = "gmii";
253 phy-handle = <&phy13>;
254 };
255 };
256
257 wan: interface@1 {
258 compatible = "lantiq,xrx200-pdi";
259 #address-cells = <1>;
260 #size-cells = <0>;
261 reg = <1>;
262 mtd-mac-address = <&caldata 0x110c>;
263 mtd-mac-address-increment = <4>;
264 lantiq,wan;
265
266 ethernet@5 {
267 compatible = "lantiq,xrx200-pdi-port";
268 reg = <5>;
269 phy-mode = "rgmii";
270 phy-handle = <&phy5>;
271 };
272 };
273
274 mdio@0 {
275 #address-cells = <1>;
276 #size-cells = <0>;
277 compatible = "lantiq,xrx200-mdio";
278
279 phy0: ethernet-phy@0 {
280 reg = <0x0>;
281 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
282 };
283 phy1: ethernet-phy@1 {
284 reg = <0x1>;
285 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
286 };
287 phy5: ethernet-phy@5 {
288 reg = <0x5>;
289 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
290 };
291 phy11: ethernet-phy@11 {
292 reg = <0x11>;
293 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
294 };
295 phy13: ethernet-phy@13 {
296 reg = <0x13>;
297 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
298 };
299 };
300 };