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