2 * Copyright 2011 Freescale Semiconductor, Inc.
3 * Copyright 2011 Linaro Ltd.
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
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.
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.
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
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", 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.
43 #include <dt-bindings/clock/imx6qdl-clock.h>
44 #include <dt-bindings/gpio/gpio.h>
45 #include <dt-bindings/input/input.h>
53 device_type = "memory";
54 reg = <0x10000000 0x40000000>;
58 compatible = "simple-bus";
62 reg_2p5v: regulator@0 {
63 compatible = "regulator-fixed";
65 regulator-name = "2P5V";
66 regulator-min-microvolt = <2500000>;
67 regulator-max-microvolt = <2500000>;
71 reg_3p3v: regulator@1 {
72 compatible = "regulator-fixed";
74 regulator-name = "3P3V";
75 regulator-min-microvolt = <3300000>;
76 regulator-max-microvolt = <3300000>;
80 reg_usb_otg_vbus: regulator@2 {
81 compatible = "regulator-fixed";
83 regulator-name = "usb_otg_vbus";
84 regulator-min-microvolt = <5000000>;
85 regulator-max-microvolt = <5000000>;
90 reg_can_xcvr: regulator@3 {
91 compatible = "regulator-fixed";
93 regulator-name = "CAN XCVR";
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&pinctrl_can_xcvr>;
98 gpio = <&gpio1 2 GPIO_ACTIVE_LOW>;
101 reg_1p5v: regulator@4 {
102 compatible = "regulator-fixed";
104 regulator-name = "1P5V";
105 regulator-min-microvolt = <1500000>;
106 regulator-max-microvolt = <1500000>;
110 reg_1p8v: regulator@5 {
111 compatible = "regulator-fixed";
113 regulator-name = "1P8V";
114 regulator-min-microvolt = <1800000>;
115 regulator-max-microvolt = <1800000>;
119 reg_2p8v: regulator@6 {
120 compatible = "regulator-fixed";
122 regulator-name = "2P8V";
123 regulator-min-microvolt = <2800000>;
124 regulator-max-microvolt = <2800000>;
128 reg_usb_h1_vbus: regulator@7 {
129 compatible = "regulator-fixed";
131 pinctrl-names = "default";
132 pinctrl-0 = <&pinctrl_usbh1>;
133 regulator-name = "usb_h1_vbus";
134 regulator-min-microvolt = <3300000>;
135 regulator-max-microvolt = <3300000>;
136 gpio = <&gpio7 12 GPIO_ACTIVE_HIGH>;
141 mipi_xclk: mipi_xclk {
142 compatible = "pwm-clock";
144 clock-frequency = <22000000>;
145 clock-output-names = "mipi_pwm3";
146 pwms = <&pwm3 0 45>; /* 1 / 45 ns = 22 MHz */
151 compatible = "gpio-keys";
152 pinctrl-names = "default";
153 pinctrl-0 = <&pinctrl_gpio_keys>;
156 label = "Power Button";
157 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
158 linux,code = <KEY_POWER>;
164 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
165 linux,code = <KEY_MENU>;
170 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
171 linux,code = <KEY_HOME>;
176 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
177 linux,code = <KEY_BACK>;
182 gpios = <&gpio7 13 GPIO_ACTIVE_LOW>;
183 linux,code = <KEY_VOLUMEUP>;
187 label = "Volume Down";
188 gpios = <&gpio4 5 GPIO_ACTIVE_LOW>;
189 linux,code = <KEY_VOLUMEDOWN>;
194 compatible = "fsl,imx6q-sabrelite-sgtl5000",
195 "fsl,imx-audio-sgtl5000";
196 model = "imx6q-sabrelite-sgtl5000";
197 ssi-controller = <&ssi1>;
198 audio-codec = <&codec>;
200 "MIC_IN", "Mic Jack",
201 "Mic Jack", "Mic Bias",
202 "Headphone Jack", "HP_OUT";
207 backlight_lcd: backlight-lcd {
208 compatible = "pwm-backlight";
209 pwms = <&pwm1 0 5000000>;
210 brightness-levels = <0 4 8 16 32 64 128 255>;
211 default-brightness-level = <7>;
212 power-supply = <®_3p3v>;
216 backlight_lvds: backlight-lvds {
217 compatible = "pwm-backlight";
218 pwms = <&pwm4 0 5000000>;
219 brightness-levels = <0 4 8 16 32 64 128 255>;
220 default-brightness-level = <7>;
221 power-supply = <®_3p3v>;
226 compatible = "fsl,imx-parallel-display";
227 #address-cells = <1>;
229 interface-pix-fmt = "bgr666";
230 pinctrl-names = "default";
231 pinctrl-0 = <&pinctrl_j15>;
237 lcd_display_in: endpoint {
238 remote-endpoint = <&ipu1_di0_disp0>;
245 lcd_display_out: endpoint {
246 remote-endpoint = <&lcd_panel_in>;
252 compatible = "okaya,rs800480t-7x0gp";
253 backlight = <&backlight_lcd>;
256 lcd_panel_in: endpoint {
257 remote-endpoint = <&lcd_display_out>;
263 compatible = "hannstar,hsd100pxn1";
264 backlight = <&backlight_lvds>;
268 remote-endpoint = <&lvds0_out>;
274 &ipu1_csi0_from_ipu1_csi0_mux {
276 data-shift = <12>; /* Lines 19:12 used */
281 &ipu1_csi0_mux_from_parallel_sensor {
282 remote-endpoint = <&ov5642_to_ipu1_csi0_mux>;
286 pinctrl-names = "default";
287 pinctrl-0 = <&pinctrl_ipu1_csi0>;
291 pinctrl-names = "default";
292 pinctrl-0 = <&pinctrl_audmux>;
297 pinctrl-names = "default";
298 pinctrl-0 = <&pinctrl_can1>;
299 xceiver-supply = <®_can_xcvr>;
304 assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
305 <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
306 assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
307 <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
311 cs-gpios = <&gpio3 19 0>;
312 pinctrl-names = "default";
313 pinctrl-0 = <&pinctrl_ecspi1>;
317 compatible = "sst,sst25vf016b", "jedec,spi-nor";
318 spi-max-frequency = <20000000>;
324 pinctrl-names = "default";
325 pinctrl-0 = <&pinctrl_enet>;
327 phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
329 txc-skew-ps = <3000>;
331 rxc-skew-ps = <3000>;
344 ddc-i2c-bus = <&i2c2>;
349 clock-frequency = <100000>;
350 pinctrl-names = "default";
351 pinctrl-0 = <&pinctrl_i2c1>;
355 compatible = "fsl,sgtl5000";
357 clocks = <&clks IMX6QDL_CLK_CKO>;
358 VDDA-supply = <®_2p5v>;
359 VDDIO-supply = <®_3p3v>;
364 clock-frequency = <100000>;
365 pinctrl-names = "default";
366 pinctrl-0 = <&pinctrl_i2c2>;
370 compatible = "ovti,ov5640";
371 pinctrl-names = "default";
372 pinctrl-0 = <&pinctrl_ov5640>;
374 clocks = <&mipi_xclk>;
375 clock-names = "xclk";
376 DOVDD-supply = <®_1p8v>;
377 AVDD-supply = <®_2p8v>;
378 DVDD-supply = <®_1p5v>;
379 reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; /* NANDF_D5 */
380 powerdown-gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* NANDF_WP_B */
383 ov5640_to_mipi_csi2: endpoint {
384 remote-endpoint = <&mipi_csi2_in>;
392 compatible = "ovti,ov5642";
393 pinctrl-names = "default";
394 pinctrl-0 = <&pinctrl_ov5642>;
395 clocks = <&clks IMX6QDL_CLK_CKO2>;
396 clock-names = "xclk";
398 reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
399 powerdown-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
400 gp-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
404 ov5642_to_ipu1_csi0_mux: endpoint {
405 remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>;
415 clock-frequency = <100000>;
416 pinctrl-names = "default";
417 pinctrl-0 = <&pinctrl_i2c3>;
422 pinctrl-names = "default";
423 pinctrl-0 = <&pinctrl_hog>;
426 pinctrl_hog: hoggrp {
428 /* SGTL5000 sys_mclk */
429 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x030b0
433 pinctrl_audmux: audmuxgrp {
435 MX6QDL_PAD_SD2_DAT0__AUD4_RXD 0x130b0
436 MX6QDL_PAD_SD2_DAT3__AUD4_TXC 0x130b0
437 MX6QDL_PAD_SD2_DAT2__AUD4_TXD 0x110b0
438 MX6QDL_PAD_SD2_DAT1__AUD4_TXFS 0x130b0
442 pinctrl_can1: can1grp {
444 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b0
445 MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b0
449 pinctrl_can_xcvr: can-xcvrgrp {
451 /* Flexcan XCVR enable */
452 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b0
456 pinctrl_ecspi1: ecspi1grp {
458 MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
459 MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
460 MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
461 MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x000b1 /* CS */
465 pinctrl_enet: enetgrp {
467 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x100b0
468 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x100b0
469 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x10030
470 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x10030
471 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x10030
472 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x10030
473 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x10030
474 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x10030
475 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x100b0
476 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
477 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
478 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
479 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
480 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
481 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
483 MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x000b0
487 pinctrl_gpio_keys: gpio-keysgrp {
490 MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x1b0b0
492 MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
494 MX6QDL_PAD_NANDF_D4__GPIO2_IO04 0x1b0b0
496 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
497 /* Volume Up Button */
498 MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b0
499 /* Volume Down Button */
500 MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x1b0b0
504 pinctrl_i2c1: i2c1grp {
506 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
507 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
511 pinctrl_i2c2: i2c2grp {
513 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
514 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
518 pinctrl_i2c3: i2c3grp {
520 MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
521 MX6QDL_PAD_GPIO_16__I2C3_SDA 0x4001b8b1
525 pinctrl_ipu1_csi0: ipu1csi0grp {
527 MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12 0x1b0b0
528 MX6QDL_PAD_CSI0_DAT13__IPU1_CSI0_DATA13 0x1b0b0
529 MX6QDL_PAD_CSI0_DAT14__IPU1_CSI0_DATA14 0x1b0b0
530 MX6QDL_PAD_CSI0_DAT15__IPU1_CSI0_DATA15 0x1b0b0
531 MX6QDL_PAD_CSI0_DAT16__IPU1_CSI0_DATA16 0x1b0b0
532 MX6QDL_PAD_CSI0_DAT17__IPU1_CSI0_DATA17 0x1b0b0
533 MX6QDL_PAD_CSI0_DAT18__IPU1_CSI0_DATA18 0x1b0b0
534 MX6QDL_PAD_CSI0_DAT19__IPU1_CSI0_DATA19 0x1b0b0
535 MX6QDL_PAD_CSI0_PIXCLK__IPU1_CSI0_PIXCLK 0x1b0b0
536 MX6QDL_PAD_CSI0_MCLK__IPU1_CSI0_HSYNC 0x1b0b0
537 MX6QDL_PAD_CSI0_VSYNC__IPU1_CSI0_VSYNC 0x1b0b0
538 MX6QDL_PAD_CSI0_DATA_EN__IPU1_CSI0_DATA_EN 0x1b0b0
542 pinctrl_j15: j15grp {
544 MX6QDL_PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK 0x10
545 MX6QDL_PAD_DI0_PIN15__IPU1_DI0_PIN15 0x10
546 MX6QDL_PAD_DI0_PIN2__IPU1_DI0_PIN02 0x10
547 MX6QDL_PAD_DI0_PIN3__IPU1_DI0_PIN03 0x10
548 MX6QDL_PAD_DISP0_DAT0__IPU1_DISP0_DATA00 0x10
549 MX6QDL_PAD_DISP0_DAT1__IPU1_DISP0_DATA01 0x10
550 MX6QDL_PAD_DISP0_DAT2__IPU1_DISP0_DATA02 0x10
551 MX6QDL_PAD_DISP0_DAT3__IPU1_DISP0_DATA03 0x10
552 MX6QDL_PAD_DISP0_DAT4__IPU1_DISP0_DATA04 0x10
553 MX6QDL_PAD_DISP0_DAT5__IPU1_DISP0_DATA05 0x10
554 MX6QDL_PAD_DISP0_DAT6__IPU1_DISP0_DATA06 0x10
555 MX6QDL_PAD_DISP0_DAT7__IPU1_DISP0_DATA07 0x10
556 MX6QDL_PAD_DISP0_DAT8__IPU1_DISP0_DATA08 0x10
557 MX6QDL_PAD_DISP0_DAT9__IPU1_DISP0_DATA09 0x10
558 MX6QDL_PAD_DISP0_DAT10__IPU1_DISP0_DATA10 0x10
559 MX6QDL_PAD_DISP0_DAT11__IPU1_DISP0_DATA11 0x10
560 MX6QDL_PAD_DISP0_DAT12__IPU1_DISP0_DATA12 0x10
561 MX6QDL_PAD_DISP0_DAT13__IPU1_DISP0_DATA13 0x10
562 MX6QDL_PAD_DISP0_DAT14__IPU1_DISP0_DATA14 0x10
563 MX6QDL_PAD_DISP0_DAT15__IPU1_DISP0_DATA15 0x10
564 MX6QDL_PAD_DISP0_DAT16__IPU1_DISP0_DATA16 0x10
565 MX6QDL_PAD_DISP0_DAT17__IPU1_DISP0_DATA17 0x10
566 MX6QDL_PAD_DISP0_DAT18__IPU1_DISP0_DATA18 0x10
567 MX6QDL_PAD_DISP0_DAT19__IPU1_DISP0_DATA19 0x10
568 MX6QDL_PAD_DISP0_DAT20__IPU1_DISP0_DATA20 0x10
569 MX6QDL_PAD_DISP0_DAT21__IPU1_DISP0_DATA21 0x10
570 MX6QDL_PAD_DISP0_DAT22__IPU1_DISP0_DATA22 0x10
571 MX6QDL_PAD_DISP0_DAT23__IPU1_DISP0_DATA23 0x10
575 pinctrl_ov5640: ov5640grp {
577 MX6QDL_PAD_NANDF_D5__GPIO2_IO05 0x000b0
578 MX6QDL_PAD_NANDF_WP_B__GPIO6_IO09 0x0b0b0
582 pinctrl_ov5642: ov5642grp {
584 MX6QDL_PAD_SD1_DAT0__GPIO1_IO16 0x1b0b0
585 MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x1b0b0
586 MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x130b0
587 MX6QDL_PAD_GPIO_3__CCM_CLKO2 0x000b0
591 pinctrl_pwm1: pwm1grp {
593 MX6QDL_PAD_SD1_DAT3__PWM1_OUT 0x1b0b1
597 pinctrl_pwm3: pwm3grp {
599 MX6QDL_PAD_SD1_DAT1__PWM3_OUT 0x1b0b1
603 pinctrl_pwm4: pwm4grp {
605 MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
609 pinctrl_uart1: uart1grp {
611 MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
612 MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
616 pinctrl_uart2: uart2grp {
618 MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
619 MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
623 pinctrl_usbh1: usbh1grp {
625 MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x030b0
629 pinctrl_usbotg: usbotggrp {
631 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
632 MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0
633 /* power enable, high active */
634 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x000b0
638 pinctrl_usdhc3: usdhc3grp {
640 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
641 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
642 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
643 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
644 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
645 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
646 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x1b0b0 /* CD */
647 MX6QDL_PAD_SD3_DAT4__GPIO7_IO01 0x1f0b0 /* WP */
651 pinctrl_usdhc4: usdhc4grp {
653 MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
654 MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
655 MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
656 MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
657 MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
658 MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
659 MX6QDL_PAD_NANDF_D6__GPIO2_IO06 0x1b0b0 /* CD */
666 remote-endpoint = <&lcd_display_in>;
678 lvds0_out: endpoint {
679 remote-endpoint = <&panel_in>;
690 pinctrl-names = "default";
691 pinctrl-0 = <&pinctrl_pwm1>;
696 pinctrl-names = "default";
697 pinctrl-0 = <&pinctrl_pwm3>;
702 pinctrl-names = "default";
703 pinctrl-0 = <&pinctrl_pwm4>;
712 pinctrl-names = "default";
713 pinctrl-0 = <&pinctrl_uart1>;
718 pinctrl-names = "default";
719 pinctrl-0 = <&pinctrl_uart2>;
724 vbus-supply = <®_usb_h1_vbus>;
729 vbus-supply = <®_usb_otg_vbus>;
730 pinctrl-names = "default";
731 pinctrl-0 = <&pinctrl_usbotg>;
732 disable-over-current;
737 pinctrl-names = "default";
738 pinctrl-0 = <&pinctrl_usdhc3>;
739 cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
740 wp-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
741 vmmc-supply = <®_3p3v>;
746 pinctrl-names = "default";
747 pinctrl-0 = <&pinctrl_usdhc4>;
748 cd-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
749 vmmc-supply = <®_3p3v>;
759 mipi_csi2_in: endpoint {
760 remote-endpoint = <&ov5640_to_mipi_csi2>;