1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2013 Gateworks Corporation
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/sound/fsl-imx-audmux.h>
12 /* these are used by bootloader for disabling nodes */
25 bootargs = "console=ttymxc1,115200";
29 compatible = "pwm-backlight";
30 pwms = <&pwm4 0 5000000>;
31 brightness-levels = <0 4 8 16 32 64 128 255>;
32 default-brightness-level = <7>;
36 compatible = "gpio-keys";
42 gpios = <&gsc_gpio 0 GPIO_ACTIVE_LOW>;
49 interrupt-parent = <&gsc>;
56 interrupt-parent = <&gsc>;
63 interrupt-parent = <&gsc>;
70 interrupt-parent = <&gsc>;
75 label = "switch_hold";
77 interrupt-parent = <&gsc>;
83 compatible = "gpio-leds";
84 pinctrl-names = "default";
85 pinctrl-0 = <&pinctrl_gpio_leds>;
89 gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDG */
91 linux,default-trigger = "heartbeat";
96 gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
97 default-state = "off";
102 gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */
103 default-state = "off";
108 device_type = "memory";
109 reg = <0x10000000 0x40000000>;
113 compatible = "pps-gpio";
114 pinctrl-names = "default";
115 pinctrl-0 = <&pinctrl_pps>;
116 gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
121 compatible = "simple-bus";
122 #address-cells = <1>;
125 reg_1p0v: regulator@0 {
126 compatible = "regulator-fixed";
128 regulator-name = "1P0V";
129 regulator-min-microvolt = <1000000>;
130 regulator-max-microvolt = <1000000>;
134 reg_3p3v: regulator@1 {
135 compatible = "regulator-fixed";
137 regulator-name = "3P3V";
138 regulator-min-microvolt = <3300000>;
139 regulator-max-microvolt = <3300000>;
143 reg_usb_h1_vbus: regulator@2 {
144 compatible = "regulator-fixed";
146 regulator-name = "usb_h1_vbus";
147 regulator-min-microvolt = <5000000>;
148 regulator-max-microvolt = <5000000>;
152 reg_usb_otg_vbus: regulator@3 {
153 compatible = "regulator-fixed";
155 regulator-name = "usb_otg_vbus";
156 regulator-min-microvolt = <5000000>;
157 regulator-max-microvolt = <5000000>;
158 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
164 compatible = "fsl,imx6q-ventana-sgtl5000",
165 "fsl,imx-audio-sgtl5000";
166 model = "sgtl5000-audio";
167 ssi-controller = <&ssi1>;
168 audio-codec = <&sgtl5000>;
170 "MIC_IN", "Mic Jack",
171 "Mic Jack", "Mic Bias",
172 "Headphone Jack", "HP_OUT";
179 pinctrl-names = "default";
180 pinctrl-0 = <&pinctrl_audmux>; /* AUD4<->sgtl5000 */
184 fsl,audmux-port = <1>;
186 (IMX_AUDMUX_V2_PTCR_TFSDIR |
187 IMX_AUDMUX_V2_PTCR_TFSEL(4+8) | /* RXFS */
188 IMX_AUDMUX_V2_PTCR_TCLKDIR |
189 IMX_AUDMUX_V2_PTCR_TCSEL(4+8) | /* RXC */
190 IMX_AUDMUX_V2_PTCR_SYN)
191 IMX_AUDMUX_V2_PDCR_RXDSEL(4)
196 fsl,audmux-port = <4>;
198 IMX_AUDMUX_V2_PTCR_SYN
199 IMX_AUDMUX_V2_PDCR_RXDSEL(1)>;
204 pinctrl-names = "default";
205 pinctrl-0 = <&pinctrl_flexcan1>;
210 assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
211 <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
212 assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
213 <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
217 cs-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
218 pinctrl-names = "default";
219 pinctrl-0 = <&pinctrl_ecspi2>;
224 pinctrl-names = "default";
225 pinctrl-0 = <&pinctrl_enet>;
226 phy-mode = "rgmii-id";
227 phy-reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
228 phy-reset-duration = <10>;
229 phy-reset-post-delay = <100>;
234 pinctrl-names = "default";
235 pinctrl-0 = <&pinctrl_gpmi_nand>;
240 ddc-i2c-bus = <&i2c3>;
245 clock-frequency = <100000>;
246 pinctrl-names = "default";
247 pinctrl-0 = <&pinctrl_i2c1>;
251 compatible = "gw,gsc";
253 interrupt-parent = <&gpio1>;
254 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
255 interrupt-controller;
256 #interrupt-cells = <1>;
257 #address-cells = <1>;
261 compatible = "gw,gsc-adc";
262 #address-cells = <1>;
345 compatible = "gw,gsc-fan";
346 #address-cells = <1>;
353 compatible = "nxp,pca9555";
357 interrupt-parent = <&gsc>;
362 compatible = "atmel,24c02";
368 compatible = "atmel,24c02";
374 compatible = "atmel,24c02";
380 compatible = "atmel,24c02";
386 compatible = "dallas,ds1672";
392 clock-frequency = <100000>;
393 pinctrl-names = "default";
394 pinctrl-0 = <&pinctrl_i2c2>;
398 compatible = "fsl,pfuze100";
403 regulator-min-microvolt = <300000>;
404 regulator-max-microvolt = <1875000>;
407 regulator-ramp-delay = <6250>;
411 regulator-min-microvolt = <300000>;
412 regulator-max-microvolt = <1875000>;
415 regulator-ramp-delay = <6250>;
419 regulator-min-microvolt = <800000>;
420 regulator-max-microvolt = <3950000>;
426 regulator-min-microvolt = <400000>;
427 regulator-max-microvolt = <1975000>;
433 regulator-min-microvolt = <400000>;
434 regulator-max-microvolt = <1975000>;
440 regulator-min-microvolt = <800000>;
441 regulator-max-microvolt = <3300000>;
445 regulator-min-microvolt = <5000000>;
446 regulator-max-microvolt = <5150000>;
452 regulator-min-microvolt = <1000000>;
453 regulator-max-microvolt = <3000000>;
464 regulator-min-microvolt = <800000>;
465 regulator-max-microvolt = <1550000>;
469 regulator-min-microvolt = <800000>;
470 regulator-max-microvolt = <1550000>;
474 regulator-min-microvolt = <1800000>;
475 regulator-max-microvolt = <3300000>;
479 regulator-min-microvolt = <1800000>;
480 regulator-max-microvolt = <3300000>;
485 regulator-min-microvolt = <1800000>;
486 regulator-max-microvolt = <3300000>;
491 regulator-min-microvolt = <1800000>;
492 regulator-max-microvolt = <3300000>;
500 clock-frequency = <100000>;
501 pinctrl-names = "default";
502 pinctrl-0 = <&pinctrl_i2c3>;
505 sgtl5000: audio-codec@a {
506 compatible = "fsl,sgtl5000";
508 clocks = <&clks IMX6QDL_CLK_CKO>;
509 VDDA-supply = <&sw4_reg>;
510 VDDIO-supply = <®_3p3v>;
513 touchscreen: egalax_ts@4 {
514 compatible = "eeti,egalax_ts";
516 interrupt-parent = <&gpio7>;
518 wakeup-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
522 compatible = "nxp,fxos8700";
531 fsl,data-mapping = "spwg";
532 fsl,data-width = <18>;
536 native-mode = <&timing0>;
537 timing0: hsd100pxn1 {
538 clock-frequency = <65000000>;
553 pinctrl-names = "default";
554 pinctrl-0 = <&pinctrl_pcie>;
555 reset-gpio = <&gpio1 29 GPIO_ACTIVE_LOW>;
560 pinctrl-names = "default";
561 pinctrl-0 = <&pinctrl_pwm1>; /* MX6_DIO0 */
566 pinctrl-names = "default";
567 pinctrl-0 = <&pinctrl_pwm2>; /* MX6_DIO1 */
572 pinctrl-names = "default";
573 pinctrl-0 = <&pinctrl_pwm3>; /* MX6_DIO2 */
579 pinctrl-names = "default", "state_dio";
580 pinctrl-0 = <&pinctrl_pwm4_backlight>;
581 pinctrl-1 = <&pinctrl_pwm4_dio>;
594 pinctrl-names = "default";
595 pinctrl-0 = <&pinctrl_uart1>;
596 rts-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
601 pinctrl-names = "default";
602 pinctrl-0 = <&pinctrl_uart2>;
607 pinctrl-names = "default";
608 pinctrl-0 = <&pinctrl_uart5>;
613 vbus-supply = <®_usb_otg_vbus>;
614 pinctrl-names = "default";
615 pinctrl-0 = <&pinctrl_usbotg>;
616 disable-over-current;
622 vbus-supply = <®_usb_h1_vbus>;
627 pinctrl-names = "default", "state_100mhz", "state_200mhz";
628 pinctrl-0 = <&pinctrl_usdhc3>;
629 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
630 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
631 cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
632 vmmc-supply = <®_3p3v>;
633 no-1-8-v; /* firmware will remove if board revision supports */
642 pinctrl-names = "default";
643 pinctrl-0 = <&pinctrl_wdog>;
644 fsl,ext-reset-output;
649 pinctrl_audmux: audmuxgrp {
651 MX6QDL_PAD_SD2_DAT0__AUD4_RXD 0x130b0
652 MX6QDL_PAD_SD2_DAT3__AUD4_TXC 0x130b0
653 MX6QDL_PAD_SD2_DAT2__AUD4_TXD 0x110b0
654 MX6QDL_PAD_SD2_DAT1__AUD4_TXFS 0x130b0
655 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 /* AUD4_MCK */
656 MX6QDL_PAD_EIM_D25__AUD5_RXC 0x130b0
657 MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0
658 MX6QDL_PAD_EIM_D24__AUD5_RXFS 0x130b0
662 pinctrl_enet: enetgrp {
664 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
665 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
666 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
667 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
668 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
669 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
670 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
671 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
672 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
673 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
674 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
675 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
676 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
677 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
678 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
679 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
680 MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x1b0b0
684 pinctrl_ecspi2: escpi2grp {
686 MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK 0x100b1
687 MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI 0x100b1
688 MX6QDL_PAD_EIM_OE__ECSPI2_MISO 0x100b1
689 MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x100b1
693 pinctrl_flexcan1: flexcan1grp {
695 MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b1
696 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b1
697 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x4001b0b0 /* CAN_STBY */
701 pinctrl_gpio_leds: gpioledsgrp {
703 MX6QDL_PAD_KEY_COL0__GPIO4_IO06 0x1b0b0
704 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x1b0b0
705 MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x1b0b0
709 pinctrl_gpmi_nand: gpminandgrp {
711 MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
712 MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
713 MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
714 MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
715 MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
716 MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
717 MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
718 MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
719 MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
720 MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
721 MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
722 MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
723 MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
724 MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
725 MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
729 pinctrl_i2c1: i2c1grp {
731 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
732 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
733 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0xb0b1
737 pinctrl_i2c2: i2c2grp {
739 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
740 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
744 pinctrl_i2c3: i2c3grp {
746 MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
747 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
751 pinctrl_pcie: pciegrp {
753 MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x1b0b0 /* PCIE IRQ */
754 MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x1b0b0 /* PCIE RST */
758 pinctrl_pps: ppsgrp {
760 MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b1
764 pinctrl_pwm1: pwm1grp {
766 MX6QDL_PAD_GPIO_9__PWM1_OUT 0x1b0b1
770 pinctrl_pwm2: pwm2grp {
772 MX6QDL_PAD_SD1_DAT2__PWM2_OUT 0x1b0b1
776 pinctrl_pwm3: pwm3grp {
778 MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b1
782 pinctrl_pwm4_backlight: pwm4grpbacklight {
785 MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
789 pinctrl_pwm4_dio: pwm4grpdio {
792 MX6QDL_PAD_SD4_DAT2__PWM4_OUT 0x1b0b1
796 pinctrl_uart1: uart1grp {
798 MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
799 MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
800 MX6QDL_PAD_SD3_DAT4__GPIO7_IO01 0x4001b0b1 /* TEN */
804 pinctrl_uart2: uart2grp {
806 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
807 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
811 pinctrl_uart5: uart5grp {
813 MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
814 MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
818 pinctrl_usbotg: usbotggrp {
820 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
821 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0 /* PWR_EN */
825 pinctrl_usdhc3: usdhc3grp {
827 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
828 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
829 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
830 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
831 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
832 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
833 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x17059 /* CD */
834 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x17059
838 pinctrl_usdhc3_100mhz: usdhc3grp100mhz {
840 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170b9
841 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100b9
842 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170b9
843 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170b9
844 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170b9
845 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170b9
846 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x170b9 /* CD */
847 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x170b9
851 pinctrl_usdhc3_200mhz: usdhc3grp200mhz {
853 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170f9
854 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100f9
855 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170f9
856 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170f9
857 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170f9
858 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170f9
859 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x170f9 /* CD */
860 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x170f9
864 pinctrl_wdog: wdoggrp {
866 MX6QDL_PAD_SD1_DAT3__WDOG2_B 0x1b0b0