1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright 2020 Gateworks Corporation
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/leds/common.h>
16 compatible = "gpio-leds";
17 pinctrl-names = "default";
18 pinctrl-0 = <&pinctrl_gpio_leds>;
21 function = LED_FUNCTION_STATUS;
22 color = <LED_COLOR_ID_GREEN>;
23 gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
25 linux,default-trigger = "heartbeat";
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_RED>;
31 gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
32 default-state = "off";
37 compatible = "pps-gpio";
38 pinctrl-names = "default";
39 pinctrl-0 = <&pinctrl_pps>;
40 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
44 reg_usb_otg1_vbus: regulator-usb-otg1 {
45 pinctrl-names = "default";
46 pinctrl-0 = <&pinctrl_reg_usb1_en>;
47 compatible = "regulator-fixed";
48 regulator-name = "usb_otg1_vbus";
49 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
51 regulator-min-microvolt = <5000000>;
52 regulator-max-microvolt = <5000000>;
56 /* off-board header */
58 pinctrl-names = "default";
59 pinctrl-0 = <&pinctrl_spi2>;
60 cs-gpios = <&gpio5 13 GPIO_ACTIVE_HIGH>;
65 clock-frequency = <400000>;
66 pinctrl-names = "default";
67 pinctrl-0 = <&pinctrl_i2c2>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_accel>;
73 compatible = "st,lis2de12";
75 st,drdy-int-pin = <1>;
76 interrupt-parent = <&gpio4>;
77 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
78 interrupt-names = "INT1";
82 /* off-board header */
84 clock-frequency = <400000>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_i2c3>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&pinctrl_uart1>;
97 /* off-board header */
99 pinctrl-names = "default";
100 pinctrl-0 = <&pinctrl_uart3>;
106 vbus-supply = <®_usb_otg1_vbus>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&pinctrl_hog>;
119 pinctrl_hog: hoggrp {
121 MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3 0x40000041 /* PLUG_TEST */
122 MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x40000041 /* PCI_USBSEL */
123 MX8MM_IOMUXC_SAI1_RXD5_GPIO4_IO7 0x40000041 /* PCIE_WDIS# */
124 MX8MM_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x40000041 /* DIO0 */
125 MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x40000041 /* DIO1 */
126 MX8MM_IOMUXC_SAI1_RXD1_GPIO4_IO3 0x40000041 /* DIO2 */
127 MX8MM_IOMUXC_SAI1_RXD2_GPIO4_IO4 0x40000041 /* DIO2 */
131 pinctrl_accel: accelgrp {
133 MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5 0x159
137 pinctrl_gpio_leds: gpioledgrp {
139 MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0x19
140 MX8MM_IOMUXC_SPDIF_RX_GPIO5_IO4 0x19
144 pinctrl_i2c3: i2c3grp {
146 MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3
147 MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3
151 pinctrl_pps: ppsgrp {
153 MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x41
157 pinctrl_reg_usb1_en: regusb1grp {
159 MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x41
160 MX8MM_IOMUXC_GPIO1_IO13_USB1_OTG_OC 0x41
164 pinctrl_spi2: spi2grp {
166 MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0xd6
167 MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0xd6
168 MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0xd6
169 MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0xd6
173 pinctrl_uart1: uart1grp {
175 MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
176 MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
180 pinctrl_uart3: uart3grp {
182 MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140
183 MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140