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