xref: /openbmc/linux/arch/arm64/boot/dts/ti/k3-am62-verdin-dahlia.dtsi (revision 7480cea33b4c36aeffe592eb6f151bc9974fee70)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2023 Toradex
4 *
5 * Common dtsi for Verdin AM62 SoM on Dahlia carrier board
6 *
7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62
8 * https://www.toradex.com/products/carrier-board/dahlia-carrier-board-kit
9 */
10
11/* Verdin ETHs */
12&cpsw3g {
13	status = "okay";
14};
15
16/* MDIO, shared by Verdin ETH_1 (On-module PHY) and Verdin ETH_2_RGMII */
17&cpsw3g_mdio {
18	status = "okay";
19};
20
21/* Verdin ETH_1 (On-module PHY) */
22&cpsw_port1 {
23	status = "okay";
24};
25
26/* Verdin PWM_1, PWM_2 */
27&epwm0 {
28	status = "okay";
29};
30
31/* Verdin PWM_3_DSI */
32&epwm1 {
33	status = "okay";
34};
35
36&main_gpio0 {
37	pinctrl-names = "default";
38	pinctrl-0 = <&pinctrl_ctrl_sleep_moci>,
39		    <&pinctrl_gpio_5>,
40		    <&pinctrl_gpio_6>,
41		    <&pinctrl_gpio_7>,
42		    <&pinctrl_gpio_8>;
43};
44
45/* Verdin I2C_1 */
46&main_i2c1 {
47	status = "okay";
48
49	/* Current measurement into module VCC */
50	hwmon@40 {
51		compatible = "ti,ina219";
52		reg = <0x40>;
53		shunt-resistor = <10000>;
54	};
55
56	/* Temperature sensor */
57	sensor@4f {
58		compatible = "ti,tmp75c";
59		reg = <0x4f>;
60	};
61
62	/* EEPROM */
63	eeprom@57 {
64		compatible = "st,24c02";
65		reg = <0x57>;
66		pagesize = <16>;
67	};
68};
69
70/* Verdin I2C_2_DSI */
71&main_i2c2 {
72	status = "okay";
73};
74
75/* Verdin I2C_4_CSI */
76&main_i2c3 {
77	status = "okay";
78};
79
80/* Verdin CAN_1 */
81&main_mcan0 {
82	status = "okay";
83};
84
85/* Verdin SPI_1 */
86&main_spi1 {
87	status = "okay";
88};
89
90/* Verdin UART_3 */
91&main_uart0 {
92	status = "okay";
93};
94
95/* Verdin UART_1 */
96&main_uart1 {
97	status = "okay";
98};
99
100/* Verdin I2S_1 */
101&mcasp0 {
102	status = "okay";
103};
104
105&mcu_gpio0 {
106	pinctrl-names = "default";
107	pinctrl-0 = <&pinctrl_gpio_1>,
108		    <&pinctrl_gpio_2>,
109		    <&pinctrl_gpio_3>,
110		    <&pinctrl_gpio_4>;
111};
112
113/* Verdin I2C_3_HDMI */
114&mcu_i2c0 {
115	status = "okay";
116};
117
118/* Verdin CAN_2 */
119&mcu_mcan0 {
120	status = "okay";
121};
122
123/* Verdin UART_4 */
124&mcu_uart0 {
125	status = "okay";
126};
127
128/* Verdin QSPI_1 */
129&ospi0 {
130	status = "okay";
131};
132
133/* Verdin SD_1 */
134&sdhci1 {
135	ti,driver-strength-ohm = <33>;
136	status = "okay";
137};
138
139/* Verdin USB_1 */
140&usbss0 {
141	status = "okay";
142};
143
144&usb0 {
145	status = "okay";
146};
147
148/* Verdin USB_2 */
149&usbss1 {
150	status = "okay";
151};
152
153&usb1 {
154	status = "okay";
155};
156
157/* Verdin CTRL_WAKE1_MICO# */
158&verdin_gpio_keys {
159	status = "okay";
160};
161
162/* Verdin UART_2 */
163&wkup_uart0 {
164	/* FIXME: WKUP UART0 is used by DM firmware */
165	status = "reserved";
166};
167