Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-block.git] / arch / arm / boot / dts / imx6q-dmo-edmqmx6.dts
CommitLineData
c1f77e73
S
1/*
2 * Copyright 2013 Data Modul AG
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
14#include <dt-bindings/gpio/gpio.h>
15#include "imx6q.dtsi"
16
17/ {
18 model = "Data Modul eDM-QMX6 Board";
19 compatible = "dmo,imx6q-edmqmx6", "fsl,imx6q";
20
48f51963
SH
21 chosen {
22 stdout-path = &uart2;
23 };
24
c1f77e73 25 aliases {
52d13453
LS
26 gpio7 = &stmpe_gpio1;
27 gpio8 = &stmpe_gpio2;
28 stmpe-i2c0 = &stmpe1;
29 stmpe-i2c1 = &stmpe2;
c1f77e73
S
30 };
31
32 memory {
33 reg = <0x10000000 0x80000000>;
34 };
35
36 regulators {
37 compatible = "simple-bus";
38 #address-cells = <1>;
39 #size-cells = <0>;
40
41 reg_3p3v: regulator@0 {
42 compatible = "regulator-fixed";
43 reg = <0>;
44 regulator-name = "3P3V";
45 regulator-min-microvolt = <3300000>;
46 regulator-max-microvolt = <3300000>;
47 regulator-always-on;
48 };
49
465ca5dc 50 reg_usb_otg_switch: regulator@1 {
c1f77e73
S
51 compatible = "regulator-fixed";
52 reg = <1>;
465ca5dc 53 regulator-name = "usb_otg_switch";
c1f77e73
S
54 regulator-min-microvolt = <5000000>;
55 regulator-max-microvolt = <5000000>;
56 gpio = <&gpio7 12 0>;
465ca5dc
SH
57 regulator-boot-on;
58 regulator-always-on;
c1f77e73
S
59 };
60
61 reg_usb_host1: regulator@2 {
62 compatible = "regulator-fixed";
63 reg = <2>;
64 regulator-name = "usb_host1_en";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
67 gpio = <&gpio3 31 0>;
68 enable-active-high;
69 };
70 };
71
72 gpio-leds {
73 compatible = "gpio-leds";
74
75 led-blue {
76 label = "blue";
52d13453 77 gpios = <&stmpe_gpio1 8 GPIO_ACTIVE_HIGH>;
c1f77e73
S
78 linux,default-trigger = "heartbeat";
79 };
80
81 led-green {
82 label = "green";
52d13453 83 gpios = <&stmpe_gpio1 9 GPIO_ACTIVE_HIGH>;
c1f77e73
S
84 };
85
86 led-pink {
87 label = "pink";
52d13453 88 gpios = <&stmpe_gpio1 10 GPIO_ACTIVE_HIGH>;
c1f77e73
S
89 };
90
91 led-red {
92 label = "red";
52d13453 93 gpios = <&stmpe_gpio1 11 GPIO_ACTIVE_HIGH>;
c1f77e73
S
94 };
95 };
96};
97
819826a1
LS
98&ecspi5 {
99 pinctrl-names = "default";
100 pinctrl-0 = <&pinctrl_ecspi5>;
101 fsl,spi-num-chipselects = <1>;
102 cs-gpios = <&gpio1 12 0>;
103 status = "okay";
104
105 flash: m25p80@0 {
106 compatible = "m25p80";
107 spi-max-frequency = <40000000>;
108 reg = <0>;
109 };
110};
111
c1f77e73
S
112&fec {
113 pinctrl-names = "default";
114 pinctrl-0 = <&pinctrl_enet>;
115 phy-mode = "rgmii";
116 phy-reset-gpios = <&gpio3 23 0>;
117 phy-supply = <&vgen2_1v2_eth>;
118 status = "okay";
119};
120
121&i2c2 {
122 clock-frequency = <100000>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&pinctrl_i2c2
52d13453 125 &pinctrl_stmpe1
d02f74aa
LS
126 &pinctrl_stmpe2
127 &pinctrl_pfuze>;
c1f77e73
S
128 status = "okay";
129
130 pmic: pfuze100@08 {
131 compatible = "fsl,pfuze100";
132 reg = <0x08>;
133 interrupt-parent = <&gpio3>;
134 interrupts = <20 8>;
135
136 regulators {
137 sw1a_reg: sw1ab {
138 regulator-min-microvolt = <300000>;
139 regulator-max-microvolt = <1875000>;
140 regulator-boot-on;
141 regulator-always-on;
142 };
143
144 sw1c_reg: sw1c {
145 regulator-min-microvolt = <300000>;
146 regulator-max-microvolt = <1875000>;
147 regulator-boot-on;
148 regulator-always-on;
149 };
150
151 sw2_reg: sw2 {
152 regulator-min-microvolt = <800000>;
153 regulator-max-microvolt = <3300000>;
154 regulator-boot-on;
155 regulator-always-on;
156 };
157
158 sw3a_reg: sw3a {
159 regulator-min-microvolt = <400000>;
160 regulator-max-microvolt = <1975000>;
161 regulator-boot-on;
162 regulator-always-on;
163 };
164
165 sw3b_reg: sw3b {
166 regulator-min-microvolt = <400000>;
167 regulator-max-microvolt = <1975000>;
168 regulator-boot-on;
169 regulator-always-on;
170 };
171
172 sw4_reg: sw4 {
173 regulator-min-microvolt = <400000>;
174 regulator-max-microvolt = <1975000>;
175 regulator-always-on;
176 };
177
178 swbst_reg: swbst {
179 regulator-min-microvolt = <5000000>;
180 regulator-max-microvolt = <5150000>;
181 regulator-always-on;
182 };
183
184 snvs_reg: vsnvs {
185 regulator-min-microvolt = <1000000>;
186 regulator-max-microvolt = <3000000>;
187 regulator-boot-on;
188 regulator-always-on;
189 };
190
191 vref_reg: vrefddr {
192 regulator-boot-on;
193 regulator-always-on;
194 };
195
196 vgen1_reg: vgen1 {
197 regulator-min-microvolt = <800000>;
198 regulator-max-microvolt = <1550000>;
199 };
200
201 vgen2_1v2_eth: vgen2 {
202 regulator-min-microvolt = <800000>;
203 regulator-max-microvolt = <1550000>;
204 };
205
206 vdd_high_in: vgen3 {
207 regulator-min-microvolt = <1800000>;
208 regulator-max-microvolt = <3300000>;
209 regulator-boot-on;
210 regulator-always-on;
211 };
212
213 vgen4_reg: vgen4 {
214 regulator-min-microvolt = <1800000>;
215 regulator-max-microvolt = <3300000>;
216 regulator-always-on;
217 };
218
219 vgen5_reg: vgen5 {
220 regulator-min-microvolt = <1800000>;
221 regulator-max-microvolt = <3300000>;
222 regulator-always-on;
223 };
224
225 vgen6_reg: vgen6 {
226 regulator-min-microvolt = <1800000>;
227 regulator-max-microvolt = <3300000>;
228 regulator-always-on;
229 };
230 };
231 };
232
52d13453 233 stmpe1: stmpe1601@40 {
c1f77e73
S
234 compatible = "st,stmpe1601";
235 reg = <0x40>;
236 interrupts = <30 0>;
237 interrupt-parent = <&gpio3>;
e59d28e8
SF
238 vcc-supply = <&sw2_reg>;
239 vio-supply = <&sw2_reg>;
c1f77e73 240
52d13453
LS
241 stmpe_gpio1: stmpe_gpio {
242 #gpio-cells = <2>;
243 compatible = "st,stmpe-gpio";
244 };
245 };
246
247 stmpe2: stmpe1601@44 {
248 compatible = "st,stmpe1601";
249 reg = <0x44>;
250 interrupts = <2 0>;
251 interrupt-parent = <&gpio5>;
e59d28e8
SF
252 vcc-supply = <&sw2_reg>;
253 vio-supply = <&sw2_reg>;
52d13453
LS
254
255 stmpe_gpio2: stmpe_gpio {
c1f77e73
S
256 #gpio-cells = <2>;
257 compatible = "st,stmpe-gpio";
258 };
259 };
260
261 temp1: ad7414@4c {
262 compatible = "ad,ad7414";
263 reg = <0x4c>;
264 };
265
266 temp2: ad7414@4d {
267 compatible = "ad,ad7414";
268 reg = <0x4d>;
269 };
270
271 rtc: m41t62@68 {
272 compatible = "stm,m41t62";
273 reg = <0x68>;
274 };
275};
276
277&iomuxc {
278 pinctrl-names = "default";
279 pinctrl-0 = <&pinctrl_hog>;
280
281 imx6q-dmo-edmqmx6 {
282 pinctrl_hog: hoggrp {
283 fsl,pins = <
284 MX6QDL_PAD_EIM_A16__GPIO2_IO22 0x80000000
285 MX6QDL_PAD_EIM_A17__GPIO2_IO21 0x80000000
286 >;
287 };
288
819826a1
LS
289 pinctrl_ecspi5: ecspi5rp-1 {
290 fsl,pins = <
291 MX6QDL_PAD_SD1_DAT0__ECSPI5_MISO 0x80000000
292 MX6QDL_PAD_SD1_CMD__ECSPI5_MOSI 0x80000000
293 MX6QDL_PAD_SD1_CLK__ECSPI5_SCLK 0x80000000
294 MX6QDL_PAD_SD2_DAT3__GPIO1_IO12 0x80000000
295 >;
296 };
297
c1f77e73
S
298 pinctrl_enet: enetgrp {
299 fsl,pins = <
300 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0
301 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0
302 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0
303 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0
304 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0
305 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0
306 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b0b0
307 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b0b0
308 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b0b0
309 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b0b0
310 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b0b0
311 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b0b0
312 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
313 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
314 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
315 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
316 >;
317 };
318
319 pinctrl_i2c2: i2c2grp {
320 fsl,pins = <
321 MX6QDL_PAD_EIM_EB2__I2C2_SCL 0x4001b8b1
322 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
323 >;
324 };
325
d02f74aa
LS
326 pinctrl_pfuze: pfuze100grp1 {
327 fsl,pins = <
328 MX6QDL_PAD_EIM_D20__GPIO3_IO20 0x80000000
329 >;
330 };
331
52d13453 332 pinctrl_stmpe1: stmpe1grp {
c1f77e73
S
333 fsl,pins = <MX6QDL_PAD_EIM_D30__GPIO3_IO30 0x80000000>;
334 };
335
52d13453
LS
336 pinctrl_stmpe2: stmpe2grp {
337 fsl,pins = <MX6QDL_PAD_EIM_A25__GPIO5_IO02 0x80000000>;
338 };
339
c1f77e73
S
340 pinctrl_uart1: uart1grp {
341 fsl,pins = <
342 MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
343 MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
344 >;
345 };
346
347 pinctrl_uart2: uart2grp {
348 fsl,pins = <
349 MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
350 MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
351 >;
352 };
353
354 pinctrl_usbotg: usbotggrp {
355 fsl,pins = <
19f7cb6d 356 MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059
c1f77e73
S
357 >;
358 };
359
360 pinctrl_usdhc3: usdhc3grp {
361 fsl,pins = <
362 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
363 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
364 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
365 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
366 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
367 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
368 >;
369 };
370
371 pinctrl_usdhc4: usdhc4grp {
372 fsl,pins = <
373 MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
374 MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
375 MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
376 MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
377 MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
378 MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
379 MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059
380 MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059
381 MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059
382 MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059
383 >;
384 };
385 };
386};
387
388&sata {
389 status = "okay";
390};
391
392&uart1 {
393 pinctrl-names = "default";
394 pinctrl-0 = <&pinctrl_uart1>;
395 status = "okay";
396};
397
398&uart2 {
399 pinctrl-names = "default";
400 pinctrl-0 = <&pinctrl_uart2>;
401 status = "okay";
402};
403
404&usbh1 {
405 vbus-supply = <&reg_usb_host1>;
406 disable-over-current;
8dde78e8 407 dr_mode = "host";
c1f77e73
S
408 status = "okay";
409};
410
411&usbotg {
c1f77e73
S
412 pinctrl-names = "default";
413 pinctrl-0 = <&pinctrl_usbotg>;
414 disable-over-current;
415 status = "okay";
416};
417
418&usdhc3 {
419 pinctrl-names = "default";
420 pinctrl-0 = <&pinctrl_usdhc3>;
421 vmmc-supply = <&reg_3p3v>;
422 status = "okay";
423};
424
425&usdhc4 {
426 pinctrl-names = "default";
427 pinctrl-0 = <&pinctrl_usdhc4>;
428 vmmc-supply = <&reg_3p3v>;
429 non-removable;
430 bus-width = <8>;
431 status = "okay";
432};