2 * Copyright 2017 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/input/linux-event-codes.h>
50 #include <dt-bindings/interrupt-controller/irq.h>
53 /* these are used by bootloader for disabling nodes */
68 compatible = "pwm-backlight";
69 pwms = <&pwm4 0 5000000>;
70 brightness-levels = <0 4 8 16 32 64 128 255>;
71 default-brightness-level = <7>;
75 compatible = "gpio-keys";
81 gpios = <&gsc_gpio 0 GPIO_ACTIVE_LOW>;
88 interrupt-parent = <&gsc>;
95 interrupt-parent = <&gsc>;
101 linux,code = <BTN_3>;
102 interrupt-parent = <&gsc>;
108 linux,code = <BTN_4>;
109 interrupt-parent = <&gsc>;
114 label = "switch_hold";
115 linux,code = <BTN_5>;
116 interrupt-parent = <&gsc>;
122 compatible = "gpio-leds";
123 pinctrl-names = "default";
124 pinctrl-0 = <&pinctrl_gpio_leds>;
128 gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDG */
129 default-state = "on";
130 linux,default-trigger = "heartbeat";
135 gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
136 default-state = "off";
141 gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */
142 default-state = "off";
147 device_type = "memory";
148 reg = <0x10000000 0x40000000>;
152 compatible = "pps-gpio";
153 pinctrl-names = "default";
154 pinctrl-0 = <&pinctrl_pps>;
155 gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
158 reg_1p0v: regulator-1p0v {
159 compatible = "regulator-fixed";
160 regulator-name = "1P0V";
161 regulator-min-microvolt = <1000000>;
162 regulator-max-microvolt = <1000000>;
166 reg_3p3v: regulator-3p3v {
167 compatible = "regulator-fixed";
168 regulator-name = "3P3V";
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
174 reg_usb_h1_vbus: regulator-usb-h1-vbus {
175 compatible = "regulator-fixed";
176 regulator-name = "usb_h1_vbus";
177 regulator-min-microvolt = <5000000>;
178 regulator-max-microvolt = <5000000>;
182 reg_usb_otg_vbus: regulator-usb-otg-vbus {
183 compatible = "regulator-fixed";
184 regulator-name = "usb_otg_vbus";
185 regulator-min-microvolt = <5000000>;
186 regulator-max-microvolt = <5000000>;
187 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
193 assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
194 <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
195 assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
196 <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&pinctrl_enet>;
202 phy-mode = "rgmii-id";
203 phy-reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
204 phy-reset-duration = <10>;
205 phy-reset-post-delay = <100>;
214 #address-cells = <1>;
218 compatible = "marvell,mv88e6085";
222 #address-cells = <1>;
256 clock-frequency = <100000>;
257 pinctrl-names = "default";
258 pinctrl-0 = <&pinctrl_i2c1>;
262 compatible = "gw,gsc";
264 interrupt-parent = <&gpio1>;
265 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
266 interrupt-controller;
267 #interrupt-cells = <1>;
271 compatible = "gw,gsc-adc";
272 #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 = "st,lsm9ds1-magn";
397 pinctrl-names = "default";
398 pinctrl-0 = <&pinctrl_mag>;
399 interrupt-parent = <&gpio5>;
400 interrupts = <17 IRQ_TYPE_EDGE_RISING>;
404 compatible = "lltc,ltc3676";
406 interrupt-parent = <&gpio1>;
407 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
410 /* VDD_SOC (1+R1/R2 = 1.635) */
412 regulator-name = "vddsoc";
413 regulator-min-microvolt = <674400>;
414 regulator-max-microvolt = <1308000>;
415 lltc,fb-voltage-divider = <127000 200000>;
416 regulator-ramp-delay = <7000>;
421 /* VDD_1P8 (1+R1/R2 = 2.505): GbE switch */
423 regulator-name = "vdd1p8";
424 regulator-min-microvolt = <1033310>;
425 regulator-max-microvolt = <2004000>;
426 lltc,fb-voltage-divider = <301000 200000>;
427 regulator-ramp-delay = <7000>;
432 /* VDD_ARM (1+R1/R2 = 1.635) */
434 regulator-name = "vddarm";
435 regulator-min-microvolt = <674400>;
436 regulator-max-microvolt = <1308000>;
437 lltc,fb-voltage-divider = <127000 200000>;
438 regulator-ramp-delay = <7000>;
443 /* VDD_DDR (1+R1/R2 = 2.105) */
445 regulator-name = "vddddr";
446 regulator-min-microvolt = <868310>;
447 regulator-max-microvolt = <1684000>;
448 lltc,fb-voltage-divider = <221000 200000>;
449 regulator-ramp-delay = <7000>;
454 /* VDD_2P5 (1+R1/R2 = 3.435): PCIe/ENET-PHY */
456 regulator-name = "vdd2p5";
457 regulator-min-microvolt = <2490375>;
458 regulator-max-microvolt = <2490375>;
459 lltc,fb-voltage-divider = <487000 200000>;
464 /* VDD_HIGH (1+R1/R2 = 4.17) */
466 regulator-name = "vdd3p0";
467 regulator-min-microvolt = <3023250>;
468 regulator-max-microvolt = <3023250>;
469 lltc,fb-voltage-divider = <634000 200000>;
477 compatible = "st,lsm9ds1-imu";
479 st,drdy-int-pin = <1>;
480 pinctrl-names = "default";
481 pinctrl-0 = <&pinctrl_imu>;
482 interrupt-parent = <&gpio4>;
483 interrupts = <18 IRQ_TYPE_LEVEL_HIGH>;
488 clock-frequency = <100000>;
489 pinctrl-names = "default";
490 pinctrl-0 = <&pinctrl_i2c3>;
493 egalax_ts: touchscreen@4 {
494 compatible = "eeti,egalax_ts";
496 interrupt-parent = <&gpio1>;
497 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
498 wakeup-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
506 fsl,data-mapping = "spwg";
507 fsl,data-width = <18>;
511 native-mode = <&timing0>;
512 timing0: hsd100pxn1 {
513 clock-frequency = <65000000>;
528 pinctrl-names = "default";
529 pinctrl-0 = <&pinctrl_pcie>;
530 reset-gpio = <&gpio1 0 GPIO_ACTIVE_LOW>;
535 pinctrl-names = "default";
536 pinctrl-0 = <&pinctrl_pwm2>; /* MX6_DIO1 */
541 pinctrl-names = "default";
542 pinctrl-0 = <&pinctrl_pwm3>; /* MX6_DIO2 */
548 pinctrl-names = "default";
549 pinctrl-0 = <&pinctrl_pwm4>;
554 pinctrl-names = "default";
555 pinctrl-0 = <&pinctrl_uart1>;
560 pinctrl-names = "default";
561 pinctrl-0 = <&pinctrl_uart2>;
566 pinctrl-names = "default";
567 pinctrl-0 = <&pinctrl_uart3>;
573 pinctrl-names = "default";
574 pinctrl-0 = <&pinctrl_uart4>;
580 pinctrl-names = "default";
581 pinctrl-0 = <&pinctrl_uart5>;
586 vbus-supply = <®_usb_otg_vbus>;
587 pinctrl-names = "default";
588 pinctrl-0 = <&pinctrl_usbotg>;
589 disable-over-current;
595 vbus-supply = <®_usb_h1_vbus>;
600 pinctrl-names = "default", "state_100mhz", "state_200mhz";
601 pinctrl-0 = <&pinctrl_usdhc3>;
602 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
603 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
605 vmmc-supply = <®_3p3v>;
606 keep-power-in-suspend;
611 pinctrl-names = "default";
612 pinctrl-0 = <&pinctrl_wdog>;
613 fsl,ext-reset-output;
617 pinctrl_enet: enetgrp {
619 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
620 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
621 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
622 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
623 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
624 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
625 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
626 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
627 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
628 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
629 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
630 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
631 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
632 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
633 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
634 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
635 MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x4001b0b0 /* PHY_RST# */
639 pinctrl_gpio_leds: gpioledsgrp {
641 MX6QDL_PAD_KEY_COL0__GPIO4_IO06 0x1b0b0
642 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x1b0b0
643 MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x1b0b0
647 pinctrl_i2c1: i2c1grp {
649 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
650 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
651 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x0001b0b0 /* GSC_IRQ# */
655 pinctrl_i2c2: i2c2grp {
657 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
658 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
662 pinctrl_i2c3: i2c3grp {
664 MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
665 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
669 pinctrl_imu: imugrp {
671 MX6QDL_PAD_DI0_PIN2__GPIO4_IO18 0x1b0b0
675 pinctrl_mag: maggrp {
677 MX6QDL_PAD_DISP0_DAT23__GPIO5_IO17 0x1b0b0
681 pinctrl_pcie: pciegrp {
683 MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0 /* PCIE RST */
687 pinctrl_pmic: pmicgrp {
689 MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x1b0b0 /* PMIC_IRQ# */
693 pinctrl_pps: ppsgrp {
695 MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b1
699 pinctrl_pwm2: pwm2grp {
701 MX6QDL_PAD_SD1_DAT2__PWM2_OUT 0x1b0b1
705 pinctrl_pwm3: pwm3grp {
707 MX6QDL_PAD_SD1_DAT1__PWM3_OUT 0x1b0b1
711 pinctrl_pwm4: pwm4grp {
713 MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
717 pinctrl_uart1: uart1grp {
719 MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1
720 MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
724 pinctrl_uart2: uart2grp {
726 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
727 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
731 pinctrl_uart3: uart3grp {
733 MX6QDL_PAD_EIM_D23__UART3_CTS_B 0x1b0b1
734 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
735 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
736 MX6QDL_PAD_EIM_D31__UART3_RTS_B 0x1b0b1
740 pinctrl_uart4: uart4grp {
742 MX6QDL_PAD_CSI0_DAT12__UART4_TX_DATA 0x1b0b1
743 MX6QDL_PAD_CSI0_DAT13__UART4_RX_DATA 0x1b0b1
744 MX6QDL_PAD_CSI0_DAT16__UART4_RTS_B 0x1b0b1
745 MX6QDL_PAD_CSI0_DAT17__UART4_CTS_B 0x1b0b1
749 pinctrl_uart5: uart5grp {
751 MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
752 MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
756 pinctrl_usbotg: usbotggrp {
758 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
759 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0 /* PWR_EN */
760 MX6QDL_PAD_KEY_COL4__GPIO4_IO14 0x1b0b0 /* OC */
764 pinctrl_usdhc3: usdhc3grp {
766 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
767 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
768 MX6QDL_PAD_SD3_RST__SD3_RESET 0x10059
769 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
770 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
771 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
772 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
773 MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17059
774 MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17059
775 MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17059
776 MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059
780 pinctrl_usdhc3_100mhz: usdhc3grp100mhz {
782 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170b9
783 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100b9
784 MX6QDL_PAD_SD3_RST__SD3_RESET 0x100b9
785 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170b9
786 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170b9
787 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170b9
788 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170b9
789 MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x170b9
790 MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x170b9
791 MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x170b9
792 MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x170b9
796 pinctrl_usdhc3_200mhz: usdhc3grp200mhz {
798 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170f9
799 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100f9
800 MX6QDL_PAD_SD3_RST__SD3_RESET 0x100f9
801 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170f9
802 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170f9
803 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170f9
804 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170f9
805 MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x170f9
806 MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x170f9
807 MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x170f9
808 MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x170f9
812 pinctrl_wdog: wdoggrp {
814 MX6QDL_PAD_DISP0_DAT8__WDOG1_B 0x1b0b0