| 1 |
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
| 2 |
/* |
| 3 |
* Copyright 2025 Toradex |
| 4 |
* |
| 5 |
* Common dtsi for Verdin AM62P SoM on Yavia carrier board |
| 6 |
* |
| 7 |
* https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62p |
| 8 |
* https://www.toradex.com/products/carrier-board/yavia |
| 9 |
*/ |
| 10 |
|
| 11 |
#include <dt-bindings/leds/common.h> |
| 12 |
|
| 13 |
/ { |
| 14 |
aliases { |
| 15 |
eeprom1 = &carrier_eeprom; |
| 16 |
}; |
| 17 |
|
| 18 |
leds { |
| 19 |
compatible = "gpio-leds"; |
| 20 |
pinctrl-names = "default"; |
| 21 |
pinctrl-0 = <&pinctrl_qspi1_clk_gpio>, |
| 22 |
<&pinctrl_qspi1_cs_gpio>, |
| 23 |
<&pinctrl_qspi1_io0_gpio>, |
| 24 |
<&pinctrl_qspi1_io1_gpio>, |
| 25 |
<&pinctrl_qspi1_io2_gpio>, |
| 26 |
<&pinctrl_qspi1_io3_gpio>; |
| 27 |
|
| 28 |
/* SODIMM 52 - LD1_RED */ |
| 29 |
led-0 { |
| 30 |
color = <LED_COLOR_ID_RED>; |
| 31 |
function = LED_FUNCTION_DEBUG; |
| 32 |
function-enumerator = <1>; |
| 33 |
gpios = <&main_gpio0 0 GPIO_ACTIVE_HIGH>; |
| 34 |
}; |
| 35 |
|
| 36 |
/* SODIMM 54 - LD1_GREEN */ |
| 37 |
led-1 { |
| 38 |
color = <LED_COLOR_ID_GREEN>; |
| 39 |
function = LED_FUNCTION_DEBUG; |
| 40 |
function-enumerator = <1>; |
| 41 |
gpios = <&main_gpio0 11 GPIO_ACTIVE_HIGH>; |
| 42 |
}; |
| 43 |
|
| 44 |
/* SODIMM 56 - LD1_BLUE */ |
| 45 |
led-2 { |
| 46 |
color = <LED_COLOR_ID_BLUE>; |
| 47 |
function = LED_FUNCTION_DEBUG; |
| 48 |
function-enumerator = <1>; |
| 49 |
gpios = <&main_gpio0 3 GPIO_ACTIVE_HIGH>; |
| 50 |
}; |
| 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 = <&main_gpio0 4 GPIO_ACTIVE_HIGH>; |
| 58 |
}; |
| 59 |
|
| 60 |
/* SODIMM 60 - LD2_GREEN */ |
| 61 |
led-4 { |
| 62 |
color = <LED_COLOR_ID_GREEN>; |
| 63 |
function = LED_FUNCTION_DEBUG; |
| 64 |
function-enumerator = <2>; |
| 65 |
gpios = <&main_gpio0 5 GPIO_ACTIVE_HIGH>; |
| 66 |
}; |
| 67 |
|
| 68 |
/* SODIMM 62 - LD2_BLUE */ |
| 69 |
led-5 { |
| 70 |
color = <LED_COLOR_ID_BLUE>; |
| 71 |
function = LED_FUNCTION_DEBUG; |
| 72 |
function-enumerator = <2>; |
| 73 |
gpios = <&main_gpio0 6 GPIO_ACTIVE_HIGH>; |
| 74 |
}; |
| 75 |
}; |
| 76 |
}; |
| 77 |
|
| 78 |
/* Verdin ETHs */ |
| 79 |
&cpsw3g { |
| 80 |
status = "okay"; |
| 81 |
}; |
| 82 |
|
| 83 |
/* MDIO, shared by Verdin ETH_1 (On-module PHY) and Verdin ETH_2_RGMII */ |
| 84 |
&cpsw3g_mdio { |
| 85 |
status = "okay"; |
| 86 |
}; |
| 87 |
|
| 88 |
/* Verdin ETH_1 (On-module PHY) */ |
| 89 |
&cpsw_port1 { |
| 90 |
status = "okay"; |
| 91 |
}; |
| 92 |
|
| 93 |
/* Verdin PWM_3_DSI */ |
| 94 |
&epwm0 { |
| 95 |
status = "okay"; |
| 96 |
}; |
| 97 |
|
| 98 |
/* Verdin PWM_1, PWM_2 */ |
| 99 |
&epwm2 { |
| 100 |
status = "okay"; |
| 101 |
}; |
| 102 |
|
| 103 |
&main_gpio0 { |
| 104 |
pinctrl-names = "default"; |
| 105 |
pinctrl-0 = <&pinctrl_pcie_1_reset>, |
| 106 |
<&pinctrl_qspi1_cs2_gpio>, |
| 107 |
<&pinctrl_qspi1_dqs_gpio>, |
| 108 |
<&pinctrl_gpio_5>, |
| 109 |
<&pinctrl_gpio_6>, |
| 110 |
<&pinctrl_gpio_7>, |
| 111 |
<&pinctrl_gpio_8>; |
| 112 |
}; |
| 113 |
|
| 114 |
/* Verdin I2C_1 */ |
| 115 |
&main_i2c0 { |
| 116 |
status = "okay"; |
| 117 |
|
| 118 |
temperature-sensor@4f { |
| 119 |
compatible = "ti,tmp75c"; |
| 120 |
reg = <0x4f>; |
| 121 |
}; |
| 122 |
|
| 123 |
carrier_eeprom: eeprom@57 { |
| 124 |
compatible = "st,24c02", "atmel,24c02"; |
| 125 |
reg = <0x57>; |
| 126 |
pagesize = <16>; |
| 127 |
}; |
| 128 |
}; |
| 129 |
|
| 130 |
/* Verdin I2C_2_DSI */ |
| 131 |
&main_i2c1 { |
| 132 |
status = "okay"; |
| 133 |
}; |
| 134 |
|
| 135 |
/* Verdin I2C_4_CSI */ |
| 136 |
&main_i2c3 { |
| 137 |
status = "okay"; |
| 138 |
}; |
| 139 |
|
| 140 |
/* Verdin CAN_1 */ |
| 141 |
&main_mcan0 { |
| 142 |
status = "okay"; |
| 143 |
}; |
| 144 |
|
| 145 |
/* Verdin SPI_1 */ |
| 146 |
&main_spi1 { |
| 147 |
status = "okay"; |
| 148 |
}; |
| 149 |
|
| 150 |
/* Verdin UART_3, used as the Linux console */ |
| 151 |
&main_uart0 { |
| 152 |
status = "okay"; |
| 153 |
}; |
| 154 |
|
| 155 |
/* Verdin UART_1 */ |
| 156 |
&main_uart1 { |
| 157 |
status = "okay"; |
| 158 |
}; |
| 159 |
|
| 160 |
&mcu_gpio0 { |
| 161 |
pinctrl-names = "default"; |
| 162 |
pinctrl-0 = <&pinctrl_gpio_1>, |
| 163 |
<&pinctrl_gpio_2>, |
| 164 |
<&pinctrl_gpio_3>, |
| 165 |
<&pinctrl_gpio_4>; |
| 166 |
}; |
| 167 |
|
| 168 |
/* Verdin I2C_3_HDMI */ |
| 169 |
&mcu_i2c0 { |
| 170 |
status = "okay"; |
| 171 |
}; |
| 172 |
|
| 173 |
/* Verdin CAN_2 */ |
| 174 |
&mcu_mcan0 { |
| 175 |
status = "okay"; |
| 176 |
}; |
| 177 |
|
| 178 |
/* Verdin UART_4 */ |
| 179 |
&mcu_uart0 { |
| 180 |
status = "okay"; |
| 181 |
}; |
| 182 |
|
| 183 |
/* Verdin SD_1 */ |
| 184 |
&sdhci1 { |
| 185 |
status = "okay"; |
| 186 |
}; |
| 187 |
|
| 188 |
/* Verdin USB_1 */ |
| 189 |
&usbss0 { |
| 190 |
status = "okay"; |
| 191 |
}; |
| 192 |
|
| 193 |
&usb0 { |
| 194 |
status = "okay"; |
| 195 |
}; |
| 196 |
|
| 197 |
/* Verdin USB_2 */ |
| 198 |
&usbss1 { |
| 199 |
status = "okay"; |
| 200 |
}; |
| 201 |
|
| 202 |
&usb1 { |
| 203 |
status = "okay"; |
| 204 |
}; |
| 205 |
|
| 206 |
/* Verdin CTRL_WAKE1_MICO# */ |
| 207 |
&verdin_gpio_keys { |
| 208 |
status = "okay"; |
| 209 |
}; |
| 210 |
|
| 211 |
/* Verdin PCIE_1_RESET# */ |
| 212 |
&verdin_pcie_1_reset_hog { |
| 213 |
status = "okay"; |
| 214 |
}; |
| 215 |
|
| 216 |
/* Verdin UART_2 */ |
| 217 |
&wkup_uart0 { |
| 218 |
status = "okay"; |
| 219 |
}; |