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>
11 /* these are used by bootloader for disabling nodes */
21 bootargs = "console=ttymxc1,115200";
25 compatible = "gpio-keys";
29 gpios = <&gsc_gpio 0 GPIO_ACTIVE_LOW>;
36 interrupt-parent = <&gsc>;
43 interrupt-parent = <&gsc>;
50 interrupt-parent = <&gsc>;
57 interrupt-parent = <&gsc>;
62 label = "switch_hold";
64 interrupt-parent = <&gsc>;
70 compatible = "gpio-leds";
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_gpio_leds>;
76 gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDG */
78 linux,default-trigger = "heartbeat";
83 gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
84 default-state = "off";
89 device_type = "memory";
90 reg = <0x10000000 0x20000000>;
94 compatible = "pps-gpio";
95 pinctrl-names = "default";
96 pinctrl-0 = <&pinctrl_pps>;
97 gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
101 reg_3p3v: regulator-3p3v {
102 compatible = "regulator-fixed";
103 regulator-name = "3P3V";
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
109 reg_5p0v: regulator-5p0v {
110 compatible = "regulator-fixed";
111 regulator-name = "5P0V";
112 regulator-min-microvolt = <5000000>;
113 regulator-max-microvolt = <5000000>;
117 reg_usb_otg_vbus: regulator-usb-otg-vbus {
118 compatible = "regulator-fixed";
119 regulator-name = "usb_otg_vbus";
120 regulator-min-microvolt = <5000000>;
121 regulator-max-microvolt = <5000000>;
122 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&pinctrl_enet>;
130 phy-mode = "rgmii-id";
131 phy-reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&pinctrl_gpmi_nand>;
142 ddc-i2c-bus = <&i2c3>;
147 clock-frequency = <100000>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&pinctrl_i2c1>;
153 compatible = "gw,gsc";
155 interrupt-parent = <&gpio1>;
156 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
157 interrupt-controller;
158 #interrupt-cells = <1>;
162 compatible = "gw,gsc-adc";
163 #address-cells = <1>;
241 compatible = "nxp,pca9555";
245 interrupt-parent = <&gsc>;
250 compatible = "atmel,24c02";
256 compatible = "atmel,24c02";
262 compatible = "atmel,24c02";
268 compatible = "atmel,24c02";
274 compatible = "dallas,ds1672";
280 clock-frequency = <100000>;
281 pinctrl-names = "default";
282 pinctrl-0 = <&pinctrl_i2c2>;
286 compatible = "lltc,ltc3676";
288 pinctrl-names = "default";
289 pinctrl-0 = <&pinctrl_pmic>;
290 interrupt-parent = <&gpio1>;
291 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
294 /* VDD_SOC (1+R1/R2 = 1.635) */
296 regulator-name = "vddsoc";
297 regulator-min-microvolt = <674400>;
298 regulator-max-microvolt = <1308000>;
299 lltc,fb-voltage-divider = <127000 200000>;
300 regulator-ramp-delay = <7000>;
305 /* VDD_1P8 (1+R1/R2 = 2.505): GPS/VideoIn/ENET-PHY */
307 regulator-name = "vdd1p8";
308 regulator-min-microvolt = <1033310>;
309 regulator-max-microvolt = <2004000>;
310 lltc,fb-voltage-divider = <301000 200000>;
311 regulator-ramp-delay = <7000>;
316 /* VDD_ARM (1+R1/R2 = 1.635) */
318 regulator-name = "vddarm";
319 regulator-min-microvolt = <674400>;
320 regulator-max-microvolt = <1308000>;
321 lltc,fb-voltage-divider = <127000 200000>;
322 regulator-ramp-delay = <7000>;
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_2P5 (1+R1/R2 = 3.435): PCIe/ENET-PHY */
340 regulator-name = "vdd2p5";
341 regulator-min-microvolt = <2490375>;
342 regulator-max-microvolt = <2490375>;
343 lltc,fb-voltage-divider = <487000 200000>;
348 /* VDD_HIGH (1+R1/R2 = 4.17) */
350 regulator-name = "vdd3p0";
351 regulator-min-microvolt = <3023250>;
352 regulator-max-microvolt = <3023250>;
353 lltc,fb-voltage-divider = <634000 200000>;
362 clock-frequency = <100000>;
363 pinctrl-names = "default";
364 pinctrl-0 = <&pinctrl_i2c3>;
368 compatible = "adi,adv7180";
369 pinctrl-names = "default";
370 pinctrl-0 = <&pinctrl_adv7180>;
372 powerdown-gpios = <&gpio5 20 GPIO_ACTIVE_LOW>;
373 interrupt-parent = <&gpio5>;
374 interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
377 adv7180_to_ipu1_csi0_mux: endpoint {
378 remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>;
385 &ipu1_csi0_from_ipu1_csi0_mux {
389 &ipu1_csi0_mux_from_parallel_sensor {
390 remote-endpoint = <&adv7180_to_ipu1_csi0_mux>;
395 pinctrl-names = "default";
396 pinctrl-0 = <&pinctrl_ipu1_csi0>;
400 pinctrl-names = "default";
401 pinctrl-0 = <&pinctrl_pcie>;
402 reset-gpio = <&gpio1 0 GPIO_ACTIVE_LOW>;
407 pinctrl-names = "default";
408 pinctrl-0 = <&pinctrl_pwm2>; /* MX6_DIO1 */
413 pinctrl-names = "default";
414 pinctrl-0 = <&pinctrl_pwm3>; /* MX6_DIO2 */
419 pinctrl-names = "default";
420 pinctrl-0 = <&pinctrl_pwm4>; /* MX6_DIO3 */
425 pinctrl-names = "default";
426 pinctrl-0 = <&pinctrl_uart1>;
431 pinctrl-names = "default";
432 pinctrl-0 = <&pinctrl_uart2>;
437 pinctrl-names = "default";
438 pinctrl-0 = <&pinctrl_uart3>;
443 pinctrl-names = "default";
444 pinctrl-0 = <&pinctrl_uart5>;
449 vbus-supply = <®_usb_otg_vbus>;
450 pinctrl-names = "default";
451 pinctrl-0 = <&pinctrl_usbotg>;
452 disable-over-current;
461 pinctrl-names = "default";
462 pinctrl-0 = <&pinctrl_wdog>;
463 fsl,ext-reset-output;
467 pinctrl_adv7180: adv7180grp {
469 MX6QDL_PAD_CSI0_DAT5__GPIO5_IO23 0x0001b0b0
470 MX6QDL_PAD_CSI0_DATA_EN__GPIO5_IO20 0x4001b0b0
474 pinctrl_enet: enetgrp {
476 MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
477 MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
478 MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
479 MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
480 MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
481 MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
482 MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
483 MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
484 MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
485 MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
486 MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
487 MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
488 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
489 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
490 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
491 MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
492 MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x1b0b0 /* PHY Reset */
496 pinctrl_gpio_leds: gpioledsgrp {
498 MX6QDL_PAD_KEY_COL0__GPIO4_IO06 0x1b0b0
499 MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x1b0b0
503 pinctrl_gpmi_nand: gpminandgrp {
505 MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
506 MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
507 MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
508 MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
509 MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
510 MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
511 MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
512 MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
513 MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
514 MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
515 MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
516 MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
517 MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
518 MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
519 MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
523 pinctrl_i2c1: i2c1grp {
525 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
526 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
527 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x0001b0b0 /* GSC_IRQ# */
531 pinctrl_i2c2: i2c2grp {
533 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
534 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
538 pinctrl_i2c3: i2c3grp {
540 MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
541 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
545 pinctrl_ipu1_csi0: ipu1csi0grp {
547 MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12 0x1b0b0
548 MX6QDL_PAD_CSI0_DAT13__IPU1_CSI0_DATA13 0x1b0b0
549 MX6QDL_PAD_CSI0_DAT14__IPU1_CSI0_DATA14 0x1b0b0
550 MX6QDL_PAD_CSI0_DAT15__IPU1_CSI0_DATA15 0x1b0b0
551 MX6QDL_PAD_CSI0_DAT16__IPU1_CSI0_DATA16 0x1b0b0
552 MX6QDL_PAD_CSI0_DAT17__IPU1_CSI0_DATA17 0x1b0b0
553 MX6QDL_PAD_CSI0_DAT18__IPU1_CSI0_DATA18 0x1b0b0
554 MX6QDL_PAD_CSI0_DAT19__IPU1_CSI0_DATA19 0x1b0b0
555 MX6QDL_PAD_CSI0_MCLK__IPU1_CSI0_HSYNC 0x1b0b0
556 MX6QDL_PAD_CSI0_VSYNC__IPU1_CSI0_VSYNC 0x1b0b0
557 MX6QDL_PAD_CSI0_PIXCLK__IPU1_CSI0_PIXCLK 0x1b0b0
561 pinctrl_pcie: pciegrp {
563 MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0
567 pinctrl_pmic: pmicgrp {
569 MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x0001b0b0 /* PMIC_IRQ# */
573 pinctrl_pps: ppsgrp {
575 MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b1
579 pinctrl_pwm2: pwm2grp {
581 MX6QDL_PAD_SD1_DAT2__PWM2_OUT 0x1b0b1
585 pinctrl_pwm3: pwm3grp {
587 MX6QDL_PAD_SD1_DAT1__PWM3_OUT 0x1b0b1
591 pinctrl_pwm4: pwm4grp {
593 MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
597 pinctrl_uart1: uart1grp {
599 MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
600 MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
604 pinctrl_uart2: uart2grp {
606 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
607 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
611 pinctrl_uart3: uart3grp {
613 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
614 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
618 pinctrl_uart5: uart5grp {
620 MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
621 MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
625 pinctrl_usbotg: usbotggrp {
627 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
628 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0 /* OTG_PWR_EN */
632 pinctrl_wdog: wdoggrp {
634 MX6QDL_PAD_DISP0_DAT8__WDOG1_B 0x1b0b0