This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: How to add LAN9374 with AM625 in kernel

Part Number: AM625


Tool/software:

Dear all,

we are trying to add LAN9374 6 port ethernet switch to interface with the RGMII2. we have connected the spi0 of the am625 to the lan9374.

in device tree under spi0 we have added a node for the lan9374. i have attached my device tree with this file.

the issue is that when it boots , we are getting error as unsupported KSZ-switch detected with chip id ffffff00.

we have enabled micrel as * and DSA->MICROCHIP as M[only M is possible] in kernel menuconfig.

the SPI lines seems to be fine, as other devices on the spi is working

kindly suggest me a way to make it work.

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
 * Copyright 2023 Toradex
 *
 * Common dtsi for Verdin AM62 SoM
 *
 * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62
 */

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/net/ti-dp83867.h>

/ {
	chosen {
		stdout-path = "serial2:115200n8";
	};

	aliases {
		ethernet0 = &cpsw_port1;
		ethernet1 = &cpsw_port2;
		i2c0 = &main_i2c0;
		i2c1 = &main_i2c1;
		mmc0 = &sdhci0;
		mmc1 = &sdhci1;
		mmc2 = &sdhci2;
		rtc0 = &rtc_i2c;
		rtc1 = &wkup_rtc0;
		serial0 = &main_uart1;
		serial1 = &wkup_uart0;
		serial2 = &main_uart0;
		serial3 = &main_uart2;
		serial4 = &main_uart5;
		serial5 = &main_uart3;
		serial6 = &main_uart4;
		serial7 = &main_uart6;
		usb0 = &usb0;
	};

	connector {
		compatible = "gpio-usb-b-connector", "usb-b-connector";
		label = "USB_1";
		self-powered;
		vbus-supply = <&reg_usb0_vbus>;

		port {
			usb_dr_connector: endpoint {
				remote-endpoint = <&usb0_ep>;
			};
		};
	};

	verdin_gpio_keys: gpio-keys {
		compatible = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_ctrl_wake1_mico>;
		status = "disabled";

		verdin_key_wakeup: key-wakeup {
			debounce-interval = <10>;
			/* Verdin CTRL_WAKE1_MICO# (SODIMM 252) */
			gpios = <&main_gpio0 32 GPIO_ACTIVE_LOW>;
			interrupt-names = "wakeup";
			interrupts-extended = <&main_pmx0 0x0084>;
			label = "Wake-Up";
			linux,code = <KEY_WAKEUP>;
			wakeup-source;
		};
	};

	memory@80000000 {
		device_type = "memory";
		reg = <0x00000000 0x80000000 0x00000000 0x40000000>; /* 1G RAM */
	};

	opp-table {
		/* Add 1.4GHz OPP. Requires VDD_CORE to be at 0.85V */
		opp-1400000000 {
			opp-hz = /bits/ 64 <1400000000>;
			opp-supported-hw = <0x01 0x0004>;
			clock-latency-ns = <6000000>;
		};
	};

	/* Module Power Supply */
	reg_vsodimm: regulator-vsodimm {
		compatible = "regulator-fixed";
		regulator-name = "+V_SODIMM";
	};

	/* Non PMIC On-module Supplies */
	reg_3v3: regulator-3v3 {
		compatible = "regulator-fixed";
		regulator-max-microvolt = <3300000>;
		regulator-min-microvolt = <3300000>;
		regulator-name = "On-module +V3.3";
		vin-supply = <&reg_vsodimm>;
	};

	reg_1v2_dsi: regulator-1v2-dsi {
		compatible = "regulator-fixed";
		regulator-max-microvolt = <1200000>;
		regulator-min-microvolt = <1200000>;
		regulator-name = "On-module +V1.2_DSI";
		vin-supply = <&reg_1v8>;
	};

	/* Enabled by +V1.2_DSI */
	reg_1v8_dsi: regulator-1v8-dsi {
		compatible = "regulator-fixed";
		regulator-max-microvolt = <1800000>;
		regulator-min-microvolt = <1800000>;
		regulator-name = "On-module +V1.8_DSI";
		vin-supply = <&reg_1v8>;
	};

	/* Enabled by +V2.5_ETH */
	reg_1v0_eth: regulator-1v0-eth {
		compatible = "regulator-fixed";
		regulator-max-microvolt = <1000000>;
		regulator-min-microvolt = <1000000>;
		regulator-name = "On-module +V1.0_ETH";
		vin-supply = <&reg_1v8>;
	};

	/* Enabled by +V2.5_ETH */
	reg_1v8_eth: regulator-1v8-eth {
		compatible = "regulator-fixed";
		regulator-max-microvolt = <1800000>;
		regulator-min-microvolt = <1800000>;
		regulator-name = "On-module +V1.8_ETH";
		vin-supply = <&reg_1v8>;
	};

	reg_usb0_vbus: regulator-usb0-vbus {
		compatible = "regulator-fixed";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_usb0_en>;
		enable-active-high;
		/* Verdin USB_1_EN (SODIMM 155) */
		gpio = <&main_gpio1 50 GPIO_ACTIVE_HIGH>;
		regulator-max-microvolt = <5000000>;
		regulator-min-microvolt = <5000000>;
		regulator-name = "USB_1_EN";
	};

	reserved-memory {
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;

		secure_tfa_ddr: tfa@9e780000 {
			reg = <0x00 0x9e780000 0x00 0x80000>;
			alignment = <0x1000>;
			no-map;
		};

		secure_ddr: optee@9e800000 {
			reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
			alignment = <0x1000>;
			no-map;
		};

		wkup_r5fss0_core0_memory_region: r5f-memory@9db00000 {
			compatible = "shared-dma-pool";
			reg = <0x00 0x9db00000 0x00 0x00c00000>;
			no-map;
		};
	};
};

