]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
Merge remote-tracking branch 'mvebu/for-next'
[karo-tx-linux.git] / arch / arm / boot / dts / imx6qdl-gw52xx.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                 ethernet0 = &fec;
16                 led0 = &led0;
17                 led1 = &led1;
18                 led2 = &led2;
19                 nand = &gpmi;
20                 ssi0 = &ssi1;
21                 usb0 = &usbh1;
22                 usb1 = &usbotg;
23                 usdhc2 = &usdhc3;
24         };
25
26         chosen {
27                 bootargs = "console=ttymxc1,115200";
28         };
29
30         leds {
31                 compatible = "gpio-leds";
32
33                 led0: user1 {
34                         label = "user1";
35                         gpios = <&gpio4 6 0>; /* 102 -> MX6_PANLEDG */
36                         default-state = "on";
37                         linux,default-trigger = "heartbeat";
38                 };
39
40                 led1: user2 {
41                         label = "user2";
42                         gpios = <&gpio4 7 0>; /* 103 -> MX6_PANLEDR */
43                         default-state = "off";
44                 };
45
46                 led2: user3 {
47                         label = "user3";
48                         gpios = <&gpio4 15 1>; /* 111 - MX6_LOCLED# */
49                         default-state = "off";
50                 };
51         };
52
53         memory {
54                 reg = <0x10000000 0x20000000>;
55         };
56
57         pps {
58                 compatible = "pps-gpio";
59                 gpios = <&gpio1 26 0>;
60                 status = "okay";
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_5p0v: 5p0v {
92                         compatible = "regulator-fixed";
93                         regulator-name = "5P0V";
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 &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         pciswitch: pex8609@3f {
199                 compatible = "plx,pex8609";
200                 reg = <0x3f>;
201         };
202
203         pmic: ltc3676@3c {
204                 compatible = "ltc,ltc3676";
205                 reg = <0x3c>;
206
207                 regulators {
208                         sw1_reg: ltc3676__sw1 {
209                                 regulator-min-microvolt = <1175000>;
210                                 regulator-max-microvolt = <1175000>;
211                                 regulator-boot-on;
212                                 regulator-always-on;
213                         };
214
215                         sw2_reg: ltc3676__sw2 {
216                                 regulator-min-microvolt = <1800000>;
217                                 regulator-max-microvolt = <1800000>;
218                                 regulator-boot-on;
219                                 regulator-always-on;
220                         };
221
222                         sw3_reg: ltc3676__sw3 {
223                                 regulator-min-microvolt = <1175000>;
224                                 regulator-max-microvolt = <1175000>;
225                                 regulator-boot-on;
226                                 regulator-always-on;
227                         };
228
229                         sw4_reg: ltc3676__sw4 {
230                                 regulator-min-microvolt = <1500000>;
231                                 regulator-max-microvolt = <1500000>;
232                                 regulator-boot-on;
233                                 regulator-always-on;
234                         };
235
236                         ldo2_reg: ltc3676__ldo2 {
237                                 regulator-min-microvolt = <2500000>;
238                                 regulator-max-microvolt = <2500000>;
239                                 regulator-boot-on;
240                                 regulator-always-on;
241                         };
242
243                         ldo3_reg: ltc3676__ldo3 {
244                                 regulator-min-microvolt = <1800000>;
245                                 regulator-max-microvolt = <1800000>;
246                                 regulator-boot-on;
247                                 regulator-always-on;
248                         };
249
250                         ldo4_reg: ltc3676__ldo4 {
251                                 regulator-min-microvolt = <3000000>;
252                                 regulator-max-microvolt = <3000000>;
253                         };
254                 };
255         };
256 };
257
258 &i2c3 {
259         clock-frequency = <100000>;
260         pinctrl-names = "default";
261         pinctrl-0 = <&pinctrl_i2c3_2>;
262         status = "okay";
263
264         accelerometer: fxos8700@1e {
265                 compatible = "fsl,fxos8700";
266                 reg = <0x13>;
267         };
268
269         codec: sgtl5000@0a {
270                 compatible = "fsl,sgtl5000";
271                 reg = <0x0a>;
272                 clocks = <&clks 169>;
273                 VDDA-supply = <&reg_1p8v>;
274                 VDDIO-supply = <&reg_3p3v>;
275         };
276
277         touchscreen: egalax_ts@04 {
278                 compatible = "eeti,egalax_ts";
279                 reg = <0x04>;
280                 interrupt-parent = <&gpio7>;
281                 interrupts = <12 2>; /* gpio7_12 active low */
282                 wakeup-gpios = <&gpio7 12 0>;
283         };
284
285         videoin: adv7180@20 {
286                 compatible = "adi,adv7180";
287                 reg = <0x20>;
288         };
289 };
290
291 &iomuxc {
292         pinctrl-names = "default";
293         pinctrl-0 = <&pinctrl_hog>;
294
295         hog {
296                 pinctrl_hog: hoggrp {
297                         fsl,pins = <
298                                 MX6QDL_PAD_EIM_A19__GPIO2_IO19   0x80000000 /* MEZZ_DIO0 */
299                                 MX6QDL_PAD_EIM_A20__GPIO2_IO18   0x80000000 /* MEZZ_DIO1 */
300                                 MX6QDL_PAD_EIM_D22__GPIO3_IO22   0x80000000 /* OTG_PWR_EN */
301                                 MX6QDL_PAD_EIM_D31__GPIO3_IO31   0x80000000 /* VIDDEC_PDN# */
302                                 MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x80000000 /* PHY Reset */
303                                 MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x80000000 /* PCIE_RST# */
304                                 MX6QDL_PAD_ENET_RXD0__GPIO1_IO27 0x80000000 /* GPS_PWDN */
305                                 MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x80000000 /* GPS_PPS */
306                                 MX6QDL_PAD_GPIO_0__CCM_CLKO1     0x000130b0 /* AUD4_MCK */
307                                 MX6QDL_PAD_GPIO_2__GPIO1_IO02    0x80000000 /* USB_SEL_PCI */
308                                 MX6QDL_PAD_GPIO_17__GPIO7_IO12   0x80000000 /* TOUCH_IRQ# */
309                                 MX6QDL_PAD_KEY_COL0__GPIO4_IO06  0x80000000 /* user1 led */
310                                 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07  0x80000000 /* user2 led */
311                                 MX6QDL_PAD_KEY_ROW4__GPIO4_IO15  0x80000000 /* user3 led */
312                                 MX6QDL_PAD_SD2_CMD__GPIO1_IO11   0x80000000 /* LVDS_TCH# */
313                                 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00  0x80000000 /* SD3_CD# */
314                                 MX6QDL_PAD_SD4_DAT3__GPIO2_IO11  0x80000000 /* UART2_EN# */
315                          >;
316                 };
317         };
318 };
319
320 &ldb {
321         status = "okay";
322         lvds-channel@0 {
323                 crtcs = <&ipu1 0>, <&ipu1 1>;
324         };
325 };
326
327 &pcie {
328         reset-gpio = <&gpio1 29 0>;
329         status = "okay";
330 };
331
332 &ssi1 {
333         fsl,mode = "i2s-slave";
334         status = "okay";
335 };
336
337 &uart1 {
338         pinctrl-names = "default";
339         pinctrl-0 = <&pinctrl_uart1_2>;
340         status = "okay";
341 };
342
343 &uart2 {
344         pinctrl-names = "default";
345         pinctrl-0 = <&pinctrl_uart2_3>;
346         status = "okay";
347 };
348
349 &uart5 {
350         pinctrl-names = "default";
351         pinctrl-0 = <&pinctrl_uart5_1>;
352         status = "okay";
353 };
354
355 &usbotg {
356         vbus-supply = <&reg_usb_otg_vbus>;
357         pinctrl-names = "default";
358         pinctrl-0 = <&pinctrl_usbotg_1>;
359         disable-over-current;
360         status = "okay";
361 };
362
363 &usbh1 {
364         status = "okay";
365 };
366
367 &usdhc3 {
368         pinctrl-names = "default";
369         pinctrl-0 = <&pinctrl_usdhc3_2>;
370         cd-gpios = <&gpio7 0 0>;
371         vmmc-supply = <&reg_3p3v>;
372         status = "okay";
373 };