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 */
26 compatible = "gpio-keys";
32 gpios = <&gsc_gpio 0 GPIO_ACTIVE_LOW>;
39 interrupt-parent = <&gsc>;
46 interrupt-parent = <&gsc>;
53 interrupt-parent = <&gsc>;
60 interrupt-parent = <&gsc>;
65 label = "switch_hold";
67 interrupt-parent = <&gsc>;
73 compatible = "gpio-leds";
74 pinctrl-names = "default";
75 pinctrl-0 = <&pinctrl_gpio_leds>;
79 gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDG */
81 linux,default-trigger = "heartbeat";
86 gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
87 default-state = "off";
92 gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */
93 default-state = "off";
98 device_type = "memory";
99 reg = <0x10000000 0x40000000>;
103 compatible = "pps-gpio";
104 pinctrl-names = "default";
105 pinctrl-0 = <&pinctrl_pps>;
106 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
109 reg_3p3v: regulator-3p3v {
110 compatible = "regulator-fixed";
111 regulator-name = "3P3V";
112 regulator-min-microvolt = <3300000>;
113 regulator-max-microvolt = <3300000>;
117 reg_usb_vbus: regulator-5p0v {
118 compatible = "regulator-fixed";
119 regulator-name = "usb_vbus";
120 regulator-min-microvolt = <5000000>;
121 regulator-max-microvolt = <5000000>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&pinctrl_flexcan1>;
133 cs-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&pinctrl_ecspi2>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&pinctrl_enet>;
142 phy-mode = "rgmii-id";
147 pinctrl-names = "default";
148 pinctrl-0 = <&pinctrl_gpmi_nand>;
153 clock-frequency = <100000>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&pinctrl_i2c1>;
159 compatible = "gw,gsc";
161 interrupt-parent = <&gpio1>;
162 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
163 interrupt-controller;
164 #interrupt-cells = <1>;
165 #address-cells = <1>;
169 compatible = "gw,gsc-adc";
170 #address-cells = <1>;
247 compatible = "gw,gsc-fan";
248 #address-cells = <1>;
255 compatible = "nxp,pca9555";
259 interrupt-parent = <&gsc>;
264 compatible = "atmel,24c02";
270 compatible = "atmel,24c02";
276 compatible = "atmel,24c02";
282 compatible = "atmel,24c02";
288 compatible = "dallas,ds1672";
294 clock-frequency = <100000>;
295 pinctrl-names = "default";
296 pinctrl-0 = <&pinctrl_i2c2>;
301 clock-frequency = <100000>;
302 pinctrl-names = "default";
303 pinctrl-0 = <&pinctrl_i2c3>;
307 pinctrl-names = "default";
308 pinctrl-0 = <&pinctrl_accel>;
309 compatible = "st,lis2de12";
311 st,drdy-int-pin = <1>;
312 interrupt-parent = <&gpio7>;
314 interrupt-names = "INT1";
319 pinctrl-names = "default";
320 pinctrl-0 = <&pinctrl_pcie>;
321 reset-gpio = <&gpio1 29 GPIO_ACTIVE_LOW>;
326 pinctrl-names = "default";
327 pinctrl-0 = <&pinctrl_pwm1>; /* MX6_DIO0 */
332 pinctrl-names = "default";
333 pinctrl-0 = <&pinctrl_pwm2>; /* MX6_DIO1 */
338 pinctrl-names = "default";
339 pinctrl-0 = <&pinctrl_pwm3>; /* MX6_DIO2 */
344 pinctrl-names = "default";
345 pinctrl-0 = <&pinctrl_pwm4>; /* MX6_DIO3 */
350 pinctrl-names = "default";
351 pinctrl-0 = <&pinctrl_uart1>;
352 rts-gpios = <&gpio7 12 GPIO_ACTIVE_HIGH>;
357 pinctrl-names = "default";
358 pinctrl-0 = <&pinctrl_uart2>;
363 pinctrl-names = "default";
364 pinctrl-0 = <&pinctrl_uart5>;
369 vbus-supply = <®_usb_vbus>;
370 pinctrl-names = "default";
371 pinctrl-0 = <&pinctrl_usbotg>;
372 disable-over-current;
378 vbus-supply = <®_usb_vbus>;
383 pinctrl-names = "default", "state_100mhz", "state_200mhz";
384 pinctrl-0 = <&pinctrl_usdhc3>;
385 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
386 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
387 cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
388 vmmc-supply = <®_3p3v>;
389 no-1-8-v; /* firmware will remove if board revision supports */
398 pinctrl-names = "default";
399 pinctrl-0 = <&pinctrl_wdog>;
400 fsl,ext-reset-output;
405 pinctrl_accel: accelmuxgrp {
407 MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b1
411 pinctrl_enet: enetgrp {
413 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
414 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
415 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
416 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
417 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
418 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
419 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
420 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
421 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
422 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
423 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
424 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
425 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
426 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
427 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
431 pinctrl_ecspi2: escpi2grp {
433 MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK 0x100b1
434 MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI 0x100b1
435 MX6QDL_PAD_EIM_OE__ECSPI2_MISO 0x100b1
436 MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x100b1
440 pinctrl_flexcan1: flexcan1grp {
442 MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b1
443 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b1
444 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x4001b0b0
448 pinctrl_gpio_leds: gpioledsgrp {
450 MX6QDL_PAD_KEY_COL0__GPIO4_IO06 0x1b0b0
451 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x1b0b0
452 MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x1b0b0
456 pinctrl_gpmi_nand: gpminandgrp {
458 MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
459 MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
460 MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
461 MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
462 MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
463 MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
464 MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
465 MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
466 MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
467 MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
468 MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
469 MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
470 MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
471 MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
472 MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
476 pinctrl_i2c1: i2c1grp {
478 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
479 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
480 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x0001b0b0
484 pinctrl_i2c2: i2c2grp {
486 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
487 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
491 pinctrl_i2c3: i2c3grp {
493 MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
494 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
498 pinctrl_pcie: pciegrp {
500 MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x1b0b0
501 MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x1b0b0
505 pinctrl_pps: ppsgrp {
507 MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x1b0b1
511 pinctrl_pwm1: pwm1grp {
513 MX6QDL_PAD_GPIO_9__PWM1_OUT 0x1b0b1
517 pinctrl_pwm2: pwm2grp {
519 MX6QDL_PAD_SD1_DAT2__PWM2_OUT 0x1b0b1
523 pinctrl_pwm3: pwm3grp {
525 MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b1
529 pinctrl_pwm4: pwm4grp {
531 MX6QDL_PAD_SD4_DAT2__PWM4_OUT 0x1b0b1
535 pinctrl_uart1: uart1grp {
537 MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
538 MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
539 MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x4001b0b1
543 pinctrl_uart2: uart2grp {
545 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
546 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
547 MX6QDL_PAD_SD4_DAT3__GPIO2_IO11 0x4001b0b1
551 pinctrl_uart5: uart5grp {
553 MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
554 MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
558 pinctrl_usbotg: usbotggrp {
560 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059
564 pinctrl_usdhc3: usdhc3grp {
566 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
567 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
568 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
569 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
570 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
571 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
572 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x17059 /* CD */
573 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x17059
577 pinctrl_usdhc3_100mhz: usdhc3grp100mhz {
579 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170b9
580 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100b9
581 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170b9
582 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170b9
583 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170b9
584 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170b9
585 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x170b9 /* CD */
586 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x170b9
590 pinctrl_usdhc3_200mhz: usdhc3grp200mhz {
592 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170f9
593 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100f9
594 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x170f9
595 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x170f9
596 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x170f9
597 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x170f9
598 MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x170f9 /* CD */
599 MX6QDL_PAD_NANDF_CS1__SD3_VSELECT 0x170f9
603 pinctrl_wdog: wdoggrp {
605 MX6QDL_PAD_SD1_DAT3__WDOG2_B 0x1b0b0