lantiq: cleanup dts files
[librecmc/librecmc.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         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                         state_default: pinmux {
71                                 mdio {
72                                         lantiq,groups = "mdio";
73                                         lantiq,function = "mdio";
74                                 };
75                                 pci_rst {
76                                         lantiq,pins = "io21";
77                                         lantiq,output = <1>;
78                                         lantiq,open-drain;
79                                 };
80                                 pcie_rst {
81                                         lantiq,pins = "io38";
82                                         lantiq,pull = <0>;
83                                         lantiq,output = <1>;
84                                         lantiq,open-drain;
85                                 };
86                                 usb_vbus {
87                                         lantiq,pins = "io33";
88                                         lantiq,pull = <0>;
89                                         lantiq,open-drain = <0>;
90                                         lantiq,output = <1>;
91                                 };
92                                 nand_out {
93                                         lantiq,groups = "nand cle", "nand ale";
94                                         lantiq,function = "ebu";
95                                         lantiq,output = <1>;
96                                         lantiq,open-drain = <0>;
97                                         lantiq,pull = <0>;
98                                 };
99                                 nand_cs1 {
100                                         lantiq,groups = "nand cs1";
101                                         lantiq,function = "ebu";
102                                         lantiq,open-drain = <0>;
103                                         lantiq,pull = <0>;
104                                 };
105                         };
106                 };
107
108                 ifxhcd@E101000 {
109                         status = "okay";
110                         gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
111                 };
112
113                 pci@E105400 {
114                         status = "okay";
115                         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
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 GPIO_ACTIVE_LOW>;
143                         linux,code = <KEY_RESTART>;
144                 };
145
146                 wps {
147                         label = "wps";
148                         gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
149                         linux,code = <KEY_WPS_BUTTON>;
150                 };
151
152                 restart {
153                         label = "restart";
154                         gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
155                         linux,code = <KEY_POWER>;
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 GPIO_ACTIVE_LOW>;
166                 };
167                 broadband-green {
168                         label = "bthomehubv5a:green:broadband";
169                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
170                 };
171                 broadband_blue: broadband-blue {
172                         label = "bthomehubv5a:blue:broadband";
173                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
174                 };
175
176                 /* wireless-* is a single RGB led */
177                 wireless-red {
178                         label = "bthomehubv5a:red:wireless";
179                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
180                 };
181                 wireless-green {
182                         label = "bthomehubv5a:green:wireless";
183                         gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
184                 };
185                 wireless_blue: wireless-blue {
186                         label = "bthomehubv5a:blue:wireless";
187                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
188                 };
189
190                 /* power-* is a single RGB led */
191                 power_red: power-red {
192                         label = "bthomehubv5a:red:power";
193                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
194                 };
195                 power_green: power-green {
196                         label = "bthomehubv5a:green:power";
197                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
198                         default-state = "keep";
199                 };
200                 power_blue: power-blue {
201                         label = "bthomehubv5a:blue:power";
202                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
203                 };
204
205                 dimmed {
206                         label = "dimmed";
207                         gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
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 };