1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2022 Toradex
4 */
5
6/ {
7	/* TODO: Audio Codec */
8
9	reg_eth2phy: regulator-eth2phy {
10		compatible = "regulator-fixed";
11		enable-active-high;
12		gpio = <&gpio_expander_21 4 GPIO_ACTIVE_HIGH>; /* ETH_PWR_EN */
13		off-on-delay-us = <500000>;
14		regulator-max-microvolt = <3300000>;
15		regulator-min-microvolt = <3300000>;
16		regulator-name = "+V3.3_ETH";
17		startup-delay-us = <200000>;
18		vin-supply = <&reg_3p3v>;
19	};
20};
21
22&backlight {
23	power-supply = <&reg_3p3v>;
24};
25
26/* Verdin SPI_1 */
27&ecspi1 {
28	status = "okay";
29};
30
31/* EEPROM on display adapter boards */
32&eeprom_display_adapter {
33	status = "okay";
34};
35
36/* EEPROM on Verdin Development board */
37&eeprom_carrier_board {
38	status = "okay";
39};
40
41&eqos {
42	status = "okay";
43};
44
45&fec {
46	phy-supply = <&reg_eth2phy>;
47	status = "okay";
48};
49
50&flexcan1 {
51	status = "okay";
52};
53
54&flexcan2 {
55	status = "okay";
56};
57
58/* Verdin QSPI_1 */
59&flexspi {
60	status = "okay";
61};
62
63&gpio_expander_21 {
64	status = "okay";
65	vcc-supply = <&reg_1p8v>;
66};
67
68/* Current measurement into module VCC */
69&hwmon {
70	status = "okay";
71};
72
73&hwmon_temp {
74	vs-supply = <&reg_1p8v>;
75	status = "okay";
76};
77
78/* Verdin I2C_2_DSI */
79&i2c2 {
80	status = "okay";
81};
82
83&i2c3 {
84	status = "okay";
85};
86
87/* Verdin I2C_1 */
88&i2c4 {
89	status = "okay";
90
91	/* TODO: Audio Codec */
92};
93
94/* TODO: Verdin PCIE_1 */
95
96/* Verdin PWM_1 */
97&pwm1 {
98	status = "okay";
99};
100
101/* Verdin PWM_2 */
102&pwm2 {
103	status = "okay";
104};
105
106/* Verdin PWM_3_DSI */
107&pwm3 {
108	status = "okay";
109};
110
111&reg_usdhc2_vmmc {
112	vin-supply = <&reg_3p3v>;
113};
114
115/* TODO: Verdin I2C_1 with Audio Codec */
116
117/* Verdin UART_1, connector X50 through RS485 transceiver */
118&uart1 {
119	linux,rs485-enabled-at-boot-time;
120	rs485-rts-active-low;
121	rs485-rx-during-tx;
122	status = "okay";
123};
124
125/* Verdin UART_2 */
126&uart2 {
127	status = "okay";
128};
129
130/* Verdin UART_3, used as the Linux Console */
131&uart3 {
132	status = "okay";
133};
134
135/* Verdin USB_1 */
136&usb3_0 {
137	status = "okay";
138};
139
140&usb3_phy0 {
141	status = "okay";
142};
143
144/* Verdin USB_2 */
145&usb3_1 {
146	fsl,permanently-attached;
147	status = "okay";
148};
149
150&usb3_phy1 {
151	status = "okay";
152};
153
154/* Limit frequency on dev board due to long traces and bad signal integrity */
155&usdhc2 {
156	max-frequency = <100000000>;
157	status = "okay";
158};
159