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