218 lines
3.5 KiB
Devicetree
218 lines
3.5 KiB
Devicetree
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
/*
|
|
* Copyright (c) Toradex
|
|
*
|
|
* Common dtsi for Verdin iMX95 SoM on Yavia carrier board
|
|
*
|
|
* https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx95
|
|
* https://www.toradex.com/products/carrier-board/yavia
|
|
*/
|
|
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
/ {
|
|
aliases {
|
|
eeprom1 = &carrier_eeprom;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_qspi1_clk_gpio>,
|
|
<&pinctrl_qspi1_cs_gpio>,
|
|
<&pinctrl_qspi1_io0_gpio>,
|
|
<&pinctrl_qspi1_io1_gpio>,
|
|
<&pinctrl_qspi1_io2_gpio>,
|
|
<&pinctrl_qspi1_io3_gpio>;
|
|
|
|
/* SODIMM 52 - LD1_RED */
|
|
led-0 {
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_DEBUG;
|
|
function-enumerator = <1>;
|
|
gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
/* SODIMM 54 - LD1_GREEN */
|
|
led-1 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_DEBUG;
|
|
function-enumerator = <1>;
|
|
gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
/* SODIMM 56 - LD1_BLUE */
|
|
led-2 {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_DEBUG;
|
|
function-enumerator = <1>;
|
|
gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
/* SODIMM 58 - LD2_RED */
|
|
led-3 {
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_DEBUG;
|
|
function-enumerator = <2>;
|
|
gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
/* SODIMM 60 - LD2_GREEN */
|
|
led-4 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_DEBUG;
|
|
function-enumerator = <2>;
|
|
gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
/* SODIMM 62 - LD2_BLUE */
|
|
led-5 {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_DEBUG;
|
|
function-enumerator = <2>;
|
|
gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
/* Verdin ADC_1, ADC_2, ADC_3 and ADC_4 */
|
|
&adc1 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin ETH_1 (On-module PHY) */
|
|
&enetc_port0 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin CAN_1 */
|
|
&flexcan1 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin CAN_2 */
|
|
&flexcan2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio1 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_ctrl_sleep_moci>;
|
|
};
|
|
|
|
&gpio2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_gpio1>,
|
|
<&pinctrl_gpio2>,
|
|
<&pinctrl_gpio3>;
|
|
};
|
|
|
|
&gpio3 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_gpio6>;
|
|
};
|
|
|
|
&gpio4 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_gpio5>;
|
|
};
|
|
|
|
&gpio5 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_gpio4>,
|
|
<&pinctrl_qspi1_cs2_gpio>,
|
|
<&pinctrl_qspi1_dqs_gpio>;
|
|
};
|
|
|
|
/* Verdin I2C_3_HDMI */
|
|
&i3c2 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin I2C_2_DSI */
|
|
&lpi2c3 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin I2C_1 */
|
|
&lpi2c4 {
|
|
status = "okay";
|
|
|
|
temperature-sensor@4f {
|
|
compatible = "ti,tmp75c";
|
|
reg = <0x4f>;
|
|
};
|
|
|
|
carrier_eeprom: eeprom@57 {
|
|
compatible = "st,24c02", "atmel,24c02";
|
|
reg = <0x57>;
|
|
pagesize = <16>;
|
|
};
|
|
};
|
|
|
|
/* Verdin I2C_4_CSI */
|
|
&lpi2c5 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin UART_3, used as the Linux console */
|
|
&lpuart1 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin UART_4 */
|
|
&lpuart2 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin UART_1 */
|
|
&lpuart7 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin UART_2 */
|
|
&lpuart8 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin PCIE_1 */
|
|
&pcie0 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin PWM_1 */
|
|
&tpm4 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin PWM_2 */
|
|
&tpm5 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin PWM_3_DSI */
|
|
&tpm6 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin USB_1 */
|
|
&usb2 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin USB_2 */
|
|
&usb3 {
|
|
fsl,permanently-attached;
|
|
|
|
status = "okay";
|
|
};
|
|
|
|
&usb3_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin SD_1 */
|
|
&usdhc2 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin CTRL_WAKE1_MICO# */
|
|
&verdin_gpio_keys {
|
|
status = "okay";
|
|
};
|