224 lines
3.6 KiB
Devicetree
224 lines
3.6 KiB
Devicetree
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
/*
|
|
* Copyright (c) Toradex
|
|
*
|
|
* Common dtsi for Verdin iMX95 SoM on Mallow carrier board
|
|
*
|
|
* https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx95
|
|
* https://www.toradex.com/products/carrier-board/mallow-carrier-board
|
|
*/
|
|
|
|
#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>;
|
|
|
|
/* SODIMM 52 - USER_LED_1_RED */
|
|
led-0 {
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_DEBUG;
|
|
function-enumerator = <1>;
|
|
gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
/* SODIMM 54 - USER_LED_1_GREEN */
|
|
led-1 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_DEBUG;
|
|
function-enumerator = <1>;
|
|
gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
/* SODIMM 56 - USER_LED_2_RED */
|
|
led-2 {
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_DEBUG;
|
|
function-enumerator = <2>;
|
|
gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
/* SODIMM 58 - USER_LED_2_GREEN */
|
|
led-3 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_DEBUG;
|
|
function-enumerator = <2>;
|
|
gpios = <&gpio5 1 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>;
|
|
};
|
|
|
|
/* 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,tmp1075";
|
|
reg = <0x4f>;
|
|
};
|
|
|
|
carrier_eeprom: eeprom@57 {
|
|
compatible = "st,24c02", "atmel,24c02";
|
|
reg = <0x57>;
|
|
pagesize = <16>;
|
|
};
|
|
};
|
|
|
|
/* Verdin I2C_4_CSI */
|
|
&lpi2c5 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Verdin SPI_1 */
|
|
&lpspi6 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_lpspi6>,
|
|
<&pinctrl_spi1_cs>,
|
|
<&pinctrl_qspi1_cs2_gpio>;
|
|
cs-gpios = <&gpio4 29 GPIO_ACTIVE_LOW>,
|
|
<&som_gpio_expander 13 GPIO_ACTIVE_LOW>,
|
|
<&gpio5 11 GPIO_ACTIVE_LOW>;
|
|
|
|
tpm@2 {
|
|
compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
|
|
reg = <2>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_qspi1_dqs_gpio>;
|
|
interrupt-parent = <&gpio5>;
|
|
interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
|
|
spi-max-frequency = <18500000>;
|
|
};
|
|
};
|
|
|
|
/* 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";
|
|
};
|