2 * Copyright 2014 Gateworks Corporation
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
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.
19 * You should have received a copy of the GNU General Public
20 * License along with this file; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
29 * restriction, including without limitation the rights to use,
30 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
48 #include <dt-bindings/gpio/gpio.h>
49 #include <dt-bindings/media/tda1997x.h>
50 #include <dt-bindings/input/linux-event-codes.h>
51 #include <dt-bindings/sound/fsl-imx-audmux.h>
54 /* these are used by bootloader for disabling nodes */
64 bootargs = "console=ttymxc1,115200";
68 compatible = "gpio-keys";
74 gpios = <&gsc_gpio 0 GPIO_ACTIVE_LOW>;
81 interrupt-parent = <&gsc>;
88 interrupt-parent = <&gsc>;
95 interrupt-parent = <&gsc>;
101 linux,code = <BTN_4>;
102 interrupt-parent = <&gsc>;
107 label = "switch_hold";
108 linux,code = <BTN_5>;
109 interrupt-parent = <&gsc>;
115 compatible = "gpio-leds";
116 pinctrl-names = "default";
117 pinctrl-0 = <&pinctrl_gpio_leds>;
121 gpios = <&gpio4 7 GPIO_ACTIVE_LOW>;
122 default-state = "on";
123 linux,default-trigger = "heartbeat";
128 device_type = "memory";
129 reg = <0x10000000 0x20000000>;
132 reg_5p0v: regulator-5p0v {
133 compatible = "regulator-fixed";
134 regulator-name = "5P0V";
135 regulator-min-microvolt = <5000000>;
136 regulator-max-microvolt = <5000000>;
139 reg_usb_h1_vbus: regulator-usb-h1-vbus {
140 compatible = "regulator-fixed";
141 regulator-name = "usb_h1_vbus";
142 regulator-min-microvolt = <5000000>;
143 regulator-max-microvolt = <5000000>;
146 reg_usb_otg_vbus: regulator-usb-otg-vbus {
147 compatible = "regulator-fixed";
148 regulator-name = "usb_otg_vbus";
149 regulator-min-microvolt = <5000000>;
150 regulator-max-microvolt = <5000000>;
154 compatible = "simple-audio-card";
155 simple-audio-card,name = "tda1997x-audio";
156 simple-audio-card,format = "i2s";
157 simple-audio-card,bitclock-master = <&sound_codec>;
158 simple-audio-card,frame-master = <&sound_codec>;
160 sound_cpu: simple-audio-card,cpu {
164 sound_codec: simple-audio-card,codec {
165 sound-dai = <&hdmi_receiver>;
171 pinctrl-names = "default";
172 pinctrl-0 = <&pinctrl_audmux>; /* AUD5<->tda1997x */
176 fsl,audmux-port = <0>;
178 (IMX_AUDMUX_V2_PTCR_TFSDIR |
179 IMX_AUDMUX_V2_PTCR_TFSEL(4+8) | /* RXFS */
180 IMX_AUDMUX_V2_PTCR_TCLKDIR |
181 IMX_AUDMUX_V2_PTCR_TCSEL(4+8) | /* RXC */
182 IMX_AUDMUX_V2_PTCR_SYN)
183 IMX_AUDMUX_V2_PDCR_RXDSEL(4)
188 fsl,audmux-port = <4>;
190 IMX_AUDMUX_V2_PTCR_SYN
191 IMX_AUDMUX_V2_PDCR_RXDSEL(0)>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&pinctrl_flexcan1>;
202 pinctrl-names = "default";
203 pinctrl-0 = <&pinctrl_gpmi_nand>;
208 ddc-i2c-bus = <&i2c3>;
213 clock-frequency = <100000>;
214 pinctrl-names = "default";
215 pinctrl-0 = <&pinctrl_i2c1>;
219 compatible = "gw,gsc";
221 interrupt-parent = <&gpio1>;
222 interrupts = <4 GPIO_ACTIVE_LOW>;
223 interrupt-controller;
224 #interrupt-cells = <1>;
228 compatible = "gw,gsc-adc";
229 #address-cells = <1>;
301 compatible = "nxp,pca9555";
305 interrupt-parent = <&gsc>;
310 compatible = "atmel,24c02";
316 compatible = "atmel,24c02";
322 compatible = "atmel,24c02";
328 compatible = "atmel,24c02";
334 compatible = "dallas,ds1672";
340 clock-frequency = <100000>;
341 pinctrl-names = "default";
342 pinctrl-0 = <&pinctrl_i2c2>;
346 compatible = "lltc,ltc3676";
348 pinctrl-names = "default";
349 pinctrl-0 = <&pinctrl_pmic>;
350 interrupt-parent = <&gpio1>;
351 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
354 /* VDD_SOC (1+R1/R2 = 1.635) */
356 regulator-name = "vddsoc";
357 regulator-min-microvolt = <674400>;
358 regulator-max-microvolt = <1308000>;
359 lltc,fb-voltage-divider = <127000 200000>;
360 regulator-ramp-delay = <7000>;
365 /* VDD_DDR (1+R1/R2 = 2.105) */
367 regulator-name = "vddddr";
368 regulator-min-microvolt = <868310>;
369 regulator-max-microvolt = <1684000>;
370 lltc,fb-voltage-divider = <221000 200000>;
371 regulator-ramp-delay = <7000>;
376 /* VDD_ARM (1+R1/R2 = 1.635) */
378 regulator-name = "vddarm";
379 regulator-min-microvolt = <674400>;
380 regulator-max-microvolt = <1308000>;
381 lltc,fb-voltage-divider = <127000 200000>;
382 regulator-ramp-delay = <7000>;
387 /* VDD_3P3 (1+R1/R2 = 1.281) */
389 regulator-name = "vdd3p3";
390 regulator-min-microvolt = <1880000>;
391 regulator-max-microvolt = <3647000>;
392 lltc,fb-voltage-divider = <200000 56200>;
393 regulator-ramp-delay = <7000>;
398 /* VDD_1P8a (1+R1/R2 = 2.505): HDMI In core */
400 regulator-name = "vdd1p8a";
401 regulator-min-microvolt = <1816125>;
402 regulator-max-microvolt = <1816125>;
403 lltc,fb-voltage-divider = <301000 200000>;
408 /* VDD_1P8b: HDMI In analog */
410 regulator-name = "vdd1p8b";
411 regulator-min-microvolt = <1800000>;
412 regulator-max-microvolt = <1800000>;
416 /* VDD_HIGH (1+R1/R2 = 4.17) */
418 regulator-name = "vdd3p0";
419 regulator-min-microvolt = <3023250>;
420 regulator-max-microvolt = <3023250>;
421 lltc,fb-voltage-divider = <634000 200000>;
430 clock-frequency = <100000>;
431 pinctrl-names = "default";
432 pinctrl-0 = <&pinctrl_i2c3>;
435 gpio_exp: pca9555@24 {
436 compatible = "nxp,pca9555";
442 hdmi_receiver: hdmi-receiver@48 {
443 compatible = "nxp,tda19971";
444 pinctrl-names = "default";
445 pinctrl-0 = <&pinctrl_tda1997x>;
447 interrupt-parent = <&gpio1>;
448 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
449 DOVDD-supply = <®_3p3>;
450 AVDD-supply = <®_1p8b>;
451 DVDD-supply = <®_1p8a>;
452 #sound-dai-cells = <0>;
453 nxp,audout-format = "i2s";
454 nxp,audout-layout = <0>;
455 nxp,audout-width = <16>;
456 nxp,audout-mclk-fs = <128>;
458 * The 8bpp YUV422 semi-planar mode outputs CbCr[11:4]
459 * and Y[11:4] across 16bits in the same cycle
460 * which we map to VP[15:08]<->CSI_DATA[19:12]
463 /*G_Y_11_8<->VP[15:12]<->CSI_DATA[19:16]*/
464 < TDA1997X_VP24_V15_12 TDA1997X_G_Y_11_8 >,
465 /*G_Y_7_4<->VP[11:08]<->CSI_DATA[15:12]*/
466 < TDA1997X_VP24_V11_08 TDA1997X_G_Y_7_4 >,
467 /*R_CR_CBCR_11_8<->VP[07:04]<->CSI_DATA[11:08]*/
468 < TDA1997X_VP24_V07_04 TDA1997X_R_CR_CBCR_11_8 >,
469 /*R_CR_CBCR_7_4<->VP[03:00]<->CSI_DATA[07:04]*/
470 < TDA1997X_VP24_V03_00 TDA1997X_R_CR_CBCR_7_4 >;
473 tda1997x_to_ipu1_csi0_mux: endpoint {
474 remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>;
484 &ipu1_csi0_from_ipu1_csi0_mux {
488 &ipu1_csi0_mux_from_parallel_sensor {
489 remote-endpoint = <&tda1997x_to_ipu1_csi0_mux>;
494 pinctrl-names = "default";
495 pinctrl-0 = <&pinctrl_ipu1_csi0>;
499 pinctrl-names = "default";
500 pinctrl-0 = <&pinctrl_pcie>;
501 reset-gpio = <&gpio1 0 GPIO_ACTIVE_LOW>;
506 pinctrl-names = "default";
507 pinctrl-0 = <&pinctrl_pwm2>; /* MX6_DIO1 */
512 pinctrl-names = "default";
513 pinctrl-0 = <&pinctrl_pwm3>; /* MX6_DIO2 */
522 pinctrl-names = "default";
523 pinctrl-0 = <&pinctrl_uart2>;
528 pinctrl-names = "default";
529 pinctrl-0 = <&pinctrl_uart3>;
534 vbus-supply = <®_usb_otg_vbus>;
535 pinctrl-names = "default";
536 pinctrl-0 = <&pinctrl_usbotg>;
537 disable-over-current;
542 vbus-supply = <®_usb_h1_vbus>;
547 pinctrl-names = "default";
548 pinctrl-0 = <&pinctrl_wdog>;
549 fsl,ext-reset-output;
553 pinctrl_audmux: audmuxgrp {
555 MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0
556 MX6QDL_PAD_DISP0_DAT14__AUD5_RXC 0x130b0
557 MX6QDL_PAD_DISP0_DAT13__AUD5_RXFS 0x130b0
561 pinctrl_flexcan1: flexcan1grp {
563 MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b1
564 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b1
565 MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x4001b0b0 /* CAN_STBY */
569 pinctrl_gpio_leds: gpioledsgrp {
571 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x1b0b0
575 pinctrl_gpmi_nand: gpminandgrp {
577 MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
578 MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
579 MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
580 MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
581 MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
582 MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
583 MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
584 MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
585 MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
586 MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
587 MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
588 MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
589 MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
590 MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
591 MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
595 pinctrl_i2c1: i2c1grp {
597 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
598 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
599 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0xb0b1
603 pinctrl_i2c2: i2c2grp {
605 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
606 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
610 pinctrl_i2c3: i2c3grp {
612 MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
613 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
617 pinctrl_ipu1_csi0: ipu1_csi0grp {
619 MX6QDL_PAD_CSI0_DAT4__IPU1_CSI0_DATA04 0x1b0b0
620 MX6QDL_PAD_CSI0_DAT5__IPU1_CSI0_DATA05 0x1b0b0
621 MX6QDL_PAD_CSI0_DAT6__IPU1_CSI0_DATA06 0x1b0b0
622 MX6QDL_PAD_CSI0_DAT7__IPU1_CSI0_DATA07 0x1b0b0
623 MX6QDL_PAD_CSI0_DAT8__IPU1_CSI0_DATA08 0x1b0b0
624 MX6QDL_PAD_CSI0_DAT9__IPU1_CSI0_DATA09 0x1b0b0
625 MX6QDL_PAD_CSI0_DAT10__IPU1_CSI0_DATA10 0x1b0b0
626 MX6QDL_PAD_CSI0_DAT11__IPU1_CSI0_DATA11 0x1b0b0
627 MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12 0x1b0b0
628 MX6QDL_PAD_CSI0_DAT13__IPU1_CSI0_DATA13 0x1b0b0
629 MX6QDL_PAD_CSI0_DAT14__IPU1_CSI0_DATA14 0x1b0b0
630 MX6QDL_PAD_CSI0_DAT15__IPU1_CSI0_DATA15 0x1b0b0
631 MX6QDL_PAD_CSI0_DAT16__IPU1_CSI0_DATA16 0x1b0b0
632 MX6QDL_PAD_CSI0_DAT17__IPU1_CSI0_DATA17 0x1b0b0
633 MX6QDL_PAD_CSI0_DAT18__IPU1_CSI0_DATA18 0x1b0b0
634 MX6QDL_PAD_CSI0_DAT19__IPU1_CSI0_DATA19 0x1b0b0
635 MX6QDL_PAD_CSI0_MCLK__IPU1_CSI0_HSYNC 0x1b0b0
636 MX6QDL_PAD_CSI0_PIXCLK__IPU1_CSI0_PIXCLK 0x1b0b0
637 MX6QDL_PAD_CSI0_VSYNC__IPU1_CSI0_VSYNC 0x1b0b0
641 pinctrl_pcie: pciegrp {
643 MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0 /* PCIE RST */
647 pinctrl_pmic: pmicgrp {
649 MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x0001b0b0 /* PMIC_IRQ# */
653 pinctrl_pwm2: pwm2grp {
655 MX6QDL_PAD_SD1_DAT2__PWM2_OUT 0x1b0b1
659 pinctrl_pwm3: pwm3grp {
661 MX6QDL_PAD_SD1_DAT1__PWM3_OUT 0x1b0b1
665 pinctrl_tda1997x: tda1997xgrp {
667 MX6QDL_PAD_GPIO_7__GPIO1_IO07 0x1b0b0
671 pinctrl_uart2: uart2grp {
673 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
674 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
678 pinctrl_uart3: uart3grp {
680 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
681 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
685 pinctrl_usbotg: usbotggrp {
687 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
691 pinctrl_wdog: wdoggrp {
693 MX6QDL_PAD_DISP0_DAT8__WDOG1_B 0x1b0b0