&main_pmx0 {

		/* verdin GPIO0 _1 */
	pinctrl_gpio_15: main-gpio0-1-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0004, PIN_INPUT, 7) /* (G25) OSPI0_LBCLKO.GPIO0_1 */
		>;
	};
	
			/* Verdin GPIO0 _11 */
	pinctrl_gpio_16: main-gpio0-11-pins-default {
				pinctrl-single,pins = <
		AM62X_IOPAD(0x002c, PIN_INPUT_PULLUP, 7) /* (F23) OSPI0_CSn0.GPIO0_11 */ /* SODIMM 54 */
		>;
	};
	
	pinctrl_gpio_17: main-gpio0-12-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0030, PIN_INPUT, 7) /* (G21) OSPI0_CSn1.GPIO0_12 */ /* SODIMM 64 */
		>;
	};
	
	pinctrl_gpio_18: main-gpio0-13-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0034, PIN_INPUT, 7) /* (H21) OSPI0_CSn2.GPIO0_13 */
		>;
	};
	
	pinctrl_gpio_19: main-gpio0-14-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0038, PIN_INPUT, 7) /* (E24) OSPI0_CSn3.GPIO0_14 */
		>;
	};
	
	pinctrl_gpio_20: main-gpio0-29-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0074, PIN_INPUT, 7) /* (U25) GPMC0_AD14.GPIO0_29 */
		>;
	};
	
	pinctrl_gpio_21: main-gpio0-33-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0088, PIN_INPUT, 7) /* (L24) GPMC0_OEn_REn.GPIO0_33 */
		>;
	};
	
	pinctrl_gpio_22: main-gpio0-34-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x008c, PIN_INPUT, 7) /* (L25) GPMC0_WEn.GPIO0_34 */
		>;
	};
	
	pinctrl_gpio_23: main-gpio0-35-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0090, PIN_INPUT, 7) /* (M24) GPMC0_BE0n_CLE.GPIO0_35 */
		>;
	};
	

	pinctrl_gpio_24: main-gpio0-37-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0098, PIN_INPUT, 7) /* (U23) GPMC0_WAIT0.GPIO0_37 */
		>;
	};
	
	pinctrl_gpio_27: main-gpio0-72-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0128, PIN_INPUT, 7) /* (B23) MMC2_SDWP.GPIO0_72 */
		>;
	};
	
	pinctrl_gpio_28: main-gpio0-2-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0008, PIN_INPUT, 7) /* (J24) OSPI0_DQS.GPIO0_2 */

		>;
	};
	
	pinctrl_gpio_29: main-gpio0-6-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0018, PIN_INPUT, 7) /* (F24) OSPI0_D3.GPIO0_6 */
		>;
	};
	
	pinctrl_gpio_31: main-gpio0-38-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x009c, PIN_INPUT, 7) /* (V25) GPMC0_WAIT1.GPIO0_38 */
		>;
	};
	
	pinctrl_gpio_32: main-gpio1-8-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0198, PIN_INPUT, 7) /* (A19) MCASP0_AXR2.GPIO1_8 */
		>;
	};
	
		
	pinctrl_gpio_33: main-gpio1-9-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x019c, PIN_INPUT, 7) /* (B18) MCASP0_AXR1.GPIO1_9 */
		>;
	};
	
	pinctrl_gpio_34: main-gpio1-10-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01a0, PIN_INPUT, 7) /* (E18) MCASP0_AXR0.GPIO1_10 */
		>;
	};
	
	pinctrl_gpio_35: main-gpio1-11-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01a4, PIN_INPUT, 7) /* (B20) MCASP0_ACLKX.GPIO1_11 */
		>;
	};
	
	pinctrl_gpio_36: main-gpio1-12-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01a8, PIN_INPUT, 7) /* (D20) MCASP0_AFSX.GPIO1_12 */
		>;
	};
	
	
	pinctrl_gpio_37: main-gpio1-15-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01b4, PIN_INPUT_PULLUP, 7) /* (A13) SPI0_CS0.GPIO1_15 */
		>;
	};
	
	pinctrl_gpio_38: main-gpio1-16-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01b8, PIN_INPUT_PULLUP, 7) /* (C13) SPI0_CS1.GPIO1_16 */
		>;
	};
	
	pinctrl_gpio_39: main-gpio1-22-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01d0, PIN_INPUT, 7) /* (A15) UART0_CTSn.GPIO1_22 */
		>;
	};
	
	pinctrl_gpio_40: main-gpio1-23-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01d4, PIN_INPUT, 7) /* (B15) UART0_RTSn.GPIO1_23 */
		>;
	};
	
	pinctrl_gpio_41: main-gpio1-44-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x022c, PIN_INPUT, 7) /* (B21) MMC1_DAT1.GPIO1_44 */
		>;
	};
	pinctrl_gpio_42: main-gpio1-45-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0230, PIN_INPUT, 7) /* (A22) MMC1_DAT0.GPIO1_45 */
		>;
	};
	
	pinctrl_gpio_43: main-gpio1-48-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0240, PIN_INPUT, 7) /* (D17) MMC1_SDCD.GPIO1_48 */
		>;
	};
		
	
	/* PMIC_ETH_RESET# */
	pinctrl_eth_reset: main-gpio0-17-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0044, PIN_INPUT, 7) /* (N24) GPMC0_AD2.GPIO0_17 */
		>;
	};

	/* PMIC_BRIDGE_RESET# */
	pinctrl_bridge_reset: main-gpio0-20-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0050, PIN_INPUT, 7) /* (P22) GPMC0_AD5.GPIO0_20 */
		>;
	};

	/* PMIC_VSEL_SD */
	pinctrl_vsel_sd: main-gpio0-21-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0054, PIN_INPUT, 7) /* (P21) GPMC0_AD6.GPIO0_21 */
		>;
	};

	/* PMIC_EN_WIFI */
	pinctrl_wifi_en: main-gpio0-22-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0058, PIN_INPUT, 7) /* (R23) GPMC0_AD7.GPIO0_22 */
		>;
	};

	/* PMIC_ETH_INT# */
	pinctrl_eth_int: main-gpio0-25-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0064, PIN_INPUT_PULLUP, 7) /* (T25) GPMC0_AD10.GPIO0_25 */
		>;
	};

	/* WiFi_WKUP_BT# */
	pinctrl_wifi_wkup_bt: main-gpio0-26-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0068, PIN_INPUT, 7) /* (R21) GPMC0_AD11.GPIO0_26 */
		>;
	};

	/* WiFi_WKUP_WLAN# */
	pinctrl_wifi_wkup_wlan: main-gpio0-27-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x006c, PIN_INPUT, 7) /* (T22) GPMC0_AD12.GPIO0_27 */
		>;
	};

	/* Verdin CTRL_SLEEP_MOCI# */
	pinctrl_ctrl_sleep_moci: main-gpio0-31-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x007c, PIN_INPUT, 7) /* (P25) GPMC0_CLK.GPIO0_31 */ /* SODIMM 256 */
		>;
	};

	/* Verdin CTRL_WAKE1_MICO# */
	pinctrl_ctrl_wake1_mico: main-gpio0-32-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0084, PIN_INPUT_PULLUP, 7) /* (L23) GPMC0_ADVn_ALE.GPIO0_32 */ /* SODIMM 252 */
		>;
	};


	/* Verdin GPIO_6 */
	pinctrl_gpio_6: main-gpio0-36-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0094, PIN_INPUT, 7) /* (N20) GPMC0_BE1n.GPIO0_36 */ /* SODIMM 218 */
		>;
	};

	/* Verdin GPIO_5 */
	pinctrl_gpio_5: main-gpio0-40-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x00a4, PIN_INPUT, 7) /* (M22) GPMC0_DIR.GPIO0_40 */ /* SODIMM 216 */
		>;
	};

	/* Verdin GPIO_7 */
	pinctrl_gpio_7: main-gpio0-41-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x00a8, PIN_INPUT, 7) /* (M21) GPMC0_CSn0.GPIO0_41 */ /* SODIMM 220 */
		>;
	};

	/* Verdin GPIO_8 */
	pinctrl_gpio_8: main-gpio0-42-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x00ac, PIN_INPUT, 7) /* (L21) GPMC0_CSn1.GPIO0_42 */ /* SODIMM 222 */
		>;
	};

	
		/* Verdin USB_1_EN */
	pinctrl_usb0_en: main-gpio1-50-default-pins {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0254, PIN_INPUT, 7) /* (C20) USB0_DRVVBUS.GPIO1_50 */ /* SODIMM 155 */
		>;
	};


	/* On-module I2C - PMIC_I2C */
	pinctrl_i2c0: main-i2c0-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01e0, PIN_INPUT, 0) /* (B16) I2C0_SCL */ /* PMIC_I2C_SCL */
			AM62X_IOPAD(0x01e4, PIN_INPUT, 0) /* (A16) I2C0_SDA */ /* PMIC_I2C_SDA */
		>;
	};

	/* Verdin I2C_1 */
	pinctrl_i2c1: main-i2c1-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */ /* SODIMM 14 */
			AM62X_IOPAD(0x01ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */ /* SODIMM 12 */
		>;
	};

	/* MDIO, shared by Verdin ETH_1 (On-module PHY) and Verdin ETH_2_RGMII */
	pinctrl_mdio: main-mdio1-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x160, PIN_OUTPUT, 0) /* (AD24) MDIO0_MDC  */ /* ETH_1_MDC,  SODIMM 193 */
			AM62X_IOPAD(0x15c, PIN_INPUT, 0)  /* (AB22) MDIO0_MDIO */ /* ETH_1_MDIO, SODIMM 191 */
		>;
	};

	/* On-module eMMC */
	pinctrl_sdhci0: main-mmc0-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x220, PIN_INPUT, 0) /*  (Y3) MMC0_CMD  */
			AM62X_IOPAD(0x218, PIN_INPUT, 0) /* (AB1) MMC0_CLK  */
			AM62X_IOPAD(0x214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */
			AM62X_IOPAD(0x210, PIN_INPUT, 0) /* (AA1) MMC0_DAT1 */
			AM62X_IOPAD(0x20c, PIN_INPUT, 0) /* (AA3) MMC0_DAT2 */
			AM62X_IOPAD(0x208, PIN_INPUT, 0) /*  (Y4) MMC0_DAT3 */
			AM62X_IOPAD(0x204, PIN_INPUT, 0) /* (AB2) MMC0_DAT4 */
			AM62X_IOPAD(0x200, PIN_INPUT, 0) /* (AC1) MMC0_DAT5 */
			AM62X_IOPAD(0x1fc, PIN_INPUT, 0) /* (AD2) MMC0_DAT6 */
			AM62X_IOPAD(0x1f8, PIN_INPUT, 0) /* (AC2) MMC0_DAT7 */
		>;
	};

	/* On-module Wi-Fi on WB SKUs, module-specific SDIO otherwise */
	pinctrl_sdhci2: main-mmc2-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x120, PIN_INPUT, 0) /* (C24) MMC2_CMD   */ /* WiFi_SDIO_CMD   */
			AM62X_IOPAD(0x118, PIN_INPUT, 0) /* (D25) MMC2_CLK   */ /* WiFi_SDIO_CLK   */
			AM62X_IOPAD(0x114, PIN_INPUT, 0) /* (B24) MMC2_DAT0  */ /* WiFi_SDIO_DATA0 */
			AM62X_IOPAD(0x110, PIN_INPUT, 0) /* (C25) MMC2_DAT1  */ /* WiFi_SDIO_DATA1 */
			AM62X_IOPAD(0x10c, PIN_INPUT, 0) /* (E23) MMC2_DAT2  */ /* WiFi_SDIO_DATA2 */
			AM62X_IOPAD(0x108, PIN_INPUT, 0) /* (D24) MMC2_DAT3  */ /* WiFi_SDIO_DATA3 */
			AM62X_IOPAD(0x11c, PIN_INPUT, 0) /* (#N/A) MMC2_CLKB */
		>;
	};

	/* Verdin ETH_1 RGMII (On-module PHY) */
	pinctrl_rgmii1: main-rgmii1-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x14c, PIN_INPUT,  0) /* (AB17) RGMII1_RD0    */
			AM62X_IOPAD(0x150, PIN_INPUT,  0) /* (AC17) RGMII1_RD1    */
			AM62X_IOPAD(0x154, PIN_INPUT,  0) /* (AB16) RGMII1_RD2    */
			AM62X_IOPAD(0x158, PIN_INPUT,  0) /* (AA15) RGMII1_RD3    */
			AM62X_IOPAD(0x148, PIN_INPUT,  0) /* (AD17) RGMII1_RXC    */
			AM62X_IOPAD(0x144, PIN_INPUT,  0) /* (AE17) RGMII1_RX_CTL */
			AM62X_IOPAD(0x134, PIN_OUTPUT, 0) /* (AE20) RGMII1_TD0    */
			AM62X_IOPAD(0x138, PIN_OUTPUT, 0) /* (AD20) RGMII1_TD1    */
			AM62X_IOPAD(0x13c, PIN_OUTPUT, 0) /* (AE18) RGMII1_TD2    */
			AM62X_IOPAD(0x140, PIN_OUTPUT, 0) /* (AD18) RGMII1_TD3    */
			AM62X_IOPAD(0x130, PIN_OUTPUT, 0) /* (AE19) RGMII1_TXC    */
			AM62X_IOPAD(0x12c, PIN_OUTPUT, 0) /* (AD19) RGMII1_TX_CTL */
		>;
	};

		/* Verdin ETH_2 RMII */
	pinctrl_rgmii2: main-rgmii2-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0184, PIN_INPUT, 0) /* (AE23) RGMII2_RD0 */
			AM62X_IOPAD(0x0188, PIN_INPUT, 0) /* (AB20) RGMII2_RD1 */
			AM62X_IOPAD(0x018c, PIN_INPUT, 0) /* (AC21) RGMII2_RD2 */
			AM62X_IOPAD(0x0190, PIN_INPUT, 0) /* (AE22) RGMII2_RD3 */
			AM62X_IOPAD(0x0180, PIN_INPUT, 0) /* (AD23) RGMII2_RXC */
			AM62X_IOPAD(0x017c, PIN_INPUT, 0) /* (AD22) RGMII2_RX_CTL */
			AM62X_IOPAD(0x016c, PIN_INPUT, 0) /* (Y18) RGMII2_TD0 */
			AM62X_IOPAD(0x0170, PIN_INPUT, 0) /* (AA18) RGMII2_TD1 */
			AM62X_IOPAD(0x0174, PIN_INPUT, 0) /* (AD21) RGMII2_TD2 */
			AM62X_IOPAD(0x0178, PIN_INPUT, 0) /* (AC20) RGMII2_TD3 */
			AM62X_IOPAD(0x0168, PIN_INPUT, 0) /* (AE21) RGMII2_TXC */
			AM62X_IOPAD(0x0164, PIN_INPUT, 0) /* (AA19) RGMII2_TX_CTL */
		>;
	};
	
		/* Verdin QSPI_1 */
	pinctrl_ospi0: main-ospi0-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0000, PIN_OUTPUT, 0) /* (H24) OSPI0_CLK  */ /* SODIMM 52 */
			AM62X_IOPAD(0x000c, PIN_INPUT, 0)  /* (E25) OSPI0_D0   */ /* SODIMM 56 */
			AM62X_IOPAD(0x0010, PIN_INPUT, 0)  /* (G24) OSPI0_D1   */ /* SODIMM 58 */
		>;
	};

	
	
		/* Verdin SPI_0 */
	pinctrl_spi0: main-spi0-pins-default {
			pinctrl-single,pins = <
			AM62X_IOPAD(0x01bc, PIN_INPUT, 0) /* (A14) SPI0_CLK */
			AM62X_IOPAD(0x01c0, PIN_INPUT, 0) /* (B13) SPI0_D0 */
			AM62X_IOPAD(0x01c4, PIN_INPUT, 0) /* (B14) SPI0_D1 */
		>;
	};

	/* Verdin SPI_1 */
	pinctrl_spi1: main-spi1-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0020, PIN_INPUT, 1) /* (J25) OSPI0_D5.SPI1_CLK */ /* SODIMM 196 */
			AM62X_IOPAD(0x0024, PIN_INPUT, 1) /* (H25) OSPI0_D6.SPI1_D0  */ /* SODIMM 200 */
			AM62X_IOPAD(0x0028, PIN_INPUT, 1) /* (J22) OSPI0_D7.SPI1_D1  */ /* SODIMM 198 */
		>;
	};

	/* Verdin SPI_1 CS */
	pinctrl_spi1_cs0: main-spi1-cs0-default-pins {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x001c, PIN_INPUT_PULLUP, 1) /* (J23) OSPI0_D4.SPI1_CS0 */ /* SODIMM 202 */
		>;
	};

	/* ETH_25MHz_CLK */
	pinctrl_eth_clock: main-system-clkout0-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01f0, PIN_OUTPUT_PULLUP, 5) /* (A18) EXT_REFCLK1.CLKOUT0 */
		>;
	};

	/* PMIC_EXTINT# */
	pinctrl_pmic_extint: main-system-extint-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01f4, PIN_INPUT, 0) /* (D16) EXTINTn */
		>;
	};
	
	
	/* Verdin UART_0, used as the Linux console */
	pinctrl_uart0: main-uart0-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x1c8, PIN_INPUT_PULLUP, 0) /* (D14) UART0_RXD */ /* SODIMM 147 */
			AM62X_IOPAD(0x1cc, PIN_OUTPUT,       0) /* (E14) UART0_TXD */ /* SODIMM 149 */
		>;
	};
		
		/* Verdin UART_4, used as the Linux console */
	pinctrl_uart4: main-uart4-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x00b0, PIN_INPUT_PULLUP, 3) /* (K22) GPMC0_CSn2.UART4_RXD */ /* SODIMM 53 */
			AM62X_IOPAD(0x00b4, PIN_OUTPUT, 3) /* (K24) GPMC0_CSn3.UART4_TXD */ /* SODIMM 55 */
		>;
	};
	
			/* Verdin UART_6, used as the Linux console */
	pinctrl_uart6: main-uart6-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0194, PIN_INPUT_PULLUP, 3) /* (B19) MCASP0_AXR3.UART6_RXD */ /* SODIMM 135 */
			AM62X_IOPAD(0x0244, PIN_OUTPUT, 1) /* (C17) MMC1_SDWP.UART6_TXD */  /* SODIMM 17 */
		>;
	};
	
		/* Verdin UART_5, used as the Linux console */
	pinctrl_uart5: main-uart5-pins-default {
				pinctrl-single,pins = <
						AM62X_IOPAD(0x01d8, PIN_INPUT, 1) /* (C15) MCAN0_TX.UART5_RXD */ /* SODIMM 20 */
			AM62X_IOPAD(0x0078, PIN_OUTPUT, 2) /* (U24) GPMC0_AD15.UART5_TXD */ /* SODIMM 21 */
		>;
	};
	/* Verdin UART_2, used as the Linux console */
	pinctrl_uart2: main-uart2-pins-default {
				pinctrl-single,pins = <
			AM62X_IOPAD(0x0224, PIN_INPUT_PULLUP, 3) /* (D22) MMC1_DAT3.UART2_RXD */ /* SODIMM 70 */
			AM62X_IOPAD(0x0228, PIN_OUTPUT, 3) /* (C21) MMC1_DAT2.UART2_TXD *//* SODIMM 72 */
		>;
	};
	

		/* Verdin UART_3, used as the Linux console */
	pinctrl_uart3: main-uart3-pins-default {
	pinctrl-single,pins = <
			AM62X_IOPAD(0x0234, PIN_INPUT_PULLUP, 3) /* (B22) MMC1_CLK.UART3_RXD */ /* SODIMM 74 */
			AM62X_IOPAD(0x023c, PIN_OUTPUT, 3) /* (A21) MMC1_CMD.UART3_TXD */ /* SODIMM 78 */
		>;
	};

	/* Verdin UART_1 */
	pinctrl_uart1: main-uart1-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x01ac, PIN_INPUT_PULLUP, 2) /* (E19) MCASP0_AFSR.UART1_RXD  */ /* SODIMM 129 */
			AM62X_IOPAD(0x01b0, PIN_OUTPUT,       2) /* (A20) MCASP0_ACLKR.UART1_TXD */ /* SODIMM 131 */
		>;
	};

	/* DSS VOUT0 RGB */
	pinctrl_parallel_rgb: main-vout-pins-default {
		pinctrl-single,pins = <
			AM62X_IOPAD(0x0100, PIN_OUTPUT, 0) /* (AC25) VOUT0_VSYNC            */
			AM62X_IOPAD(0x00f8, PIN_OUTPUT, 0) /* (AB24) VOUT0_HSYNC            */
			AM62X_IOPAD(0x0104, PIN_OUTPUT, 0) /* (AC24) VOUT0_PCLK             */
			AM62X_IOPAD(0x00fc, PIN_OUTPUT, 0) /*  (Y20) VOUT0_DE               */
			AM62X_IOPAD(0x00b8, PIN_OUTPUT, 0) /*  (U22) VOUT0_DATA0            */
			AM62X_IOPAD(0x00bc, PIN_OUTPUT, 0) /*  (V24) VOUT0_DATA1            */
			AM62X_IOPAD(0x00c0, PIN_OUTPUT, 0) /*  (W25) VOUT0_DATA2            */
			AM62X_IOPAD(0x00c4, PIN_OUTPUT, 0) /*  (W24) VOUT0_DATA3            */
			AM62X_IOPAD(0x00c8, PIN_OUTPUT, 0) /*  (Y25) VOUT0_DATA4            */
			AM62X_IOPAD(0x00cc, PIN_OUTPUT, 0) /*  (Y24) VOUT0_DATA5            */
			AM62X_IOPAD(0x00d0, PIN_OUTPUT, 0) /*  (Y23) VOUT0_DATA6            */
			AM62X_IOPAD(0x00d4, PIN_OUTPUT, 0) /* (AA25) VOUT0_DATA7            */
			AM62X_IOPAD(0x00d8, PIN_OUTPUT, 0) /*  (V21) VOUT0_DATA8            */
			AM62X_IOPAD(0x00dc, PIN_OUTPUT, 0) /*  (W21) VOUT0_DATA9            */
			AM62X_IOPAD(0x00e0, PIN_OUTPUT, 0) /*  (V20) VOUT0_DATA10           */
			AM62X_IOPAD(0x00e4, PIN_OUTPUT, 0) /* (AA23) VOUT0_DATA11           */
			AM62X_IOPAD(0x00e8, PIN_OUTPUT, 0) /* (AB25) VOUT0_DATA12           */
			AM62X_IOPAD(0x00ec, PIN_OUTPUT, 0) /* (AA24) VOUT0_DATA13           */
			AM62X_IOPAD(0x00f0, PIN_OUTPUT, 0) /*  (Y22) VOUT0_DATA14           */
			AM62X_IOPAD(0x00f4, PIN_OUTPUT, 0) /* (AA21) VOUT0_DATA15           */
			AM62X_IOPAD(0x005c, PIN_OUTPUT, 1) /*  (R24) GPMC0_AD8.VOUT0_DATA16 */
			AM62X_IOPAD(0x0060, PIN_OUTPUT, 1) /*  (R25) GPMC0_AD9.VOUT0_DATA17 */
		>;
	};
};

