xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/imx8mp-verdin-mallow.dtsi (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1*8d13bc63SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2*8d13bc63SEmmanuel Vadot/*
3*8d13bc63SEmmanuel Vadot * Copyright 2023 Toradex
4*8d13bc63SEmmanuel Vadot *
5*8d13bc63SEmmanuel Vadot * Common dtsi for Verdin IMX8MP SoM on Mallow carrier board
6*8d13bc63SEmmanuel Vadot *
7*8d13bc63SEmmanuel Vadot * https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-plus
8*8d13bc63SEmmanuel Vadot * https://www.toradex.com/products/carrier-board/mallow-carrier-board
9*8d13bc63SEmmanuel Vadot */
10*8d13bc63SEmmanuel Vadot
11*8d13bc63SEmmanuel Vadot#include <dt-bindings/leds/common.h>
12*8d13bc63SEmmanuel Vadot
13*8d13bc63SEmmanuel Vadot/ {
14*8d13bc63SEmmanuel Vadot	leds {
15*8d13bc63SEmmanuel Vadot		compatible = "gpio-leds";
16*8d13bc63SEmmanuel Vadot		pinctrl-names = "default";
17*8d13bc63SEmmanuel Vadot		pinctrl-0 = <&pinctrl_leds>;
18*8d13bc63SEmmanuel Vadot
19*8d13bc63SEmmanuel Vadot		/* SODIMM 52 - USER_LED_1_RED */
20*8d13bc63SEmmanuel Vadot		led-0 {
21*8d13bc63SEmmanuel Vadot			color = <LED_COLOR_ID_RED>;
22*8d13bc63SEmmanuel Vadot			function = LED_FUNCTION_DEBUG;
23*8d13bc63SEmmanuel Vadot			function-enumerator = <1>;
24*8d13bc63SEmmanuel Vadot			gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
25*8d13bc63SEmmanuel Vadot		};
26*8d13bc63SEmmanuel Vadot
27*8d13bc63SEmmanuel Vadot		/* SODIMM 54 - USER_LED_1_GREEN */
28*8d13bc63SEmmanuel Vadot		led-1 {
29*8d13bc63SEmmanuel Vadot			color = <LED_COLOR_ID_GREEN>;
30*8d13bc63SEmmanuel Vadot			function = LED_FUNCTION_DEBUG;
31*8d13bc63SEmmanuel Vadot			function-enumerator = <1>;
32*8d13bc63SEmmanuel Vadot			gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
33*8d13bc63SEmmanuel Vadot		};
34*8d13bc63SEmmanuel Vadot
35*8d13bc63SEmmanuel Vadot		/* SODIMM 56 - USER_LED_2_RED */
36*8d13bc63SEmmanuel Vadot		led-2 {
37*8d13bc63SEmmanuel Vadot			color = <LED_COLOR_ID_RED>;
38*8d13bc63SEmmanuel Vadot			function = LED_FUNCTION_DEBUG;
39*8d13bc63SEmmanuel Vadot			function-enumerator = <2>;
40*8d13bc63SEmmanuel Vadot			gpios = <&gpio3 6 GPIO_ACTIVE_HIGH>;
41*8d13bc63SEmmanuel Vadot		};
42*8d13bc63SEmmanuel Vadot
43*8d13bc63SEmmanuel Vadot		/* SODIMM 58 - USER_LED_2_GREEN */
44*8d13bc63SEmmanuel Vadot		led-3 {
45*8d13bc63SEmmanuel Vadot			color = <LED_COLOR_ID_GREEN>;
46*8d13bc63SEmmanuel Vadot			function = LED_FUNCTION_DEBUG;
47*8d13bc63SEmmanuel Vadot			function-enumerator = <2>;
48*8d13bc63SEmmanuel Vadot			gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>;
49*8d13bc63SEmmanuel Vadot		};
50*8d13bc63SEmmanuel Vadot	};
51*8d13bc63SEmmanuel Vadot};
52*8d13bc63SEmmanuel Vadot
53*8d13bc63SEmmanuel Vadot&backlight {
54*8d13bc63SEmmanuel Vadot	power-supply = <&reg_3p3v>;
55*8d13bc63SEmmanuel Vadot};
56*8d13bc63SEmmanuel Vadot
57*8d13bc63SEmmanuel Vadot/* Verdin SPI_1 */
58*8d13bc63SEmmanuel Vadot&ecspi1 {
59*8d13bc63SEmmanuel Vadot	pinctrl-0 = <&pinctrl_ecspi1>, <&pinctrl_tpm_cs>;
60*8d13bc63SEmmanuel Vadot	cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>, <&gpio3 16 GPIO_ACTIVE_LOW>;
61*8d13bc63SEmmanuel Vadot	status = "okay";
62*8d13bc63SEmmanuel Vadot
63*8d13bc63SEmmanuel Vadot	tpm@1 {
64*8d13bc63SEmmanuel Vadot		compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
65*8d13bc63SEmmanuel Vadot		reg = <1>;
66*8d13bc63SEmmanuel Vadot		pinctrl-names = "default";
67*8d13bc63SEmmanuel Vadot		pinctrl-0 = <&pinctrl_tpm_irq>;
68*8d13bc63SEmmanuel Vadot		interrupt-parent = <&gpio3>;
69*8d13bc63SEmmanuel Vadot		interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
70*8d13bc63SEmmanuel Vadot		spi-max-frequency = <18500000>;
71*8d13bc63SEmmanuel Vadot	};
72*8d13bc63SEmmanuel Vadot};
73*8d13bc63SEmmanuel Vadot
74*8d13bc63SEmmanuel Vadot/* EEPROM on Mallow */
75*8d13bc63SEmmanuel Vadot&eeprom_carrier_board {
76*8d13bc63SEmmanuel Vadot	status = "okay";
77*8d13bc63SEmmanuel Vadot};
78*8d13bc63SEmmanuel Vadot
79*8d13bc63SEmmanuel Vadot/* Verdin ETH_1 */
80*8d13bc63SEmmanuel Vadot&eqos {
81*8d13bc63SEmmanuel Vadot	status = "okay";
82*8d13bc63SEmmanuel Vadot};
83*8d13bc63SEmmanuel Vadot
84*8d13bc63SEmmanuel Vadot/* Verdin CAN_1 */
85*8d13bc63SEmmanuel Vadot&flexcan1 {
86*8d13bc63SEmmanuel Vadot	status = "okay";
87*8d13bc63SEmmanuel Vadot};
88*8d13bc63SEmmanuel Vadot
89*8d13bc63SEmmanuel Vadot/* Verdin CAN_2 */
90*8d13bc63SEmmanuel Vadot&flexcan2 {
91*8d13bc63SEmmanuel Vadot	status = "okay";
92*8d13bc63SEmmanuel Vadot};
93*8d13bc63SEmmanuel Vadot
94*8d13bc63SEmmanuel Vadot/* Temperature sensor on Mallow */
95*8d13bc63SEmmanuel Vadot&hwmon_temp {
96*8d13bc63SEmmanuel Vadot	compatible = "ti,tmp1075";
97*8d13bc63SEmmanuel Vadot	status = "okay";
98*8d13bc63SEmmanuel Vadot};
99*8d13bc63SEmmanuel Vadot
100*8d13bc63SEmmanuel Vadot/* Verdin I2C_2_DSI */
101*8d13bc63SEmmanuel Vadot&i2c2 {
102*8d13bc63SEmmanuel Vadot	status = "okay";
103*8d13bc63SEmmanuel Vadot};
104*8d13bc63SEmmanuel Vadot
105*8d13bc63SEmmanuel Vadot/* Verdin I2C_4_CSI */
106*8d13bc63SEmmanuel Vadot&i2c3 {
107*8d13bc63SEmmanuel Vadot	status = "okay";
108*8d13bc63SEmmanuel Vadot};
109*8d13bc63SEmmanuel Vadot
110*8d13bc63SEmmanuel Vadot/* Verdin I2C_1 */
111*8d13bc63SEmmanuel Vadot&i2c4 {
112*8d13bc63SEmmanuel Vadot	status = "okay";
113*8d13bc63SEmmanuel Vadot};
114*8d13bc63SEmmanuel Vadot
115*8d13bc63SEmmanuel Vadot/* Verdin PCIE_1 */
116*8d13bc63SEmmanuel Vadot&pcie {
117*8d13bc63SEmmanuel Vadot	status = "okay";
118*8d13bc63SEmmanuel Vadot};
119*8d13bc63SEmmanuel Vadot
120*8d13bc63SEmmanuel Vadot&pcie_phy {
121*8d13bc63SEmmanuel Vadot	status = "okay";
122*8d13bc63SEmmanuel Vadot};
123*8d13bc63SEmmanuel Vadot
124*8d13bc63SEmmanuel Vadot/* Verdin PWM_1 */
125*8d13bc63SEmmanuel Vadot&pwm1 {
126*8d13bc63SEmmanuel Vadot	status = "okay";
127*8d13bc63SEmmanuel Vadot};
128*8d13bc63SEmmanuel Vadot
129*8d13bc63SEmmanuel Vadot/* Verdin PWM_2 */
130*8d13bc63SEmmanuel Vadot&pwm2 {
131*8d13bc63SEmmanuel Vadot	status = "okay";
132*8d13bc63SEmmanuel Vadot};
133*8d13bc63SEmmanuel Vadot
134*8d13bc63SEmmanuel Vadot/* Verdin PWM_3_DSI */
135*8d13bc63SEmmanuel Vadot&pwm3 {
136*8d13bc63SEmmanuel Vadot	status = "okay";
137*8d13bc63SEmmanuel Vadot};
138*8d13bc63SEmmanuel Vadot
139*8d13bc63SEmmanuel Vadot&reg_usdhc2_vmmc {
140*8d13bc63SEmmanuel Vadot	vin-supply = <&reg_3p3v>;
141*8d13bc63SEmmanuel Vadot};
142*8d13bc63SEmmanuel Vadot
143*8d13bc63SEmmanuel Vadot/* Verdin UART_1 */
144*8d13bc63SEmmanuel Vadot&uart1 {
145*8d13bc63SEmmanuel Vadot	status = "okay";
146*8d13bc63SEmmanuel Vadot};
147*8d13bc63SEmmanuel Vadot
148*8d13bc63SEmmanuel Vadot/* Verdin UART_2 */
149*8d13bc63SEmmanuel Vadot&uart2 {
150*8d13bc63SEmmanuel Vadot	status = "okay";
151*8d13bc63SEmmanuel Vadot};
152*8d13bc63SEmmanuel Vadot
153*8d13bc63SEmmanuel Vadot/* Verdin UART_3 */
154*8d13bc63SEmmanuel Vadot&uart3 {
155*8d13bc63SEmmanuel Vadot	status = "okay";
156*8d13bc63SEmmanuel Vadot};
157*8d13bc63SEmmanuel Vadot
158*8d13bc63SEmmanuel Vadot/* Verdin USB_1 */
159*8d13bc63SEmmanuel Vadot&usb3_0 {
160*8d13bc63SEmmanuel Vadot	status = "okay";
161*8d13bc63SEmmanuel Vadot};
162*8d13bc63SEmmanuel Vadot
163*8d13bc63SEmmanuel Vadot&usb3_phy0 {
164*8d13bc63SEmmanuel Vadot	status = "okay";
165*8d13bc63SEmmanuel Vadot};
166*8d13bc63SEmmanuel Vadot
167*8d13bc63SEmmanuel Vadot/* Verdin USB_2 */
168*8d13bc63SEmmanuel Vadot&usb3_1 {
169*8d13bc63SEmmanuel Vadot	status = "okay";
170*8d13bc63SEmmanuel Vadot};
171*8d13bc63SEmmanuel Vadot
172*8d13bc63SEmmanuel Vadot&usb3_phy1 {
173*8d13bc63SEmmanuel Vadot	status = "okay";
174*8d13bc63SEmmanuel Vadot};
175*8d13bc63SEmmanuel Vadot
176*8d13bc63SEmmanuel Vadot/* Verdin SD_1 */
177*8d13bc63SEmmanuel Vadot&usdhc2 {
178*8d13bc63SEmmanuel Vadot	status = "okay";
179*8d13bc63SEmmanuel Vadot};
180*8d13bc63SEmmanuel Vadot
181*8d13bc63SEmmanuel Vadot&iomuxc {
182*8d13bc63SEmmanuel Vadot	pinctrl_leds: ledsgrp {
183*8d13bc63SEmmanuel Vadot		fsl,pins =
184*8d13bc63SEmmanuel Vadot			<MX8MP_IOMUXC_NAND_ALE__GPIO3_IO00	0x106>, /* SODIMM 52 */
185*8d13bc63SEmmanuel Vadot			<MX8MP_IOMUXC_NAND_CE0_B__GPIO3_IO01	0x106>, /* SODIMM 54 */
186*8d13bc63SEmmanuel Vadot			<MX8MP_IOMUXC_NAND_DATA00__GPIO3_IO06	0x106>, /* SODIMM 56 */
187*8d13bc63SEmmanuel Vadot			<MX8MP_IOMUXC_NAND_DATA01__GPIO3_IO07	0x106>; /* SODIMM 58 */
188*8d13bc63SEmmanuel Vadot	};
189*8d13bc63SEmmanuel Vadot
190*8d13bc63SEmmanuel Vadot	pinctrl_tpm_cs: tpmcsgrp {
191*8d13bc63SEmmanuel Vadot		fsl,pins =
192*8d13bc63SEmmanuel Vadot			<MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16	0x82>; /* SODIMM 64 */
193*8d13bc63SEmmanuel Vadot	};
194*8d13bc63SEmmanuel Vadot
195*8d13bc63SEmmanuel Vadot	pinctrl_tpm_irq: tpmirqgrp {
196*8d13bc63SEmmanuel Vadot		fsl,pins =
197*8d13bc63SEmmanuel Vadot			<MX8MP_IOMUXC_NAND_DQS__GPIO3_IO14	0x16>; /* SODIMM 66 */
198*8d13bc63SEmmanuel Vadot	};
199*8d13bc63SEmmanuel Vadot};
200