1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2023 PHYTEC Messtechnik GmbH
8 #include <dt-bindings/input/linux-event-codes.h>
9 #include <dt-bindings/leds/common.h>
10 #include "imx8mm-phycore-som.dtsi"
13 model = "PHYTEC phyGATE-Tauri-L-iMX8MM";
14 compatible = "phytec,imx8mm-phygate-tauri-l",
15 "phytec,imx8mm-phycore-som", "fsl,imx8mm";
21 can_osc_40m: clock-can {
22 compatible = "fixed-clock";
23 clock-frequency = <40000000>;
24 clock-output-names = "can_osc_40m";
29 compatible = "gpio-keys";
30 pinctrl-names = "default";
31 pinctrl-0 = <&pinctrl_gpiokeys>;
34 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-leds";
42 pinctrl-names = "default";
43 pinctrl-0 = <&pinctrl_leds>;
46 color = <LED_COLOR_ID_RED>;
47 gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
48 linux,default-trigger = "none";
52 color = <LED_COLOR_ID_YELLOW>;
53 gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
54 linux,default-trigger = "none";
58 usdhc1_pwrseq: pwr-seq {
59 compatible = "mmc-pwrseq-simple";
60 post-power-on-delay-ms = <100>;
61 power-off-delay-us = <60>;
62 reset-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
65 reg_usb_hub_vbus: regulator-hub-otg1 {
66 compatible = "regulator-fixed";
67 gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
69 pinctrl-names = "default";
70 pinctrl-0 = <&pinctrl_usbhubpwr>;
71 regulator-name = "usb_hub_vbus";
72 regulator-max-microvolt = <5000000>;
73 regulator-min-microvolt = <5000000>;
76 reg_usb_otg1_vbus: regulator-usb-otg1 {
77 compatible = "regulator-fixed";
78 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
80 pinctrl-names = "default";
81 pinctrl-0 = <&pinctrl_usbotg1pwr>;
82 regulator-name = "usb_otg1_vbus";
83 regulator-max-microvolt = <5000000>;
84 regulator-min-microvolt = <5000000>;
87 reg_usdhc2_vmmc: regulator-usdhc2 {
88 compatible = "regulator-fixed";
89 gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
91 off-on-delay-us = <20000>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
94 regulator-max-microvolt = <3300000>;
95 regulator-min-microvolt = <3300000>;
96 regulator-name = "VSD_3V3";
101 cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>,
102 <&gpio5 13 GPIO_ACTIVE_LOW>,
103 <&gpio5 2 GPIO_ACTIVE_LOW>;
104 pinctrl-names = "default";
105 pinctrl-0 = <&pinctrl_ecspi1 &pinctrl_ecspi1_cs>;
106 #address-cells = <1>;
112 compatible = "microchip,mcp251xfd";
114 clocks = <&can_osc_40m>;
115 interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
116 interrupt-parent = <&gpio1>;
117 pinctrl-names = "default";
118 pinctrl-0 = <&pinctrl_can_int>;
119 spi-max-frequency = <10000000>;
123 compatible = "tcg,tpm_tis-spi";
124 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
125 interrupt-parent = <&gpio2>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&pinctrl_tpm>;
129 spi-max-frequency = <38000000>;
134 clock-frequency = <400000>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&pinctrl_i2c2>;
137 pinctrl-1 = <&pinctrl_i2c2_gpio>;
138 scl-gpios = <&gpio5 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
139 sda-gpios = <&gpio5 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
142 temp_sense0: temperature-sensor@49 {
143 compatible = "ti,tmp102";
145 interrupt-parent = <&gpio4>;
146 interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&pinctrl_tempsense>;
149 #thermal-sensor-cells = <1>;
154 clock-frequency = <400000>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&pinctrl_i2c3>;
157 pinctrl-1 = <&pinctrl_i2c3_gpio>;
158 scl-gpios = <&gpio5 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
159 sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
164 clock-frequency = <400000>;
165 pinctrl-names = "default";
166 pinctrl-0 = <&pinctrl_i2c4>;
167 pinctrl-1 = <&pinctrl_i2c4_gpio>;
168 scl-gpios = <&gpio5 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
169 sda-gpios = <&gpio5 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
175 assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
176 <&clk IMX8MM_CLK_PCIE1_PHY>,
177 <&clk IMX8MM_CLK_PCIE1_CTRL>;
178 assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
179 <&clk IMX8MM_SYS_PLL2_100M>,
180 <&clk IMX8MM_SYS_PLL2_250M>;
181 assigned-clock-rates = <10000000>, <100000000>, <250000000>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&pinctrl_pcie>;
184 reset-gpio = <&gpio3 22 GPIO_ACTIVE_LOW>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&pinctrl_pwm1>;
195 pinctrl-names = "default";
196 pinctrl-0 = <&pinctrl_pwm3>;
201 pinctrl-names = "default";
202 pinctrl-0 = <&pinctrl_pwm4>;
208 trickle-resistor-ohms = <3000>;
212 assigned-clocks = <&clk IMX8MM_CLK_UART1>;
213 assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
214 pinctrl-names = "default";
215 pinctrl-0 = <&pinctrl_uart1>;
221 assigned-clocks = <&clk IMX8MM_CLK_UART2>;
222 assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&pinctrl_uart2>;
230 pinctrl-names = "default";
231 pinctrl-0 = <&pinctrl_uart3>;
239 over-current-active-low;
240 samsung,picophy-pre-emp-curr-control = <3>;
241 samsung,picophy-dc-vol-level-adjust = <7>;
242 pinctrl-names = "default";
243 pinctrl-0 = <&pinctrl_usbotg1>;
245 vbus-supply = <®_usb_otg1_vbus>;
250 disable-over-current;
252 samsung,picophy-pre-emp-curr-control = <3>;
253 samsung,picophy-dc-vol-level-adjust = <7>;
254 vbus-supply = <®_usb_hub_vbus>;
260 assigned-clocks = <&clk IMX8MM_CLK_USDHC2>;
261 assigned-clock-rates = <200000000>;
263 cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
265 pinctrl-names = "default", "state_100mhz", "state_200mhz";
266 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
267 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
268 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
269 vmmc-supply = <®_usdhc2_vmmc>;
270 vqmmc-supply = <®_nvcc_sd2>;
275 pinctrl_can_int: can-intgrp {
277 MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x00
281 pinctrl_ecspi1: ecspi1grp {
283 MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x82
284 MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x82
285 MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x82
289 pinctrl_ecspi1_cs: ecspi1csgrp {
291 MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x00
292 MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x00
293 MX8MM_IOMUXC_SAI3_MCLK_GPIO5_IO2 0x00
297 pinctrl_gpiokeys: keygrp {
299 MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x00
303 pinctrl_i2c2: i2c2grp {
305 MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c2
306 MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c2
310 pinctrl_i2c2_gpio: i2c2gpiogrp {
312 MX8MM_IOMUXC_I2C2_SDA_GPIO5_IO17 0x1e0
313 MX8MM_IOMUXC_I2C2_SCL_GPIO5_IO16 0x1e0
318 pinctrl_i2c3: i2c3grp {
320 MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c2
321 MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c2
325 pinctrl_i2c3_gpio: i2c3gpiogrp {
327 MX8MM_IOMUXC_I2C3_SDA_GPIO5_IO19 0x1e0
328 MX8MM_IOMUXC_I2C3_SCL_GPIO5_IO18 0x1e0
332 pinctrl_i2c4: i2c4grp {
334 MX8MM_IOMUXC_I2C4_SCL_I2C4_SCL 0x400001c2
335 MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA 0x400001c2
339 pinctrl_i2c4_gpio: i2c4gpiogrp {
341 MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21 0x1e0
342 MX8MM_IOMUXC_I2C4_SCL_GPIO5_IO20 0x1e0
346 pinctrl_leds: leds1grp {
348 MX8MM_IOMUXC_SAI3_RXD_GPIO4_IO30 0x00
349 MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0x00
353 pinctrl_pcie: pciegrp {
356 MX8MM_IOMUXC_SAI5_RXD1_GPIO3_IO22 0x00
358 MX8MM_IOMUXC_SAI1_TXD0_GPIO4_IO12 0x12
362 pinctrl_pwm1: pwm1grp {
364 MX8MM_IOMUXC_GPIO1_IO01_PWM1_OUT 0x40
368 pinctrl_pwm3: pwm3grp {
370 MX8MM_IOMUXC_SPDIF_TX_PWM3_OUT 0x40
374 pinctrl_pwm4: pwm4grp {
376 MX8MM_IOMUXC_GPIO1_IO15_PWM4_OUT 0x40
380 pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
382 MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x40
386 pinctrl_tempsense: tempsensegrp {
388 MX8MM_IOMUXC_SAI3_TXFS_GPIO4_IO31 0x00
392 pinctrl_tpm: tpmgrp {
394 MX8MM_IOMUXC_SD1_STROBE_GPIO2_IO11 0x140
398 pinctrl_uart1: uart1grp {
400 MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x00
401 MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x00
405 pinctrl_uart2: uart2grp {
407 MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX 0x00
408 MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX 0x00
412 pinctrl_uart3: uart3grp {
414 MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140
415 MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140
419 pinctrl_usbhubpwr: usbhubpwrgrp {
421 MX8MM_IOMUXC_GPIO1_IO14_GPIO1_IO14 0x00
425 pinctrl_usbotg1pwr: usbotg1pwrgrp {
427 MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x00
431 pinctrl_usbotg1: usbotg1grp {
433 MX8MM_IOMUXC_GPIO1_IO13_USB1_OTG_OC 0x80
437 pinctrl_usdhc1: usdhc1grp {
439 MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x182
440 MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0xc6
441 MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xc6
442 MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xc6
443 MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xc6
444 MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xc6
448 pinctrl_usdhc2_gpio: usdhc2gpiogrp {
450 MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x40
454 pinctrl_usdhc2: usdhc2grp {
456 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
457 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x192
458 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d2
459 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d2
460 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d2
461 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d2
462 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d2
466 pinctrl_usdhc2_100mhz: usdhc2100mhzgrp {
468 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
469 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x194
470 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4
471 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4
472 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4
473 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4
474 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4
478 pinctrl_usdhc2_200mhz: usdhc2200mhzgrp {
480 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
481 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x196
482 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6
483 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6
484 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6
485 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6
486 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6