xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/imx8mm-verdin-yavia.dtsi (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2023 Toradex
4 */
5
6#include <dt-bindings/leds/common.h>
7
8/ {
9	leds {
10		compatible = "gpio-leds";
11
12		pinctrl-names = "default";
13		pinctrl-0 = <&pinctrl_leds_yavia>;
14
15		/* SODIMM 52 - LD1_RED */
16		led-0 {
17			color = <LED_COLOR_ID_RED>;
18			function = LED_FUNCTION_DEBUG;
19			function-enumerator = <1>;
20			gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
21		};
22		/* SODIMM 54 - LD1_GREEN */
23		led-1 {
24			color = <LED_COLOR_ID_GREEN>;
25			function = LED_FUNCTION_DEBUG;
26			function-enumerator = <1>;
27			gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
28		};
29		/* SODIMM 56 - LD1_BLUE */
30		led-2 {
31			color = <LED_COLOR_ID_BLUE>;
32			function = LED_FUNCTION_DEBUG;
33			function-enumerator = <1>;
34			gpios = <&gpio3 6 GPIO_ACTIVE_HIGH>;
35		};
36		/* SODIMM 58 - LD2_RED */
37		led-3 {
38			color = <LED_COLOR_ID_RED>;
39			function = LED_FUNCTION_DEBUG;
40			function-enumerator = <2>;
41			gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>;
42		};
43		/* SODIMM 60 - LD2_GREEN */
44		led-4 {
45			color = <LED_COLOR_ID_GREEN>;
46			function = LED_FUNCTION_DEBUG;
47			function-enumerator = <2>;
48			gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
49		};
50		/* SODIMM 62 - LD2_BLUE */
51		led-5 {
52			color = <LED_COLOR_ID_BLUE>;
53			function = LED_FUNCTION_DEBUG;
54			function-enumerator = <2>;
55			gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
56		};
57	};
58};
59
60/* Verdin SPI_1 */
61&ecspi2 {
62	status = "okay";
63};
64
65/* EEPROM on display adapter boards */
66&eeprom_display_adapter {
67	status = "okay";
68};
69
70/* EEPROM on Verdin yavia board */
71&eeprom_carrier_board {
72	status = "okay";
73};
74
75&fec1 {
76	status = "okay";
77};
78
79&gpio3 {
80	pinctrl-names = "default";
81	pinctrl-0 = <&pinctrl_gpios_ext_yavia>;
82};
83
84&hwmon_temp {
85	status = "okay";
86};
87
88&i2c3 {
89	status = "okay";
90};
91
92/* Verdin I2C_1 */
93&i2c4 {
94	status = "okay";
95};
96
97/* Verdin PCIE_1 */
98&pcie0 {
99	status = "okay";
100};
101
102&pcie_phy {
103	status = "okay";
104};
105
106/* Verdin PWM_3_DSI */
107&pwm1 {
108	status = "okay";
109};
110
111/* Verdin PWM_1 */
112&pwm2 {
113	status = "okay";
114};
115
116/* Verdin PWM_2 */
117&pwm3 {
118	status = "okay";
119};
120
121/* Verdin UART_3 */
122&uart1 {
123	status = "okay";
124};
125
126/* Verdin UART_1 */
127&uart2 {
128	status = "okay";
129};
130
131/* Verdin UART_2 */
132&uart3 {
133	status = "okay";
134};
135
136/* Verdin USB_1 */
137&usbotg1 {
138	status = "okay";
139};
140
141/* Verdin USB_2 */
142&usbotg2 {
143	status = "okay";
144};
145
146/* Verdin SD_1 */
147&usdhc2 {
148	status = "okay";
149};
150
151&iomuxc {
152	pinctrl_leds_yavia: ledsyaviagrp {
153		fsl,pins = <
154			MX8MM_IOMUXC_NAND_ALE_GPIO3_IO0		0x106	/* SODIMM 52 */
155			MX8MM_IOMUXC_NAND_CE0_B_GPIO3_IO1	0x106	/* SODIMM 54 */
156			MX8MM_IOMUXC_NAND_DATA00_GPIO3_IO6	0x106	/* SODIMM 56 */
157			MX8MM_IOMUXC_NAND_DATA01_GPIO3_IO7	0x106	/* SODIMM 58 */
158			MX8MM_IOMUXC_NAND_DATA02_GPIO3_IO8	0x106	/* SODIMM 60 */
159			MX8MM_IOMUXC_NAND_DATA03_GPIO3_IO9	0x106	/* SODIMM 62 */
160		>;
161	};
162
163	pinctrl_gpios_ext_yavia: gpiosextyaviagrp {
164		fsl,pins = <
165			MX8MM_IOMUXC_NAND_CE1_B_GPIO3_IO2	0x106	/* SODIMM 64 */
166			MX8MM_IOMUXC_NAND_DQS_GPIO3_IO14	0x106	/* SODIMM 66 */
167		>;
168	};
169};
170