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>
8 #include <dt-bindings/phy/phy-imx8-pcie.h>
18 compatible = "gpio-leds";
19 pinctrl-names = "default";
20 pinctrl-0 = <&pinctrl_gpio_leds>;
23 function = LED_FUNCTION_STATUS;
24 color = <LED_COLOR_ID_GREEN>;
25 gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
27 linux,default-trigger = "heartbeat";
31 function = LED_FUNCTION_STATUS;
32 color = <LED_COLOR_ID_RED>;
33 gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
34 default-state = "off";
38 pcie0_refclk: pcie0-refclk {
39 compatible = "fixed-clock";
41 clock-frequency = <100000000>;
45 compatible = "pps-gpio";
46 pinctrl-names = "default";
47 pinctrl-0 = <&pinctrl_pps>;
48 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
52 reg_1p8v: regulator-1p8v {
53 compatible = "regulator-fixed";
54 regulator-name = "1P8V";
55 regulator-min-microvolt = <1800000>;
56 regulator-max-microvolt = <1800000>;
60 reg_3p3v: regulator-3p3v {
61 compatible = "regulator-fixed";
62 regulator-name = "3P3V";
63 regulator-min-microvolt = <3300000>;
64 regulator-max-microvolt = <3300000>;
68 reg_usb_otg1_vbus: regulator-usb-otg1 {
69 pinctrl-names = "default";
70 pinctrl-0 = <&pinctrl_reg_usb1_en>;
71 compatible = "regulator-fixed";
72 regulator-name = "usb_otg1_vbus";
73 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
75 regulator-min-microvolt = <5000000>;
76 regulator-max-microvolt = <5000000>;
79 reg_usb_otg2_vbus: regulator-usb-otg2 {
80 pinctrl-names = "default";
81 pinctrl-0 = <&pinctrl_reg_usb2_en>;
82 compatible = "regulator-fixed";
83 regulator-name = "usb_otg2_vbus";
84 gpio = <&gpio1 8 GPIO_ACTIVE_HIGH>;
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
90 reg_wifi_en: regulator-wifi-en {
91 pinctrl-names = "default";
92 pinctrl-0 = <&pinctrl_reg_wl>;
93 compatible = "regulator-fixed";
94 regulator-name = "wl";
95 gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
96 startup-delay-us = <100>;
98 regulator-min-microvolt = <3300000>;
99 regulator-max-microvolt = <3300000>;
103 /* off-board header */
105 pinctrl-names = "default";
106 pinctrl-0 = <&pinctrl_spi2>;
107 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>,
108 <&gpio1 10 GPIO_ACTIVE_LOW>;
112 compatible = "atmel,attpm20p", "tcg,tpm_tis-spi";
114 spi-max-frequency = <36000000>;
119 gpio-line-names = "rs485_term", "mipi_gpio4", "", "",
120 "", "", "pci_usb_sel", "dio0",
121 "", "dio1", "", "", "", "", "", "",
122 "", "", "", "", "", "", "", "",
123 "", "", "", "", "", "", "", "";
127 gpio-line-names = "rs485_en", "mipi_gpio3", "rs485_hd", "mipi_gpio2",
128 "mipi_gpio1", "", "", "pci_wdis#",
129 "", "", "", "", "", "", "", "",
130 "", "", "", "", "", "", "", "",
131 "", "", "", "", "", "", "", "";
135 clock-frequency = <400000>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&pinctrl_i2c2>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_accel>;
143 compatible = "st,lis2de12";
145 st,drdy-int-pin = <1>;
146 interrupt-parent = <&gpio4>;
147 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
151 /* off-board header */
153 clock-frequency = <400000>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&pinctrl_i2c3>;
160 fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
161 fsl,clkreq-unsupported;
162 clocks = <&pcie0_refclk>;
168 pinctrl-names = "default";
169 pinctrl-0 = <&pinctrl_pcie0>;
170 reset-gpio = <&gpio4 6 GPIO_ACTIVE_LOW>;
171 clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&pcie0_refclk>,
172 <&clk IMX8MM_CLK_PCIE1_AUX>;
173 assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
174 <&clk IMX8MM_CLK_PCIE1_CTRL>;
175 assigned-clock-rates = <10000000>, <250000000>;
176 assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
177 <&clk IMX8MM_SYS_PLL2_250M>;
181 reg = <0x0000 0 0 0 0>;
183 #address-cells = <3>;
188 reg = <0x0000 0 0 0 0>;
190 #address-cells = <3>;
195 reg = <0x2000 0 0 0 0>;
197 #address-cells = <3>;
202 reg = <0x0000 0 0 0 0>;
203 #address-cells = <3>;
207 local-mac-address = [00 00 00 00 00 00];
214 /* off-board header */
216 pinctrl-names = "default";
217 pinctrl-0 = <&pinctrl_sai3>;
218 assigned-clocks = <&clk IMX8MM_CLK_SAI3>;
219 assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
220 assigned-clock-rates = <24576000>;
226 pinctrl-names = "default";
227 pinctrl-0 = <&pinctrl_uart1>;
233 pinctrl-names = "default";
234 pinctrl-0 = <&pinctrl_uart3>, <&pinctrl_bten>;
235 cts-gpios = <&gpio5 8 GPIO_ACTIVE_LOW>;
236 rts-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
240 compatible = "brcm,bcm4330-bt";
241 shutdown-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&pinctrl_uart4>;
254 over-current-active-low;
255 vbus-supply = <®_usb_otg1_vbus>;
261 disable-over-current;
262 vbus-supply = <®_usb_otg2_vbus>;
268 pinctrl-names = "default";
269 pinctrl-0 = <&pinctrl_usdhc1>;
272 vmmc-supply = <®_wifi_en>;
278 pinctrl-names = "default", "state_100mhz", "state_200mhz";
279 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
280 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
281 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
282 cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
284 vmmc-supply = <®_3p3v>;
289 pinctrl-names = "default";
290 pinctrl-0 = <&pinctrl_hog>;
292 pinctrl_hog: hoggrp {
294 MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3 0x40000041 /* PLUG_TEST */
295 MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x40000041 /* PCI_USBSEL */
296 MX8MM_IOMUXC_SAI1_RXD5_GPIO4_IO7 0x40000041 /* PCIE_WDIS# */
297 MX8MM_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x40000041 /* DIO0 */
298 MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x40000041 /* DIO1 */
299 MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0 0x40000104 /* RS485_TERM */
300 MX8MM_IOMUXC_SAI1_RXFS_GPIO4_IO0 0x40000104 /* RS485 */
301 MX8MM_IOMUXC_SAI1_RXD0_GPIO4_IO2 0x40000104 /* RS485_HALF */
305 pinctrl_accel: accelgrp {
307 MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5 0x159
311 pinctrl_bten: btengrp {
313 MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x41
317 pinctrl_gpio_leds: gpioledgrp {
319 MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0x19
320 MX8MM_IOMUXC_SPDIF_RX_GPIO5_IO4 0x19
324 pinctrl_i2c3: i2c3grp {
326 MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3
327 MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3
331 pinctrl_pcie0: pcie0grp {
333 MX8MM_IOMUXC_SAI1_RXD4_GPIO4_IO6 0x41
337 pinctrl_pps: ppsgrp {
339 MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x41
343 pinctrl_reg_wl: regwlgrp {
345 MX8MM_IOMUXC_GPIO1_IO05_GPIO1_IO5 0x41
349 pinctrl_reg_usb1_en: regusb1grp {
351 MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x41
352 MX8MM_IOMUXC_GPIO1_IO13_USB1_OTG_OC 0x41
356 pinctrl_reg_usb2_en: regusb2grp {
358 MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x41
362 pinctrl_sai3: sai3grp {
364 MX8MM_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6
365 MX8MM_IOMUXC_SAI3_TXC_SAI3_TX_BCLK 0xd6
366 MX8MM_IOMUXC_SAI3_MCLK_SAI3_MCLK 0xd6
367 MX8MM_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6
368 MX8MM_IOMUXC_SAI3_RXD_SAI3_RX_DATA0 0xd6
372 pinctrl_spi2: spi2grp {
374 MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0xd6
375 MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0xd6
376 MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0xd6
377 MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0xd6
378 MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0xd6
382 pinctrl_uart1: uart1grp {
384 MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
385 MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
389 pinctrl_uart3: uart3grp {
391 MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140
392 MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140
393 MX8MM_IOMUXC_ECSPI1_MISO_GPIO5_IO8 0x140
394 MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x140
398 pinctrl_uart4: uart4grp {
400 MX8MM_IOMUXC_UART4_RXD_UART4_DCE_RX 0x140
401 MX8MM_IOMUXC_UART4_TXD_UART4_DCE_TX 0x140
405 pinctrl_usdhc1: usdhc1grp {
407 MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x190
408 MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d0
409 MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d0
410 MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d0
411 MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d0
412 MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d0
416 pinctrl_usdhc2: usdhc2grp {
418 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x190
419 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0
420 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0
421 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0
422 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0
423 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0
427 pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
429 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x194
430 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4
431 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4
432 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4
433 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4
434 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4
438 pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
440 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x196
441 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6
442 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6
443 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6
444 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6
445 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6
449 pinctrl_usdhc2_gpio: usdhc2gpiogrp {
451 MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x1c4
452 MX8MM_IOMUXC_SD2_RESET_B_USDHC2_RESET_B 0x1d0
453 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0