&mcu_pmx0 {
	/* Verdin PCIE_1_RESET# */
	pinctrl_gpio_44: mcu-gpio0-0-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0000, PIN_INPUT, 7) /* (E8) MCU_SPI0_CS0.MCU_GPIO0_0 */ /* SODIMM 244 */
		>;
	};
	
	
	pinctrl_gpio_45: mcu-gpio0-5-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0014, PIN_INPUT, 7) /* (B5) MCU_UART0_RXD.MCU_GPIO0_5 */
		>;
	};
	
	pinctrl_gpio_46: mcu-gpio0-6-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0018, PIN_INPUT, 7) /* (A5) MCU_UART0_TXD.MCU_GPIO0_6 */
		>;
	};
	
	
	
		
	pinctrl_gpio_48: mcu-gpio0-8-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0020, PIN_INPUT, 7) /* (B6) MCU_UART0_RTSn.MCU_GPIO0_8 */
		>;
	};
	
	pinctrl_gpio_49: mcu-gpio0-16-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0040, PIN_INPUT, 7) /* (D4) MCU_MCAN1_RX.MCU_GPIO0_16 */
		>;
	};
	
	pinctrl_gpio_50: mcu-gpio0-17-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0044, PIN_INPUT, 7) /* (A8) MCU_I2C0_SCL.MCU_GPIO0_17 */
		>;
	};
	
	pinctrl_gpio_51: mcu-gpio0-18-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0048, PIN_INPUT, 7) /* (D10) MCU_I2C0_SDA.MCU_GPIO0_18 */
		>;
	};
	
	pinctrl_gpio_52: mcu-gpio0-23-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0084, PIN_INPUT, 7) /* (A12) WKUP_CLKOUT0.MCU_GPIO0_23 */

		>;
	};
	
	pinctrl_gpio_53: mcu-gpio0-7-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x001c, PIN_INPUT, 7) /* (A6) MCU_UART0_CTSn.MCU_GPIO0_7 */
		>;
	};
			/* Verdin GPIO_14 */
	pinctrl_gpio_14: mcu-gpio0-14-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0038, PIN_INPUT, 7) /* (B3) MCU_MCAN0_RX.MCU_GPIO0_14 */

		>;
	};
	
			/* Verdin GPIO_13 */
	pinctrl_gpio_13: mcu-gpio0-13-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0034, PIN_INPUT, 7) /* (D6) MCU_MCAN0_TX.MCU_GPIO0_13 */

		>;
	};
	
	
			/* Verdin GPIO_12 */
	pinctrl_gpio_12: mcu-gpio0-12-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0030, PIN_INPUT, 7) /* (A4) WKUP_UART0_RTSn.MCU_GPIO0_12 */

		>;
	};
		
		/* Verdin GPIO_11 */
	pinctrl_gpio_11: mcu-gpio0-11-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x002c, PIN_INPUT, 7) /* (C6) WKUP_UART0_CTSn.MCU_GPIO0_11 */

		>;
	};
	
	/* Verdin GPIO_1 */
	pinctrl_gpio_1: mcu-gpio0-1-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0004, PIN_INPUT, 7) /* (B8) MCU_SPI0_CS1.MCU_GPIO0_1 */ /* SODIMM 206 */
		>;
	};

	/* Verdin GPIO_2 */
	pinctrl_gpio_2: mcu-gpio0-2-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0008, PIN_INPUT, 7) /* (A7) MCU_SPI0_CLK.MCU_GPIO0_2 */ /* SODIMM 208 */
		>;
	};

	/* Verdin GPIO_3 */
	pinctrl_gpio_3: mcu-gpio0-3-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x000c, PIN_INPUT, 7) /* (D9) MCU_SPI0_D0.MCU_GPIO0_3 */ /* SODIMM 210 */
		>;
	};

	/* Verdin GPIO_4 */
	pinctrl_gpio_4: mcu-gpio0-4-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0010, PIN_INPUT, 7) /* (C9) MCU_SPI0_D1.MCU_GPIO0_4 */ /* SODIMM 212 */
		>;
	};
	
	/* Verdin UART_2 */
	pinctrl_wkup_uart0: wkup-uart0-pins-default {
		pinctrl-single,pins = <
			AM62X_MCU_IOPAD(0x0024, PIN_INPUT_PULLUP, 0) /* (B4) WKUP_UART0_RXD  */ /* SODIMM 137 */
			AM62X_MCU_IOPAD(0x0028, PIN_OUTPUT,       0) /* (C5) WKUP_UART0_TXD  */ /* SODIMM 139 */
		>;
	};
};

/* VERDIN I2S_1_MCLK */
&audio_refclk1 {
	assigned-clock-rates = <25000000>;
};

&cpsw3g {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_rgmii1>;
	status = "disabled";
};

/* Verdin ETH_1 (On-module PHY) */
&cpsw_port1 {
	phy-handle = <&cpsw3g_phy0>;
	phy-mode = "rgmii-rxid";
	status = "disabled";
};

/* Verdin ETH_2_RGMII */
&cpsw_port2 {
	status = "disabled";
};

