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/input.h>
52 /* these are used by bootloader for disabling nodes */
67 compatible = "pwm-backlight";
68 pwms = <&pwm4 0 5000000>;
71 10 11 12 13 14 15 16 17 18 19
72 20 21 22 23 24 25 26 27 28 29
73 30 31 32 33 34 35 36 37 38 39
74 40 41 42 43 44 45 46 47 48 49
75 50 51 52 53 54 55 56 57 58 59
76 60 61 62 63 64 65 66 67 68 69
77 70 71 72 73 74 75 76 77 78 79
78 80 81 82 83 84 85 86 87 88 89
79 90 91 92 93 94 95 96 97 98 99
82 default-brightness-level = <100>;
86 compatible = "gpio-backlight";
87 gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
92 compatible = "gpio-leds";
93 pinctrl-names = "default";
94 pinctrl-0 = <&pinctrl_gpio_leds>;
98 gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDG */
100 linux,default-trigger = "heartbeat";
105 gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
106 default-state = "off";
111 gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */
112 default-state = "off";
117 reg = <0x10000000 0x40000000>;
121 compatible = "pps-gpio";
122 pinctrl-names = "default";
123 pinctrl-0 = <&pinctrl_pps>;
124 gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
127 reg_2p5v: regulator-2p5v {
128 compatible = "regulator-fixed";
129 regulator-name = "2P5V";
130 regulator-min-microvolt = <2500000>;
131 regulator-max-microvolt = <2500000>;
135 reg_3p3v: regulator-3p3v {
136 compatible = "regulator-fixed";
137 regulator-name = "3P3V";
138 regulator-min-microvolt = <3300000>;
139 regulator-max-microvolt = <3300000>;
143 reg_5p0v: regulator-5p0v {
144 compatible = "regulator-fixed";
145 regulator-name = "5P0V";
146 regulator-min-microvolt = <5000000>;
147 regulator-max-microvolt = <5000000>;
151 reg_12p0v: regulator-12p0v {
152 compatible = "regulator-fixed";
153 regulator-name = "12P0V";
154 regulator-min-microvolt = <12000000>;
155 regulator-max-microvolt = <12000000>;
156 gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
160 reg_1p4v: regulator-vddsoc {
161 compatible = "regulator-fixed";
162 regulator-name = "vdd_soc";
163 regulator-min-microvolt = <1400000>;
164 regulator-max-microvolt = <1400000>;
168 reg_usb_h1_vbus: regulator-usb-h1-vbus {
169 compatible = "regulator-fixed";
170 regulator-name = "usb_h1_vbus";
171 regulator-min-microvolt = <5000000>;
172 regulator-max-microvolt = <5000000>;
176 reg_usb_otg_vbus: regulator-usb-otg-vbus {
177 compatible = "regulator-fixed";
178 regulator-name = "usb_otg_vbus";
179 regulator-min-microvolt = <5000000>;
180 regulator-max-microvolt = <5000000>;
181 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
186 compatible = "fsl,imx6q-ventana-sgtl5000",
187 "fsl,imx-audio-sgtl5000";
188 model = "sgtl5000-audio";
189 ssi-controller = <&ssi1>;
190 audio-codec = <&sgtl5000>;
192 "MIC_IN", "Mic Jack",
193 "Mic Jack", "Mic Bias",
194 "Headphone Jack", "HP_OUT";
201 pinctrl-names = "default";
202 pinctrl-0 = <&pinctrl_audmux>;
207 cs-gpios = <&gpio4 24 GPIO_ACTIVE_HIGH>;
208 pinctrl-names = "default";
209 pinctrl-0 = <&pinctrl_ecspi3>;
214 pinctrl-names = "default";
215 pinctrl-0 = <&pinctrl_flexcan>;
220 assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
221 <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
222 assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
223 <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
227 pinctrl-names = "default";
228 pinctrl-0 = <&pinctrl_enet>;
229 phy-mode = "rgmii-id";
230 phy-reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
235 ddc-i2c-bus = <&i2c3>;
240 clock-frequency = <100000>;
241 pinctrl-names = "default";
242 pinctrl-0 = <&pinctrl_i2c1>;
246 compatible = "atmel,24c02";
252 compatible = "atmel,24c02";
258 compatible = "atmel,24c02";
264 compatible = "atmel,24c02";
270 compatible = "nxp,pca9555";
277 compatible = "dallas,ds1672";
283 clock-frequency = <100000>;
284 pinctrl-names = "default";
285 pinctrl-0 = <&pinctrl_i2c2>;
289 compatible = "fsl,sgtl5000";
291 clocks = <&clks IMX6QDL_CLK_CKO>;
292 VDDA-supply = <®_1p8v>;
293 VDDIO-supply = <®_3p3v>;
297 compatible = "ti,tca8418";
298 pinctrl-names = "default";
299 pinctrl-0 = <&pinctrl_keypad>;
301 interrupt-parent = <&gpio5>;
302 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
303 linux,keymap = < MATRIX_KEY(0x00, 0x01, BTN_0)
304 MATRIX_KEY(0x00, 0x00, BTN_1)
305 MATRIX_KEY(0x01, 0x01, BTN_2)
306 MATRIX_KEY(0x01, 0x00, BTN_3)
307 MATRIX_KEY(0x02, 0x00, BTN_4)
308 MATRIX_KEY(0x00, 0x03, BTN_5)
309 MATRIX_KEY(0x00, 0x02, BTN_6)
310 MATRIX_KEY(0x01, 0x03, BTN_7)
311 MATRIX_KEY(0x01, 0x02, BTN_8)
312 MATRIX_KEY(0x02, 0x02, BTN_9)
314 keypad,num-rows = <4>;
315 keypad,num-columns = <4>;
319 compatible = "lltc,ltc3676";
320 pinctrl-names = "default";
321 pinctrl-0 = <&pinctrl_pmic>;
323 interrupt-parent = <&gpio1>;
324 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
327 /* VDD_DDR (1+R1/R2 = 2.105) */
329 regulator-name = "vddddr";
330 regulator-min-microvolt = <868310>;
331 regulator-max-microvolt = <1684000>;
332 lltc,fb-voltage-divider = <221000 200000>;
333 regulator-ramp-delay = <7000>;
338 /* VDD_ARM (1+R1/R2 = 1.931) */
340 regulator-name = "vddarm";
341 regulator-min-microvolt = <796551>;
342 regulator-max-microvolt = <1544827>;
343 lltc,fb-voltage-divider = <243000 261000>;
344 regulator-ramp-delay = <7000>;
347 linux,phandle = <®_vdd_arm>;
350 /* VDD_1P8 (1+R1/R2 = 2.505): GPS/VideoIn/ENET-PHY */
352 regulator-name = "vdd1p8";
353 regulator-min-microvolt = <1033310>;
354 regulator-max-microvolt = <2004000>;
355 lltc,fb-voltage-divider = <301000 200000>;
356 regulator-ramp-delay = <7000>;
361 /* VDD_1P0 (1+R1/R2 = 1.39): PCIe/ENET-PHY */
363 regulator-name = "vdd1p0";
364 regulator-min-microvolt = <950000>;
365 regulator-max-microvolt = <1050000>;
366 lltc,fb-voltage-divider = <78700 200000>;
371 /* VDD_AUD_1P8: Audio codec */
373 regulator-name = "vdd1p8a";
374 regulator-min-microvolt = <1800000>;
375 regulator-max-microvolt = <1800000>;
379 /* VDD_HIGH (1+R1/R2 = 4.17) */
381 regulator-name = "vdd3p0";
382 regulator-min-microvolt = <3023250>;
383 regulator-max-microvolt = <3023250>;
384 lltc,fb-voltage-divider = <634000 200000>;
393 clock-frequency = <100000>;
394 pinctrl-names = "default";
395 pinctrl-0 = <&pinctrl_i2c3>;
398 egalax_ts: touchscreen@4 {
399 compatible = "eeti,egalax_ts";
401 interrupt-parent = <&gpio5>;
402 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
403 wakeup-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
412 fsl,data-mapping = "spwg";
413 fsl,data-width = <18>;
417 native-mode = <&timing0>;
418 timing0: hsd100pxn1 {
419 clock-frequency = <65000000>;
434 pinctrl-names = "default";
435 pinctrl-0 = <&pinctrl_pcie>;
436 reset-gpio = <&gpio4 31 GPIO_ACTIVE_LOW>;
441 pinctrl-names = "default";
442 pinctrl-0 = <&pinctrl_pwm2>; /* MX6_DIO1 */
447 pinctrl-names = "default";
448 pinctrl-0 = <&pinctrl_pwm3>; /* MX6_DIO2 */
453 pinctrl-names = "default";
454 pinctrl-0 = <&pinctrl_pwm4>;
463 pinctrl-names = "default";
464 pinctrl-0 = <&pinctrl_uart1>;
466 rts-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
471 pinctrl-names = "default";
472 pinctrl-0 = <&pinctrl_uart2>;
477 pinctrl-names = "default";
478 pinctrl-0 = <&pinctrl_uart5>;
483 vbus-supply = <®_usb_otg_vbus>;
484 pinctrl-names = "default";
485 pinctrl-0 = <&pinctrl_usbotg>;
486 disable-over-current;
491 vbus-supply = <®_usb_h1_vbus>;
492 pinctrl-names = "default";
493 pinctrl-0 = <&pinctrl_usbh1>;
498 pinctrl-names = "default";
499 pinctrl-0 = <&pinctrl_usdhc2>;
501 vmmc-supply = <®_3p3v>;
507 pinctrl-names = "default", "state_100mhz", "state_200mhz";
508 pinctrl-0 = <&pinctrl_usdhc3>;
509 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
510 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
511 cd-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
512 vmmc-supply = <®_3p3v>;
517 pinctrl-names = "default";
518 pinctrl-0 = <&pinctrl_wdog>;
519 fsl,ext-reset-output;
523 pinctrl_audmux: audmuxgrp {
526 MX6QDL_PAD_DISP0_DAT20__AUD4_TXC 0x130b0
527 MX6QDL_PAD_DISP0_DAT21__AUD4_TXD 0x110b0
528 MX6QDL_PAD_DISP0_DAT22__AUD4_TXFS 0x130b0
529 MX6QDL_PAD_DISP0_DAT23__AUD4_RXD 0x130b0
530 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 /* AUD4_MCK */
532 MX6QDL_PAD_DI0_PIN2__AUD6_TXD 0x130b0
533 MX6QDL_PAD_DI0_PIN3__AUD6_TXFS 0x130b0
534 MX6QDL_PAD_DI0_PIN4__AUD6_RXD 0x130b0
535 MX6QDL_PAD_DI0_PIN15__AUD6_TXC 0x130b0
539 pinctrl_ecspi3: escpi3grp {
541 MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK 0x100b1
542 MX6QDL_PAD_DISP0_DAT1__ECSPI3_MOSI 0x100b1
543 MX6QDL_PAD_DISP0_DAT2__ECSPI3_MISO 0x100b1
544 MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x100b1
548 pinctrl_enet: enetgrp {
550 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
551 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
552 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
553 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
554 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
555 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
556 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
557 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
558 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
559 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
560 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
561 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
562 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
563 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
564 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
565 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
566 MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x4001b0b0 /* PHY_RST# */
570 pinctrl_flexcan: flexcangrp {
572 MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b1
573 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b1
574 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x4001b0b0 /* CAN_STBY */
578 pinctrl_gpio_leds: gpioledsgrp {
580 MX6QDL_PAD_KEY_COL0__GPIO4_IO06 0x1b0b0
581 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x1b0b0
582 MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x1b0b0
586 pinctrl_i2c1: i2c1grp {
588 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
589 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
593 pinctrl_i2c2: i2c2grp {
595 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
596 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
600 pinctrl_i2c3: i2c3grp {
602 MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
603 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
604 MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x4001b0b0 /* DIOI2C_DIS# */
605 MX6QDL_PAD_DISP0_DAT18__GPIO5_IO12 0x0001b0b0 /* LVDS_TOUCH_IRQ# */
606 MX6QDL_PAD_DISP0_DAT19__GPIO5_IO13 0x0001b0b0 /* LVDS_BACKEN */
610 pinctrl_keypad: keypadgrp {
612 MX6QDL_PAD_DISP0_DAT17__GPIO5_IO11 0x0001b0b0 /* KEYPAD_IRQ# */
613 MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x0001b0b0 /* KEYPAD_LED_EN */
617 pinctrl_pcie: pciegrp {
619 MX6QDL_PAD_DISP0_DAT10__GPIO4_IO31 0x1b0b0 /* PCI_RST# */
620 MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x4001b0b0 /* PCIESKT_WDIS# */
624 pinctrl_pmic: pmicgrp {
626 MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x0001b0b0 /* PMIC_IRQ# */
630 pinctrl_pps: ppsgrp {
632 MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b1
636 pinctrl_pwm2: pwm2grp {
638 MX6QDL_PAD_SD1_DAT2__PWM2_OUT 0x1b0b1
642 pinctrl_pwm3: pwm3grp {
644 MX6QDL_PAD_SD1_DAT1__PWM3_OUT 0x1b0b1
648 pinctrl_pwm4: pwm4grp {
650 MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
654 pinctrl_uart1: uart1grp {
656 MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
657 MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
658 MX6QDL_PAD_SD3_DAT4__GPIO7_IO01 0x4001b0b1 /* TEN */
662 pinctrl_uart2: uart2grp {
664 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
665 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
669 pinctrl_uart5: uart5grp {
671 MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
672 MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
676 pinctrl_usbh1: usbh1grp {
678 MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x4001b0b0 /* USBHUB_RST# */
682 pinctrl_usbotg: usbotggrp {
684 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
685 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0 /* PWR_EN */
686 MX6QDL_PAD_KEY_COL4__GPIO4_IO14 0x1b0b0 /* OC */
690 pinctrl_usdhc2: usdhc2grp {
692 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x170f9
693 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x100f9
694 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x170f9
695 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x170f9
696 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x170f9
697 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x170f9
698 MX6QDL_PAD_NANDF_D4__SD2_DATA4 0x170f9
699 MX6QDL_PAD_NANDF_D5__SD2_DATA5 0x170f9
700 MX6QDL_PAD_NANDF_D6__SD2_DATA6 0x170f9
701 MX6QDL_PAD_NANDF_D7__SD2_DATA7 0x170f9
705 pinctrl_usdhc3: usdhc3grp {
707 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
708 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
709 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
710 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
711 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
712 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
713 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x17059 /* CD */
714 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x17059
718 pinctrl_usdhc3_100mhz: usdhc3grp100mhz {
720 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170b9
721 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100b9
722 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170b9
723 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170b9
724 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170b9
725 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170b9
726 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x170b9 /* CD */
727 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x170b9
731 pinctrl_usdhc3_200mhz: usdhc3grp200mhz {
733 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170f9
734 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100f9
735 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170f9
736 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170f9
737 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170f9
738 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170f9
739 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x170f9 /* CD */
740 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x170f9
744 pinctrl_wdog: wdoggrp {
746 MX6QDL_PAD_DISP0_DAT8__WDOG1_B 0x1b0b0