1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright 2019 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>
11 /* these are used by bootloader for disabling nodes */
23 device_type = "memory";
24 reg = <0x10000000 0x20000000>;
28 compatible = "gpio-keys";
34 gpios = <&gsc_gpio 0 GPIO_ACTIVE_LOW>;
41 interrupt-parent = <&gsc>;
48 interrupt-parent = <&gsc>;
55 interrupt-parent = <&gsc>;
62 interrupt-parent = <&gsc>;
67 label = "switch_hold";
69 interrupt-parent = <&gsc>;
75 compatible = "gpio-leds";
76 pinctrl-names = "default";
77 pinctrl-0 = <&pinctrl_gpio_leds>;
81 gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDG */
83 linux,default-trigger = "heartbeat";
88 gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
89 default-state = "off";
94 gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */
95 default-state = "off";
100 compatible = "pps-gpio";
101 pinctrl-names = "default";
102 pinctrl-0 = <&pinctrl_pps>;
103 gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
107 reg_3p3v: regulator-3p3v {
108 compatible = "regulator-fixed";
109 regulator-name = "3P3V";
110 regulator-min-microvolt = <3300000>;
111 regulator-max-microvolt = <3300000>;
115 reg_5p0v: regulator-5p0v {
116 compatible = "regulator-fixed";
117 regulator-name = "5P0V";
118 regulator-min-microvolt = <5000000>;
119 regulator-max-microvolt = <5000000>;
123 reg_wl: regulator-wl {
124 pinctrl-names = "default";
125 pinctrl-0 = <&pinctrl_reg_wl>;
126 compatible = "regulator-fixed";
127 regulator-name = "wl";
128 gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
129 startup-delay-us = <100>;
131 regulator-min-microvolt = <3300000>;
132 regulator-max-microvolt = <3300000>;
138 cs-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&pinctrl_ecspi3>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&pinctrl_enet>;
147 phy-mode = "rgmii-id";
152 pinctrl-names = "default";
153 pinctrl-0 = <&pinctrl_gpmi_nand>;
158 clock-frequency = <100000>;
159 pinctrl-names = "default";
160 pinctrl-0 = <&pinctrl_i2c1>;
164 compatible = "gw,gsc";
166 interrupt-parent = <&gpio1>;
167 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
168 interrupt-controller;
169 #interrupt-cells = <1>;
173 compatible = "gw,gsc-adc";
174 #address-cells = <1>;
193 gw,voltage-divider-ohms = <22100 1000>;
194 gw,voltage-offset-microvolt = <800000>;
201 gw,voltage-divider-ohms = <22100 10000>;
208 gw,voltage-divider-ohms = <10000 10000>;
215 gw,voltage-divider-ohms = <10000 10000>;
252 gw,voltage-divider-ohms = <10000 10000>;
259 gw,voltage-divider-ohms = <10000 10000>;
266 gw,voltage-divider-ohms = <10000 10000>;
272 compatible = "nxp,pca9555";
276 interrupt-parent = <&gsc>;
281 compatible = "atmel,24c02";
287 compatible = "atmel,24c02";
293 compatible = "atmel,24c02";
299 compatible = "atmel,24c02";
305 compatible = "dallas,ds1672";
311 clock-frequency = <100000>;
312 pinctrl-names = "default";
313 pinctrl-0 = <&pinctrl_i2c2>;
318 clock-frequency = <100000>;
319 pinctrl-names = "default";
320 pinctrl-0 = <&pinctrl_i2c3>;
324 pinctrl-names = "default";
325 pinctrl-0 = <&pinctrl_accel>;
326 compatible = "st,lis2de12";
328 st,drdy-int-pin = <1>;
329 interrupt-parent = <&gpio7>;
331 interrupt-names = "INT1";
336 pinctrl-names = "default";
337 pinctrl-0 = <&pinctrl_pcie>;
338 reset-gpio = <&gpio3 20 GPIO_ACTIVE_LOW>;
343 pinctrl-names = "default";
344 pinctrl-0 = <&pinctrl_pwm2>; /* MX6_DIO1 */
349 pinctrl-names = "default";
350 pinctrl-0 = <&pinctrl_pwm3>; /* MX6_DIO2 */
354 /* off-board RS232 */
356 pinctrl-names = "default";
357 pinctrl-0 = <&pinctrl_uart1>;
363 pinctrl-names = "default";
364 pinctrl-0 = <&pinctrl_uart2>;
370 pinctrl-names = "default";
371 pinctrl-0 = <&pinctrl_uart3>;
376 /* Sterling-LWB Bluetooth */
378 pinctrl-names = "default";
379 pinctrl-0 = <&pinctrl_uart4>,<&pinctrl_bten>;
384 compatible = "brcm,bcm4330-bt";
385 shutdown-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
391 pinctrl-names = "default";
392 pinctrl-0 = <&pinctrl_uart5>;
397 vbus-supply = <®_5p0v>;
398 pinctrl-names = "default";
399 pinctrl-0 = <&pinctrl_usbotg>;
400 disable-over-current;
408 /* Sterling-LWB SDIO WiFi */
410 pinctrl-names = "default";
411 pinctrl-0 = <&pinctrl_usdhc2>;
412 vmmc-supply = <®_wl>;
419 pinctrl-names = "default", "state_100mhz", "state_200mhz";
420 pinctrl-0 = <&pinctrl_usdhc3>;
421 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
422 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
423 cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
424 vmmc-supply = <®_3p3v>;
429 pinctrl-names = "default";
430 pinctrl-0 = <&pinctrl_wdog>;
431 fsl,ext-reset-output;
435 pinctrl_accel: accelmuxgrp {
437 MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b1
441 pinctrl_bten: btengrp {
443 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b1
447 pinctrl_ecspi3: escpi3grp {
449 MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK 0x100b1
450 MX6QDL_PAD_DISP0_DAT1__ECSPI3_MOSI 0x100b1
451 MX6QDL_PAD_DISP0_DAT2__ECSPI3_MISO 0x100b1
452 MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x100b1
456 pinctrl_enet: enetgrp {
458 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
459 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
460 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
461 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
462 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
463 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
464 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
465 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
466 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
467 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
468 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
469 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
470 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
471 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
472 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
473 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
474 MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x1b0b0
478 pinctrl_gpio_leds: gpioledsgrp {
480 MX6QDL_PAD_KEY_COL0__GPIO4_IO06 0x1b0b0
481 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x1b0b0
482 MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x1b0b0
486 pinctrl_gpmi_nand: gpminandgrp {
488 MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
489 MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
490 MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
491 MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
492 MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
493 MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
494 MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
495 MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
496 MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
497 MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
498 MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
499 MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
500 MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
501 MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
502 MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
506 pinctrl_i2c1: i2c1grp {
508 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
509 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
510 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x0001b0b0
514 pinctrl_i2c2: i2c2grp {
516 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
517 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
521 pinctrl_i2c3: i2c3grp {
523 MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
524 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
528 pinctrl_pcie: pciegrp {
530 MX6QDL_PAD_EIM_D20__GPIO3_IO20 0x1b0b0
534 pinctrl_pps: ppsgrp {
536 MX6QDL_PAD_DI0_DISP_CLK__GPIO4_IO16 0x1b0b1
540 pinctrl_pwm2: pwm2grp {
542 MX6QDL_PAD_SD1_DAT2__PWM2_OUT 0x1b0b1
546 pinctrl_pwm3: pwm3grp {
548 MX6QDL_PAD_SD1_DAT1__PWM3_OUT 0x1b0b1
552 pinctrl_reg_wl: regwlgrp {
554 MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x1b0b1
558 pinctrl_uart1: uart1grp {
560 MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1
561 MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
565 pinctrl_uart2: uart2grp {
567 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
568 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
572 pinctrl_uart3: uart3grp {
574 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
575 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
576 MX6QDL_PAD_EIM_D23__UART3_RTS_B 0x1b0b1
577 MX6QDL_PAD_EIM_D31__UART3_CTS_B 0x1b0b1
578 MX6QDL_PAD_EIM_A25__GPIO5_IO02 0x4001b0b1 /* DIO20 */
579 MX6QDL_PAD_DISP0_DAT11__GPIO5_IO05 0x4001b0b1 /* DIO14 */
580 MX6QDL_PAD_DISP0_DAT12__GPIO5_IO06 0x4001b0b1 /* DIO15 */
581 MX6QDL_PAD_DISP0_DAT14__GPIO5_IO08 0x1b0b1 /* TMS */
582 MX6QDL_PAD_DISP0_DAT15__GPIO5_IO09 0x1b0b1 /* TCK */
583 MX6QDL_PAD_DISP0_DAT16__GPIO5_IO10 0x1b0b1 /* TDO */
584 MX6QDL_PAD_DISP0_DAT17__GPIO5_IO11 0x1b0b1 /* TDI */
585 MX6QDL_PAD_DISP0_DAT23__GPIO5_IO17 0x4001b0b1 /* RST# */
589 pinctrl_uart4: uart4grp {
591 MX6QDL_PAD_CSI0_DAT12__UART4_TX_DATA 0x1b0b1
592 MX6QDL_PAD_CSI0_DAT13__UART4_RX_DATA 0x1b0b1
593 MX6QDL_PAD_CSI0_DAT16__UART4_RTS_B 0x1b0b1
594 MX6QDL_PAD_CSI0_DAT17__UART4_CTS_B 0x1b0b1
598 pinctrl_uart5: uart5grp {
600 MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
601 MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
605 pinctrl_usbotg: usbotggrp {
607 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059
611 pinctrl_usdhc2: usdhc2grp {
613 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
614 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
615 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
616 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
617 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
618 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x17059
622 pinctrl_usdhc3: usdhc3grp {
624 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
625 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
626 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
627 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
628 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
629 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
630 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x17059 /* CD */
631 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x17059
635 pinctrl_usdhc3_100mhz: usdhc3grp100mhz {
637 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170b9
638 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x170b9
639 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170b9
640 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170b9
641 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170b9
642 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170b9
643 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x170b9 /* CD */
644 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x170b9
648 pinctrl_usdhc3_200mhz: usdhc3grp200mhz {
650 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170f9
651 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100f9
652 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170f9
653 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170f9
654 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170f9
655 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170f9
656 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x170f9 /* CD */
657 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x170f9
661 pinctrl_wdog: wdoggrp {
663 MX6QDL_PAD_DISP0_DAT8__WDOG1_B 0x1b0b0