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