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