]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
Merge remote-tracking branch 'imx-mxs/for-next'
[karo-tx-linux.git] / arch / arm / boot / dts / imx6qdl-gw54xx.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                 led0 = &led0;
19                 led1 = &led1;
20                 led2 = &led2;
21                 nand = &gpmi;
22                 sky2 = &eth1;
23                 ssi0 = &ssi1;
24                 usb0 = &usbh1;
25                 usb1 = &usbotg;
26                 usdhc2 = &usdhc3;
27         };
28
29         chosen {
30                 bootargs = "console=ttymxc1,115200";
31         };
32
33         leds {
34                 compatible = "gpio-leds";
35
36                 led0: user1 {
37                         label = "user1";
38                         gpios = <&gpio4 6 0>; /* 102 -> MX6_PANLEDG */
39                         default-state = "on";
40                         linux,default-trigger = "heartbeat";
41                 };
42
43                 led1: user2 {
44                         label = "user2";
45                         gpios = <&gpio4 7 0>; /* 103 -> MX6_PANLEDR */
46                         default-state = "off";
47                 };
48
49                 led2: user3 {
50                         label = "user3";
51                         gpios = <&gpio4 15 1>; /* 111 -> MX6_LOCLED# */
52                         default-state = "off";
53                 };
54         };
55
56         memory {
57                 reg = <0x10000000 0x40000000>;
58         };
59
60         pps {
61                 compatible = "pps-gpio";
62                 gpios = <&gpio1 26 0>;
63                 status = "okay";
64         };
65
66         regulators {
67                 compatible = "simple-bus";
68
69                 reg_1p0v: 1p0v {
70                         compatible = "regulator-fixed";
71                         regulator-name = "1P0V";
72                         regulator-min-microvolt = <1000000>;
73                         regulator-max-microvolt = <1000000>;
74                         regulator-always-on;
75                 };
76
77                 reg_3p3v: 3p3v {
78                         compatible = "regulator-fixed";
79                         regulator-name = "3P3V";
80                         regulator-min-microvolt = <3300000>;
81                         regulator-max-microvolt = <3300000>;
82                         regulator-always-on;
83                 };
84
85                 reg_usb_h1_vbus: usb_h1_vbus {
86                         compatible = "regulator-fixed";
87                         regulator-name = "usb_h1_vbus";
88                         regulator-min-microvolt = <5000000>;
89                         regulator-max-microvolt = <5000000>;
90                         regulator-always-on;
91                 };
92
93                 reg_usb_otg_vbus: usb_otg_vbus {
94                         compatible = "regulator-fixed";
95                         regulator-name = "usb_otg_vbus";
96                         regulator-min-microvolt = <5000000>;
97                         regulator-max-microvolt = <5000000>;
98                         gpio = <&gpio3 22 0>;
99                         enable-active-high;
100                 };
101         };
102
103         sound {
104                 compatible = "fsl,imx6q-sabrelite-sgtl5000",
105                              "fsl,imx-audio-sgtl5000";
106                 model = "imx6q-sabrelite-sgtl5000";
107                 ssi-controller = <&ssi1>;
108                 audio-codec = <&codec>;
109                 audio-routing =
110                         "MIC_IN", "Mic Jack",
111                         "Mic Jack", "Mic Bias",
112                         "Headphone Jack", "HP_OUT";
113                 mux-int-port = <1>;
114                 mux-ext-port = <4>;
115         };
116 };
117
118 &audmux {
119         pinctrl-names = "default";
120         pinctrl-0 = <&pinctrl_audmux_1>; /* AUD4<->sgtl5000 */
121         status = "okay";
122 };
123
124 &can1 {
125         pinctrl-names = "default";
126         pinctrl-0 = <&pinctrl_flexcan1_1>;
127         status = "okay";
128 };
129
130 &fec {
131         pinctrl-names = "default";
132         pinctrl-0 = <&pinctrl_enet_1>;
133         phy-mode = "rgmii";
134         phy-reset-gpios = <&gpio1 30 0>;
135         status = "okay";
136 };
137
138 &gpmi {
139         pinctrl-names = "default";
140         pinctrl-0 = <&pinctrl_gpmi_nand_2>;
141         status = "okay";
142 };
143
144 &i2c1 {
145         clock-frequency = <100000>;
146         pinctrl-names = "default";
147         pinctrl-0 = <&pinctrl_i2c1_1>;
148         status = "okay";
149
150         eeprom1: eeprom@50 {
151                 compatible = "atmel,24c02";
152                 reg = <0x50>;
153                 pagesize = <16>;
154         };
155
156         eeprom2: eeprom@51 {
157                 compatible = "atmel,24c02";
158                 reg = <0x51>;
159                 pagesize = <16>;
160         };
161
162         eeprom3: eeprom@52 {
163                 compatible = "atmel,24c02";
164                 reg = <0x52>;
165                 pagesize = <16>;
166         };
167
168         eeprom4: eeprom@53 {
169                 compatible = "atmel,24c02";
170                 reg = <0x53>;
171                 pagesize = <16>;
172         };
173
174         gpio: pca9555@23 {
175                 compatible = "nxp,pca9555";
176                 reg = <0x23>;
177                 gpio-controller;
178                 #gpio-cells = <2>;
179         };
180
181         hwmon: gsc@29 {
182                 compatible = "gw,gsp";
183                 reg = <0x29>;
184         };
185
186         rtc: ds1672@68 {
187                 compatible = "dallas,ds1672";
188                 reg = <0x68>;
189         };
190 };
191
192 &i2c2 {
193         clock-frequency = <100000>;
194         pinctrl-names = "default";
195         pinctrl-0 = <&pinctrl_i2c2_2>;
196         status = "okay";
197
198         pmic: pfuze100@08 {
199                 compatible = "fsl,pfuze100";
200                 reg = <0x08>;
201
202                 regulators {
203                         sw1a_reg: sw1ab {
204                                 regulator-min-microvolt = <300000>;
205                                 regulator-max-microvolt = <1875000>;
206                                 regulator-boot-on;
207                                 regulator-always-on;
208                                 regulator-ramp-delay = <6250>;
209                         };
210
211                         sw1c_reg: sw1c {
212                                 regulator-min-microvolt = <300000>;
213                                 regulator-max-microvolt = <1875000>;
214                                 regulator-boot-on;
215                                 regulator-always-on;
216                                 regulator-ramp-delay = <6250>;
217                         };
218
219                         sw2_reg: sw2 {
220                                 regulator-min-microvolt = <800000>;
221                                 regulator-max-microvolt = <3950000>;
222                                 regulator-boot-on;
223                                 regulator-always-on;
224                         };
225
226                         sw3a_reg: sw3a {
227                                 regulator-min-microvolt = <400000>;
228                                 regulator-max-microvolt = <1975000>;
229                                 regulator-boot-on;
230                                 regulator-always-on;
231                         };
232
233                         sw3b_reg: sw3b {
234                                 regulator-min-microvolt = <400000>;
235                                 regulator-max-microvolt = <1975000>;
236                                 regulator-boot-on;
237                                 regulator-always-on;
238                         };
239
240                         sw4_reg: sw4 {
241                                 regulator-min-microvolt = <800000>;
242                                 regulator-max-microvolt = <3300000>;
243                         };
244
245                         swbst_reg: swbst {
246                                 regulator-min-microvolt = <5000000>;
247                                 regulator-max-microvolt = <5150000>;
248                         };
249
250                         snvs_reg: vsnvs {
251                                 regulator-min-microvolt = <1000000>;
252                                 regulator-max-microvolt = <3000000>;
253                                 regulator-boot-on;
254                                 regulator-always-on;
255                         };
256
257                         vref_reg: vrefddr {
258                                 regulator-boot-on;
259                                 regulator-always-on;
260                         };
261
262                         vgen1_reg: vgen1 {
263                                 regulator-min-microvolt = <800000>;
264                                 regulator-max-microvolt = <1550000>;
265                         };
266
267                         vgen2_reg: vgen2 {
268                                 regulator-min-microvolt = <800000>;
269                                 regulator-max-microvolt = <1550000>;
270                         };
271
272                         vgen3_reg: vgen3 {
273                                 regulator-min-microvolt = <1800000>;
274                                 regulator-max-microvolt = <3300000>;
275                         };
276
277                         vgen4_reg: vgen4 {
278                                 regulator-min-microvolt = <1800000>;
279                                 regulator-max-microvolt = <3300000>;
280                                 regulator-always-on;
281                         };
282
283                         vgen5_reg: vgen5 {
284                                 regulator-min-microvolt = <1800000>;
285                                 regulator-max-microvolt = <3300000>;
286                                 regulator-always-on;
287                         };
288
289                         vgen6_reg: vgen6 {
290                                 regulator-min-microvolt = <1800000>;
291                                 regulator-max-microvolt = <3300000>;
292                                 regulator-always-on;
293                         };
294                 };
295         };
296
297         pciswitch: pex8609@3f {
298                 compatible = "plx,pex8609";
299                 reg = <0x3f>;
300         };
301
302         pciclkgen: si52147@6b {
303                 compatible = "sil,si52147";
304                 reg = <0x6b>;
305         };
306 };
307
308 &i2c3 {
309         clock-frequency = <100000>;
310         pinctrl-names = "default";
311         pinctrl-0 = <&pinctrl_i2c3_2>;
312         status = "okay";
313
314         accelerometer: fxos8700@1e {
315                 compatible = "fsl,fxos8700";
316                 reg = <0x1e>;
317         };
318
319         codec: sgtl5000@0a {
320                 compatible = "fsl,sgtl5000";
321                 reg = <0x0a>;
322                 clocks = <&clks 201>;
323                 VDDA-supply = <&sw4_reg>;
324                 VDDIO-supply = <&reg_3p3v>;
325         };
326
327         hdmiin: adv7611@4c {
328                 compatible = "adi,adv7611";
329                 reg = <0x4c>;
330         };
331
332         touchscreen: egalax_ts@04 {
333                 compatible = "eeti,egalax_ts";
334                 reg = <0x04>;
335                 interrupt-parent = <&gpio7>;
336                 interrupts = <12 2>; /* gpio7_12 active low */
337                 wakeup-gpios = <&gpio7 12 0>;
338         };
339
340         videoout: adv7393@2a {
341                 compatible = "adi,adv7393";
342                 reg = <0x2a>;
343         };
344
345         videoin: adv7180@20 {
346                 compatible = "adi,adv7180";
347                 reg = <0x20>;
348         };
349 };
350
351 &iomuxc {
352         pinctrl-names = "default";
353         pinctrl-0 = <&pinctrl_hog>;
354
355         hog {
356                 pinctrl_hog: hoggrp {
357                         fsl,pins = <
358                                 MX6QDL_PAD_EIM_D22__GPIO3_IO22    0x80000000 /* OTG_PWR_EN */
359                                 MX6QDL_PAD_EIM_D19__GPIO3_IO19    0x80000000 /* SPINOR_CS0# */
360                                 MX6QDL_PAD_ENET_RXD1__GPIO1_IO26  0x80000000 /* GPS_PPS */
361                                 MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x80000000 /* PCIE IRQ */
362                                 MX6QDL_PAD_ENET_TXD1__GPIO1_IO29  0x80000000 /* PCIE RST */
363                                 MX6QDL_PAD_GPIO_0__CCM_CLKO1      0x000130b0 /* AUD4_MCK */
364                                 MX6QDL_PAD_GPIO_2__GPIO1_IO02     0x80000000 /* CAN_STBY */
365                                 MX6QDL_PAD_GPIO_17__GPIO7_IO12    0x80000000 /* TOUCH_IRQ# */
366                                 MX6QDL_PAD_KEY_COL0__GPIO4_IO06   0x80000000 /* user1 led */
367                                 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07   0x80000000 /* user2 led */
368                                 MX6QDL_PAD_KEY_ROW4__GPIO4_IO15   0x80000000 /* user3 led */
369                                 MX6QDL_PAD_SD1_DAT0__GPIO1_IO16   0x80000000 /* USBHUB_RST# */
370                                 MX6QDL_PAD_SD1_DAT3__GPIO1_IO21   0x80000000 /* MIPI_DIO */
371                          >;
372                 };
373         };
374 };
375
376 &ldb {
377         status = "okay";
378
379         lvds-channel@1 {
380                 fsl,data-mapping = "spwg";
381                 fsl,data-width = <18>;
382                 status = "okay";
383
384                 display-timings {
385                         native-mode = <&timing0>;
386                         timing0: hsd100pxn1 {
387                                 clock-frequency = <65000000>;
388                                 hactive = <1024>;
389                                 vactive = <768>;
390                                 hback-porch = <220>;
391                                 hfront-porch = <40>;
392                                 vback-porch = <21>;
393                                 vfront-porch = <7>;
394                                 hsync-len = <60>;
395                                 vsync-len = <10>;
396                         };
397                 };
398         };
399 };
400
401 &pcie {
402         reset-gpio = <&gpio1 29 0>;
403         status = "okay";
404
405         eth1: sky2@8 { /* MAC/PHY on bus 8 */
406                 compatible = "marvell,sky2";
407         };
408 };
409
410 &ssi1 {
411         fsl,mode = "i2s-slave";
412         status = "okay";
413 };
414
415 &ssi2 {
416         fsl,mode = "i2s-slave";
417         status = "okay";
418 };
419
420 &uart1 {
421         pinctrl-names = "default";
422         pinctrl-0 = <&pinctrl_uart1_2>;
423         status = "okay";
424 };
425
426 &uart2 {
427         pinctrl-names = "default";
428         pinctrl-0 = <&pinctrl_uart2_3>;
429         status = "okay";
430 };
431
432 &uart5 {
433         pinctrl-names = "default";
434         pinctrl-0 = <&pinctrl_uart5_1>;
435         status = "okay";
436 };
437
438 &usbotg {
439         vbus-supply = <&reg_usb_otg_vbus>;
440         pinctrl-names = "default";
441         pinctrl-0 = <&pinctrl_usbotg_1>;
442         disable-over-current;
443         status = "okay";
444 };
445
446 &usbh1 {
447         vbus-supply = <&reg_usb_h1_vbus>;
448         status = "okay";
449 };
450
451 &usdhc3 {
452         pinctrl-names = "default";
453         pinctrl-0 = <&pinctrl_usdhc3_2>;
454         cd-gpios = <&gpio7 0 0>;
455         vmmc-supply = <&reg_3p3v>;
456         status = "okay";
457 };