/* MDIO, shared by Verdin ETH_1 (On-module PHY) and Verdin ETH_2_RGMII */
&cpsw3g_mdio {
	assigned-clocks = <&k3_clks 157 20>;
	assigned-clock-parents = <&k3_clks 157 22>;
	assigned-clock-rates = <25000000>;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_eth_clock>, <&pinctrl_mdio>;
	status = "disabled";

	cpsw3g_phy0: ethernet-phy@0 {
		compatible = "ethernet-phy-id2000.a231";
		reg = <0>;
		interrupt-parent = <&main_gpio0>;
		interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_eth_int>, <&pinctrl_eth_reset>;
		reset-gpios = <&main_gpio0 17 GPIO_ACTIVE_LOW>;
		reset-assert-us = <10>;
		reset-deassert-us = <1000>;
		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
	};
};

&dss {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_parallel_rgb>;
	status = "disabled";
};

&dss_ports {
	#address-cells = <1>;
	#size-cells = <0>;

	/* VP2: DPI Output */
	port@1 {
		reg = <1>;

		dpi_out: endpoint {
			remote-endpoint = <&rgb_in>;
		};
	};
};

&main_gpio0 {
	gpio-line-names =
		"SODIMM_52", /* 0 */
		"",
		"",
		"SODIMM_56",
		"SODIMM_58",
		"SODIMM_60",
		"SODIMM_62",
		"",
		"",
		"",
		"", /* 10 */
		"SODIMM_54",
		"SODIMM_64",
		"",
		"",
		"SODIMM_174",
		"SODIMM_172",
		"",
		"",
		"",
		"", /* 20 */
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"SODIMM_76",
		"SODIMM_21", /* 30 */
		"SODIMM_256",
		"SODIMM_252",
		"",
		"SODIMM_46",
		"SODIMM_42",
		"SODIMM_218",
		"",
		"SODIMM_189",
		"",
		"SODIMM_216", /* 40 */
		"SODIMM_220",
		"SODIMM_222",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"", /* 50 */
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"", /* 60 */
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"", /* 70 */
		"SODIMM_157",
		"SODIMM_187",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"", /* 80 */
		"",
		"",
		"",
		"",
		"",
		"";

	verdin_ctrl_sleep_moci: ctrl-sleep-moci-hog {
		gpio-hog;
		/* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */
		gpios = <31 GPIO_ACTIVE_HIGH>;
		line-name = "CTRL_SLEEP_MOCI#";
		output-high;
	};
};

&main_gpio1 {
	gpio-line-names =
		"", /* 0 */
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"SODIMM_36",
		"SODIMM_34", /* 10 */
		"SODIMM_30",
		"SODIMM_32",
		"",
		"",
		"SODIMM_15",
		"SODIMM_16",
		"SODIMM_19",
		"SODIMM_66",
		"SODIMM_161",
		"", /* 20 */
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"", /* 30 */
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"", /* 40 */
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"SODIMM_17",
		"SODIMM_155", /* 50 */
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"", /* 60 */
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"", /* 70 */
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"", /* 80 */
		"",
		"",
		"",
		"",
		"",
		"",
		"";
};

/* On-module I2C - PMIC_I2C */
&main_i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_i2c0>;
	clock-frequency = <400000>;
	status = "okay";

	dsi_bridge: dsi@e {
		compatible = "toshiba,tc358778";
		reg = <0xe>;
		assigned-clocks = <&k3_clks 157 20>;
		assigned-clock-parents = <&k3_clks 157 22>;
		assigned-clock-rates = <25000000>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_bridge_reset>;
		clocks = <&k3_clks 157 20>;
		clock-names = "refclk";
		reset-gpios = <&main_gpio0 20 GPIO_ACTIVE_LOW>;
		vddc-supply = <&reg_1v2_dsi>;
		vddmipi-supply = <&reg_1v2_dsi>;
		vddio-supply = <&reg_1v8_dsi>;
		status = "disabled";

		dsi_bridge_ports: ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
				reg = <0>;

				rgb_in: endpoint {
					data-lines = <18>;
					remote-endpoint = <&dpi_out>;
				};
			};

			port@1 {
				reg = <1>;
			};
		};
	};

	pmic@30 {
		compatible = "ti,tps65219";
		reg = <0x30>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_pmic_extint>;
		interrupt-parent = <&gic500>;
		interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;

		buck1-supply = <&reg_vsodimm>;
		buck2-supply = <&reg_vsodimm>;
		buck3-supply = <&reg_vsodimm>;
		ldo1-supply = <&reg_3v3>;
		ldo2-supply = <&reg_1v8>;
		ldo3-supply = <&reg_3v3>;
		ldo4-supply = <&reg_3v3>;
		system-power-controller;
		ti,power-button;

		regulators {
			reg_vdd_core: buck1 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <850000>;
				regulator-min-microvolt = <750000>;
				regulator-name = "+VDD_CORE (PMIC BUCK1)";
			};

			reg_1v8: buck2 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <1800000>;
				regulator-min-microvolt = <1800000>;
				regulator-name = "+V1.8 (PMIC BUCK2)"; /* On-module and SODIMM 214 */
			};

			reg_vdd_ddr: buck3 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <1100000>;
				regulator-min-microvolt = <1100000>;
				regulator-name = "+VDD_DDR (PMIC BUCK3)";
			};

			reg_sd_3v3_1v8: ldo1 {
				regulator-allow-bypass;
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <3300000>;
				regulator-min-microvolt = <3300000>;
				regulator-name = "+V3.3_1.8_SD (PMIC LDO1)";
			};

			reg_vddr_core: ldo2 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <850000>;
				regulator-min-microvolt = <850000>;
				regulator-name = "+VDDR_CORE (PMIC LDO2)";
			};

			reg_1v8a: ldo3 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <1800000>;
				regulator-min-microvolt = <1800000>;
				regulator-name = "+V1.8A (PMIC LDO3)";
			};

			reg_eth_2v5: ldo4 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <2500000>;
				regulator-min-microvolt = <2500000>;
				regulator-name = "+V2.5_ETH (PMIC LDO4)";
			};
		};
	};

	rtc_i2c: rtc@32 {
		compatible = "epson,rx8130";
		reg = <0x32>;
	};

	/*sensor@48 {
		compatible = "ti,tmp1075";
		reg = <0x48>;
	};*/

	adc@49 {
		compatible = "ti,ads1015";
		reg = <0x49>;
		#address-cells = <1>;
		#size-cells = <0>;

		/* Verdin PMIC_I2C (ADC_4 - ADC_3) */
		channel@0 {
			reg = <0>;
			ti,datarate = <4>;
			ti,gain = <2>;
		};

		/* Verdin PMIC_I2C (ADC_4 - ADC_1) */
		channel@1 {
			reg = <1>;
			ti,datarate = <4>;
			ti,gain = <2>;
		};

		/* Verdin PMIC_I2C (ADC_3 - ADC_1) */
		channel@2 {
			reg = <2>;
			ti,datarate = <4>;
			ti,gain = <2>;
		};

		/* Verdin PMIC_I2C (ADC_2 - ADC_1) */
		channel@3 {
			reg = <3>;
			ti,datarate = <4>;
			ti,gain = <2>;
		};

		/* Verdin PMIC_I2C ADC_4 */
		channel@4 {
			reg = <4>;
			ti,datarate = <4>;
			ti,gain = <2>;
		};

		/* Verdin PMIC_I2C ADC_3 */
		channel@5 {
			reg = <5>;
			ti,datarate = <4>;
			ti,gain = <2>;
		};

		/* Verdin PMIC_I2C ADC_2 */
		channel@6 {
			reg = <6>;
			ti,datarate = <4>;
			ti,gain = <2>;
		};

		/* Verdin PMIC_I2C ADC_1 */
		channel@7 {
			reg = <7>;
			ti,datarate = <4>;
			ti,gain = <2>;
		};
	};

	eeprom@50 {
		compatible = "st,24c02", "atmel,24c02";
		pagesize = <16>;
		reg = <0x50>;
	};
};

/* Verdin I2C_1 */
&main_i2c1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_i2c1>;
	status = "disabled";
};

&mailbox0_cluster0 {
	status = "disabled";
};

/* Verdin SPI_ */
&main_spi0 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_spi0>, <&pinctrl_gpio_37>;
	ti,pindir-d0-out-d1-in;
	status = "disabled";
};

/* Verdin SPI_1 */
&main_spi1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_spi1>, <&pinctrl_spi1_cs0>;
	ti,pindir-d0-out-d1-in;
	status = "disabled";
};

/* Verdin UART_3, used as the Linux console */
&main_uart0 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart0>;
	status = "disabled";
};

/* Verdin UART_1 */
&main_uart1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart1>;
	status = "disabled";
};

/* Verdin UART_4 */
&main_uart2 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart2>;
	status = "disabled";
};

/* Verdin UART_4 */
&main_uart3 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart3>;
	status = "disabled";
};

/* Verdin UART_4 */
&main_uart4 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart4>;
	status = "disabled";
};

/* Verdin UART_5 */
&main_uart5 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart5>;
	status = "disabled";
};

/* Verdin UART_5 */
&main_uart6 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart6>;
	status = "disabled";
};

&mcu_gpio0 {
	gpio-line-names =
		"SODIMM_244",
		"SODIMM_206",
		"SODIMM_208",
		"SODIMM_210",
		"SODIMM_212",
		"",
		"",
		"",
		"",
		"",
		"SODIMM_143",
		"",
		"",
		"SODIMM_26",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"",
		"";

	verdin_pcie_1_reset_hog: pcie-1-reset-hog {
		gpio-hog;
		/* Verdin PCIE_1_RESET# (SODIMM 244) */
		gpios = <0 GPIO_ACTIVE_LOW>;
		line-name = "PCIE_1_RESET#";
		output-low;
		status = "disabled";
	};
};

/* On-module eMMC */
&sdhci0 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_sdhci0>;
	non-removable;
	ti,driver-strength-ohm = <50>;
	status = "okay";
};

/* On-module eMMC */
&sdhci2 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_sdhci2>;
	ti,driver-strength-ohm = <50>;
	status = "okay";
};

/* Verdin USB_1 */
&usbss0 {
	ti,vbus-divider;
	status = "disabled";
};

&usb0 {
	adp-disable;
	usb-role-switch;
	status = "disabled";

	port {
		usb0_ep: endpoint {
			remote-endpoint = <&usb_dr_connector>;
		};
	};
};

/* Verdin UART_2 */
&wkup_uart0 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_wkup_uart0>;
	status = "disabled";
};
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
 * Copyright 2023 Toradex
 *
 * Common dtsi for Verdin AM62 SoM on Development carrier board
 *
 * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62
 * https://www.toradex.com/products/carrier-board/verdin-development-board-kit
 */

/ {				
	clk16m0: clk16m0 {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <3686400>; /* external xtal frequency */
		clock-accuracy = <100>;
	};
};

/* Verdin ETHs */
&cpsw3g {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_rgmii1>, <&pinctrl_rgmii2>;
	status = "okay";
	
	fixed-link {
		speed = <1000>;
		full-duplex;
	};
	
};

/* MDIO, shared by Verdin ETH_1 (On-module PHY) and Verdin ETH_2_RGMII */
&cpsw3g_mdio {
	status = "okay";

	/* cpsw3g_phy1: ethernet-phy@7 {
		compatible = "ethernet-phy-ieee802.3-c22";
		reg = <7>;
		interrupt-parent = <&main_gpio0>;
		interrupts = <38 IRQ_TYPE_EDGE_FALLING>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_gpio_31>;
		micrel,led-mode = <0>;
	}; */
};

/* Verdin ETH_1 (On-module PHY) */
&cpsw_port1 {
	status = "okay";
};

/* Verdin ETH_2_RGMII */
&cpsw_port2 {
	phy-mode = "rgmii-id";
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	fixed-link {
		speed = <1000>;
		full-duplex;
	};
};

