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