xref: /linux/arch/arm64/boot/dts/freescale/imx8mp-verdin-yavia.dtsi (revision 90d32e92011eaae8e70a9169b4e7acf4ca8f9d3a)
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	/* Carrier Board Supply +V1.8 */
10	reg_1p8v: regulator-1p8v {
11		compatible = "regulator-fixed";
12		regulator-max-microvolt = <1800000>;
13		regulator-min-microvolt = <1800000>;
14		regulator-name = "+V1.8_SW";
15	};
16
17	/* Carrier Board Supply +V3.3 */
18	reg_3p3v: regulator-3p3v {
19		compatible = "regulator-fixed";
20		regulator-max-microvolt = <3300000>;
21		regulator-min-microvolt = <3300000>;
22		regulator-name = "+V3.3_SW";
23	};
24
25	leds {
26		compatible = "gpio-leds";
27
28		pinctrl-names = "default";
29		pinctrl-0 = <&pinctrl_leds_yavia>;
30
31		/* SODIMM 52 - LD1_RED */
32		led-0 {
33			color = <LED_COLOR_ID_RED>;
34			function = LED_FUNCTION_DEBUG;
35			function-enumerator = <1>;
36			gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
37		};
38		/* SODIMM 54 - LD1_GREEN */
39		led-1 {
40			color = <LED_COLOR_ID_GREEN>;
41			function = LED_FUNCTION_DEBUG;
42			function-enumerator = <1>;
43			gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
44		};
45		/* SODIMM 56 - LD1_BLUE */
46		led-2 {
47			color = <LED_COLOR_ID_BLUE>;
48			function = LED_FUNCTION_DEBUG;
49			function-enumerator = <1>;
50			gpios = <&gpio3 6 GPIO_ACTIVE_HIGH>;
51		};
52		/* SODIMM 58 - LD2_RED */
53		led-3 {
54			color = <LED_COLOR_ID_RED>;
55			function = LED_FUNCTION_DEBUG;
56			function-enumerator = <2>;
57			gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>;
58		};
59		/* SODIMM 60 - LD2_GREEN */
60		led-4 {
61			color = <LED_COLOR_ID_GREEN>;
62			function = LED_FUNCTION_DEBUG;
63			function-enumerator = <2>;
64			gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
65		};
66		/* SODIMM 62 - LD2_BLUE */
67		led-5 {
68			color = <LED_COLOR_ID_BLUE>;
69			function = LED_FUNCTION_DEBUG;
70			function-enumerator = <2>;
71			gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
72		};
73	};
74};
75
76&backlight {
77	power-supply = <&reg_3p3v>;
78};
79
80/* Verdin SPI_1 */
81&ecspi1 {
82	status = "okay";
83};
84
85/* EEPROM on display adapter boards */
86&eeprom_display_adapter {
87	status = "okay";
88};
89
90/* EEPROM on Verdin Yavia board */
91&eeprom_carrier_board {
92	status = "okay";
93};
94
95&eqos {
96	status = "okay";
97};
98
99&flexcan1 {
100	status = "okay";
101};
102
103&gpio4 {
104	pinctrl-names = "default";
105	pinctrl-0 = <&pinctrl_ctrl_sleep_moci>;
106};
107
108&hwmon_temp {
109	status = "okay";
110};
111
112/* Verdin I2C_2_DSI */
113&i2c2 {
114	status = "okay";
115};
116
117&i2c3 {
118	status = "okay";
119};
120
121&i2c4 {
122	status = "okay";
123};
124
125/* Verdin I2C_3_HDMI */
126&i2c5 {
127	status = "okay";
128};
129
130/* Verdin PCIE_1 */
131&pcie {
132	status = "okay";
133};
134
135&pcie_phy {
136	status = "okay";
137};
138
139/* Verdin PWM_1 */
140&pwm1 {
141	status = "okay";
142};
143
144/* Verdin PWM_2 */
145&pwm2 {
146	status = "okay";
147};
148
149/* Verdin PWM_3_DSI */
150&pwm3 {
151	status = "okay";
152};
153
154&reg_usdhc2_vmmc {
155	vin-supply = <&reg_3p3v>;
156};
157
158/* Verdin UART_1 */
159&uart1 {
160	status = "okay";
161};
162
163/* Verdin UART_2 */
164&uart2 {
165	status = "okay";
166};
167
168/* Verdin UART_3, used as the Linux Console */
169&uart3 {
170	status = "okay";
171};
172
173/* Verdin USB_1 */
174&usb3_phy0 {
175	status = "okay";
176};
177
178&usb3_0 {
179	status = "okay";
180};
181
182&usb_dwc3_0 {
183	status = "okay";
184};
185
186/* Verdin USB_2 */
187&usb3_phy1 {
188	status = "okay";
189};
190
191&usb3_1 {
192	status = "okay";
193};
194
195&usb_dwc3_1 {
196	status = "okay";
197};
198
199/* Verdin SD_1 */
200&usdhc2 {
201	status = "okay";
202};
203
204&iomuxc {
205	pinctrl_leds_yavia: ledsyaviagrp {
206		fsl,pins = <
207			MX8MP_IOMUXC_NAND_ALE__GPIO3_IO00	0x106	/* SODIMM 52 */
208			MX8MP_IOMUXC_NAND_CE0_B__GPIO3_IO01	0x106	/* SODIMM 54 */
209			MX8MP_IOMUXC_NAND_DATA00__GPIO3_IO06	0x106	/* SODIMM 56 */
210			MX8MP_IOMUXC_NAND_DATA01__GPIO3_IO07	0x106	/* SODIMM 58 */
211			MX8MP_IOMUXC_NAND_DATA02__GPIO3_IO08	0x106	/* SODIMM 60 */
212			MX8MP_IOMUXC_NAND_DATA03__GPIO3_IO09	0x106	/* SODIMM 62 */
213		>;
214	};
215
216	pinctrl_gpios_ext_yavia: gpiosextyaviagrp {
217		fsl,pins = <
218			MX8MP_IOMUXC_NAND_CE1_B__GPIO3_IO02	0x106	/* SODIMM 64 */
219			MX8MP_IOMUXC_NAND_DQS__GPIO3_IO14	0x106	/* SODIMM 66 */
220		>;
221	};
222};
223