40e6b4e56acac360df2a297e5ab58b1e51c22129
[openwrt.git] / target / linux / imx6 / files-3.10 / arch / arm / boot / dts / imx6qdl-gw53xx.dtsi
1 /*
2  * Copyright 2013 Gateworks Corporation
3  *
4  * The code contained herein is licensed under the GNU General Public
5  * License. You may obtain a copy of the GNU General Public License
6  * Version 2 or later at the following locations:
7  *
8  * http://www.opensource.org/licenses/gpl-license.html
9  * http://www.gnu.org/copyleft/gpl.html
10  */
11
12 / {
13         /* these are used by bootloader for disabling nodes */
14         aliases {
15                 can0 = &can1;
16                 ethernet0 = &fec;
17                 ethernet1 = &eth1;
18                 i2c0 = &i2c1;
19                 i2c1 = &i2c2;
20                 i2c2 = &i2c3;
21                 led0 = &led0;
22                 led1 = &led1;
23                 led2 = &led2;
24                 nand = &gpmi;
25                 sky2 = &eth1;
26                 ssi0 = &ssi1;
27                 usb0 = &usbh1;
28                 usb1 = &usbotg;
29                 usdhc2 = &usdhc3;
30         };
31
32         chosen {
33                 bootargs = "console=ttymxc1,115200";
34         };
35
36         leds {
37                 compatible = "gpio-leds";
38
39                 led0: user1 {
40                         label = "user1";
41                         gpios = <&gpio4 6 0>; /* 102 -> MX6_PANLEDG */
42                         default-state = "on";
43                         linux,default-trigger = "heartbeat";
44                 };
45
46                 led1: user2 {
47                         label = "user2";
48                         gpios = <&gpio4 7 0>; /* 103 -> MX6_PANLEDR */
49                         default-state = "off";
50                 };
51
52                 led2: user3 {
53                         label = "user3";
54                         gpios = <&gpio4 15 1>; /* 111 -> MX6_LOCLED# */
55                         default-state = "off";
56                 };
57         };
58
59         memory {
60                 reg = <0x10000000 0x40000000>;
61         };
62
63         regulators {
64                 compatible = "simple-bus";
65
66                 reg_1p0v: 1p0v {
67                         compatible = "regulator-fixed";
68                         regulator-name = "1P0V";
69                         regulator-min-microvolt = <1000000>;
70                         regulator-max-microvolt = <1000000>;
71                         regulator-always-on;
72                 };
73
74                 /* remove this fixed regulator once ltc3676__sw2 driver available */
75                 reg_1p8v: 1p8v {
76                         compatible = "regulator-fixed";
77                         regulator-name = "1P8V";
78                         regulator-min-microvolt = <1800000>;
79                         regulator-max-microvolt = <1800000>;
80                         regulator-always-on;
81                 };
82
83                 reg_3p3v: 3p3v {
84                         compatible = "regulator-fixed";
85                         regulator-name = "3P3V";
86                         regulator-min-microvolt = <3300000>;
87                         regulator-max-microvolt = <3300000>;
88                         regulator-always-on;
89                 };
90
91                 reg_usb_h1_vbus: usb_h1_vbus {
92                         compatible = "regulator-fixed";
93                         regulator-name = "usb_h1_vbus";
94                         regulator-min-microvolt = <5000000>;
95                         regulator-max-microvolt = <5000000>;
96                         regulator-always-on;
97                 };
98
99                 reg_usb_otg_vbus: usb_otg_vbus {
100                         compatible = "regulator-fixed";
101                         regulator-name = "usb_otg_vbus";
102                         regulator-min-microvolt = <5000000>;
103                         regulator-max-microvolt = <5000000>;
104                         gpio = <&gpio3 22 0>;
105                         enable-active-high;
106                 };
107         };
108
109         sound {
110                 compatible = "fsl,imx6q-sabrelite-sgtl5000",
111                              "fsl,imx-audio-sgtl5000";
112                 model = "imx6q-sabrelite-sgtl5000";
113                 ssi-controller = <&ssi1>;
114                 audio-codec = <&codec>;
115                 audio-routing =
116                         "MIC_IN", "Mic Jack",
117                         "Mic Jack", "Mic Bias",
118                         "Headphone Jack", "HP_OUT";
119                 mux-int-port = <1>;
120                 mux-ext-port = <4>;
121         };
122 };
123
124 &audmux {
125         pinctrl-names = "default";
126         pinctrl-0 = <&pinctrl_audmux_1>;
127         status = "okay";
128 };
129
130 &can1 {
131         pinctrl-names = "default";
132         pinctrl-0 = <&pinctrl_flexcan1_1>;
133         status = "okay";
134 };
135
136 &fec {
137         pinctrl-names = "default";
138         pinctrl-0 = <&pinctrl_enet_1>;
139         phy-mode = "rgmii";
140         phy-reset-gpios = <&gpio1 30 0>;
141         status = "okay";
142 };
143
144 &gpmi {
145         pinctrl-names = "default";
146         pinctrl-0 = <&pinctrl_gpmi_nand_2>;
147         status = "okay";
148 };
149
150 &i2c1 {
151         clock-frequency = <100000>;
152         pinctrl-names = "default";
153         pinctrl-0 = <&pinctrl_i2c1_1>;
154         status = "okay";
155
156         eeprom1: eeprom@50 {
157                 compatible = "atmel,24c02";
158                 reg = <0x50>;
159                 pagesize = <16>;
160         };
161
162         eeprom2: eeprom@51 {
163                 compatible = "atmel,24c02";
164                 reg = <0x51>;
165                 pagesize = <16>;
166         };
167
168         eeprom3: eeprom@52 {
169                 compatible = "atmel,24c02";
170                 reg = <0x52>;
171                 pagesize = <16>;
172         };
173
174         eeprom4: eeprom@53 {
175                 compatible = "atmel,24c02";
176                 reg = <0x53>;
177                 pagesize = <16>;
178         };
179
180         gpio: pca9555@23 {
181                 compatible = "nxp,pca9555";
182                 reg = <0x23>;
183                 gpio-controller;
184                 #gpio-cells = <2>;
185         };
186
187         hwmon: gsc@29 {
188                 compatible = "gw,gsp";
189                 reg = <0x29>;
190         };
191
192         rtc: ds1672@68 {
193                 compatible = "dallas,ds1672";
194                 reg = <0x68>;
195         };
196 };
197
198 &i2c2 {
199         clock-frequency = <100000>;
200         pinctrl-names = "default";
201         pinctrl-0 = <&pinctrl_i2c2_2>;
202         status = "okay";
203
204         pciswitch: pex8609@3f {
205                 compatible = "plx,pex8609";
206                 reg = <0x3f>;
207         };
208
209         pmic: ltc3676@3c {
210                 compatible = "ltc,ltc3676";
211                 reg = <0x3c>;
212
213                 regulators {
214                         sw1_reg: ltc3676__sw1 {
215                                 regulator-min-microvolt = <1175000>;
216                                 regulator-max-microvolt = <1175000>;
217                                 regulator-boot-on;
218                                 regulator-always-on;
219                         };
220
221                         sw2_reg: ltc3676__sw2 {
222                                 regulator-min-microvolt = <1800000>;
223                                 regulator-max-microvolt = <1800000>;
224                                 regulator-boot-on;
225                                 regulator-always-on;
226                         };
227
228                         sw3_reg: ltc3676__sw3 {
229                                 regulator-min-microvolt = <1175000>;
230                                 regulator-max-microvolt = <1175000>;
231                                 regulator-boot-on;
232                                 regulator-always-on;
233                         };
234
235                         sw4_reg: ltc3676__sw4 {
236                                 regulator-min-microvolt = <1500000>;
237                                 regulator-max-microvolt = <1500000>;
238                                 regulator-boot-on;
239                                 regulator-always-on;
240                         };
241
242                         ldo2_reg: ltc3676__ldo2 {
243                                 regulator-min-microvolt = <2500000>;
244                                 regulator-max-microvolt = <2500000>;
245                                 regulator-boot-on;
246                                 regulator-always-on;
247                         };
248
249                         ldo3_reg: ltc3676__ldo3 {
250                                 regulator-min-microvolt = <1800000>;
251                                 regulator-max-microvolt = <1800000>;
252                                 regulator-boot-on;
253                                 regulator-always-on;
254                         };
255
256                         ldo4_reg: ltc3676__ldo4 {
257                                 regulator-min-microvolt = <3000000>;
258                                 regulator-max-microvolt = <3000000>;
259                         };
260                 };
261         };
262 };
263
264 &i2c3 {
265         clock-frequency = <100000>;
266         pinctrl-names = "default";
267         pinctrl-0 = <&pinctrl_i2c3_2>;
268         status = "okay";
269
270         accelerometer: fxos8700@1e {
271                 compatible = "fsl,fxos8700";
272                 reg = <0x1e>;
273         };
274
275         codec: sgtl5000@0a {
276                 compatible = "fsl,sgtl5000";
277                 reg = <0x0a>;
278                 clocks = <&clks 169>;
279                 VDDA-supply = <&reg_1p8v>;
280                 VDDIO-supply = <&reg_3p3v>;
281         };
282
283         hdmiin: adv7611@4c {
284                 compatible = "adi,adv7611";
285                 reg = <0x4c>;
286         };
287
288         touchscreen: egalax_ts@04 {
289                 compatible = "eeti,egalax_ts";
290                 reg = <0x04>;
291                 interrupt-parent = <&gpio7>;
292                 interrupts = <12 2>; /* gpio7_12 active low */
293                 wakeup-gpios = <&gpio7 12 0>;
294         };
295
296         videoout: adv7393@2a {
297                 compatible = "adi,adv7393";
298                 reg = <0x2a>;
299         };
300
301         videoin: adv7180@20 {
302                 compatible = "adi,adv7180";
303                 reg = <0x20>;
304         };
305 };
306
307 &ldb {
308         status = "okay";
309         lvds-channel@0 {
310                 crtcs = <&ipu1 0>, <&ipu1 1>;
311         };
312 };
313
314 &pcie {
315         reset-gpio = <&gpio1 29 0>;
316         status = "okay";
317
318         eth1: sky2@8 { /* MAC/PHY on bus 8 */
319                 compatible = "marvell,sky2";
320                 /* Filled in by U-Boot */
321                 mac-address = [ 00 00 00 00 00 00 ];
322         };
323 };
324
325 &ssi1 {
326         fsl,mode = "i2s-slave";
327         status = "okay";
328 };
329
330 &uart1 {
331         pinctrl-names = "default";
332         pinctrl-0 = <&pinctrl_uart1_2>;
333         status = "okay";
334 };
335
336 &uart2 {
337         pinctrl-names = "default";
338         pinctrl-0 = <&pinctrl_uart2_3>;
339         status = "okay";
340 };
341
342 &uart5 {
343         pinctrl-names = "default";
344         pinctrl-0 = <&pinctrl_uart5_1>;
345         status = "okay";
346 };
347
348 &usbotg {
349         vbus-supply = <&reg_usb_otg_vbus>;
350         pinctrl-names = "default";
351         pinctrl-0 = <&pinctrl_usbotg_1>;
352         disable-over-current;
353         status = "okay";
354 };
355
356 &usbh1 {
357         vbus-supply = <&reg_usb_h1_vbus>;
358         status = "okay";
359 };
360
361 &usdhc3 {
362         pinctrl-names = "default";
363         pinctrl-0 = <&pinctrl_usdhc3_2>;
364         cd-gpios = <&gpio7 0 0>;
365         vmmc-supply = <&reg_3p3v>;
366         status = "okay";
367 };