&main_gpio0 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_ctrl_sleep_moci>,
		    <&pinctrl_gpio_5>,
		    <&pinctrl_gpio_6>,
		    <&pinctrl_gpio_7>,
		    <&pinctrl_gpio_8>,
		    <&pinctrl_gpio_15>,
		    <&pinctrl_gpio_17>,
		    <&pinctrl_gpio_18>,
		    <&pinctrl_gpio_19>,
		    <&pinctrl_gpio_20>,
		    <&pinctrl_gpio_21>,
		    <&pinctrl_gpio_22>,
		    <&pinctrl_gpio_24>,
		    <&pinctrl_gpio_27>,
		    <&pinctrl_gpio_28>,
		    <&pinctrl_gpio_29>,
		    <&pinctrl_gpio_32>;
};

&main_gpio1{
	
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_gpio_33>,
		    <&pinctrl_gpio_34>,
		    <&pinctrl_gpio_35>,
		    <&pinctrl_gpio_36>,
		    <&pinctrl_gpio_39>,
		    <&pinctrl_gpio_40>,
		    <&pinctrl_gpio_41>,
		    <&pinctrl_gpio_42>,
		    <&pinctrl_gpio_43>;
};

/* Verdin I2C_1 */
&main_i2c1 {
	status = "okay";

	/* Current measurement into module VCC */
	hwmon@40 {
		compatible = "ti,ina260";
		reg = <0x40>;
		
	};
	hwmon@41 {
		compatible = "ti,ina260";
		reg = <0x41>;
		
	};
	
	hwmon@42 {
	compatible = "ti,ina260";
	reg = <0x42>;
		
	};
	
	hwmon@43 {
	compatible = "ti,ina260";
	reg = <0x43>;
		
	};
	
	hwmon@44 {
	compatible = "ti,ina260";
	reg = <0x44>;
		
	};
	
	hwmon@45 {
	compatible = "ti,ina260";
	reg = <0x45>;
	};
	
	hwmon@46 {
	compatible = "ti,ina260";
	reg = <0x46>;
	};
	
	hwmon@47 {
	compatible = "ti,ina260";
	reg = <0x47>;
	};
	
	hwmon@48 {
	compatible = "ti,ina260";
	reg = <0x4b>;
	};
	
	lm73@49{
	compatible = "ti,lm73";
	reg = <0x49>;
	};
	
	lm73@50{
	compatible = "ti,lm73";
	reg = <0x4a>;
	};
};

&ospi0{
	compatible = "ti,am654-ospi";
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_ospi0>, <&pinctrl_gpio_16>;
	spi-tx-bus-width = <1>;
        spi-rx-bus-width = <1>;
	ti,pindir-d0-out-d1-in;
	status = "okay";
	
	adc@0 {
		compatible = "adi,ad7616";
		reg = <0>;
		spi-max-frequency = <2300000>;
		spi-cpol;
		label = "ad7616";
		avcc-supply= <&reg_3v3>;
		interrupt-parent = <&mcu_gpio0>;
		interrupts = <7 IRQ_TYPE_LEVEL_LOW>; 
		gpio-controller;  /* Marks the device node as a GPIO controller */
		#gpio-cells = <2>;
	/*	reset-gpios = <&mcu_gpio0 3 GPIO_ACTIVE_HIGH>; //GPIO_3
		adi,conversion-start-gpios = <&mcu_gpio0 2 GPIO_ACTIVE_HIGH>;//GPIO_2
		adi,oversampling-ratio-gpios = <&main_gpio0 36 GPIO_ACTIVE_HIGH>, //GPIO_6_CSI
					      <&main_gpio0 41 GPIO_ACTIVE_HIGH>, //GPIO_7_CSI
				     <&mcu_gpio0 4 GPIO_ACTIVE_HIGH>; //GPIO_4 */
		adi,sw-mode;
		status = "okay"; 	
	};
	
};

&main_spi0 {
	fsl,spi-num-chipselects = <2>;
        cs-gpios = <0>,
                   <&main_gpio1 16 GPIO_ACTIVE_LOW>;
	status = "okay";
	
	spidev@0 {
		compatible = "rohm,dh2228fv";
		reg = <0>;
		spi-max-frequency = <23000000>;
	}; 
	
		lan937x: lan937x@1 {
                    compatible = "microchip,lan9374";
                    reg = <1>;
                    spi-max-frequency = <25000000>;
		     interrupt-parent = <&main_gpio0>;
		     interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
		     status = "okay";

                    ethernet-ports {
                            #address-cells = <1>;
                            #size-cells = <0>;

                            port@0 {
                                    reg = <0>;
                                    label = "lan1";
                                   // phy-mode = "internal";
                                   // phy-handle = <&t1phy0>;
                            };

                            port@1 {
                                    reg = <1>;
                                    label = "lan2";
                                   // phy-mode = "internal";
                                   // phy-handle = <&t1phy1>;
                            };

                            port@2 {
                                    reg = <2>;
                                    label = "lan3";
                                  //  phy-mode = "internal";
                                  //  phy-handle = <&t1phy2>;
                            };

                            port@3 {
                                    reg = <3>;
                                    label = "lan4";
                                   // phy-mode = "internal";
                                   // phy-handle = <&t1phy3>;
                            };

                            port@4 {
                                    reg = <4>;
                                    label = "cpu";
                                    ethernet = <&cpsw_port2>;
                                    fixed-link {
                                            speed = <1000>;
                                            full-duplex;
                                    };
                            };

                            port@5 {
                                    reg = <5>;
                                    label = "lan5";
                            };

                            port@6 {
                                    reg = <6>;
                                    label = "lan6";
                                    //phy-mode = "internal";
                                    //phy-handle = <&t1phy6>;
                            };

                           port@7 {
                                    reg = <7>;
                                    label = "lan7s";
                                    //phy-mode = "internal";
                                    //phy-handle = <&t1phy7>;
                            }; 
                    };

          /*           mdio {
                            #address-cells = <1>;
                            #size-cells = <0>;

                            t1phy0: ethernet-phy@0{
                                    reg = <0x0>;
                            };

                            t1phy1: ethernet-phy@1{
                                    reg = <0x1>;
                            };

                            t1phy2: ethernet-phy@2{
                                    reg = <0x2>;
                            };

                            t1phy3: ethernet-phy@3{
                                    reg = <0x3>;
                            };

                            t1phy6: ethernet-phy@6{
                                    reg = <0x6>;
                            };

                            t1phy7: ethernet-phy@7{
                                    reg = <0x7>;
                            };
                    }; */
            };
};

/* Verdin SPI_1 */
&main_spi1 {
     
	status = "okay"; 
		max3109: max3109@0 {
		compatible = "maxim,max3109";
		spi-max-frequency = <2000000>;
		reg = <0>; // SPI chip select number
		interrupt-parent = <&main_gpio0>;
		clocks = <&clk16m0>;
		clock-names = "osc";
		interrupts = <29 IRQ_TYPE_EDGE_FALLING>;
		gpio-controller;  /* Marks the device node as a GPIO controller */
		#gpio-cells = <2>;
	 };


	/* adc@0 {
	clocks = <&clk16m0>;
		clock-names = "osc";
		compatible = "adi,ad7616";
		reg = <0>;
		spi-max-frequency = <2300000>;
		spi-cpol;
		label = "ad7616";
		avcc-supply= <&reg_3v3>;
		interrupt-parent = <&>;
		interrupts = <1 IRQ_TYPE_LEVEL_LOW>; //GPIO_1 
		reset-gpios = <&mcu_gpio0 3 GPIO_ACTIVE_HIGH>; //GPIO_3
		adi,conversion-start-gpios = <&mcu_gpio0 2 GPIO_ACTIVE_HIGH>;//GPIO_2
		adi,oversampling-ratio-gpios = <&main_gpio0 36 GPIO_ACTIVE_HIGH>, //GPIO_6_CSI
					      <&main_gpio0 41 GPIO_ACTIVE_HIGH>, //GPIO_7_CSI
				     <&mcu_gpio0 4 GPIO_ACTIVE_HIGH>; //GPIO_4
		adi,sw-mode;
		status = "okay"; 	
		};*/
/*	
 	#address-cells = <1>;
 	   fsl,spi-num-chipselects = <2>;
        cs-gpios = <&mcu_gpio0 1 GPIO_ACTIVE_LOW>,
                   <&mcu_gpio0 2 GPIO_ACTIVE_LOW>;
	#size-cells = <0>;
	spidev@0 {
 		dmas = <&main_pktdma 0x4304>, <&main_pktdma 0xc304>;
		dma-names = "rx", "tx";
		compatible = "rohm,dh2228fv";
		reg = <0>;
		spi-max-frequency = <23000000>;
	};
	
	spidev@1 {
	 	dmas = <&main_pktdma 0x4305>, <&main_pktdma 0xc305>;
		dma-names = "rx", "tx";
		compatible = "rohm,dh2228fv";
		reg = <1>;
		spi-max-frequency = <23000000>;
	};*/


};

/* Verdin UART_3 */
&main_uart0 {
	dmas = <&main_pktdma 0x4400>, <&main_pktdma 0xc400>;
	dma-names = "rx", "tx";
	status = "okay";
};

/* Verdin UART_1, connector X50 through RS485 transceiver. */
&main_uart1 {
	dmas = <&main_pktdma 0x4401>, <&main_pktdma 0xc401>;
	dma-names = "rx", "tx";
	status = "okay";
};

&main_uart2 {
	status = "okay";
};

&main_uart3 {
	status = "okay";
};

&main_uart4 {
	status = "okay";
};

&main_uart5 {
	status = "okay";
};

&main_uart6 {
	status = "okay";
};


&mcu_gpio0 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_gpio_1>,
		    <&pinctrl_gpio_2>,
		    <&pinctrl_gpio_3>,
		    <&pinctrl_gpio_4>,
		    <&pinctrl_gpio_11>,
		    <&pinctrl_gpio_12>,
		    <&pinctrl_gpio_13>,
		    <&pinctrl_gpio_14>,
		    <&pinctrl_gpio_44>,
		    <&pinctrl_gpio_45>,
		    <&pinctrl_gpio_46>,
		    <&pinctrl_gpio_48>,
		    <&pinctrl_gpio_49>,
		    <&pinctrl_gpio_50>,
		    <&pinctrl_gpio_51>,
		    <&pinctrl_gpio_52>;
};

/* Verdin USB_1 */
&usbss0 {
	status = "okay";
};

&usb0 {
	status = "okay";
};

/* Verdin CTRL_WAKE1_MICO# */
&verdin_gpio_keys {
	status = "okay";
};

/* Verdin PCIE_1_RESET# */
&verdin_pcie_1_reset_hog {
	status = "okay";
};

