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 */
24 bootargs = "console=ttymxc1,115200";
28 compatible = "pwm-backlight";
29 pwms = <&pwm4 0 5000000>;
30 brightness-levels = <0 4 8 16 32 64 128 255>;
31 default-brightness-level = <7>;
35 compatible = "gpio-keys";
41 gpios = <&gsc_gpio 0 GPIO_ACTIVE_LOW>;
48 interrupt-parent = <&gsc>;
55 interrupt-parent = <&gsc>;
62 interrupt-parent = <&gsc>;
69 interrupt-parent = <&gsc>;
74 label = "switch_hold";
76 interrupt-parent = <&gsc>;
82 compatible = "gpio-leds";
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_gpio_leds>;
88 gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDG */
90 linux,default-trigger = "heartbeat";
95 gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
96 default-state = "off";
101 gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */
102 default-state = "off";
107 device_type = "memory";
108 reg = <0x10000000 0x40000000>;
112 compatible = "pps-gpio";
113 pinctrl-names = "default";
114 pinctrl-0 = <&pinctrl_pps>;
115 gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
120 compatible = "simple-bus";
121 #address-cells = <1>;
124 reg_1p0v: regulator@0 {
125 compatible = "regulator-fixed";
127 regulator-name = "1P0V";
128 regulator-min-microvolt = <1000000>;
129 regulator-max-microvolt = <1000000>;
133 reg_3p3v: regulator@1 {
134 compatible = "regulator-fixed";
136 regulator-name = "3P3V";
137 regulator-min-microvolt = <3300000>;
138 regulator-max-microvolt = <3300000>;
142 reg_usb_h1_vbus: regulator@2 {
143 compatible = "regulator-fixed";
145 regulator-name = "usb_h1_vbus";
146 regulator-min-microvolt = <5000000>;
147 regulator-max-microvolt = <5000000>;
151 reg_usb_otg_vbus: regulator@3 {
152 compatible = "regulator-fixed";
154 regulator-name = "usb_otg_vbus";
155 regulator-min-microvolt = <5000000>;
156 regulator-max-microvolt = <5000000>;
157 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
163 compatible = "fsl,imx6q-ventana-sgtl5000",
164 "fsl,imx-audio-sgtl5000";
165 model = "sgtl5000-audio";
166 ssi-controller = <&ssi1>;
167 audio-codec = <&sgtl5000>;
169 "MIC_IN", "Mic Jack",
170 "Mic Jack", "Mic Bias",
171 "Headphone Jack", "HP_OUT";
178 pinctrl-names = "default";
179 pinctrl-0 = <&pinctrl_audmux>; /* AUD4<->sgtl5000 */
183 fsl,audmux-port = <1>;
185 (IMX_AUDMUX_V2_PTCR_TFSDIR |
186 IMX_AUDMUX_V2_PTCR_TFSEL(4+8) | /* RXFS */
187 IMX_AUDMUX_V2_PTCR_TCLKDIR |
188 IMX_AUDMUX_V2_PTCR_TCSEL(4+8) | /* RXC */
189 IMX_AUDMUX_V2_PTCR_SYN)
190 IMX_AUDMUX_V2_PDCR_RXDSEL(4)
195 fsl,audmux-port = <4>;
197 IMX_AUDMUX_V2_PTCR_SYN
198 IMX_AUDMUX_V2_PDCR_RXDSEL(1)>;
203 pinctrl-names = "default";
204 pinctrl-0 = <&pinctrl_flexcan1>;
209 assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
210 <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
211 assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
212 <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
216 cs-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&pinctrl_ecspi2>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&pinctrl_enet>;
225 phy-mode = "rgmii-id";
226 phy-reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
231 pinctrl-names = "default";
232 pinctrl-0 = <&pinctrl_gpmi_nand>;
237 ddc-i2c-bus = <&i2c3>;
242 clock-frequency = <100000>;
243 pinctrl-names = "default";
244 pinctrl-0 = <&pinctrl_i2c1>;
248 compatible = "gw,gsc";
250 interrupt-parent = <&gpio1>;
251 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
252 interrupt-controller;
253 #interrupt-cells = <1>;
254 #address-cells = <1>;
258 compatible = "gw,gsc-adc";
259 #address-cells = <1>;
342 compatible = "gw,gsc-fan";
343 #address-cells = <1>;
350 compatible = "nxp,pca9555";
354 interrupt-parent = <&gsc>;
359 compatible = "atmel,24c02";
365 compatible = "atmel,24c02";
371 compatible = "atmel,24c02";
377 compatible = "atmel,24c02";
383 compatible = "dallas,ds1672";
389 clock-frequency = <100000>;
390 pinctrl-names = "default";
391 pinctrl-0 = <&pinctrl_i2c2>;
395 compatible = "fsl,pfuze100";
400 regulator-min-microvolt = <300000>;
401 regulator-max-microvolt = <1875000>;
404 regulator-ramp-delay = <6250>;
408 regulator-min-microvolt = <300000>;
409 regulator-max-microvolt = <1875000>;
412 regulator-ramp-delay = <6250>;
416 regulator-min-microvolt = <800000>;
417 regulator-max-microvolt = <3950000>;
423 regulator-min-microvolt = <400000>;
424 regulator-max-microvolt = <1975000>;
430 regulator-min-microvolt = <400000>;
431 regulator-max-microvolt = <1975000>;
437 regulator-min-microvolt = <800000>;
438 regulator-max-microvolt = <3300000>;
442 regulator-min-microvolt = <5000000>;
443 regulator-max-microvolt = <5150000>;
449 regulator-min-microvolt = <1000000>;
450 regulator-max-microvolt = <3000000>;
461 regulator-min-microvolt = <800000>;
462 regulator-max-microvolt = <1550000>;
466 regulator-min-microvolt = <800000>;
467 regulator-max-microvolt = <1550000>;
471 regulator-min-microvolt = <1800000>;
472 regulator-max-microvolt = <3300000>;
476 regulator-min-microvolt = <1800000>;
477 regulator-max-microvolt = <3300000>;
482 regulator-min-microvolt = <1800000>;
483 regulator-max-microvolt = <3300000>;
488 regulator-min-microvolt = <1800000>;
489 regulator-max-microvolt = <3300000>;
497 clock-frequency = <100000>;
498 pinctrl-names = "default";
499 pinctrl-0 = <&pinctrl_i2c3>;
502 sgtl5000: audio-codec@a {
503 compatible = "fsl,sgtl5000";
505 clocks = <&clks IMX6QDL_CLK_CKO>;
506 VDDA-supply = <&sw4_reg>;
507 VDDIO-supply = <®_3p3v>;
510 touchscreen: egalax_ts@4 {
511 compatible = "eeti,egalax_ts";
513 interrupt-parent = <&gpio7>;
515 wakeup-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
519 compatible = "nxp,fxos8700";
528 fsl,data-mapping = "spwg";
529 fsl,data-width = <18>;
533 native-mode = <&timing0>;
534 timing0: hsd100pxn1 {
535 clock-frequency = <65000000>;
550 pinctrl-names = "default";
551 pinctrl-0 = <&pinctrl_pcie>;
552 reset-gpio = <&gpio1 29 GPIO_ACTIVE_LOW>;
557 pinctrl-names = "default";
558 pinctrl-0 = <&pinctrl_pwm1>; /* MX6_DIO0 */
563 pinctrl-names = "default";
564 pinctrl-0 = <&pinctrl_pwm2>; /* MX6_DIO1 */
569 pinctrl-names = "default";
570 pinctrl-0 = <&pinctrl_pwm3>; /* MX6_DIO2 */
576 pinctrl-names = "default", "state_dio";
577 pinctrl-0 = <&pinctrl_pwm4_backlight>;
578 pinctrl-1 = <&pinctrl_pwm4_dio>;
591 pinctrl-names = "default";
592 pinctrl-0 = <&pinctrl_uart1>;
593 rts-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
598 pinctrl-names = "default";
599 pinctrl-0 = <&pinctrl_uart2>;
604 pinctrl-names = "default";
605 pinctrl-0 = <&pinctrl_uart5>;
610 vbus-supply = <®_usb_otg_vbus>;
611 pinctrl-names = "default";
612 pinctrl-0 = <&pinctrl_usbotg>;
613 disable-over-current;
618 vbus-supply = <®_usb_h1_vbus>;
623 pinctrl-names = "default", "state_100mhz", "state_200mhz";
624 pinctrl-0 = <&pinctrl_usdhc3>;
625 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
626 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
627 cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
628 vmmc-supply = <®_3p3v>;
629 no-1-8-v; /* firmware will remove if board revision supports */
638 pinctrl-names = "default";
639 pinctrl-0 = <&pinctrl_wdog>;
640 fsl,ext-reset-output;
645 pinctrl_audmux: audmuxgrp {
647 MX6QDL_PAD_SD2_DAT0__AUD4_RXD 0x130b0
648 MX6QDL_PAD_SD2_DAT3__AUD4_TXC 0x130b0
649 MX6QDL_PAD_SD2_DAT2__AUD4_TXD 0x110b0
650 MX6QDL_PAD_SD2_DAT1__AUD4_TXFS 0x130b0
651 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 /* AUD4_MCK */
652 MX6QDL_PAD_EIM_D25__AUD5_RXC 0x130b0
653 MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0
654 MX6QDL_PAD_EIM_D24__AUD5_RXFS 0x130b0
658 pinctrl_enet: enetgrp {
660 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
661 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
662 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
663 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
664 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
665 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
666 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
667 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
668 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
669 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
670 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
671 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
672 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
673 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
674 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
675 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
679 pinctrl_ecspi2: escpi2grp {
681 MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK 0x100b1
682 MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI 0x100b1
683 MX6QDL_PAD_EIM_OE__ECSPI2_MISO 0x100b1
684 MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x100b1
688 pinctrl_flexcan1: flexcan1grp {
690 MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b1
691 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b1
692 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x4001b0b0 /* CAN_STBY */
696 pinctrl_gpio_leds: gpioledsgrp {
698 MX6QDL_PAD_KEY_COL0__GPIO4_IO06 0x1b0b0
699 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x1b0b0
700 MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x1b0b0
704 pinctrl_gpmi_nand: gpminandgrp {
706 MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
707 MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
708 MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
709 MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
710 MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
711 MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
712 MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
713 MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
714 MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
715 MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
716 MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
717 MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
718 MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
719 MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
720 MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
724 pinctrl_i2c1: i2c1grp {
726 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
727 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
728 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0xb0b1
732 pinctrl_i2c2: i2c2grp {
734 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
735 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
739 pinctrl_i2c3: i2c3grp {
741 MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
742 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
746 pinctrl_pcie: pciegrp {
748 MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x1b0b0 /* PCIE IRQ */
749 MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x1b0b0 /* PCIE RST */
753 pinctrl_pps: ppsgrp {
755 MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b1
759 pinctrl_pwm1: pwm1grp {
761 MX6QDL_PAD_GPIO_9__PWM1_OUT 0x1b0b1
765 pinctrl_pwm2: pwm2grp {
767 MX6QDL_PAD_SD1_DAT2__PWM2_OUT 0x1b0b1
771 pinctrl_pwm3: pwm3grp {
773 MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b1
777 pinctrl_pwm4_backlight: pwm4grpbacklight {
780 MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
784 pinctrl_pwm4_dio: pwm4grpdio {
787 MX6QDL_PAD_SD4_DAT2__PWM4_OUT 0x1b0b1
791 pinctrl_uart1: uart1grp {
793 MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
794 MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
795 MX6QDL_PAD_SD3_DAT4__GPIO7_IO01 0x4001b0b1 /* TEN */
799 pinctrl_uart2: uart2grp {
801 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
802 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
806 pinctrl_uart5: uart5grp {
808 MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
809 MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
813 pinctrl_usbotg: usbotggrp {
815 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
816 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0 /* PWR_EN */
820 pinctrl_usdhc3: usdhc3grp {
822 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
823 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
824 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
825 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
826 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
827 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
828 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x17059 /* CD */
829 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x17059
833 pinctrl_usdhc3_100mhz: usdhc3grp100mhz {
835 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170b9
836 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100b9
837 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170b9
838 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170b9
839 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170b9
840 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170b9
841 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x170b9 /* CD */
842 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x170b9
846 pinctrl_usdhc3_200mhz: usdhc3grp200mhz {
848 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170f9
849 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100f9
850 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170f9
851 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170f9
852 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170f9
853 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170f9
854 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x170f9 /* CD */
855 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x170f9
859 pinctrl_wdog: wdoggrp {
861 MX6QDL_PAD_SD1_DAT3__WDOG2_B 0x1b0b0