]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
arm: dts: tx6: use generic names for regulator nodes
[karo-tx-linux.git] / 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                 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                 /* remove when pmic 1p8 regulator available */
78                 reg_1p8v: 1p8v {
79                         compatible = "regulator-fixed";
80                         regulator-name = "1P8V";
81                         regulator-min-microvolt = <1800000>;
82                         regulator-max-microvolt = <1800000>;
83                         regulator-always-on;
84                 };
85
86                 reg_3p3v: 3p3v {
87                         compatible = "regulator-fixed";
88                         regulator-name = "3P3V";
89                         regulator-min-microvolt = <3300000>;
90                         regulator-max-microvolt = <3300000>;
91                         regulator-always-on;
92                 };
93
94                 reg_usb_h1_vbus: usb_h1_vbus {
95                         compatible = "regulator-fixed";
96                         regulator-name = "usb_h1_vbus";
97                         regulator-min-microvolt = <5000000>;
98                         regulator-max-microvolt = <5000000>;
99                         regulator-always-on;
100                 };
101
102                 reg_usb_otg_vbus: usb_otg_vbus {
103                         compatible = "regulator-fixed";
104                         regulator-name = "usb_otg_vbus";
105                         regulator-min-microvolt = <5000000>;
106                         regulator-max-microvolt = <5000000>;
107                         gpio = <&gpio3 22 0>;
108                         enable-active-high;
109                 };
110         };
111
112         sound {
113                 compatible = "fsl,imx6q-sabrelite-sgtl5000",
114                              "fsl,imx-audio-sgtl5000";
115                 model = "imx6q-sabrelite-sgtl5000";
116                 ssi-controller = <&ssi1>;
117                 audio-codec = <&codec>;
118                 audio-routing =
119                         "MIC_IN", "Mic Jack",
120                         "Mic Jack", "Mic Bias",
121                         "Headphone Jack", "HP_OUT";
122                 mux-int-port = <1>;
123                 mux-ext-port = <4>;
124         };
125 };
126
127 &audmux {
128         pinctrl-names = "default";
129         pinctrl-0 = <&pinctrl_audmux_1>;
130         status = "okay";
131 };
132
133 &can1 {
134         pinctrl-names = "default";
135         pinctrl-0 = <&pinctrl_flexcan1_1>;
136         status = "okay";
137 };
138
139 &fec {
140         pinctrl-names = "default";
141         pinctrl-0 = <&pinctrl_enet_1>;
142         phy-mode = "rgmii";
143         phy-reset-gpios = <&gpio1 30 0>;
144         status = "okay";
145 };
146
147 &gpmi {
148         pinctrl-names = "default";
149         pinctrl-0 = <&pinctrl_gpmi_nand_2>;
150         status = "okay";
151 };
152
153 &i2c1 {
154         clock-frequency = <100000>;
155         pinctrl-names = "default";
156         pinctrl-0 = <&pinctrl_i2c1_1>;
157         status = "okay";
158
159         eeprom1: eeprom@50 {
160                 compatible = "atmel,24c02";
161                 reg = <0x50>;
162                 pagesize = <16>;
163         };
164
165         eeprom2: eeprom@51 {
166                 compatible = "atmel,24c02";
167                 reg = <0x51>;
168                 pagesize = <16>;
169         };
170
171         eeprom3: eeprom@52 {
172                 compatible = "atmel,24c02";
173                 reg = <0x52>;
174                 pagesize = <16>;
175         };
176
177         eeprom4: eeprom@53 {
178                 compatible = "atmel,24c02";
179                 reg = <0x53>;
180                 pagesize = <16>;
181         };
182
183         gpio: pca9555@23 {
184                 compatible = "nxp,pca9555";
185                 reg = <0x23>;
186                 gpio-controller;
187                 #gpio-cells = <2>;
188         };
189
190         hwmon: gsc@29 {
191                 compatible = "gw,gsp";
192                 reg = <0x29>;
193         };
194
195         rtc: ds1672@68 {
196                 compatible = "dallas,ds1672";
197                 reg = <0x68>;
198         };
199 };
200
201 &i2c2 {
202         clock-frequency = <100000>;
203         pinctrl-names = "default";
204         pinctrl-0 = <&pinctrl_i2c2_2>;
205         status = "okay";
206
207         pciclkgen: si53156@6b {
208                 compatible = "sil,si53156";
209                 reg = <0x6b>;
210         };
211
212         pciswitch: pex8606@3f {
213                 compatible = "plx,pex8606";
214                 reg = <0x3f>;
215         };
216
217         pmic: ltc3676@3c {
218                 compatible = "ltc,ltc3676";
219                 reg = <0x3c>;
220
221                 regulators {
222                         /* VDD_SOC */
223                         sw1_reg: ltc3676__sw1 {
224                                 regulator-min-microvolt = <1175000>;
225                                 regulator-max-microvolt = <1175000>;
226                                 regulator-boot-on;
227                                 regulator-always-on;
228                         };
229
230                         /* VDD_1P8 */
231                         sw2_reg: ltc3676__sw2 {
232                                 regulator-min-microvolt = <1800000>;
233                                 regulator-max-microvolt = <1800000>;
234                                 regulator-boot-on;
235                                 regulator-always-on;
236                         };
237
238                         /* VDD_ARM */
239                         sw3_reg: ltc3676__sw3 {
240                                 regulator-min-microvolt = <1175000>;
241                                 regulator-max-microvolt = <1175000>;
242                                 regulator-boot-on;
243                                 regulator-always-on;
244                         };
245
246                         /* VDD_DDR */
247                         sw4_reg: ltc3676__sw4 {
248                                 regulator-min-microvolt = <1500000>;
249                                 regulator-max-microvolt = <1500000>;
250                                 regulator-boot-on;
251                                 regulator-always-on;
252                         };
253
254                         /* VDD_2P5 */
255                         ldo2_reg: ltc3676__ldo2 {
256                                 regulator-min-microvolt = <2500000>;
257                                 regulator-max-microvolt = <2500000>;
258                                 regulator-boot-on;
259                                 regulator-always-on;
260                         };
261
262                         /* VDD_1P8 */
263                         ldo3_reg: ltc3676__ldo3 {
264                                 regulator-min-microvolt = <1800000>;
265                                 regulator-max-microvolt = <1800000>;
266                                 regulator-boot-on;
267                                 regulator-always-on;
268                         };
269
270                         /* VDD_HIGH */
271                         ldo4_reg: ltc3676__ldo4 {
272                                 regulator-min-microvolt = <3000000>;
273                                 regulator-max-microvolt = <3000000>;
274                         };
275                 };
276         };
277 };
278
279 &i2c3 {
280         clock-frequency = <100000>;
281         pinctrl-names = "default";
282         pinctrl-0 = <&pinctrl_i2c3_2>;
283         status = "okay";
284
285         accelerometer: fxos8700@1e {
286                 compatible = "fsl,fxos8700";
287                 reg = <0x1e>;
288         };
289
290         codec: sgtl5000@0a {
291                 compatible = "fsl,sgtl5000";
292                 reg = <0x0a>;
293                 clocks = <&clks 201>;
294                 VDDA-supply = <&reg_1p8v>;
295                 VDDIO-supply = <&reg_3p3v>;
296         };
297
298         hdmiin: adv7611@4c {
299                 compatible = "adi,adv7611";
300                 reg = <0x4c>;
301         };
302
303         touchscreen: egalax_ts@04 {
304                 compatible = "eeti,egalax_ts";
305                 reg = <0x04>;
306                 interrupt-parent = <&gpio1>;
307                 interrupts = <11 2>; /* gpio1_11 active low */
308                 wakeup-gpios = <&gpio1 11 0>;
309         };
310
311         videoout: adv7393@2a {
312                 compatible = "adi,adv7393";
313                 reg = <0x2a>;
314         };
315
316         videoin: adv7180@20 {
317                 compatible = "adi,adv7180";
318                 reg = <0x20>;
319         };
320 };
321
322 &iomuxc {
323         pinctrl-names = "default";
324         pinctrl-0 = <&pinctrl_hog>;
325
326         hog {
327                 pinctrl_hog: hoggrp {
328                         fsl,pins = <
329                                 MX6QDL_PAD_EIM_A19__GPIO2_IO19    0x80000000 /* PCIE6EXP_DIO0 */
330                                 MX6QDL_PAD_EIM_A20__GPIO2_IO18    0x80000000 /* PCIE6EXP_DIO1 */
331                                 MX6QDL_PAD_EIM_D22__GPIO3_IO22    0x80000000 /* OTG_PWR_EN */
332                                 MX6QDL_PAD_ENET_RXD0__GPIO1_IO27  0x80000000 /* GPS_SHDN */
333                                 MX6QDL_PAD_ENET_RXD1__GPIO1_IO26  0x80000000 /* GPS_PPS */
334                                 MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x80000000 /* PCIE IRQ */
335                                 MX6QDL_PAD_ENET_TXD1__GPIO1_IO29  0x80000000 /* PCIE RST */
336                                 MX6QDL_PAD_GPIO_0__CCM_CLKO1      0x000130b0 /* AUD4_MCK */
337                                 MX6QDL_PAD_GPIO_2__GPIO1_IO02     0x80000000 /* CAN_STBY */
338                                 MX6QDL_PAD_GPIO_8__GPIO1_IO08     0x80000000 /* PMIC_IRQ# */
339                                 MX6QDL_PAD_GPIO_9__GPIO1_IO09     0x80000000 /* HUB_RST# */
340                                 MX6QDL_PAD_GPIO_17__GPIO7_IO12    0x80000000 /* PCIE_WDIS# */
341                                 MX6QDL_PAD_GPIO_19__GPIO4_IO05    0x80000000 /* ACCEL_IRQ# */
342                                 MX6QDL_PAD_KEY_COL0__GPIO4_IO06   0x80000000 /* user1 led */
343                                 MX6QDL_PAD_KEY_COL4__GPIO4_IO14   0x80000000 /* USBOTG_OC# */
344                                 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07   0x80000000 /* user2 led */
345                                 MX6QDL_PAD_KEY_ROW4__GPIO4_IO15   0x80000000 /* user3 led */
346                                 MX6QDL_PAD_SD2_CMD__GPIO1_IO11    0x80000000 /* TOUCH_IRQ# */
347                                 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00   0x80000000 /* SD3_DET# */
348                          >;
349                 };
350         };
351 };
352
353 &ldb {
354         status = "okay";
355
356         lvds-channel@1 {
357                 fsl,data-mapping = "spwg";
358                 fsl,data-width = <18>;
359                 status = "okay";
360
361                 display-timings {
362                         native-mode = <&timing0>;
363                         timing0: hsd100pxn1 {
364                                 clock-frequency = <65000000>;
365                                 hactive = <1024>;
366                                 vactive = <768>;
367                                 hback-porch = <220>;
368                                 hfront-porch = <40>;
369                                 vback-porch = <21>;
370                                 vfront-porch = <7>;
371                                 hsync-len = <60>;
372                                 vsync-len = <10>;
373                         };
374                 };
375         };
376 };
377
378 &pcie {
379         reset-gpio = <&gpio1 29 0>;
380         status = "okay";
381
382         eth1: sky2@8 { /* MAC/PHY on bus 8 */
383                 compatible = "marvell,sky2";
384         };
385 };
386
387 &ssi1 {
388         fsl,mode = "i2s-slave";
389         status = "okay";
390 };
391
392 &uart1 {
393         pinctrl-names = "default";
394         pinctrl-0 = <&pinctrl_uart1_2>;
395         status = "okay";
396 };
397
398 &uart2 {
399         pinctrl-names = "default";
400         pinctrl-0 = <&pinctrl_uart2_3>;
401         status = "okay";
402 };
403
404 &uart5 {
405         pinctrl-names = "default";
406         pinctrl-0 = <&pinctrl_uart5_1>;
407         status = "okay";
408 };
409
410 &usbotg {
411         vbus-supply = <&reg_usb_otg_vbus>;
412         pinctrl-names = "default";
413         pinctrl-0 = <&pinctrl_usbotg_1>;
414         disable-over-current;
415         status = "okay";
416 };
417
418 &usbh1 {
419         vbus-supply = <&reg_usb_h1_vbus>;
420         status = "okay";
421 };
422
423 &usdhc3 {
424         pinctrl-names = "default";
425         pinctrl-0 = <&pinctrl_usdhc3_2>;
426         cd-gpios = <&gpio7 0 0>;
427         vmmc-supply = <&reg_3p3v>;
428         status = "okay";
429 };