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