/* Verdin UART_2 */
&wkup_uart0 {
	status = "okay";
};

  • Hi,

    Please attach the boot log (not cut and pasted please). I will take a look but I suspect the error message is coming from the vendor driver and not a TI driver. The driver that supports this switch is the responsibility of the vendor.

    Best Regards,

    Schuyler

  • Hi, i have attached boot log with this mail

    SoC:   AM62X SR1.0 HS-FS
    DRAM:  1 GiB
    Core:  142 devices, 30 uclasses, devicetree: separate
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from MMC... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Model: Toradex 0074 Verdin AM62 Dual 1GB IT V1.1A
    Serial#: 15133535
    i2c_write: error waiting for data ACK (status=0x116)
    get_tdx_eeprom: cannot find EEPROM by node
    MISSING TORADEX CARRIER CONFIG BLOCKS
    i2c_write: error waiting for data ACK (status=0x116)
    get_tdx_eeprom: cannot find EEPROM by node
    am65_cpsw_nuss ethernet@8000000: K3 CPSW: nuss_ver: 0x6BA01103 cpsw_ver: 0x6BA81103 ale_ver: 0x00290105 Ports:2 mdio_freq:1000000
    Net:   
    Warning: ethernet@8000000port@1 MAC addresses don't match:
    Address in ROM is		28:b5:e8:cb:53:aa
    Address in environment is	00:14:2d:e6:eb:5f
    eth0: ethernet@8000000port@1 [PRIME]Could not get PHY for ethernet@8000000port@1: addr 7
    am65_cpsw_nuss_port ethernet@8000000port@2: phy_connect() failed
    
    Hit any key to stop autoboot:  0 
    Card did not respond to voltage select! : -110
    switch to partitions #0, OK
    mmc0(part 0) is current device
    Scanning mmc 0:1...
    Found U-Boot script /boot.scr
    6003 bytes read in 9 ms (651.4 KiB/s)
    ## Executing script at 90280000
    Loading DeviceTree: k3-am625-verdin-nonwifi-dev.dtb
    70007 bytes read in 11 ms (6.1 MiB/s)
    76 bytes read in 9 ms (7.8 KiB/s)
    Working FDT set to 90200000
    Applying Overlay: verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dtbo
    2905 bytes read in 11 ms (257.8 KiB/s)
    7939999 bytes read in 54 ms (140.2 MiB/s)
    Bootargs: root=PARTUUID=9ca83e75-02 ro rootwait console=tty1 console=ttyS2,115200 consoleblank=0 earlycon=ns16550a,mmio32,0x02800000
       Uncompressing Kernel Image
    ## Flattened Device Tree blob at 90200000
       Booting using the fdt blob at 0x90200000
    Working FDT set to 90200000
    ERROR: reserving fdt memory region failed (addr=9e780000 size=80000 flags=4)
    ERROR: reserving fdt memory region failed (addr=9e800000 size=1800000 flags=4)
    ERROR: reserving fdt memory region failed (addr=9db00000 size=c00000 flags=4)
       Loading Device Tree to 0000000098ead000, end 0000000098ee1fff ... OK
    Working FDT set to 98ead000
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000] Linux version 6.1.80-6.7.0-devel+git.603f75dc931d (oe-user@oe-host) (aarch64-tdx-linux-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Wed Aug 28 15:15:41 UTC 2024
    [    0.000000] Machine model: Toradex Verdin AM62 on Verdin Development Board
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009db00000, size 12 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@9db00000, compatible id shared-dma-pool
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000bfffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   empty
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009dafffff]
    [    0.000000]   node   0: [mem 0x000000009db00000-0x000000009e6fffff]
    [    0.000000]   node   0: [mem 0x000000009e700000-0x000000009e77ffff]
    [    0.000000]   node   0: [mem 0x000000009e780000-0x000000009fffffff]
    [    0.000000]   node   0: [mem 0x00000000a0000000-0x00000000bfffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000bfffffff]
    [    0.000000] cma: Reserved 128 MiB at 0x00000000b6c00000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.2
    [    0.000000] percpu: Embedded 20 pages/cpu s41064 r8192 d32664 u81920
    [    0.000000] Detected VIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: ARM erratum 845719
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
    [    0.000000] Kernel command line: root=PARTUUID=9ca83e75-02 ro rootwait console=tty1 console=ttyS2,115200 consoleblank=0 earlycon=ns16550a,mmio32,0x02800000
    [    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] Memory: 840460K/1048576K available (11200K kernel code, 1364K rwdata, 3824K rodata, 2176K init, 425K bss, 77044K reserved, 131072K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU event tracing is enabled.
    [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
    [    0.000000] 	Trampoline variant of Tasks RCU enabled.
    [    0.000000] 	Tracing variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 256 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] Root IRQ handler: gic_handle_irq
    [    0.000000] GICv3: GICv3 features: 16 PPIs
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001880000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @80800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x0000000080030000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000080040000
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000001] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008620] Console: colour dummy device 80x25
    [    0.013627] printk: console [tty1] enabled
    [    0.017869] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.028564] pid_max: default: 32768 minimum: 301
    [    0.033340] LSM: Security Framework initializing
    [    0.038210] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
    [    0.045800] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
    [    0.055748] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.063230] cblist_init_generic: Setting shift to 1 and lim to 1.
    [    0.069539] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.076947] cblist_init_generic: Setting shift to 1 and lim to 1.
    [    0.083347] rcu: Hierarchical SRCU implementation.
    [    0.088265] rcu: 	Max phase no-delay instances is 1000.
    [    0.094310] Platform MSI: msi-controller@1820000 domain created
    [    0.100955] EFI services will not be available.
    [    0.105938] smp: Bringing up secondary CPUs ...
    [    0.111302] Detected VIPT I-cache on CPU1
    [    0.111430] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
    [    0.111451] GICv3: CPU1: using allocated LPI pending table @0x0000000080050000
    [    0.111514] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    [    0.111647] smp: Brought up 1 node, 2 CPUs
    [    0.141096] SMP: Total of 2 processors activated.
    [    0.145917] CPU features: detected: 32-bit EL0 Support
    [    0.151199] CPU features: detected: CRC32 instructions
    [    0.156520] CPU: All CPU(s) started at EL2
    [    0.160713] alternatives: applying system-wide alternatives
    [    0.168071] devtmpfs: initialized
    [    0.181212] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.191267] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    [    0.204067] pinctrl core: initialized pinctrl subsystem
    [    0.210299] DMI not present or invalid.
    [    0.214964] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.222247] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
    [    0.229597] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.237608] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.245811] audit: initializing netlink subsys (disabled)
    [    0.251624] audit: type=2000 audit(0.160:1): state=initialized audit_enabled=0 res=1
    [    0.252135] thermal_sys: Registered thermal governor 'step_wise'
    [    0.259570] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.265939] cpuidle: using governor menu
    [    0.276859] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.283874] ASID allocator initialised with 65536 entries
    [    0.304016] KASLR disabled due to lack of seed
    [    0.315045] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.322039] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.328458] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.335405] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.341820] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.348766] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.355180] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.362126] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    0.370225] k3-chipinfo 43000014.chipid: Family:AM62X rev:SR1.0 JTAGID[0x0bb7e02f] Detected
    [    0.380253] iommu: Default domain type: Translated 
    [    0.385279] iommu: DMA domain TLB invalidation policy: strict mode 
    [    0.392004] SCSI subsystem initialized
    [    0.396244] usbcore: registered new interface driver usbfs
    [    0.401903] usbcore: registered new interface driver hub
    [    0.407369] usbcore: registered new device driver usb
    [    0.413062] pps_core: LinuxPPS API ver. 1 registered
    [    0.418151] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.427513] PTP clock support registered
    [    0.431668] EDAC MC: Ver: 3.0.0
    [    0.436026] FPGA manager framework
    [    0.439624] Advanced Linux Sound Architecture Driver Initialized.
    [    0.446929] clocksource: Switched to clocksource arch_sys_counter
    [    0.453486] VFS: Disk quotas dquot_6.6.0
    [    0.457557] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.470688] NET: Registered PF_INET protocol family
    [    0.475973] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
    [    0.484696] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
    [    0.493342] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.501289] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.509280] TCP bind hash table entries: 8192 (order: 6, 262144 bytes, linear)
    [    0.517006] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.523703] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
    [    0.530514] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
    [    0.537938] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.544297] RPC: Registered named UNIX socket transport module.
    [    0.550397] RPC: Registered udp transport module.
    [    0.555214] RPC: Registered tcp transport module.
    [    0.560029] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.566629] NET: Registered PF_XDP protocol family
    [    0.572429] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
    [    0.582705] Initialise system trusted keyrings
    [    0.587561] workingset: timestamp_bits=46 max_order=18 bucket_order=0
    [    0.598702] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.605447] NFS: Registering the id_resolver key type
    [    0.610697] Key type id_resolver registered
    [    0.614982] Key type id_legacy registered
    [    0.619145] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.626011] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.668453] Key type asymmetric registered
    [    0.672657] Asymmetric key parser 'x509' registered
    [    0.677713] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.685499] io scheduler mq-deadline registered
    [    0.690146] io scheduler kyber registered
    [    0.698113] pinctrl-single 4084000.pinctrl: 34 pins, size 136
    [    0.704873] pinctrl-single f4000.pinctrl: 171 pins, size 684
    [    0.717519] Serial: 8250/16550 driver, 8 ports, IRQ sharing enabled
    [    0.735206] brd: module loaded
    [    0.743392] loop: module loaded
    [    0.750771] tun: Universal TUN/TAP device driver, 1.6
    [    0.756840] VFIO - User Level meta-driver version: 0.3
    [    0.763043] usbcore: registered new interface driver usb-storage
    [    0.769889] i2c_dev: i2c /dev entries driver
    [    0.776276] sdhci: Secure Digital Host Controller Interface driver
    [    0.782663] sdhci: Copyright(c) Pierre Ossman
    [    0.787379] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.793800] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.800154] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.807157] usbcore: registered new interface driver usbhid
    [    0.812868] usbhid: USB HID core driver
    [    0.817876] optee: probing for conduit method.
    [    0.822493] optee: revision 3.20 (8e74d476)
    [    0.822844] optee: dynamic shared memory is enabled
    [    0.832413] optee: initialized driver
    [    0.838212] Initializing XFRM netlink socket
    [    0.842679] NET: Registered PF_PACKET protocol family
    [    0.847962] Key type dns_resolver registered
    [    0.852799] registered taskstats version 1
    [    0.857028] Loading compiled-in X.509 certificates
    [    0.872311] ti-sci 44043000.system-controller: ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
    [    0.952839] i2c 0-0030: Fixed dependency cycle(s) with /bus@f0000/i2c@20000000/pmic@30/regulators/buck2
    [    0.995340] input: tps65219-pwrbutton as /devices/platform/bus@f0000/20000000.i2c/i2c-0/0-0030/tps65219-pwrbutton.2.auto/input/input0
    [    1.009634] rtc-ds1307 0-0032: oscillator failed, set time!
    [    1.015564] rtc-ds1307 0-0032: registered as rtc0
    [    1.020533] rtc-ds1307 0-0032: hctosys: unable to read the hardware clock
    [    1.029449] at24 0-0050: supply vcc not found, using dummy regulator
    [    1.036432] at24 0-0050: 256 byte 24c02 EEPROM, writable, 16 bytes/write
    [    1.043374] omap_i2c 20000000.i2c: bus 0 rev0.12 at 400 kHz
    [    1.075479] lm73 1-0049: sensor 'lm73'
    [    1.080094] lm73 1-004a: sensor 'lm73'
    [    1.083986] omap_i2c 20010000.i2c: bus 1 rev0.12 at 100 kHz
    [    1.091063] omap_i2c 20020000.i2c: bus 2 rev0.12 at 100 kHz
    [    1.097224] ti-sci-intr 4210000.interrupt-controller: Interrupt Router 5 domain created
    [    1.105607] ti-sci-intr bus@f0000:interrupt-controller@a00000: Interrupt Router 3 domain created
    [    1.114877] ti-sci-inta 48000000.interrupt-controller: Interrupt Aggregator domain 28 created
    [    1.125220] cadence-qspi fc40000.spi: couldn't determine read-delay
    [    1.131702] cadence-qspi fc40000.spi: failed to setup flash parameters -6
    [    1.141686] ti-udma 485c0100.dma-controller: Number of rings: 82
    [    1.150035] ti-udma 485c0100.dma-controller: Channels: 48 (bchan: 18, tchan: 12, rchan: 18)
    [    1.161250] ti-udma 485c0000.dma-controller: Number of rings: 150
    [    1.171528] ti-udma 485c0000.dma-controller: Channels: 35 (tchan: 20, rchan: 15)
    [    1.181948] printk: console [ttyS2] disabled
    [    1.186437] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 289, base_baud = 3000000) is a 8250
    [    1.195338] printk: console [ttyS2] enabled
    [    1.195338] printk: console [ttyS2] enabled
    [    1.203807] printk: bootconsole [ns16550a0] disabled
    [    1.203807] printk: bootconsole [ns16550a0] disabled
    [    1.215142] 2810000.serial: ttyS0 at MMIO 0x2810000 (irq = 290, base_baud = 3000000) is a 8250
    [    1.224875] 2820000.serial: ttyS3 at MMIO 0x2820000 (irq = 291, base_baud = 3000000) is a 8250
    [    1.234557] 2830000.serial: ttyS5 at MMIO 0x2830000 (irq = 292, base_baud = 3000000) is a 8250
    [    1.244196] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 293, base_baud = 3000000) is a 8250
    [    1.253873] 2850000.serial: ttyS4 at MMIO 0x2850000 (irq = 294, base_baud = 3000000) is a 8250
    [    1.263559] 2860000.serial: ttyS7 at MMIO 0x2860000 (irq = 295, base_baud = 3000000) is a 8250
    [    1.273278] omap2_mcspi 20100000.spi: Runtime PM usage count underflow!
    [    1.283198] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode
    [    1.326938] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.335758] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
    [    1.348687] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
    [    1.355828] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
    [    1.362564] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:0
    [    1.373017] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
    [    1.493431] mmc0: CQHCI version 5.10
    [    1.493438] gpio-488 (PCIE_1_RESET#): hogged as output/low
    [    1.495842] gpio-427 (CTRL_SLEEP_MOCI#): hogged as output/high
    [    1.517903] debugfs: Directory 'spi0.0' with parent 'regmap' already present!
    [    1.537704] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
    [    1.563085] spi0.0: ttyMAX0 at I/O 0x0 (irq = 364, base_baud = 2764800) is a MAX3109
    [    1.571361] spi0.0: ttyMAX1 at I/O 0x1 (irq = 364, base_baud = 2764800) is a MAX3109
    [    1.580491] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode
    [    1.608002] mmc0: new HS200 MMC card at address 0001
    [    1.614071] mmcblk0: mmc0:0001 Q2J55L 7.09 GiB 
    [    1.621059]  mmcblk0: p1 p2
    [    1.624951] mmcblk0boot0: mmc0:0001 Q2J55L 16.0 MiB 
    [    1.626977] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.631364] mmcblk0boot1: mmc0:0001 Q2J55L 16.0 MiB 
    [    1.643582] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver TI DP83867
    [    1.644035] mmcblk0rpmb: mmc0:0001 Q2J55L 4.00 MiB, chardev (241:0)
    [    1.652347] usb-conn-gpio connector: failed to get gpios
    [    1.664732] sdhci-am654 fa20000.mmc: Got CD GPIO
    [    1.670472] mmc2: CQHCI version 5.10
    [    1.670978] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    1.684876] input: gpio-keys as /devices/platform/gpio-keys/input/input1
    [    1.703875] ALSA device list:
    [    1.706948]   No soundcards found.
    [    1.725986] mmc2: SDHCI controller on fa20000.mmc [fa20000.mmc] using ADMA 64-bit
    [    1.750523] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
    [    1.757954] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
    [    2.184332] EXT4-fs (mmcblk0p2): recovery complete
    [    2.191213] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
    [    2.199858] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    2.207427] devtmpfs: mounted
    [    2.212002] Freeing unused kernel memory: 2176K
    [    2.216717] Run /sbin/init as init process
    [    2.352750] systemd[1]: System time before build time, advancing clock.
    [    2.390481] NET: Registered PF_INET6 protocol family
    [    2.397317] Segment Routing with IPv6
    [    2.401120] In-situ OAM (IOAM) with IPv6
    [    2.434339] systemd[1]: systemd 250.5+ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid)
    [    2.474937] systemd[1]: Detected architecture arm64.
    
    Welcome to TDX Wayland with XWayland 6.7.0-devel-20240828102242+build.0 (kirkstone)!
    
    [    2.548471] systemd[1]: Hostname set to <verdin-am62-15133535>.
    [    3.020578] systemd[1]: Queued start job for default target Graphical Interface.
    [    3.076425] systemd[1]: Created slice Slice /system/getty.
    [  OK  ] Created slice Slice /system/getty.
    [    3.101607] systemd[1]: Created slice Slice /system/modprobe.
    [  OK  ] Created slice Slice /system/modprobe.
    [    3.125828] systemd[1]: Created slice Slice /system/serial-getty.
    [  OK  ] Created slice Slice /system/serial-getty.
    [    3.149468] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    3.171798] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password …ts to Console Directory Watch.
    [    3.195603] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password R…uests to Wall Directory Watch.
    [    3.220048] systemd[1]: Reached target Host and Network Name Lookups.
    [  OK  ] Reached target Host and Network Name Lookups.
    [    3.243185] systemd[1]: Reached target Path Units.
    [  OK  ] Reached target Path Units.
    [    3.259371] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    3.283281] systemd[1]: Reached target Slice Units.
    [  OK  ] Reached target Slice Units.
    [    3.299359] systemd[1]: Reached target Swaps.
    [  OK  ] Reached target Swaps.
    [    3.375354] systemd[1]: Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    3.399667] systemd[1]: Reached target RPC Port Mapper.
    [  OK  ] Reached target RPC Port Mapper.
    [    3.425390] systemd[1]: Listening on Syslog Socket.
    [  OK  ] Listening on Syslog Socket.
    [    3.441037] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    3.466876] systemd[1]: Listening on Journal Audit Socket.
    [  OK  ] Listening on Journal Audit Socket.
    [    3.493482] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    3.517916] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    3.539240] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    3.566311] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    3.589337] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    3.613703] systemd[1]: Listening on User Database Manager Socket.
    [  OK  ] Listening on User Database Manager Socket.
    [    3.667745] systemd[1]: Mounting Huge Pages File System...
             Mounting Huge Pages File System...
    [    3.697770] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    3.729745] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    3.747786] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
    [    3.787878] systemd[1]: Mounting Temporary Directory /tmp...
             Mounting Temporary Directory /tmp...
    [    3.812900] systemd[1]: Starting Create List of Static Device Nodes...
             Starting Create List of Static Device Nodes...
    [    3.842778] systemd[1]: Starting Load Kernel Module configfs...
             Starting Load Kernel Module configfs...
    [    3.880162] systemd[1]: Starting Load Kernel Module drm...
             Starting Load Kernel Module drm...
    [    3.908741] systemd[1]: Starting Load Kernel Module fuse...
             Starting Load Kernel Module fuse...
    [    3.930851] fuse: init (API version 7.37)
    [    3.949154] systemd[1]: Starting RPC Bind...
             Starting RPC Bind...
    [    3.992253] systemd[1]: Starting File System Check on Root Device...
             Starting File System Check on Root Device...
    [    4.024325] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    4.046832] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    4.068572] systemd[1]: Starting Generate network units from Kernel command line...
             Starting Generate network …ts from Kernel command line...
    [    4.098123] systemd[1]: Starting Coldplug All udev Devices...
             Starting Coldplug All udev Devices...
    [    4.120808] systemd[1]: Started RPC Bind.
    [  OK  ] Started RPC Bind.
    [    4.135192] systemd[1]: Mounted Huge Pages File System.
    [  OK  ] Mounted Huge Pages File System.
    [    4.156458] systemd[1]: Mounted POSIX Message Queue File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [    4.180060] systemd[1]: Mounted Kernel Debug File System.
    [  OK  ] Mounted Kernel Debug File System.
    [    4.208107] systemd[1]: Mounted Temporary Directory /tmp.
    [  OK  ] Mounted Temporary Directory /tmp.
    [    4.237333] systemd[1]: Finished Create List of Static Device Nodes.
    [  OK  ] Finished Create List of Static Device Nodes.
    [    4.260369] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [  OK  ] Finished Load Kernel Module configfs.
    [  OK  ] Finished Load Kernel Module drm.
    [  OK  ] Finished Load Kernel Module fuse.
    [  OK  ] Finished File System Check on Root Device.
    [  OK  ] Finished Load Kernel Modules.
    [  OK  ] Finished Generate network units from Kernel command line.
             Mounting FUSE Control File System...
             Mounting Kernel Configuration File System...
             Starting Remount Root and Kernel File Systems...
             Starting Apply Kernel Variables...
    [  OK  ] Mounted FUSE Control File System.
    [  OK  ] Mounted Kernel Configuration File System.
    [    4.550222] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
    [  OK  ] Finished Remount Root and Kernel File Systems.
    [  OK  ] Finished Apply Kernel Variables.
             Starting Flush Journal to Persistent Storage...
    [    4.657285] systemd-journald[159]: Received client request to flush runtime journal.
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Finished Flush Journal to Persistent Storage.
    [  OK  ] Finished Create Static Device Nodes in /dev.
    [  OK  ] Reached target Preparation for Local File Systems.
             Mounting /var/volatile...
    [    4.804242] audit: type=1334 audit(1651167747.448:2): prog-id=5 op=LOAD
             Starting Rule-based Manage…for Device Events[    4.815242] audit: type=1334 audit(1651167747.456:3): prog-id=6 op=LOAD
     and Files...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Finished Coldplug All udev Devices.
             Starting Wait for udev To …plete Device Initialization...
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Rule-based Manager for Device Events and Files.
    [  OK  ] Finished Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Record System Boot/Shutdown in UTMP...
    [  OK  ] Finished Record System Boot/Shutdown in UTMP.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Set.
    [    5.846997] random: crng init done
    [  OK  ] Finished Load/Save Random Seed.
    [    5.876165] atmel_mxt_ts 2-004a: supply vdda not found, using dummy regulator
    [    5.891255] ina2xx 1-0040: power monitor ina260 (Rshunt = 0 uOhm)
    [    5.927311] ina2xx 1-0041: power monitor ina260 (Rshunt = 0 uOhm)
    [    5.934124] atmel_mxt_ts 2-004a: supply vdd not found, using dummy regulator
    [    5.945811] ina2xx 1-0042: power monitor ina260 (Rshunt = 0 uOhm)
    [    5.961682] ina2xx 1-0043: power monitor ina260 (Rshunt = 0 uOhm)
    [    5.978797] ina2xx 1-0044: power monitor ina260 (Rshunt = 0 uOhm)
    [    5.988084] omap8250 2b300000.serial: No clock speed specified: using default: 48000000
    [    5.990983] ina2xx 1-0045: power monitor ina260 (Rshunt = 0 uOhm)
    [    6.003872] 2b300000.serial: ttyS1 at MMIO 0x2b300000 (irq = 485, base_baud = 3000000) is a 8250
    [    6.013454] ina2xx 1-0046: power monitor ina260 (Rshunt = 0 uOhm)
    [    6.021000] ina2xx 1-0047: power monitor ina260 (Rshunt = 0 uOhm)
    [    6.035414] ina2xx 1-004b: power monitor ina260 (Rshunt = 0 uOhm)
    [    6.121253] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
    [    6.145526] pwm-backlight backlight-mezzanine: supply power not found, using dummy regulator
    [  OK  ] Found device /dev/ttyS2.
    [    6.227733] ksz-switch spi1.1: unsupported switch detected ffffff00)
    [    6.379172] k3-m4-rproc 5000000.m4fss: device does not reserved memory regions, ret = -22
    [    6.407494] k3-m4-rproc 5000000.m4fss: reserved memory init failed, ret = -22
    [    6.427036] remoteproc remoteproc0: releasing 5000000.m4fss
    [    6.441522] k3-m4-rproc: probe of 5000000.m4fss failed with error -22
    [    6.468430] rtc-ti-k3 2b1f0000.rtc: registered as rtc1
    [    6.625094] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    6.664049] pvrsrvkm: loading out-of-tree module taints kernel.
    [    6.682011] [drm] Initialized tidss 1.0.0 20180215 for 30200000.dss on minor 0
    [    6.707561] Console: switching to colour frame buffer device 160x50
    [    6.716006] platform 78000000.r5f: configured R5F for IPC-only mode
    [    6.716042] platform 78000000.r5f: device does not have reserved memory regions, ret = -22
    [    6.716056] k3_r5_rproc bus@f0000:bus@b00000:r5fss@78000000: reserved memory init failed, ret = -22
    [    6.716077] remoteproc remoteproc0: releasing 78000000.r5f
    [    6.716096] k3_r5_rproc bus@f0000:bus@b00000:r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22
    [    6.716172] k3_r5_rproc: probe of bus@f0000:bus@b00000:r5fss@78000000 failed with error -22
    [    6.815313] tidss 30200000.dss: [drm] fb0: tidssdrmfb frame buffer device
    [    6.872209] PVR_K:  189: Device: fd00000.gpu
    [    6.878480] PVR_K:  189: Read BVNC 33.15.11.3 from HW device registers
    [    6.901098] PVR_K:  189: RGX Device registered with BVNC 33.15.11.3
    [    6.920473] [drm] Initialized pvr 23.3.6512818 20170530 for fd00000.gpu on minor 1
    [    7.203159] omap_i2c 20020000.i2c: controller timed out
    [    7.208965] atmel_mxt_ts 2-004a: __mxt_read_reg: i2c transfer failed (-110)
    [    8.292712] omap_i2c 20020000.i2c: controller timed out
    [    8.298216] atmel_mxt_ts 2-004a: mxt_bootloader_read: i2c recv failed (-110)
    [    8.339297] atmel_mxt_ts 2-004a: Trying alternate bootloader address
    [  OK  ] Created slice Slice /system/systemd-backlight.
             Starting Load/Save Screen …cklight:backlight-mezzanine...
    [  OK  ] Finished Load/Save Screen …backli[    8.767149] remoteproc remoteproc0: 30074000.pru is available
    ght:backlight-mezzanine.
    [    8.788591] remoteproc remoteproc1: 30078000.pru is available
    [  OK  ] Created slice Slice /system/systemd-fsck.
    [    9.443048] omap_i2c 20020000.i2c: controller timed out
    [    9.448747] atmel_mxt_ts 2-004a: mxt_bootloader_read: i2c recv failed (-110)
    [    9.459827] atmel_mxt_ts: probe of 2-004a failed with error -110
    [  OK  ] Found device /dev/mmcblk0p1.
    [  OK  ] Finished Wait for udev To Complete Device Initialization.
    [    9.632302] audit: type=1334 audit(1651168016.400:4): prog-id=7 op=LOAD
    [    9.640796] audit: type=1334 audit(1651168016.408:5): prog-id=8 op=LOAD
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timer Units.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Listening on dropbear.socket.
    [  OK  ] Listening on GPS (Global P…ioning System) Daemon Sockets.
             Starting Weston socket...
             Starting File System Check on /dev/mmcblk0p1...
    [  OK  ] Listening on Weston socket.
    [  OK  ] Reached target Socket Units.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started Kernel Logging Service.
    [  OK  ] Started System Logging Service.
             Starting D-Bus System Message Bus...
             Starting IPv6 Packet Filtering Framework...
             Starting IPv4 Packet Filtering Framework...
             Starting Telephony service...
    [   10.104930] audit: type=1334 audit(1651168016.872:6): prog-id=9 op=LOAD
    [   10.120886] audit: type=1334 audit(1651168016.884:7): prog-id=10 op=LOAD
             Starting User Login Management...
    [  OK  ] Started Timestamping service.
             Starting Load default USB gadget schema g1.schema...
    [  OK  ] Started D-Bus System Message Bus.
    [   10.283768] using random self ethernet address
    [  OK  ] Finished File System Check on /dev/[   10.295159] using random host ethernet address
    mmcblk0p1.
    [  OK  ] Finished IPv6 Packet Filtering Framework.
    [  OK  ] Finished IPv4 Packet Filtering Fram[   10.345170] Bluetooth: Core ver 2.22
    ework.
    [   10.361183] NET: Registered PF_BLUETOOTH protocol family
    [   10.373526] Bluetooth: HCI device and connection manager initialized
    [   10.395151] Bluetooth: HCI socket layer initialized
    [   10.418422] Bluetooth: L2CAP socket layer initialized
    [  OK  ] Reached target Preparation for Network.
    [   10.441891] Bluetooth: SCO socket layer initialized
    [  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
             Mounting /media/boot-mmcblk0p1...
             Starting Connection service...
             Starting Network Configuration...
    [  OK  ] Mounted /media/boot-mmcblk0p1.
    [  OK  ] Started Telephony service.
    [  OK  ] Started User Login Management.
             Mounting /boot...
    [   10.828855] usb0: HOST MAC 2a:9b:31:70:5d:4d
    [  OK  ] Mounted /boot.[   10.852812] usb0: MAC 72:5a:b9:8f:e0:87
    
    [  OK  ] Finished Load default USB gadget schema g1.schema.
    [  OK  ] Reached target Hardware activated USB gadget.
    [  OK  ] Started Connection service.
             Starting Avahi mDNS/DNS-SD Stack...
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [   11.127165] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [   11.152139] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [   11.163462] cfg80211: Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
             Starting WPA supplicant...
    [   11.255994] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=360)
    [   11.269545] audit: type=1334 audit(1651168018.036:8): prog-id=11 op=LOAD
    [   11.281869] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    [   11.289110] audit: type=1334 audit(1651168018.044:9): prog-id=12 op=LOAD
    [   11.319530] am65-cpsw-nuss 8000000.ethernet eth1: configuring for fixed/rgmii-id link mode
             Starting Hostname Service...
    [   11.332232] am65-cpsw-nuss 8000000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
    [  OK  ] Started Network Configuration.
    [  OK  ] Started WPA supplicant.
    [   11.410830] 8021q: 802.1Q VLAN Support v1.8
    [   11.419568] 8021q: adding VLAN 0 to HW filter on device eth0
    [   11.419658] 8021q: adding VLAN 0 to HW filter on device eth1
    [  OK  ] Reached target Network.
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
             Starting Permit User Sessions...
             Starting Target Communication Framework agent...
    [  OK  ] Finished Permit User Sessions.
    [  OK  ] Started Target Communication Framework agent.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Reached target Login Prompts.
    [  OK  ] Reached target Multi-User System.
             Starting Weston, a Wayland…ositor, as a system service...
    [  OK  ] Started Hostname Service.
    [   11.894865] audit: type=1334 audit(1651168018.660:10): prog-id=13 op=LOAD
    [   11.906263] audit: type=1334 audit(1651168018.668:11): prog-id=14 op=LOAD
    [   11.907115] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
             Starting User Database Manager...
    [  OK  ] Started User Database Manager.
    [  OK  ] Created slice User Slice of UID 0.
             Starting User Runtime Directory /run/user/0...
    [  OK  ] Finished User Runtime Directory /run/user/0.
             Starting User Manager for UID 0...
    [   12.364243] audit: type=1006 audit(1651168019.132:12): pid=579 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1
    [   12.388834] audit: type=1300 audit(1651168019.132:12): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=fffff75d16a0 a2=1 a3=0 items=0 ppid=1 pid=579 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="(systemd)" exe="/lib/systemd/systemd" key=(null)
    [   12.444852] systemd-journald[159]: Data hash table of /run/log/journal/d53d015db723467c836277dda92d35be/system.journal has a fill level at 75.1 (2733 of 3640 items, 2097152 file size, 767 bytes per hash table item), suggesting rotation.
    [   12.472842] systemd-journald[159]: /run/log/journal/d53d015db723467c836277dda92d35be/system.journal: Journal header limits reached or header out-of-date, rotating.
    [  OK  ] Started User Manager for UID 0.
    [  OK  ] Started Session c1 of User root.
    [   13.396952] PVR_K:  573: RGX Firmware image 'rgx.fw.33.15.11.3' loaded
    [   13.411174] PVR_K:  573: Shader binary image 'rgx.sh.33.15.11.3' loaded
    [  OK  ] Started Weston, a Wayland …mpositor, as a system service.
    [  OK  ] Started Start a wayland application.
    [  OK  ] Reached target Graphical Interface.
             Starting Record Runlevel Change in UTMP...
    [  OK  ] Finished Record Runlevel Change in UTMP.
    [   14.730655] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   14.739628] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    
    TDX Wayland with XWayland 6.7.0-devel-20240920114915+build.0 (kirkstone) verdin-am62-15133535 -
    Verdin-AM62_Reference-Multimedia-Image
    
    verdin-am62-15133535 login: root
    Last login: Thu Apr 28 17:47:00 UTC 2022
    root@verdin-am62-15133535:~# ls
    pictures  sound  video
    root@verdin-am62-15133535:~# dmesg | grep spi
    [    1.125220] cadence-qspi fc40000.spi: couldn't determine read-delay
    [    1.131702] cadence-qspi fc40000.spi: failed to setup flash parameters -6
    [    1.273278] omap2_mcspi 20100000.spi: Runtime PM usage count underflow!
    [    1.517903] debugfs: Directory 'spi0.0' with parent 'regmap' already present!
    [    1.563085] spi0.0: ttyMAX0 at I/O 0x0 (irq = 364, base_baud = 2764800) is a MAX3109
    [    1.571361] spi0.0: ttyMAX1 at I/O 0x1 (irq = 364, base_baud = 2764800) is a MAX3109
    [    6.227733] ksz-switch spi1.1: unsupported switch detected ffffff00)
    root@verdin-am62-15133535:~# ^C
    root@verdin-am62-15133535:~# ^C
    root@verdin-am62-15133535:~# [   41.947342] kauditd_printk_skb: 12 callbacks suppressed
    [   41.947374] audit: type=1334 audit(1651168048.716:18): prog-id=12 op=UNLOAD
    [   41.960053] audit: type=1334 audit(1651168048.716:19): prog-id=11 op=UNLOAD
    

  • Hi,

    This statement leads me to believe that eth1 is configured correctly for interfacing to an external switch.

    [ 11.319530] am65-cpsw-nuss 8000000.ethernet eth1: configuring for fixed/rgmii-id link mode

    This message:

    [ 6.227733] ksz-switch spi1.1: unsupported switch detected ffffff00)

    looks to be coming from this file in the kernel source tree:

    drivers/net/dsa/microchip/ksz_common.c 

    TI is not going to be support understanding the root cause of why the switch driver is generated this message. I recommend contacting the switch vendor.

    I will put this thread into a resolved state from TI's perspective. If working with the switch vendor they ask additional questions please re-open this thread.

    Best Regards,

    Schuyler