xref: /linux/arch/arm64/boot/dts/freescale/imx8mm-verdin-yavia.dtsi (revision 24168c5e6dfbdd5b414f048f47f75d64533296ca)
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&gpio5 {
85	pinctrl-names = "default";
86	pinctrl-0 = <&pinctrl_ctrl_sleep_moci>;
87};
88
89&hwmon_temp {
90	status = "okay";
91};
92
93&i2c3 {
94	status = "okay";
95};
96
97/* Verdin I2C_1 */
98&i2c4 {
99	status = "okay";
100};
101
102/* Verdin PCIE_1 */
103&pcie0 {
104	status = "okay";
105};
106
107&pcie_phy {
108	status = "okay";
109};
110
111/* Verdin PWM_3_DSI */
112&pwm1 {
113	status = "okay";
114};
115
116/* Verdin PWM_1 */
117&pwm2 {
118	status = "okay";
119};
120
121/* Verdin PWM_2 */
122&pwm3 {
123	status = "okay";
124};
125
126/* Verdin UART_3 */
127&uart1 {
128	status = "okay";
129};
130
131/* Verdin UART_1 */
132&uart2 {
133	status = "okay";
134};
135
136/* Verdin UART_2 */
137&uart3 {
138	status = "okay";
139};
140
141/* Verdin USB_1 */
142&usbotg1 {
143	status = "okay";
144};
145
146/* Verdin USB_2 */
147&usbotg2 {
148	status = "okay";
149};
150
151/* Verdin SD_1 */
152&usdhc2 {
153	status = "okay";
154};
155
156&iomuxc {
157	pinctrl_leds_yavia: ledsyaviagrp {
158		fsl,pins = <
159			MX8MM_IOMUXC_NAND_ALE_GPIO3_IO0		0x106	/* SODIMM 52 */
160			MX8MM_IOMUXC_NAND_CE0_B_GPIO3_IO1	0x106	/* SODIMM 54 */
161			MX8MM_IOMUXC_NAND_DATA00_GPIO3_IO6	0x106	/* SODIMM 56 */
162			MX8MM_IOMUXC_NAND_DATA01_GPIO3_IO7	0x106	/* SODIMM 58 */
163			MX8MM_IOMUXC_NAND_DATA02_GPIO3_IO8	0x106	/* SODIMM 60 */
164			MX8MM_IOMUXC_NAND_DATA03_GPIO3_IO9	0x106	/* SODIMM 62 */
165		>;
166	};
167
168	pinctrl_gpios_ext_yavia: gpiosextyaviagrp {
169		fsl,pins = <
170			MX8MM_IOMUXC_NAND_CE1_B_GPIO3_IO2	0x106	/* SODIMM 64 */
171			MX8MM_IOMUXC_NAND_DQS_GPIO3_IO14	0x106	/* SODIMM 66 */
172		>;
173	};
174};
175