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