Merge remote-tracking branch 'nfs/linux-next'
[deliverable/linux.git] / arch / arm / boot / dts / imx6qdl-sabrelite.dtsi
1 /*
2 * Copyright 2011 Freescale Semiconductor, Inc.
3 * Copyright 2011 Linaro Ltd.
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * version 2 as published by the Free Software Foundation.
13 *
14 * This file is distributed in the hope that it will be useful
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * Or, alternatively
20 *
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
28 * conditions:
29 *
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
32 *
33 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
41 */
42 #include <dt-bindings/gpio/gpio.h>
43 #include <dt-bindings/input/input.h>
44
45 / {
46 chosen {
47 stdout-path = &uart2;
48 };
49
50 memory {
51 reg = <0x10000000 0x40000000>;
52 };
53
54 regulators {
55 compatible = "simple-bus";
56 #address-cells = <1>;
57 #size-cells = <0>;
58
59 reg_2p5v: regulator@0 {
60 compatible = "regulator-fixed";
61 reg = <0>;
62 regulator-name = "2P5V";
63 regulator-min-microvolt = <2500000>;
64 regulator-max-microvolt = <2500000>;
65 regulator-always-on;
66 };
67
68 reg_3p3v: regulator@1 {
69 compatible = "regulator-fixed";
70 reg = <1>;
71 regulator-name = "3P3V";
72 regulator-min-microvolt = <3300000>;
73 regulator-max-microvolt = <3300000>;
74 regulator-always-on;
75 };
76
77 reg_usb_otg_vbus: regulator@2 {
78 compatible = "regulator-fixed";
79 reg = <2>;
80 regulator-name = "usb_otg_vbus";
81 regulator-min-microvolt = <5000000>;
82 regulator-max-microvolt = <5000000>;
83 gpio = <&gpio3 22 0>;
84 enable-active-high;
85 };
86
87 reg_can_xcvr: regulator@3 {
88 compatible = "regulator-fixed";
89 reg = <3>;
90 regulator-name = "CAN XCVR";
91 regulator-min-microvolt = <3300000>;
92 regulator-max-microvolt = <3300000>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&pinctrl_can_xcvr>;
95 gpio = <&gpio1 2 GPIO_ACTIVE_LOW>;
96 };
97 };
98
99 gpio-keys {
100 compatible = "gpio-keys";
101 pinctrl-names = "default";
102 pinctrl-0 = <&pinctrl_gpio_keys>;
103
104 power {
105 label = "Power Button";
106 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
107 linux,code = <KEY_POWER>;
108 wakeup-source;
109 };
110
111 menu {
112 label = "Menu";
113 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_MENU>;
115 };
116
117 home {
118 label = "Home";
119 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
120 linux,code = <KEY_HOME>;
121 };
122
123 back {
124 label = "Back";
125 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
126 linux,code = <KEY_BACK>;
127 };
128
129 volume-up {
130 label = "Volume Up";
131 gpios = <&gpio7 13 GPIO_ACTIVE_LOW>;
132 linux,code = <KEY_VOLUMEUP>;
133 };
134
135 volume-down {
136 label = "Volume Down";
137 gpios = <&gpio4 5 GPIO_ACTIVE_LOW>;
138 linux,code = <KEY_VOLUMEDOWN>;
139 };
140 };
141
142 sound {
143 compatible = "fsl,imx6q-sabrelite-sgtl5000",
144 "fsl,imx-audio-sgtl5000";
145 model = "imx6q-sabrelite-sgtl5000";
146 ssi-controller = <&ssi1>;
147 audio-codec = <&codec>;
148 audio-routing =
149 "MIC_IN", "Mic Jack",
150 "Mic Jack", "Mic Bias",
151 "Headphone Jack", "HP_OUT";
152 mux-int-port = <1>;
153 mux-ext-port = <4>;
154 };
155
156 backlight_lcd: backlight_lcd {
157 compatible = "pwm-backlight";
158 pwms = <&pwm1 0 5000000>;
159 brightness-levels = <0 4 8 16 32 64 128 255>;
160 default-brightness-level = <7>;
161 power-supply = <&reg_3p3v>;
162 status = "okay";
163 };
164
165 backlight_lvds: backlight_lvds {
166 compatible = "pwm-backlight";
167 pwms = <&pwm4 0 5000000>;
168 brightness-levels = <0 4 8 16 32 64 128 255>;
169 default-brightness-level = <7>;
170 power-supply = <&reg_3p3v>;
171 status = "okay";
172 };
173
174 lcd_display: display@di0 {
175 compatible = "fsl,imx-parallel-display";
176 #address-cells = <1>;
177 #size-cells = <0>;
178 interface-pix-fmt = "bgr666";
179 pinctrl-names = "default";
180 pinctrl-0 = <&pinctrl_j15>;
181 status = "okay";
182
183 port@0 {
184 reg = <0>;
185
186 lcd_display_in: endpoint {
187 remote-endpoint = <&ipu1_di0_disp0>;
188 };
189 };
190
191 port@1 {
192 reg = <1>;
193
194 lcd_display_out: endpoint {
195 remote-endpoint = <&lcd_panel_in>;
196 };
197 };
198 };
199
200 lcd_panel {
201 compatible = "okaya,rs800480t-7x0gp";
202 backlight = <&backlight_lcd>;
203
204 port {
205 lcd_panel_in: endpoint {
206 remote-endpoint = <&lcd_display_out>;
207 };
208 };
209 };
210
211 panel {
212 compatible = "hannstar,hsd100pxn1";
213 backlight = <&backlight_lvds>;
214
215 port {
216 panel_in: endpoint {
217 remote-endpoint = <&lvds0_out>;
218 };
219 };
220 };
221 };
222
223 &audmux {
224 pinctrl-names = "default";
225 pinctrl-0 = <&pinctrl_audmux>;
226 status = "okay";
227 };
228
229 &can1 {
230 pinctrl-names = "default";
231 pinctrl-0 = <&pinctrl_can1>;
232 xceiver-supply = <&reg_can_xcvr>;
233 status = "okay";
234 };
235
236 &clks {
237 assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
238 <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
239 assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
240 <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
241 };
242
243 &ecspi1 {
244 fsl,spi-num-chipselects = <1>;
245 cs-gpios = <&gpio3 19 0>;
246 pinctrl-names = "default";
247 pinctrl-0 = <&pinctrl_ecspi1>;
248 status = "okay";
249
250 flash: m25p80@0 {
251 compatible = "sst,sst25vf016b", "jedec,spi-nor";
252 spi-max-frequency = <20000000>;
253 reg = <0>;
254 };
255 };
256
257 &fec {
258 pinctrl-names = "default";
259 pinctrl-0 = <&pinctrl_enet>;
260 phy-mode = "rgmii";
261 phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
262 txen-skew-ps = <0>;
263 txc-skew-ps = <3000>;
264 rxdv-skew-ps = <0>;
265 rxc-skew-ps = <3000>;
266 rxd0-skew-ps = <0>;
267 rxd1-skew-ps = <0>;
268 rxd2-skew-ps = <0>;
269 rxd3-skew-ps = <0>;
270 txd0-skew-ps = <0>;
271 txd1-skew-ps = <0>;
272 txd2-skew-ps = <0>;
273 txd3-skew-ps = <0>;
274 interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>,
275 <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>;
276 fsl,err006687-workaround-present;
277 status = "okay";
278 };
279
280 &hdmi {
281 ddc-i2c-bus = <&i2c2>;
282 status = "okay";
283 };
284
285 &i2c1 {
286 clock-frequency = <100000>;
287 pinctrl-names = "default";
288 pinctrl-0 = <&pinctrl_i2c1>;
289 status = "okay";
290
291 codec: sgtl5000@0a {
292 compatible = "fsl,sgtl5000";
293 reg = <0x0a>;
294 clocks = <&clks IMX6QDL_CLK_CKO>;
295 VDDA-supply = <&reg_2p5v>;
296 VDDIO-supply = <&reg_3p3v>;
297 };
298 };
299
300 &i2c2 {
301 clock-frequency = <100000>;
302 pinctrl-names = "default";
303 pinctrl-0 = <&pinctrl_i2c2>;
304 status = "okay";
305 };
306
307 &i2c3 {
308 clock-frequency = <100000>;
309 pinctrl-names = "default";
310 pinctrl-0 = <&pinctrl_i2c3>;
311 status = "okay";
312 };
313
314 &iomuxc {
315 pinctrl-names = "default";
316 pinctrl-0 = <&pinctrl_hog>;
317
318 imx6q-sabrelite {
319 pinctrl_hog: hoggrp {
320 fsl,pins = <
321 /* SGTL5000 sys_mclk */
322 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x030b0
323 >;
324 };
325
326 pinctrl_audmux: audmuxgrp {
327 fsl,pins = <
328 MX6QDL_PAD_SD2_DAT0__AUD4_RXD 0x130b0
329 MX6QDL_PAD_SD2_DAT3__AUD4_TXC 0x130b0
330 MX6QDL_PAD_SD2_DAT2__AUD4_TXD 0x110b0
331 MX6QDL_PAD_SD2_DAT1__AUD4_TXFS 0x130b0
332 >;
333 };
334
335 pinctrl_can1: can1grp {
336 fsl,pins = <
337 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b0
338 MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b0
339 >;
340 };
341
342 pinctrl_can_xcvr: can-xcvrgrp {
343 fsl,pins = <
344 /* Flexcan XCVR enable */
345 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b0
346 >;
347 };
348
349 pinctrl_ecspi1: ecspi1grp {
350 fsl,pins = <
351 MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
352 MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
353 MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
354 MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x000b1 /* CS */
355 >;
356 };
357
358 pinctrl_enet: enetgrp {
359 fsl,pins = <
360 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x100b0
361 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x100b0
362 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x10030
363 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x10030
364 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x10030
365 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x10030
366 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x10030
367 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x10030
368 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x100b0
369 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
370 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
371 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
372 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
373 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
374 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
375 /* Phy reset */
376 MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x000b0
377 MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1
378 >;
379 };
380
381 pinctrl_gpio_keys: gpio_keysgrp {
382 fsl,pins = <
383 /* Power Button */
384 MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x1b0b0
385 /* Menu Button */
386 MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
387 /* Home Button */
388 MX6QDL_PAD_NANDF_D4__GPIO2_IO04 0x1b0b0
389 /* Back Button */
390 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
391 /* Volume Up Button */
392 MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b0
393 /* Volume Down Button */
394 MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x1b0b0
395 >;
396 };
397
398 pinctrl_i2c1: i2c1grp {
399 fsl,pins = <
400 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
401 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
402 >;
403 };
404
405 pinctrl_i2c2: i2c2grp {
406 fsl,pins = <
407 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
408 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
409 >;
410 };
411
412 pinctrl_i2c3: i2c3grp {
413 fsl,pins = <
414 MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
415 MX6QDL_PAD_GPIO_16__I2C3_SDA 0x4001b8b1
416 >;
417 };
418
419 pinctrl_j15: j15grp {
420 fsl,pins = <
421 MX6QDL_PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK 0x10
422 MX6QDL_PAD_DI0_PIN15__IPU1_DI0_PIN15 0x10
423 MX6QDL_PAD_DI0_PIN2__IPU1_DI0_PIN02 0x10
424 MX6QDL_PAD_DI0_PIN3__IPU1_DI0_PIN03 0x10
425 MX6QDL_PAD_DISP0_DAT0__IPU1_DISP0_DATA00 0x10
426 MX6QDL_PAD_DISP0_DAT1__IPU1_DISP0_DATA01 0x10
427 MX6QDL_PAD_DISP0_DAT2__IPU1_DISP0_DATA02 0x10
428 MX6QDL_PAD_DISP0_DAT3__IPU1_DISP0_DATA03 0x10
429 MX6QDL_PAD_DISP0_DAT4__IPU1_DISP0_DATA04 0x10
430 MX6QDL_PAD_DISP0_DAT5__IPU1_DISP0_DATA05 0x10
431 MX6QDL_PAD_DISP0_DAT6__IPU1_DISP0_DATA06 0x10
432 MX6QDL_PAD_DISP0_DAT7__IPU1_DISP0_DATA07 0x10
433 MX6QDL_PAD_DISP0_DAT8__IPU1_DISP0_DATA08 0x10
434 MX6QDL_PAD_DISP0_DAT9__IPU1_DISP0_DATA09 0x10
435 MX6QDL_PAD_DISP0_DAT10__IPU1_DISP0_DATA10 0x10
436 MX6QDL_PAD_DISP0_DAT11__IPU1_DISP0_DATA11 0x10
437 MX6QDL_PAD_DISP0_DAT12__IPU1_DISP0_DATA12 0x10
438 MX6QDL_PAD_DISP0_DAT13__IPU1_DISP0_DATA13 0x10
439 MX6QDL_PAD_DISP0_DAT14__IPU1_DISP0_DATA14 0x10
440 MX6QDL_PAD_DISP0_DAT15__IPU1_DISP0_DATA15 0x10
441 MX6QDL_PAD_DISP0_DAT16__IPU1_DISP0_DATA16 0x10
442 MX6QDL_PAD_DISP0_DAT17__IPU1_DISP0_DATA17 0x10
443 MX6QDL_PAD_DISP0_DAT18__IPU1_DISP0_DATA18 0x10
444 MX6QDL_PAD_DISP0_DAT19__IPU1_DISP0_DATA19 0x10
445 MX6QDL_PAD_DISP0_DAT20__IPU1_DISP0_DATA20 0x10
446 MX6QDL_PAD_DISP0_DAT21__IPU1_DISP0_DATA21 0x10
447 MX6QDL_PAD_DISP0_DAT22__IPU1_DISP0_DATA22 0x10
448 MX6QDL_PAD_DISP0_DAT23__IPU1_DISP0_DATA23 0x10
449 >;
450 };
451
452 pinctrl_pwm1: pwm1grp {
453 fsl,pins = <
454 MX6QDL_PAD_SD1_DAT3__PWM1_OUT 0x1b0b1
455 >;
456 };
457
458 pinctrl_pwm3: pwm3grp {
459 fsl,pins = <
460 MX6QDL_PAD_SD1_DAT1__PWM3_OUT 0x1b0b1
461 >;
462 };
463
464 pinctrl_pwm4: pwm4grp {
465 fsl,pins = <
466 MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
467 >;
468 };
469
470 pinctrl_uart1: uart1grp {
471 fsl,pins = <
472 MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
473 MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
474 >;
475 };
476
477 pinctrl_uart2: uart2grp {
478 fsl,pins = <
479 MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
480 MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
481 >;
482 };
483
484 pinctrl_usbotg: usbotggrp {
485 fsl,pins = <
486 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
487 MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0
488 /* power enable, high active */
489 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x000b0
490 >;
491 };
492
493 pinctrl_usdhc3: usdhc3grp {
494 fsl,pins = <
495 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
496 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
497 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
498 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
499 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
500 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
501 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x1b0b0 /* CD */
502 MX6QDL_PAD_SD3_DAT4__GPIO7_IO01 0x1f0b0 /* WP */
503 >;
504 };
505
506 pinctrl_usdhc4: usdhc4grp {
507 fsl,pins = <
508 MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
509 MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
510 MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
511 MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
512 MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
513 MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
514 MX6QDL_PAD_NANDF_D6__GPIO2_IO06 0x1b0b0 /* CD */
515 >;
516 };
517 };
518 };
519
520 &ipu1_di0_disp0 {
521 remote-endpoint = <&lcd_display_in>;
522 };
523
524 &ldb {
525 status = "okay";
526
527 lvds-channel@0 {
528 fsl,data-mapping = "spwg";
529 fsl,data-width = <18>;
530 status = "okay";
531
532 port@4 {
533 reg = <4>;
534
535 lvds0_out: endpoint {
536 remote-endpoint = <&panel_in>;
537 };
538 };
539 };
540 };
541
542 &pcie {
543 status = "okay";
544 };
545
546 &pwm1 {
547 pinctrl-names = "default";
548 pinctrl-0 = <&pinctrl_pwm1>;
549 status = "okay";
550 };
551
552 &pwm3 {
553 pinctrl-names = "default";
554 pinctrl-0 = <&pinctrl_pwm3>;
555 status = "okay";
556 };
557
558 &pwm4 {
559 pinctrl-names = "default";
560 pinctrl-0 = <&pinctrl_pwm4>;
561 status = "okay";
562 };
563
564 &ssi1 {
565 status = "okay";
566 };
567
568 &uart1 {
569 pinctrl-names = "default";
570 pinctrl-0 = <&pinctrl_uart1>;
571 status = "okay";
572 };
573
574 &uart2 {
575 pinctrl-names = "default";
576 pinctrl-0 = <&pinctrl_uart2>;
577 status = "okay";
578 };
579
580 &usbh1 {
581 status = "okay";
582 };
583
584 &usbotg {
585 vbus-supply = <&reg_usb_otg_vbus>;
586 pinctrl-names = "default";
587 pinctrl-0 = <&pinctrl_usbotg>;
588 disable-over-current;
589 status = "okay";
590 };
591
592 &usdhc3 {
593 pinctrl-names = "default";
594 pinctrl-0 = <&pinctrl_usdhc3>;
595 cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
596 wp-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
597 vmmc-supply = <&reg_3p3v>;
598 status = "okay";
599 };
600
601 &usdhc4 {
602 pinctrl-names = "default";
603 pinctrl-0 = <&pinctrl_usdhc4>;
604 cd-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
605 vmmc-supply = <&reg_3p3v>;
606 status = "okay";
607 };
This page took 0.047281 seconds and 6 git commands to generate.