]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6qdl-gw51xx.dtsi
Merge remote-tracking branch 'pwm/for-next'
[karo-tx-linux.git] / arch / arm / boot / dts / imx6qdl-gw51xx.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                 led0 = &led0;
18                 led1 = &led1;
19                 nand = &gpmi;
20                 usb0 = &usbh1;
21                 usb1 = &usbotg;
22         };
23
24         chosen {
25                 bootargs = "console=ttymxc1,115200";
26         };
27
28         leds {
29                 compatible = "gpio-leds";
30
31                 led0: user1 {
32                         label = "user1";
33                         gpios = <&gpio4 6 0>; /* 102 -> MX6_PANLEDG */
34                         default-state = "on";
35                         linux,default-trigger = "heartbeat";
36                 };
37
38                 led1: user2 {
39                         label = "user2";
40                         gpios = <&gpio4 7 0>; /* 103 -> MX6_PANLEDR */
41                         default-state = "off";
42                 };
43         };
44
45         memory {
46                 reg = <0x10000000 0x20000000>;
47         };
48
49         pps {
50                 compatible = "pps-gpio";
51                 gpios = <&gpio1 26 0>;
52                 status = "okay";
53         };
54
55         regulators {
56                 compatible = "simple-bus";
57
58                 reg_3p3v: 3p3v {
59                         compatible = "regulator-fixed";
60                         regulator-name = "3P3V";
61                         regulator-min-microvolt = <3300000>;
62                         regulator-max-microvolt = <3300000>;
63                         regulator-always-on;
64                 };
65
66                 reg_5p0v: 5p0v {
67                         compatible = "regulator-fixed";
68                         regulator-name = "5P0V";
69                         regulator-min-microvolt = <5000000>;
70                         regulator-max-microvolt = <5000000>;
71                         regulator-always-on;
72                 };
73
74                 reg_usb_otg_vbus: usb_otg_vbus {
75                         compatible = "regulator-fixed";
76                         regulator-name = "usb_otg_vbus";
77                         regulator-min-microvolt = <5000000>;
78                         regulator-max-microvolt = <5000000>;
79                         gpio = <&gpio3 22 0>;
80                         enable-active-high;
81                 };
82         };
83 };
84
85 &fec {
86         pinctrl-names = "default";
87         pinctrl-0 = <&pinctrl_enet_1>;
88         phy-mode = "rgmii";
89         phy-reset-gpios = <&gpio1 30 0>;
90         status = "okay";
91 };
92
93 &gpmi {
94         pinctrl-names = "default";
95         pinctrl-0 = <&pinctrl_gpmi_nand_2>;
96         status = "okay";
97 };
98
99 &i2c1 {
100         clock-frequency = <100000>;
101         pinctrl-names = "default";
102         pinctrl-0 = <&pinctrl_i2c1_1>;
103         status = "okay";
104
105         eeprom1: eeprom@50 {
106                 compatible = "atmel,24c02";
107                 reg = <0x50>;
108                 pagesize = <16>;
109         };
110
111         eeprom2: eeprom@51 {
112                 compatible = "atmel,24c02";
113                 reg = <0x51>;
114                 pagesize = <16>;
115         };
116
117         eeprom3: eeprom@52 {
118                 compatible = "atmel,24c02";
119                 reg = <0x52>;
120                 pagesize = <16>;
121         };
122
123         eeprom4: eeprom@53 {
124                 compatible = "atmel,24c02";
125                 reg = <0x53>;
126                 pagesize = <16>;
127         };
128
129         gpio: pca9555@23 {
130                 compatible = "nxp,pca9555";
131                 reg = <0x23>;
132                 gpio-controller;
133                 #gpio-cells = <2>;
134         };
135
136         hwmon: gsc@29 {
137                 compatible = "gw,gsp";
138                 reg = <0x29>;
139         };
140
141         rtc: ds1672@68 {
142                 compatible = "dallas,ds1672";
143                 reg = <0x68>;
144         };
145 };
146
147 &i2c2 {
148         clock-frequency = <100000>;
149         pinctrl-names = "default";
150         pinctrl-0 = <&pinctrl_i2c2_2>;
151         status = "okay";
152
153         pmic: ltc3676@3c {
154                 compatible = "ltc,ltc3676";
155                 reg = <0x3c>;
156
157                 regulators {
158                         sw1_reg: ltc3676__sw1 {
159                                 regulator-min-microvolt = <1175000>;
160                                 regulator-max-microvolt = <1175000>;
161                                 regulator-boot-on;
162                                 regulator-always-on;
163                         };
164
165                         sw2_reg: ltc3676__sw2 {
166                                 regulator-min-microvolt = <1800000>;
167                                 regulator-max-microvolt = <1800000>;
168                                 regulator-boot-on;
169                                 regulator-always-on;
170                         };
171
172                         sw3_reg: ltc3676__sw3 {
173                                 regulator-min-microvolt = <1175000>;
174                                 regulator-max-microvolt = <1175000>;
175                                 regulator-boot-on;
176                                 regulator-always-on;
177                         };
178
179                         sw4_reg: ltc3676__sw4 {
180                                 regulator-min-microvolt = <1500000>;
181                                 regulator-max-microvolt = <1500000>;
182                                 regulator-boot-on;
183                                 regulator-always-on;
184                         };
185
186                         ldo2_reg: ltc3676__ldo2 {
187                                 regulator-min-microvolt = <2500000>;
188                                 regulator-max-microvolt = <2500000>;
189                                 regulator-boot-on;
190                                 regulator-always-on;
191                         };
192
193                         ldo4_reg: ltc3676__ldo4 {
194                                 regulator-min-microvolt = <3000000>;
195                                 regulator-max-microvolt = <3000000>;
196                         };
197                 };
198         };
199 };
200
201 &i2c3 {
202         clock-frequency = <100000>;
203         pinctrl-names = "default";
204         pinctrl-0 = <&pinctrl_i2c3_2>;
205         status = "okay";
206
207         videoin: adv7180@20 {
208                 compatible = "adi,adv7180";
209                 reg = <0x20>;
210         };
211 };
212
213 &iomuxc {
214         pinctrl-names = "default";
215         pinctrl-0 = <&pinctrl_hog>;
216
217         hog {
218                 pinctrl_hog: hoggrp {
219                         fsl,pins = <
220                                 MX6QDL_PAD_EIM_A19__GPIO2_IO19   0x80000000 /* MEZZ_DIO0 */
221                                 MX6QDL_PAD_EIM_A20__GPIO2_IO18   0x80000000 /* MEZZ_DIO1 */
222                                 MX6QDL_PAD_EIM_D22__GPIO3_IO22   0x80000000 /* OTG_PWR_EN */
223                                 MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x80000000 /* GPS_PPS */
224                                 MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x80000000 /* PHY Reset */
225                                 MX6QDL_PAD_GPIO_0__GPIO1_IO00    0x80000000 /* PCIE_RST# */
226                                 MX6QDL_PAD_KEY_COL0__GPIO4_IO06  0x80000000 /* user1 led */
227                                 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07  0x80000000 /* user2 led */
228                          >;
229                 };
230         };
231 };
232
233 &pcie {
234         reset-gpio = <&gpio1 0 0>;
235         status = "okay";
236 };
237
238 &uart1 {
239         pinctrl-names = "default";
240         pinctrl-0 = <&pinctrl_uart1_2>;
241         status = "okay";
242 };
243
244 &uart2 {
245         pinctrl-names = "default";
246         pinctrl-0 = <&pinctrl_uart2_3>;
247         status = "okay";
248 };
249
250 &uart3 {
251         pinctrl-names = "default";
252         pinctrl-0 = <&pinctrl_uart3_3>;
253         status = "okay";
254 };
255
256 &uart5 {
257         pinctrl-names = "default";
258         pinctrl-0 = <&pinctrl_uart5_1>;
259         status = "okay";
260 };
261
262 &usbotg {
263         vbus-supply = <&reg_usb_otg_vbus>;
264         pinctrl-names = "default";
265         pinctrl-0 = <&pinctrl_usbotg_1>;
266         disable-over-current;
267         status = "okay";
268 };
269
270 &usbh1 {
271         status = "okay";
272 };