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.

[参考译文] AM62A7:我对 Linux 下的 MDIO 有一些问题

Guru**** 1133960 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1237751/am62a7-i-have-some-questions-about-mdio-under-linux

器件型号:AM62A7

您好,TI 专家

我在适应网络驱动程序时遇到一些问题。

在内核启动过程中、MDIO 无法获取 RESET 引脚。 此外、MDIO 的初始化始终会出现错误

这是 phy 连接的原理图,

这是我的器件树文件、

// SPDX-License-Identifier: GPL-2.0
/*
 * AM62A SK: www.ti.com/.../sprr459
 *
 * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
 */

/dts-v1/;

#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/net/ti-dp83867.h>
#include "k3-am62a7.dtsi"

/ {
	compatible =  "ti,am62a7-sk", "ti,am62a7";
	model = "Texas Instruments AM62A7 SK";

	aliases {
		serial2 = &main_uart0;
		mmc0 = &sdhci0;
		mmc1 = &sdhci1;
		ethernet0 = &cpsw_port1;
	};

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

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

	dma_buf_phys {
		compatible = "ti,dma-buf-phys";
	};

	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_dma_memory_region: r5f-dma-memory@9c800000 {
			compatible = "shared-dma-pool";
			reg = <0x00 0x9c800000 0x00 0x100000>;
			no-map;
		};

		wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 {
			compatible = "shared-dma-pool";
			reg = <0x00 0x9c900000 0x00 0x01e00000>;
			no-map;
		};

		mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@9b800000 {
			compatible = "shared-dma-pool";
			reg = <0x00 0x9b800000 0x00 0x100000>;
			no-map;
		};

		mcu_r5fss0_core0_memory_region: r5f-dma-memory@9b900000 {
			compatible = "shared-dma-pool";
			reg = <0x00 0x9b900000 0x00 0x0f00000>;
			no-map;
		};

		c7x_0_dma_memory_region: c7x-dma-memory@99800000 {
			compatible = "shared-dma-pool";
			reg = <0x00 0x99800000 0x00 0x100000>;
			no-map;
		};

		c7x_0_memory_region: c7x-memory@99900000 {
			compatible = "shared-dma-pool";
			reg = <0x00 0x99900000 0x00 0x01efffff>;
			no-map;
		};

		edgeai_rtos_ipc_memory_region: edgeai-rtos-ipc-memory-region {
			reg = <0x00 0xa0000000 0x00 0x01000000>;
			no-map;
		};

		edgeai_memory_region: edgeai-dma-memory@a1000000 {
			compatible = "shared-dma-pool";
			reg = <0x00 0xa1000000 0x00 0x02000000>;
			no-map;
		};

		edgeai_shared_region: edgeai_shared-memories {
			compatible = "dma-heap-carveout";
			reg = <0x00 0xa3000000 0x00 0x0b000000>;
		};

		edgeai_core_heaps: edgeai-core-heap-memory@ae000000 {
			compatible = "shared-dma-pool";
			reg = <0x00 0xae000000 0x00 0x12000000>;
			no-map;
		};
	};

	// vmain_pd: regulator-0 {
	// 	/* TPS25750 PD CONTROLLER OUTPUT */
	// 	compatible = "regulator-fixed";
	// 	regulator-name = "vmain_pd";
	// 	regulator-min-microvolt = <5000000>;
	// 	regulator-max-microvolt = <5000000>;
	// 	regulator-always-on;
	// 	regulator-boot-on;
	// };

	// vcc_5v0: regulator-1 {
	// 	/* Output of TPS63070 */
	// 	compatible = "regulator-fixed";
	// 	regulator-name = "vcc_5v0";
	// 	regulator-min-microvolt = <5000000>;
	// 	regulator-max-microvolt = <5000000>;
	// 	vin-supply = <&vmain_pd>;
	// 	regulator-always-on;
	// 	regulator-boot-on;
	// };

	// vcc_3v3_main: regulator-2 {
	// 	/* output of LM5141-Q1 */
	// 	compatible = "regulator-fixed";
	// 	regulator-name = "vcc_3v3_main";
	// 	regulator-min-microvolt = <3300000>;
	// 	regulator-max-microvolt = <3300000>;
	// 	vin-supply = <&vmain_pd>;
	// 	regulator-always-on;
	// 	regulator-boot-on;
	// };

	// vdd_mmc1: regulator-3 {
	// 	/* TPS22918DBVR */
	// 	compatible = "regulator-fixed";
	// 	regulator-name = "vdd_mmc1";
	// 	regulator-min-microvolt = <3300000>;
	// 	regulator-max-microvolt = <3300000>;
	// 	regulator-boot-on;
	// 	enable-active-high;
	// 	gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
	// };

	// vcc_3v3_sys: regulator-4 {
	// 	/* output of TPS222965DSGT */
	// 	compatible = "regulator-fixed";
	// 	regulator-name = "vcc_3v3_sys";
	// 	regulator-min-microvolt = <3300000>;
	// 	regulator-max-microvolt = <3300000>;
	// 	vin-supply = <&vcc_3v3_main>;
	// 	regulator-always-on;
	// 	regulator-boot-on;
	// };

	// leds {
	// 	compatible = "gpio-leds";
	// 	pinctrl-names = "default";
	// 	pinctrl-0 = <&usr_led_pins_default>;

	// 	led-0 {
	// 		label = "am62a-sk:green:heartbeat";
	// 		gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>;
	// 		linux,default-trigger = "heartbeat";
	// 		function = LED_FUNCTION_HEARTBEAT;
	// 		default-state = "off";
	// 	};
	// };

	vmain_pd: regulator-0 {
		/* 蓄电池电源输出12V */
		compatible = "regulator-fixed";
		regulator-name = "vmain_pd";
		regulator-min-microvolt = <12000000>;
		regulator-max-microvolt = <12000000>;
		regulator-always-on;
		regulator-boot-on;
	};

	vcc_3v3_main: regulator-1 {
		/* output of LM61460-Q1 */
		compatible = "regulator-fixed";
		regulator-name = "vcc_3v3_main";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		vin-supply = <&vmain_pd>;
		regulator-always-on;
		regulator-boot-on;
	};

    /* ETH唤醒电 */
    vcc_3v3_ETHPSD: regulator-2 {
		/* output of TPS7B6933-Q1 */
		compatible = "regulator-fixed";
		regulator-name = "vcc_3v3_ETHPSD";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		vin-supply = <&vmain_pd>;
		regulator-always-on;
		regulator-boot-on;
	};

    /* CAN二级电源 */
    soc_adc_5v0: regulator-3 {
		/* output of LM27313-Q1 */
		compatible = "regulator-fixed";
		regulator-name = "soc_adc_5v0";
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
		vin-supply = <&vcc_3v3_main>;
		regulator-always-on;
		regulator-boot-on;
	};

	vcc_3v3_sys: regulator-4 {
		/* output of TPS22965TDSGRQ1 */
		compatible = "regulator-fixed";
		regulator-name = "vcc_3v3_sys";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		vin-supply = <&vcc_3v3_main>;
		regulator-always-on;
		regulator-boot-on;
	};

    /* MMC供电 */
    vdd_mmc1: regulator-5 {
		/* TPS22918DBVR */
		compatible = "regulator-fixed";
		regulator-name = "vdd_mmc1";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-boot-on;
		enable-active-high;
        pinctrl-names = "default";
	    pinctrl-0 = <&mmc1_sd_en_gpio_pins_default>;   /* (K18) GPMC0_DIR.GPIO0_40 (MMC1_SD_EN), 复用为GPIO0 40 */
		gpio = <&main_gpio0 40 GPIO_ACTIVE_HIGH>;      /* MMC1_SD_EN (GPIO0_40), MMC使能 */
	};

    /* sensor二级电源 */
    soc_adc_1v8: regulator-6 {
		/* TPS78401-Q1 */
		compatible = "regulator-fixed";
		regulator-name = "soc_adc_1v8";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		vin-supply = <&vcc_3v3_sys>;
		regulator-boot-on;
		regulator-always-on;
	};

    /* sensor二级电源 */
    soc_adc_2v8: regulator-7 {
		/* TPS78401-Q1 */
		compatible = "regulator-fixed";
		regulator-name = "soc_adc_2v8";
		regulator-min-microvolt = <2800000>;
		regulator-max-microvolt = <2800000>;
		vin-supply = <&vcc_3v3_sys>;
		regulator-boot-on;
        enable-active-high;
        pinctrl-names = "default";
	    pinctrl-0 = <&sensor_power_en_pins_default>;   /* (AA18) RGMII2_TD2.GPIO0_91 (SENOR_POWER_EN) */
		gpio = <&main_gpio0 91 GPIO_ACTIVE_HIGH>;      /* SENOR_POWER_EN (GPIO0_91), sensor二级电源使能 */
	};

    /* sensor二级电源 */
    soc_adc_1v2: regulator-8 {
		/* TPS78401-Q1 */
		compatible = "regulator-fixed";
		regulator-name = "soc_adc_1v2";
		regulator-min-microvolt = <1200000>;
		regulator-max-microvolt = <1200000>;
		vin-supply = <&vcc_3v3_sys>;
		regulator-boot-on;
		regulator-always-on;
	};



	// hdmi_mstrclk: hdmi-mstrclk {
	// 	compatible = "fixed-clock";
	// 	#clock-cells = <0>;
	// 	clock-frequency = <12288000>;
	// };

	// tlv320_mclk: clk-0 {
	// 	#clock-cells = <0>;
	// 	compatible = "fixed-clock";
	// 	clock-frequency = <12288000>;
	// };

	// codec_audio: sound {
	// 	compatible = "simple-audio-card";
	// 	simple-audio-card,name = "AM62Ax-SKEVM";
	// 	simple-audio-card,widgets =
	// 		"Headphone",	"Headphone Jack",
	// 		"Line",	"Line In",
	// 		"Microphone",	"Microphone Jack";
	// 	simple-audio-card,routing =
	// 		"Headphone Jack",	"HPLOUT",
	// 		"Headphone Jack",	"HPROUT",
	// 		"LINE1L",		"Line In",
	// 		"LINE1R",		"Line In",
	// 		"MIC3R",		"Microphone Jack",
	// 		"Microphone Jack",	"Mic Bias";
	// 	simple-audio-card,format = "dsp_b";
	// 	simple-audio-card,bitclock-master = <&sound_master>;
	// 	simple-audio-card,frame-master = <&sound_master>;
	// 	simple-audio-card,bitclock-inversion;

	// 	simple-audio-card,cpu {
	// 		sound-dai = <&mcasp1>;
	// 	};

	// 	sound_master: simple-audio-card,codec {
	// 		sound-dai = <&tlv320aic3106>;
	// 		clocks = <&tlv320_mclk>;
	// 	};
	// };

	// hdmi: connector {
	// 	compatible = "hdmi-connector";
	// 	label = "hdmi";
	// 	type = "a";
	// 	port {
	// 		hdmi_connector_in: endpoint {
	// 			remote-endpoint = <&sii9022_out>;
	// 		};
	// 	};
	// };
};

&main_pmx0 {
	/* MMC1 使能 */
	mmc1_sd_en_gpio_pins_default: mmc1-sd-en-pins-default {
		pinctrl-single,pins = <
			AM62AX_IOPAD(0x00a4, PIN_OUTPUT, 7) /* (K18) GPMC0_DIR.GPIO0_40 (MMC1_SD_EN) */
		>;
	};

    /* sensor二级电源使能 */
	sensor_power_en_pins_default: sensor-power-en-pins-default {
		pinctrl-single,pins = <
			AM62AX_IOPAD(0x0174, PIN_OUTPUT, 7) /* (AA18) RGMII2_TD2.GPIO0_91 (SENOR_POWER_EN) */
		>;
	};

	main_uart0_pins_default: main-uart0-pins-default {
		pinctrl-single,pins = <
			AM62AX_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14) UART0_RXD */
			AM62AX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */
		>;
	};

	main_i2c0_pins_default: main-i2c0-pins-default {
		pinctrl-single,pins = <
			AM62AX_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
			AM62AX_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
		>;
	};

	main_i2c1_pins_default: main-i2c1-pins-default {
		pinctrl-single,pins = <
			AM62AX_IOPAD(0x1e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */
			AM62AX_IOPAD(0x1ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */
		>;
	};

	main_i2c2_pins_default: main-i2c2-pins-default {
		pinctrl-single,pins = <
			AM62AX_IOPAD(0x0b0, PIN_INPUT_PULLUP, 1) /* (K22) GPMC0_CSn2.I2C2_SCL */
			AM62AX_IOPAD(0x0b4, PIN_INPUT_PULLUP, 1) /* (K24) GPMC0_CSn3.I2C2_SDA */
		>;
	};

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

	main_mmc1_pins_default: main-mmc1-pins-default {
		pinctrl-single,pins = <
			AM62AX_IOPAD(0x23c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
			AM62AX_IOPAD(0x234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
			AM62AX_IOPAD(0x230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */
			AM62AX_IOPAD(0x22c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */
			AM62AX_IOPAD(0x228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */
			AM62AX_IOPAD(0x224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
			AM62AX_IOPAD(0x240, PIN_INPUT, 0) /* (D17) MMC1_SDCD */
		>;
	};

	// usr_led_pins_default: usr-led-pins-default {
	// 	pinctrl-single,pins = <
	// 		AM62AX_IOPAD(0x244, PIN_OUTPUT, 7) /* (D18) MMC1_SDWP.GPIO1_49 */
	// 	>;
	// };

	// main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-pins-default {
	// 	pinctrl-single,pins = <
	// 		AM62AX_IOPAD(0x01d4, PIN_INPUT, 7) /* (C15) UART0_RTSn.GPIO1_23 */

	// 	>;
	// };

	// main_dss0_pins_default: main-dss0-pins-default {
	// 	pinctrl-single,pins = <
	// 		AM62AX_IOPAD(0x100, PIN_OUTPUT, 0) /* (V17) VOUT0_VSYNC */
	// 		AM62AX_IOPAD(0x0f8, PIN_OUTPUT, 0) /* (T18) VOUT0_HSYNC */
	// 		AM62AX_IOPAD(0x104, PIN_OUTPUT, 0) /* (AA22) VOUT0_PCLK */
	// 		AM62AX_IOPAD(0x0fc, PIN_OUTPUT, 0) /* (U17) VOUT0_DE */
	// 		AM62AX_IOPAD(0x0b8, PIN_OUTPUT, 0) /* (U22) VOUT0_DATA0 */
	// 		AM62AX_IOPAD(0x0bc, PIN_OUTPUT, 0) /* (U21) VOUT0_DATA1 */
	// 		AM62AX_IOPAD(0x0c0, PIN_OUTPUT, 0) /* (U20) VOUT0_DATA2 */
	// 		AM62AX_IOPAD(0x0c4, PIN_OUTPUT, 0) /* (U19) VOUT0_DATA3 */
	// 		AM62AX_IOPAD(0x0c8, PIN_OUTPUT, 0) /* (T19) VOUT0_DATA4 */
	// 		AM62AX_IOPAD(0x0cc, PIN_OUTPUT, 0) /* (U18) VOUT0_DATA5 */
	// 		AM62AX_IOPAD(0x0d0, PIN_OUTPUT, 0) /* (V22) VOUT0_DATA6 */
	// 		AM62AX_IOPAD(0x0d4, PIN_OUTPUT, 0) /* (V21) VOUT0_DATA7 */
	// 		AM62AX_IOPAD(0x0d8, PIN_OUTPUT, 0) /* (V19) VOUT0_DATA8 */
	// 		AM62AX_IOPAD(0x0dc, PIN_OUTPUT, 0) /* (V18) VOUT0_DATA9 */
	// 		AM62AX_IOPAD(0x0e0, PIN_OUTPUT, 0) /* (W22) VOUT0_DATA10 */
	// 		AM62AX_IOPAD(0x0e4, PIN_OUTPUT, 0) /* (W21) VOUT0_DATA11 */
	// 		AM62AX_IOPAD(0x0e8, PIN_OUTPUT, 0) /* (W20) VOUT0_DATA12 */
	// 		AM62AX_IOPAD(0x0ec, PIN_OUTPUT, 0) /* (W19) VOUT0_DATA13 */
	// 		AM62AX_IOPAD(0x0f0, PIN_OUTPUT, 0) /* (Y21) VOUT0_DATA14 */
	// 		AM62AX_IOPAD(0x0f4, PIN_OUTPUT, 0) /* (Y22) VOUT0_DATA15 */
	// 		AM62AX_IOPAD(0x05c, PIN_OUTPUT, 1) /* (P22) GPMC0_AD8.VOUT0_DATA16 */
	// 		AM62AX_IOPAD(0x060, PIN_OUTPUT, 1) /* (R19) GPMC0_AD9.VOUT0_DATA17 */
	// 		AM62AX_IOPAD(0x064, PIN_OUTPUT, 1) /* (R20) GPMC0_AD10.VOUT0_DATA18 */
	// 		AM62AX_IOPAD(0x068, PIN_OUTPUT, 1) /* (R22) GPMC0_AD11.VOUT0_DATA19 */
	// 		AM62AX_IOPAD(0x06c, PIN_OUTPUT, 1) /* (T22) GPMC0_AD12.VOUT0_DATA20 */
	// 		AM62AX_IOPAD(0x070, PIN_OUTPUT, 1) /* (R21) GPMC0_AD13.VOUT0_DATA21 */
	// 		AM62AX_IOPAD(0x074, PIN_OUTPUT, 1) /* (T20) GPMC0_AD14.VOUT0_DATA22 */
	// 		AM62AX_IOPAD(0x078, PIN_OUTPUT, 1) /* (T21) GPMC0_AD15.VOUT0_DATA23 */
	// 	>;
	// };

	// ospi0_pins_default: ospi0-pins-default {
	// 	pinctrl-single,pins = <
	// 		AM62AX_IOPAD(0x000, PIN_OUTPUT, 0) /* (H24) OSPI0_CLK */
	// 		AM62AX_IOPAD(0x02c, PIN_OUTPUT, 0) /* (F23) OSPI0_CSn0 */
	// 		AM62AX_IOPAD(0x00c, PIN_INPUT, 0) /* (E25) OSPI0_D0 */
	// 		AM62AX_IOPAD(0x010, PIN_INPUT, 0) /* (G24) OSPI0_D1 */
	// 		AM62AX_IOPAD(0x014, PIN_INPUT, 0) /* (F25) OSPI0_D2 */
	// 		AM62AX_IOPAD(0x018, PIN_INPUT, 0) /* (F24) OSPI0_D3 */
	// 		AM62AX_IOPAD(0x01c, PIN_INPUT, 0) /* (J23) OSPI0_D4 */
	// 		AM62AX_IOPAD(0x020, PIN_INPUT, 0) /* (J25) OSPI0_D5 */
	// 		AM62AX_IOPAD(0x024, PIN_INPUT, 0) /* (H25) OSPI0_D6 */
	// 		AM62AX_IOPAD(0x028, PIN_INPUT, 0) /* (J22) OSPI0_D7 */
	// 		AM62AX_IOPAD(0x008, PIN_INPUT, 0) /* (J24) OSPI0_DQS */
	// 	>;
	// };

	main_usb1_pins_default: main-usb1-pins-default {
		pinctrl-single,pins = <
			AM62AX_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18) USB1_DRVVBUS */
		>;
	};

	main_mdio1_pins_default: main-mdio1-pins-default {
		pinctrl-single,pins = <
			AM62AX_IOPAD(0x160, PIN_OUTPUT, 0) /* (V12) MDIO0_MDC */
			AM62AX_IOPAD(0x15c, PIN_INPUT, 0) /* (V13) MDIO0_MDIO */
		>;
	};

	main_rgmii1_pins_default: main-rgmii1-pins-default {
		pinctrl-single,pins = <
			AM62AX_IOPAD(0x14c, PIN_INPUT, 0) /* (AB16) RGMII1_RD0 */
			AM62AX_IOPAD(0x150, PIN_INPUT, 0) /* (V15) RGMII1_RD1 */
			AM62AX_IOPAD(0x154, PIN_INPUT, 0) /* (W15) RGMII1_RD2 */
			AM62AX_IOPAD(0x158, PIN_INPUT, 0) /* (V14) RGMII1_RD3 */
			AM62AX_IOPAD(0x148, PIN_INPUT, 0) /* (AA16) RGMII1_RXC */
			AM62AX_IOPAD(0x144, PIN_INPUT, 0) /* (AA15) RGMII1_RX_CTL */
			AM62AX_IOPAD(0x134, PIN_INPUT, 0) /* (Y17) RGMII1_TD0 */
			AM62AX_IOPAD(0x138, PIN_INPUT, 0) /* (V16) RGMII1_TD1 */
			AM62AX_IOPAD(0x13c, PIN_INPUT, 0) /* (Y16) RGMII1_TD2 */
			AM62AX_IOPAD(0x140, PIN_INPUT, 0) /* (AA17) RGMII1_TD3 */
			AM62AX_IOPAD(0x130, PIN_INPUT, 0) /* (AB17) RGMII1_TXC */
			AM62AX_IOPAD(0x12c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */
			AM62AX_IOPAD(0x190, PIN_INPUT, 7) /* (AB20) RGMII2_RD3.GPIO1_6.PHY_RESET */
		>;
	};

	// main_mcan0_pins_default: main-mcan0-pins-default {
	// 	pinctrl-single,pins = <
	// 		AM62AX_IOPAD(0x1d8, PIN_OUTPUT, 0) /* (B17) MCAN0_TX.UART5_RXD */
	// 		AM62AX_IOPAD(0x1dc, PIN_INPUT, 0) /* (C18) MCAN0_RX.UART5_TXD */
	// 	>;
	// };

	// main_mcasp1_pins_default: main-mcasp1-pins-default {
	// 	pinctrl-single,pins = <
	// 		AM62AX_IOPAD(0x090, PIN_INPUT, 2) /* (L19) GPMC0_BE0n_CLE.MCASP1_ACLKX */
	// 		AM62AX_IOPAD(0x098, PIN_INPUT, 2) /* (R18) GPMC0_WAIT0.MCASP1_AFSX */
	// 		AM62AX_IOPAD(0x08c, PIN_OUTPUT, 2) /* (K19) GPMC0_WEn.MCASP1_AXR0 */
	// 		AM62AX_IOPAD(0x084, PIN_INPUT, 2) /* (L18) GPMC0_ADVn_ALE.MCASP1_AXR2 */
	// 	>;
	// };
};

&main_gpio1 {
	status = "okay";
};

&main_i2c0 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&main_i2c0_pins_default>;
	clock-frequency = <400000>;

	// typec_pd: usb-pd@3f {
	// 	compatible = "ti,tps6598x";
	// 	reg = <0x3f>;

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

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

	// 				usb_con_hs: endpoint {
	// 					remote-endpoint = <&typec_hs>;
	// 				};
	// 			};
	// 		};
	// 	};
	// };
};

&main_i2c1 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&main_i2c1_pins_default>;
	clock-frequency = <100000>;

	// exp1: gpio@22 {
	// 	compatible = "ti,tca6424";
	// 	reg = <0x22>;
	// 	gpio-controller;
	// 	#gpio-cells = <2>;

	// 	interrupt-parent = <&main_gpio1>;
	// 	interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
	// 	interrupt-controller;
	// 	#interrupt-cells = <2>;
	// 	gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
	// 			   "BT_EN_SOC", "MMC1_SD_EN",
	// 			   "VPP_EN", "EXP_PS_3V3_En",
	// 			   "EXP_PS_5V0_En", "EXP_HAT_DETECT",
	// 			   "GPIO_AUD_RSTn", "GPIO_eMMC_RSTn",
	// 			   "UART1_FET_BUF_EN", "BT_UART_WAKE_SOC",
	// 			   "GPIO_HDMI_RSTn", "CSI_GPIO0",
	// 			   "CSI_GPIO1", "WLAN_ALERTn",
	// 			   "HDMI_INTn", "TEST_GPIO2",
	// 			   "MCASP1_FET_EN", "MCASP1_BUF_BT_EN",
	// 			   "MCASP1_FET_SEL", "UART1_FET_SEL",
	// 			   "PD_I2C_IRQ", "IO_EXP_TEST_LED";

	// 	pinctrl-names = "default";
	// 	pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>;
	// };

	// sii9022: sii9022@3b {
	// 	#sound-dai-cells = <0>;
	// 	compatible = "sil,sii9022";
	// 	reg = <0x3b>;

	// 	clocks = <&hdmi_mstrclk>;
	// 	clock-names = "mclk";

	// 	interrupt-parent = <&exp1>;
	// 	interrupts = <16 IRQ_TYPE_EDGE_FALLING>;

	// 	sil,i2s-data-lanes = < 0 >;

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

	// 		port@0 {
	// 			reg = <0>;

	// 			sii9022_in: endpoint {
	// 				remote-endpoint = <&dpi1_out>;
	// 			};
	// 		};

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

	// 			sii9022_out: endpoint {
	// 				remote-endpoint = <&hdmi_connector_in>;
	// 			};
	// 		};
	// 	};
	// };

	// tlv320aic3106: audio-codec@1b {
	// 	#sound-dai-cells = <0>;
	// 	compatible = "ti,tlv320aic3106";
	// 	reg = <0x1b>;
	// 	ai3x-micbias-vg = <1>;		/* 2.0V */
	// 	status = "okay";

	// 	/* Regulators */
	// 	AVDD-supply = <&vcc_3v3_sys>;
	// 	IOVDD-supply = <&vcc_3v3_sys>;
	// 	DRVDD-supply = <&vcc_3v3_sys>;
	// };

	// exp2: gpio@23 {
	// 	compatible = "ti,tca6424";
	// 	reg = <0x23>;
	// 	gpio-controller;
	// 	#gpio-cells = <2>;
	// };
};

&main_i2c2 {
	status = "disabled";
	pinctrl-names = "default";
	pinctrl-0 = <&main_i2c2_pins_default>;
	clock-frequency = <400000>;
};

// &mcasp1 {
// 	status = "okay";
// 	#sound-dai-cells = <0>;

// 	pinctrl-names = "default";
// 	pinctrl-0 = <&main_mcasp1_pins_default>;

// 	op-mode = <0>;          /* MCASP_IIS_MODE */
// 	tdm-slots = <2>;

// 	serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
// 	       1 0 2 0
// 	       0 0 0 0
// 	       0 0 0 0
// 	       0 0 0 0
// 	>;
// 	tx-num-evt = <32>;
// 	rx-num-evt = <32>;
// };

&sdhci0 {
	status = "disabled";
	pinctrl-names = "default";
	pinctrl-0 = <&main_mmc0_pins_default>;
	ti,driver-strength-ohm = <50>;
	disable-wp;
};

&sdhci1 {
	/* SD/MMC */
	status = "okay";
	vmmc-supply = <&vdd_mmc1>;
	pinctrl-names = "default";
	pinctrl-0 = <&main_mmc1_pins_default>;
	ti,driver-strength-ohm = <50>;
	disable-wp;
};

&main_gpio0 {
	status = "okay";
};

&main_gpio1 {
	status = "okay";
};

&main_gpio_intr {
	status = "okay";
};

&main_uart0 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&main_uart0_pins_default>;
};

// &dss {
// 	pinctrl-names = "default";
// 	pinctrl-0 = <&main_dss0_pins_default>;
// };

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

// 		dpi1_out: endpoint {
// 			remote-endpoint = <&sii9022_in>;
// 		};
// 	};
// };

&usbss1 {
	status = "okay";
};

&usb1 {
	dr_mode = "host";
	pinctrl-names = "default";
	pinctrl-0 = <&main_usb1_pins_default>;
};

&cpsw3g {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&main_mdio1_pins_default
		     &main_rgmii1_pins_default>;
};

&cpsw_port1 {
	status = "okay";
	phy-mode = "rgmii-rxid";
	phy-handle = <&cpsw3g_phy0>;
};

&cpsw_port2 {
	status = "disabled";
};

&cpsw3g_mdio {
	status = "okay";
	pinctrl-names = "default";
	reset-gpios = <&main_gpio1 6 GPIO_ACTIVE_LOW>;
	reset-post_delay-us = <10000>;

	cpsw3g_phy0: ethernet-phy@0 {
		reg = <0>;
		compatible = "ethernet-phy-ieee802.3-c45";
		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
		ti,min-output-impedance;
	};
};

&usbss0 {
	status = "okay";
};

&usb0 {
	#address-cells = <1>;
	#size-cells = <0>;
	usb-role-switch;

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

	// 	typec_hs: endpoint {
	// 		remote-endpoint = <&usb_con_hs>;
	// 	};
	// };
};

&mailbox0_cluster0 {
	mbox_r5_0: mbox-r5-0 {
		ti,mbox-rx = <0 0 0>;
		ti,mbox-tx = <1 0 0>;
	};
};

&mailbox0_cluster1 {
	mbox_c7x_0: mbox-c7x-0 {
		ti,mbox-rx = <0 0 0>;
		ti,mbox-tx = <1 0 0>;
	};
};

&mailbox0_cluster2 {
	mbox_mcu_r5_0: mbox-mcu_r5-0 {
		ti,mbox-rx = <0 0 0>;
		ti,mbox-tx = <1 0 0>;
	};
};

&c7x_0 {
	mboxes = <&mailbox0_cluster1 &mbox_c7x_0>;
	memory-region = <&c7x_0_dma_memory_region>,
			<&c7x_0_memory_region>;
};

&wkup_r5fss0_core0 {
	mboxes = <&mailbox0_cluster0 &mbox_r5_0>;
	memory-region = <&wkup_r5fss0_core0_dma_memory_region>,
		<&wkup_r5fss0_core0_memory_region>;
};

&mcu_r5fss0_core0 {
	mboxes = <&mailbox0_cluster2 &mbox_mcu_r5_0>;
	memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
			<&mcu_r5fss0_core0_memory_region>;
};

&csi0_port0 {
	status = "disabled";
};

&csi0_port1 {
	status = "disabled";
};

&csi0_port2 {
	status = "disabled";
};

&csi0_port3 {
	status = "disabled";
};

&csi0_port4 {
	status = "disabled";
};

&fss {
	status = "okay";
};

// &ospi0 {
// 	status = "okay";
// 	pinctrl-names = "default";
// 	pinctrl-0 = <&ospi0_pins_default>;

// 	flash@0 {
// 		compatible = "spi-nand";
// 		reg = <0x0>;
// 		spi-tx-bus-width = <8>;
// 		spi-rx-bus-width = <8>;
// 		spi-max-frequency = <25000000>;
// 		cdns,tshsl-ns = <60>;
// 		cdns,tsd2d-ns = <60>;
// 		cdns,tchsh-ns = <60>;
// 		cdns,tslch-ns = <60>;
// 		cdns,read-delay = <2>;
// 		cdns,phy-mode;

// 		partitions {
// 			compatible = "fixed-partitions";
// 			#address-cells = <1>;
// 			#size-cells = <1>;

// 			partition@0 {
// 				label = "ospi.tiboot3";
// 				reg = <0x0 0x80000>;
// 			};

// 			partition@80000 {
// 				label = "ospi.tispl";
// 				reg = <0x80000 0x200000>;
// 			};

// 			partition@280000 {
// 				label = "ospi.u-boot";
// 				reg = <0x280000 0x400000>;
// 			};

// 			partition@680000 {
// 				label = "ospi.env";
// 				reg = <0x680000 0x40000>;
// 			};

// 			partition@6c0000 {
// 				label = "ospi.env.backup";
// 				reg = <0x6c0000 0x40000>;
// 			};

// 			partition@2000000 {
// 				label = "ospi.rootfs";
// 				reg = <0x2000000 0x5fc0000>;
// 			};

// 			partition@7fc0000 {
// 				label = "ospi.phypattern";
// 				reg = <0x7fc0000 0x40000>;
// 			};
// 		};
// 	};
// };

// SPDX-License-Identifier: GPL-2.0
/*
 * Device Tree Source for AM62A SoC Family Main Domain peripherals
 *
 * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
 */

&cbass_main {
	oc_sram: sram@70000000 {
		compatible = "mmio-sram";
		reg = <0x00 0x70000000 0x00 0x10000>;
		#address-cells = <1>;
		#size-cells = <1>;
		ranges = <0x0 0x00 0x70000000 0x10000>;
	};

	gic500: interrupt-controller@1800000 {
		compatible = "arm,gic-v3";
		reg = <0x00 0x01800000 0x00 0x10000>,	/* GICD */
		      <0x00 0x01880000 0x00 0xc0000>,	/* GICR */
		      <0x00 0x01880000 0x00 0xc0000>,   /* GICR */
		      <0x01 0x00000000 0x00 0x2000>,    /* GICC */
		      <0x01 0x00010000 0x00 0x1000>,    /* GICH */
		      <0x01 0x00020000 0x00 0x2000>;    /* GICV */
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;
		#interrupt-cells = <3>;
		interrupt-controller;
		/*
		 * vcpumntirq:
		 * virtual CPU interface maintenance interrupt
		 */
		interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;

		gic_its: msi-controller@1820000 {
			compatible = "arm,gic-v3-its";
			reg = <0x00 0x01820000 0x00 0x10000>;
			socionext,synquacer-pre-its = <0x1000000 0x400000>;
			msi-controller;
			#msi-cells = <1>;
		};
	};

	main_conf: syscon@100000 {
		compatible = "ti,j721e-system-controller", "syscon", "simple-mfd";
		reg = <0x00 0x00100000 0x00 0x20000>;
		#address-cells = <1>;
		#size-cells = <1>;
		ranges = <0x00 0x00 0x00100000 0x20000>;

		phy_gmii_sel: phy@4044 {
			compatible = "ti,am654-phy-gmii-sel";
			reg = <0x4044 0x8>;
			#phy-cells = <1>;
		};

		epwm_tbclk: clock@4130 {
			compatible = "ti,am62-epwm-tbclk", "syscon";
			reg = <0x4130 0x4>;
			#clock-cells = <1>;
		};
	};

	dmss: bus@48000000 {
		compatible = "simple-bus";
		#address-cells = <2>;
		#size-cells = <2>;
		dma-ranges;
		ranges = <0x00 0x48000000 0x00 0x48000000 0x00 0x06000000>;

		ti,sci-dev-id = <25>;

		secure_proxy_main: mailbox@4d000000 {
			compatible = "ti,am654-secure-proxy";
			reg = <0x00 0x4d000000 0x00 0x80000>,
			      <0x00 0x4a600000 0x00 0x80000>,
			      <0x00 0x4a400000 0x00 0x80000>;
			reg-names = "target_data", "rt", "scfg";
			#mbox-cells = <1>;
			interrupt-names = "rx_012";
			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
		};

		inta_main_dmss: interrupt-controller@48000000 {
			compatible = "ti,sci-inta";
			reg = <0x00 0x48000000 0x00 0x100000>;
			#interrupt-cells = <0>;
			interrupt-controller;
			interrupt-parent = <&gic500>;
			msi-controller;
			ti,sci = <&dmsc>;
			ti,sci-dev-id = <28>;
			ti,interrupt-ranges = <6 70 34>;
			ti,unmapped-event-sources = <&main_bcdma>, <&main_pktdma>;
		};

		main_bcdma: dma-controller@485c0100 {
			compatible = "ti,am64-dmss-bcdma";
			reg = <0x00 0x485c0100 0x00 0x100>,
			      <0x00 0x4c000000 0x00 0x20000>,
			      <0x00 0x4a820000 0x00 0x20000>,
			      <0x00 0x4aa40000 0x00 0x20000>,
			      <0x00 0x4bc00000 0x00 0x100000>;
			reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt";
			msi-parent = <&inta_main_dmss>;
			#dma-cells = <3>;
			ti,sci = <&dmsc>;
			ti,sci-dev-id = <26>;
			ti,sci-rm-range-bchan = <0x20>; /* BLOCK_COPY_CHAN */
			ti,sci-rm-range-rchan = <0x21>; /* SPLIT_TR_RX_CHAN */
			ti,sci-rm-range-tchan = <0x22>; /* SPLIT_TR_TX_CHAN */
		};

		main_pktdma: dma-controller@485c0000 {
			compatible = "ti,am64-dmss-pktdma";
			reg = <0x00 0x485c0000 0x00 0x100>,
			      <0x00 0x4a800000 0x00 0x20000>,
			      <0x00 0x4aa00000 0x00 0x40000>,
			      <0x00 0x4b800000 0x00 0x400000>;
			reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt";
			msi-parent = <&inta_main_dmss>;
			#dma-cells = <2>;
			ti,sci = <&dmsc>;
			ti,sci-dev-id = <30>;
			ti,sci-rm-range-tchan = <0x23>, /* UNMAPPED_TX_CHAN */
						<0x24>, /* CPSW_TX_CHAN */
						<0x25>, /* SAUL_TX_0_CHAN */
						<0x26>; /* SAUL_TX_1_CHAN */
			ti,sci-rm-range-tflow = <0x10>, /* RING_UNMAPPED_TX_CHAN */
						<0x11>, /* RING_CPSW_TX_CHAN */
						<0x12>, /* RING_SAUL_TX_0_CHAN */
						<0x13>; /* RING_SAUL_TX_1_CHAN */
			ti,sci-rm-range-rchan = <0x29>, /* UNMAPPED_RX_CHAN */
						<0x2b>, /* CPSW_RX_CHAN */
						<0x2d>, /* SAUL_RX_0_CHAN */
						<0x2f>, /* SAUL_RX_1_CHAN */
						<0x31>, /* SAUL_RX_2_CHAN */
						<0x33>; /* SAUL_RX_3_CHAN */
			ti,sci-rm-range-rflow = <0x2a>, /* FLOW_UNMAPPED_RX_CHAN */
						<0x2c>, /* FLOW_CPSW_RX_CHAN */
						<0x2e>, /* FLOW_SAUL_RX_0/1_CHAN */
						<0x32>; /* FLOW_SAUL_RX_2/3_CHAN */
		};
	};

	dmss_csi: bus@4e000000 {
		compatible = "simple-bus";
		#address-cells = <2>;
		#size-cells = <2>;
		dma-ranges;
		ranges = <0x00 0x4e000000 0x00 0x4e000000 0x00 0x300000>;

		ti,sci-dev-id = <198>;

		inta_main_dmss_csi: interrupt-controller@4e0a0000 {
			compatible = "ti,sci-inta";
			reg = <0x00 0x4e0a0000 0x00 0x8000>;
			#interrupt-cells = <0>;
			interrupt-controller;
			interrupt-parent = <&gic500>;
			msi-controller;
			ti,sci = <&dmsc>;
			ti,sci-dev-id = <200>;
			ti,interrupt-ranges = <0 237 8>;
			ti,unmapped-event-sources = <&main_bcdma_csi>;
			power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;
		};

		main_bcdma_csi: dma-controller@4e230000 {
			compatible = "ti,am62a-dmss-bcdma-csirx";
			reg = <0x00 0x4e230000 0x00 0x100>,
			      <0x00 0x4e180000 0x00 0x8000>,
			      <0x00 0x4e100000 0x00 0x10000>;
			reg-names = "gcfg", "rchanrt", "ringrt";
			msi-parent = <&inta_main_dmss_csi>;
			#dma-cells = <3>;
			ti,sci = <&dmsc>;
			ti,sci-dev-id = <199>;
			ti,sci-rm-range-rchan = <0x21>;
			power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;
		};
	};

	dmsc: system-controller@44043000 {
		compatible = "ti,k2g-sci";
		reg = <0x00 0x44043000 0x00 0xfe0>;
		reg-names = "debug_messages";
		ti,host-id = <12>;
		mbox-names = "rx", "tx";
		mboxes= <&secure_proxy_main 12>,
			<&secure_proxy_main 13>;

		k3_pds: power-controller {
			compatible = "ti,sci-pm-domain";
			#power-domain-cells = <2>;
		};

		k3_clks: clock-controller {
			compatible = "ti,k2g-sci-clk";
			#clock-cells = <2>;
		};

		k3_reset: reset-controller {
			compatible = "ti,sci-reset";
			#reset-cells = <2>;
		};
	};

	crypto: crypto@40900000 {
		compatible = "ti,am62-sa3ul";
		reg = <0x00 0x40900000 0x00 0x1200>;
		#address-cells = <2>;
		#size-cells = <2>;
		ranges = <0x00 0x40900000 0x00 0x40900000 0x00 0x30000>;

		dmas = <&main_pktdma 0xf501 0>, <&main_pktdma 0x7506 0>,
				<&main_pktdma 0x7507 0>;
		dma-names = "tx", "rx1", "rx2";
	};

	main_pmx0: pinctrl@f4000 {
		compatible = "pinctrl-single";
		reg = <0x00 0xf4000 0x00 0x2ac>;
		#pinctrl-cells = <1>;
		pinctrl-single,register-width = <32>;
		pinctrl-single,function-mask = <0xffffffff>;
	};

	main_uart0: serial@2800000 {
		compatible = "ti,am64-uart", "ti,am654-uart";
		reg = <0x00 0x02800000 0x00 0x100>;
		interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
		power-domains = <&k3_pds 146 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 146 0>;
		clock-names = "fclk";
		status = "disabled";
	};

	main_uart1: serial@2810000 {
		compatible = "ti,am64-uart", "ti,am654-uart";
		reg = <0x00 0x02810000 0x00 0x100>;
		interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>;
		power-domains = <&k3_pds 152 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 152 0>;
		clock-names = "fclk";
		status = "disabled";
	};

	main_uart2: serial@2820000 {
		compatible = "ti,am64-uart", "ti,am654-uart";
		reg = <0x00 0x02820000 0x00 0x100>;
		interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
		power-domains = <&k3_pds 153 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 153 0>;
		clock-names = "fclk";
		status = "disabled";
	};

	main_uart3: serial@2830000 {
		compatible = "ti,am64-uart", "ti,am654-uart";
		reg = <0x00 0x02830000 0x00 0x100>;
		interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>;
		power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 154 0>;
		clock-names = "fclk";
		status = "disabled";
	};

	main_uart4: serial@2840000 {
		compatible = "ti,am64-uart", "ti,am654-uart";
		reg = <0x00 0x02840000 0x00 0x100>;
		interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>;
		power-domains = <&k3_pds 155 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 155 0>;
		clock-names = "fclk";
		status = "disabled";
	};

	main_uart5: serial@2850000 {
		compatible = "ti,am64-uart", "ti,am654-uart";
		reg = <0x00 0x02850000 0x00 0x100>;
		interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>;
		power-domains = <&k3_pds 156 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 156 0>;
		clock-names = "fclk";
		status = "disabled";
	};

	main_uart6: serial@2860000 {
		compatible = "ti,am64-uart", "ti,am654-uart";
		reg = <0x00 0x02860000 0x00 0x100>;
		interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
		power-domains = <&k3_pds 158 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 158 0>;
		clock-names = "fclk";
		status = "disabled";
	};

	main_i2c0: i2c@20000000 {
		compatible = "ti,am64-i2c", "ti,omap4-i2c";
		reg = <0x00 0x20000000 0x00 0x100>;
		interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
		#address-cells = <1>;
		#size-cells = <0>;
		power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 102 2>;
		clock-names = "fck";
		status = "disabled";
	};

	main_i2c1: i2c@20010000 {
		compatible = "ti,am64-i2c", "ti,omap4-i2c";
		reg = <0x00 0x20010000 0x00 0x100>;
		interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
		#address-cells = <1>;
		#size-cells = <0>;
		power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 103 2>;
		clock-names = "fck";
		status = "disabled";
	};

	main_i2c2: i2c@20020000 {
		compatible = "ti,am64-i2c", "ti,omap4-i2c";
		reg = <0x00 0x20020000 0x00 0x100>;
		interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
		#address-cells = <1>;
		#size-cells = <0>;
		power-domains = <&k3_pds 104 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 104 2>;
		clock-names = "fck";
		status = "disabled";
	};

	main_i2c3: i2c@20030000 {
		compatible = "ti,am64-i2c", "ti,omap4-i2c";
		reg = <0x00 0x20030000 0x00 0x100>;
		interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
		#address-cells = <1>;
		#size-cells = <0>;
		power-domains = <&k3_pds 105 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 105 2>;
		clock-names = "fck";
		status = "disabled";
	};

	main_spi0: spi@20100000 {
		compatible = "ti,am654-mcspi", "ti,omap4-mcspi";
		reg = <0x00 0x20100000 0x00 0x400>;
		interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
		#address-cells = <1>;
		#size-cells = <0>;
		power-domains = <&k3_pds 141 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 141 0>;
		status = "disabled";
	};

	main_spi1: spi@20110000 {
		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
		reg = <0x00 0x20110000 0x00 0x400>;
		interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
		#address-cells = <1>;
		#size-cells = <0>;
		power-domains = <&k3_pds 142 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 142 0>;
		status = "disabled";
	};

	main_spi2: spi@20120000 {
		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
		reg = <0x00 0x20120000 0x00 0x400>;
		interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
		#address-cells = <1>;
		#size-cells = <0>;
		power-domains = <&k3_pds 143 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 143 0>;
		status = "disabled";
	};

	main_gpio_intr: interrupt-controller@a00000 {
		compatible = "ti,sci-intr";
		reg = <0x00 0x00a00000 0x00 0x800>;
		ti,intr-trigger-type = <1>;
		interrupt-controller;
		interrupt-parent = <&gic500>;
		#interrupt-cells = <1>;
		ti,sci = <&dmsc>;
		ti,sci-dev-id = <3>;
		ti,interrupt-ranges = <0 32 16>;
		status = "disabled";
	};

	main_gpio0: gpio@600000 {
		compatible = "ti,am64-gpio", "ti,keystone-gpio";
		reg = <0x00 0x00600000 0x0 0x100>;
		gpio-controller;
		#gpio-cells = <2>;
		interrupt-parent = <&main_gpio_intr>;
		interrupts = <190>, <191>, <192>,
			     <193>, <194>, <195>;
		interrupt-controller;
		#interrupt-cells = <2>;
		ti,ngpio = <87>;
		ti,davinci-gpio-unbanked = <0>;
		power-domains = <&k3_pds 77 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 77 0>;
		clock-names = "gpio";
		status = "disabled";
	};

	main_gpio1: gpio@601000 {
		compatible = "ti,am64-gpio", "ti,keystone-gpio";
		reg = <0x00 0x00601000 0x0 0x100>;
		gpio-controller;
		#gpio-cells = <2>;
		interrupt-parent = <&main_gpio_intr>;
		interrupts = <180>, <181>, <182>,
			     <183>, <184>, <185>;
		interrupt-controller;
		#interrupt-cells = <2>;
		ti,ngpio = <88>;
		ti,davinci-gpio-unbanked = <0>;
		power-domains = <&k3_pds 78 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 78 0>;
		clock-names = "gpio";
		status = "disabled";
	};

	sdhci0: mmc@fa10000 {
		compatible = "ti,am62-sdhci";
		reg = <0x00 0xfa10000 0x00 0x260>, <0x00 0xfa18000 0x00 0x134>;
		interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
		power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 57 5>, <&k3_clks 57 6>;
		clock-names = "clk_ahb", "clk_xin";
		assigned-clocks = <&k3_clks 57 6>;
		assigned-clock-parents = <&k3_clks 57 8>;
		mmc-ddr-1_8v;
		mmc-hs200-1_8v;
		ti,trm-icp = <0x2>;
		bus-width = <8>;
		ti,clkbuf-sel = <0x7>;
		ti,otap-del-sel-legacy = <0x0>;
		ti,otap-del-sel-mmc-hs = <0x0>;
		ti,otap-del-sel-ddr52 = <0x9>;
		ti,otap-del-sel-hs200 = <0x6>;
		status = "disabled";
	};

	sdhci1: mmc@fa00000 {
		compatible = "ti,am62-sdhci";
		reg = <0x00 0xfa00000 0x00 0x260>, <0x00 0xfa08000 0x00 0x134>;
		interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
		power-domains = <&k3_pds 58 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 58 5>, <&k3_clks 58 6>;
		clock-names = "clk_ahb", "clk_xin";
		ti,trm-icp = <0x2>;
		ti,otap-del-sel-legacy = <0x0>;
		ti,otap-del-sel-sd-hs = <0x0>;
		ti,otap-del-sel-sdr12 = <0xf>;
		ti,otap-del-sel-sdr25 = <0xf>;
		ti,otap-del-sel-sdr50 = <0xc>;
		ti,otap-del-sel-sdr104 = <0x6>;
		ti,otap-del-sel-ddr50 = <0x9>;
		ti,itap-del-sel-legacy = <0x0>;
		ti,itap-del-sel-sd-hs = <0x0>;
		ti,itap-del-sel-sdr12 = <0x0>;
		ti,itap-del-sel-sdr25 = <0x0>;
		ti,clkbuf-sel = <0x7>;
		bus-width = <4>;
		no-1-8-v;
		status = "disabled";
	};

	dss: dss@30200000 {
		compatible = "ti,am625-dss";

		reg = <0x00 0x30200000 0x00 0x1000>, /* common */
		      <0x00 0x30201000 0x00 0x1000>, /* common1 */
		      <0x00 0x30202000 0x00 0x1000>, /* vidl1 */
		      <0x00 0x30206000 0x00 0x1000>, /* vid */
		      <0x00 0x30207000 0x00 0x1000>, /* ovr1 */
		      <0x00 0x30208000 0x00 0x1000>, /* ovr2 */
		      <0x00 0x3020a000 0x00 0x1000>, /* vp1: OLDI: Tied OFF */
		      <0x00 0x3020b000 0x00 0x1000>; /* vp2: Used as DPI Out */

		reg-names = "common", "common1",
			    "vidl1", "vid",
			    "ovr1", "ovr2",
			    "vp1", "vp2";

		power-domains = <&k3_pds 186 TI_SCI_PD_EXCLUSIVE>;

		clocks = <&k3_clks 186 6>,
			 <&k3_clks 186 0>,
			 <&k3_clks 186 2>;

		clock-names = "fck", "vp1", "vp2";

		interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
			     <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;

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

	vpu: video-codec@30210000 {
		compatible = "cnm,cm521c-vpu";
		reg = <0x00 0x30210000 0x00 0x10000>;
		clocks = <&k3_clks 204 2>;
		clock-names = "vcodec";
		power-domains = <&k3_pds 204 TI_SCI_PD_EXCLUSIVE>;
	};

	sdhci2: mmc@fa20000 {
		compatible = "ti,am62-sdhci";
		reg = <0x00 0xfa20000 0x00 0x260>, <0x00 0xfa28000 0x00 0x134>;
		interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
		power-domains = <&k3_pds 184 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 184 5>, <&k3_clks 184 6>;
		clock-names = "clk_ahb", "clk_xin";
		ti,trm-icp = <0x2>;
		ti,otap-del-sel-legacy = <0x0>;
		ti,otap-del-sel-sd-hs = <0x0>;
		ti,otap-del-sel-sdr12 = <0xf>;
		ti,otap-del-sel-sdr25 = <0xf>;
		ti,otap-del-sel-sdr50 = <0xc>;
		ti,otap-del-sel-sdr104 = <0x6>;
		ti,otap-del-sel-ddr50 = <0x9>;
		ti,itap-del-sel-legacy = <0x0>;
		ti,itap-del-sel-sd-hs = <0x0>;
		ti,itap-del-sel-sdr12 = <0x0>;
		ti,itap-del-sel-sdr25 = <0x0>;
		ti,clkbuf-sel = <0x7>;
		status = "disabled";
	};

	usbss0: dwc3-usb@f900000 {
		compatible = "ti,am62-usb";
		reg = <0x00 0x0f900000 0x00 0x800>;
		clocks = <&k3_clks 161 3>;
		clock-names = "ref";
		ti,syscon-phy-pll-refclk = <&wkup_conf 0x4008>;
		#address-cells = <2>;
		#size-cells = <2>;
		power-domains = <&k3_pds 178 TI_SCI_PD_EXCLUSIVE>;
		ranges;
		status = "disabled";

		usb0: usb@31000000 {
			compatible = "snps,dwc3";
			reg =<0x00 0x31000000 0x00 0x50000>;
			interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>, /* irq.0 */
				     <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; /* irq.0 */
			interrupt-names = "host", "peripheral";
			maximum-speed = "high-speed";
			dr_mode = "otg";
		};
	};

	usbss1: dwc3-usb@f910000 {
		compatible = "ti,am62-usb";
		reg = <0x00 0x0f910000 0x00 0x800>;
		clocks = <&k3_clks 162 3>;
		clock-names = "ref";
		ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>;
		#address-cells = <2>;
		#size-cells = <2>;
		power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;
		ranges;
		status = "disabled";

		usb1: usb@31100000 {
			compatible = "snps,dwc3";
			reg =<0x00 0x31100000 0x00 0x50000>;
			interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>, /* irq.0 */
				     <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>; /* irq.0 */
			interrupt-names = "host", "peripheral";
			maximum-speed = "high-speed";
			dr_mode = "otg";
		};
	};

	fss: bus@fc00000 {
		compatible = "simple-bus";
		reg = <0x00 0x0fc00000 0x00 0x70000>;
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;
		status = "disabled";

		ospi0: spi@fc40000 {
			compatible = "ti,am654-ospi", "cdns,qspi-nor";
			reg = <0x00 0x0fc40000 0x00 0x100>,
			      <0x05 0x00000000 0x01 0x00000000>;
			interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
			cdns,fifo-depth = <256>;
			cdns,fifo-width = <4>;
			cdns,trigger-address = <0x0>;
			clocks = <&k3_clks 75 7>;
			assigned-clocks = <&k3_clks 75 7>;
			assigned-clock-parents = <&k3_clks 75 8>;
			assigned-clock-rates = <166666666>;
			power-domains = <&k3_pds 75 TI_SCI_PD_EXCLUSIVE>;
			#address-cells = <1>;
			#size-cells = <0>;
		};
	};

	cpsw3g: ethernet@8000000 {
		compatible = "ti,am642-cpsw-nuss";
		#address-cells = <2>;
		#size-cells = <2>;
		reg = <0x0 0x8000000 0x0 0x200000>;
		reg-names = "cpsw_nuss";
		ranges = <0x0 0x0 0x0 0x8000000 0x0 0x200000>;
		clocks = <&k3_clks 13 0>;
		assigned-clocks = <&k3_clks 13 3>;
		assigned-clock-parents = <&k3_clks 13 11>;
		clock-names = "fck";
		power-domains = <&k3_pds 13 TI_SCI_PD_EXCLUSIVE>;
		status = "disabled";

		dmas = <&main_pktdma 0xc600 15>,
		       <&main_pktdma 0xc601 15>,
		       <&main_pktdma 0xc602 15>,
		       <&main_pktdma 0xc603 15>,
		       <&main_pktdma 0xc604 15>,
		       <&main_pktdma 0xc605 15>,
		       <&main_pktdma 0xc606 15>,
		       <&main_pktdma 0xc607 15>,
		       <&main_pktdma 0x4600 15>;
		dma-names = "tx0", "tx1", "tx2", "tx3", "tx4", "tx5", "tx6",
			    "tx7", "rx";

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

			cpsw_port1: port@1 {
				reg = <1>;
				ti,mac-only;
				label = "port1";
				phys = <&phy_gmii_sel 1>;
				mac-address = [00 00 00 00 00 00];
				ti,syscon-efuse = <&wkup_conf 0x200>;
			};

			cpsw_port2: port@2 {
				reg = <2>;
				ti,mac-only;
				label = "port2";
				phys = <&phy_gmii_sel 2>;
				mac-address = [00 00 00 00 00 00];
			};
		};

		cpsw3g_mdio: mdio@f00 {
			compatible = "ti,cpsw-mdio","ti,davinci_mdio";
			reg = <0x0 0xf00 0x0 0x100>;
			#address-cells = <1>;
			#size-cells = <0>;
			clocks = <&k3_clks 13 0>;
			clock-names = "fck";
			bus_freq = <1000000>;
		};

		cpts@3d000 {
			compatible = "ti,j721e-cpts";
			reg = <0x0 0x3d000 0x0 0x400>;
			clocks = <&k3_clks 13 3>;
			clock-names = "cpts";
			interrupts-extended = <&gic500 GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
			interrupt-names = "cpts";
			ti,cpts-ext-ts-inputs = <4>;
			ti,cpts-periodic-outputs = <2>;
		};
	};

	hwspinlock: spinlock@2a000000 {
		compatible = "ti,am64-hwspinlock";
		reg = <0x00 0x2a000000 0x00 0x1000>;
		#hwlock-cells = <1>;
	};

	mailbox0_cluster0: mailbox@29000000 {
		compatible = "ti,am64-mailbox";
		reg = <0x00 0x29000000 0x00 0x200>;
		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
		#mbox-cells = <1>;
		ti,mbox-num-users = <4>;
		ti,mbox-num-fifos = <16>;
	};

	mailbox0_cluster1: mailbox@29010000 {
		compatible = "ti,am64-mailbox";
		reg = <0x00 0x29010000 0x00 0x200>;
		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
		#mbox-cells = <1>;
		ti,mbox-num-users = <4>;
		ti,mbox-num-fifos = <16>;
	};

	mailbox0_cluster2: mailbox@29020000 {
		compatible = "ti,am64-mailbox";
		reg = <0x00 0x29020000 0x00 0x200>;
		interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
		#mbox-cells = <1>;
		ti,mbox-num-users = <4>;
		ti,mbox-num-fifos = <16>;
	};

	mailbox0_cluster3: mailbox@29030000 {
		compatible = "ti,am64-mailbox";
		reg = <0x00 0x29030000 0x00 0x200>;
		interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
		#mbox-cells = <1>;
		ti,mbox-num-users = <4>;
		ti,mbox-num-fifos = <16>;
	};

	ti_csi2rx0: ticsi2rx@30102000 {
		compatible = "ti,j721e-csi2rx";
		dmas = <&main_bcdma_csi 0 0x5000 0>, <&main_bcdma_csi 0 0x5001 0>,
			<&main_bcdma_csi 0 0x5002 0>, <&main_bcdma_csi 0 0x5003 0>,
			<&main_bcdma_csi 0 0x5004 0>, <&main_bcdma_csi 0 0x5005 0>;
		dma-names = "rx0", "rx1", "rx2", "rx3", "rx4", "rx5";
		reg = <0x00 0x30102000 0x00 0x1000>;
		power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;

		cdns_csi2rx0: csi-bridge@30101000 {
			compatible = "cdns,csi2rx";
			reg = <0x00 0x30101000 0x00 0x1000>;
			clocks = <&k3_clks 182 0>, <&k3_clks 182 3>, <&k3_clks 182 0>,
				<&k3_clks 182 0>, <&k3_clks 182 4>, <&k3_clks 182 4>;
			clock-names = "sys_clk", "p_clk", "pixel_if0_clk",
				"pixel_if1_clk", "pixel_if2_clk", "pixel_if3_clk";
			phys = <&dphy0>;
			phy-names = "dphy";
			power-domains = <&k3_pds 182 TI_SCI_PD_EXCLUSIVE>;

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

				csi0_port0: port@0 {
					reg = <0>;
				};

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

				csi0_port2: port@2 {
					reg = <2>;
				};

				csi0_port3: port@3 {
					reg = <3>;
				};

				csi0_port4: port@4 {
					reg = <4>;
				};
			};
		};
	};

	dphy0: phy@30110000 {
		compatible = "ti,j721e-dphy", "cdns,dphy";
		reg = <0x00 0x30110000 0x00 0x1100>;
		#phy-cells = <0>;
		power-domains = <&k3_pds 185 TI_SCI_PD_EXCLUSIVE>;
	};

	main_mcan0: can@20701000 {
		compatible = "bosch,m_can";
		reg = <0x00 0x20701000 0x00 0x200>,
		      <0x00 0x20708000 0x00 0x8000>;
		reg-names = "m_can", "message_ram";
		power-domains = <&k3_pds 98 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 98 6>, <&k3_clks 98 1>;
		clock-names = "hclk", "cclk";
		interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>,
			     <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
		interrupt-names = "int0", "int1";
		bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>;
		status = "disabled";
	};

	epwm0: pwm@23000000 {
		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
		#pwm-cells = <3>;
		reg = <0x00 0x23000000 0x00 0x100>;
		power-domains = <&k3_pds 86 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&epwm_tbclk 0>, <&k3_clks 86 0>;
		clock-names = "tbclk", "fck";
		status = "disabled";
	};

	epwm1: pwm@23010000 {
		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
		#pwm-cells = <3>;
		reg = <0x00 0x23010000 0x00 0x100>;
		power-domains = <&k3_pds 87 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&epwm_tbclk 1>, <&k3_clks 87 0>;
		clock-names = "tbclk", "fck";
		status = "disabled";
	};

	epwm2: pwm@23020000 {
		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
		#pwm-cells = <3>;
		reg = <0x00 0x23020000 0x00 0x100>;
		power-domains = <&k3_pds 88 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&epwm_tbclk 2>, <&k3_clks 88 0>;
		clock-names = "tbclk", "fck";
		status = "disabled";
	};

	ecap0: pwm@23100000 {
		compatible = "ti,am3352-ecap";
		#pwm-cells = <3>;
		reg = <0x00 0x23100000 0x00 0x100>;
		power-domains = <&k3_pds 51 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 51 0>;
		clock-names = "fck";
		status = "disabled";
	};

	ecap1: pwm@23110000 {
		compatible = "ti,am3352-ecap";
		#pwm-cells = <3>;
		reg = <0x00 0x23110000 0x00 0x100>;
		power-domains = <&k3_pds 52 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 52 0>;
		clock-names = "fck";
		status = "disabled";
	};

	ecap2: pwm@23120000 {
		compatible = "ti,am3352-ecap";
		#pwm-cells = <3>;
		reg = <0x00 0x23120000 0x00 0x100>;
		power-domains = <&k3_pds 53 TI_SCI_PD_EXCLUSIVE>;
		clocks = <&k3_clks 53 0>;
		clock-names = "fck";
		status = "disabled";
	};

	mcasp0: mcasp@2b00000 {
		compatible = "ti,am33xx-mcasp-audio";
		reg = <0x00 0x02b00000 0x00 0x2000>,
		      <0x00 0x02b08000 0x00 0x400>;
		reg-names = "mpu","dat";
		interrupts = <GIC_SPI 236 IRQ_TYPE_LEVEL_HIGH>,
				<GIC_SPI 235 IRQ_TYPE_LEVEL_HIGH>;
		interrupt-names = "tx", "rx";

		dmas = <&main_bcdma 0 0xc500 0>, <&main_bcdma 0 0x4500 0>;
		dma-names = "tx", "rx";

		clocks = <&k3_clks 190 0>;
		clock-names = "fck";
		power-domains = <&k3_pds 190 TI_SCI_PD_EXCLUSIVE>;
		assigned-clocks = <&k3_clks 190 0>;
		assigned-clock-parents = <&k3_clks 190 2>;
		status = "disabled";
	};

	mcasp1: mcasp@2b10000 {
		compatible = "ti,am33xx-mcasp-audio";
		reg = <0x00 0x02b10000 0x00 0x2000>,
		      <0x00 0x02b18000 0x00 0x400>;
		reg-names = "mpu","dat";
		interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>,
				<GIC_SPI 237 IRQ_TYPE_LEVEL_HIGH>;
		interrupt-names = "tx", "rx";

		dmas = <&main_bcdma 0 0xc501 0>, <&main_bcdma 0 0x4501 0>;
		dma-names = "tx", "rx";

		clocks = <&k3_clks 191 0>;
		clock-names = "fck";
		power-domains = <&k3_pds 191 TI_SCI_PD_EXCLUSIVE>;
		assigned-clocks = <&k3_clks 191 0>;
		assigned-clock-parents = <&k3_clks 191 2>;
		status = "disabled";
	};

	mcasp2: mcasp@2b20000 {
		compatible = "ti,am33xx-mcasp-audio";
		reg = <0x00 0x02b20000 0x00 0x2000>,
		      <0x00 0x02b28000 0x00 0x400>;
		reg-names = "mpu","dat";
		interrupts = <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>,
				<GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>;
		interrupt-names = "tx", "rx";

		dmas = <&main_bcdma 0 0xc502 0>, <&main_bcdma 0 0x4502 0>;
		dma-names = "tx", "rx";

		clocks = <&k3_clks 192 0>;
		clock-names = "fck";
		power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>;
		assigned-clocks = <&k3_clks 192 0>;
		assigned-clock-parents = <&k3_clks 192 2>;
		status = "disabled";
	};

	c7x_0: dsp@7e000000 {
		compatible = "ti,am62a-c7xv-dsp";
		reg = <0x00 0x7e000000 0x00 0x00100000>;
		reg-names = "l2sram";
		ti,sci = <&dmsc>;
		ti,sci-dev-id = <208>;
		ti,sci-proc-ids = <0x04 0xff>;
		resets = <&k3_reset 208 1>;
		firmware-name = "am62a-c71_0-fw";
	};
};

这是启动打印日志

Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
Failed to load 'boot.scr'
442 bytes read in 3 ms (143.6 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc1 ...
Running uenvcmd ...
1 bytes read in 3 ms (0 Bytes/s)
Already setup.
19147264 bytes read in 792 ms (23.1 MiB/s)
31732 bytes read in 6 ms (5 MiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 000000008fef5000, end 000000008fffffff ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.168-g2c23e6c538 (lzhao@CSCD-csp1) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #11 SMP PREEMPT Wed Jun 14 17:09:10 CST 2023
[    0.000000] Machine model: Texas Instruments AM62A7 SK
[    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 0x0000000099800000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node c7x-dma-memory@99800000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000099900000, size 30 MiB
[    0.000000] OF: reserved mem: initialized node c7x-memory@99900000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009b800000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9b800000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009b900000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9b900000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009c800000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9c800000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x000000009c900000, size 30 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9c900000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 32 MiB
[    0.000000] OF: reserved mem: initialized node edgeai-dma-memory@a1000000, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: initialized node edgeai_shared-memories, compatible id dma-heap-carveout
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000ae000000, size 288 MiB
[    0.000000] OF: reserved mem: initialized node edgeai-core-heap-memory@ae000000, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    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-0x00000000997fffff]
[    0.000000]   node   0: [mem 0x0000000099800000-0x000000009b7fefff]
[    0.000000]   node   0: [mem 0x000000009b800000-0x000000009e6fffff]
[    0.000000]   node   0: [mem 0x000000009e700000-0x000000009e77ffff]
[    0.000000]   node   0: [mem 0x000000009e780000-0x00000000a2ffffff]
[    0.000000]   node   0: [mem 0x00000000a3000000-0x00000000adffffff]
[    0.000000]   node   0: [mem 0x00000000ae000000-0x00000000bfffffff]
[    0.000000]   node   0: [mem 0x00000000c0000000-0x00000000ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000] cma: Reserved 512 MiB at 0x00000000dd000000
[    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 22 pages/cpu s51288 r8192 d30632 u90112
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516095
[    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=PARTUUID=0d52f5b8-02 rw rootfstype=ext4 rootwait
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 883780K/2097148K available (11200K kernel code, 1162K rwdata, 4308K rodata, 1920K init, 431K bss, 689080K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, 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=4.
[    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=4
[    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] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    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 @0x0000000080040000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000080050000
[    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
[    0.000004] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[    0.008461] Console: colour dummy device 80x25
[    0.013051] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[    0.023732] pid_max: default: 32768 minimum: 301
[    0.028535] LSM: Security Framework initializing
[    0.033310] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.040883] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.050521] rcu: Hierarchical SRCU implementation.
[    0.055682] Platform MSI: msi-controller@1820000 domain created
[    0.061904] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-controller@1820000 domain created
[    0.071119] EFI services will not be available.
[    0.075987] smp: Bringing up secondary CPUs ...
[    0.081197] Detected VIPT I-cache on CPU1
[    0.081232] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
[    0.081248] GICv3: CPU1: using allocated LPI pending table @0x0000000080060000
[    0.081309] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.081906] Detected VIPT I-cache on CPU2
[    0.081927] GICv3: CPU2: found redistributor 2 region 0:0x00000000018c0000
[    0.081939] GICv3: CPU2: using allocated LPI pending table @0x0000000080070000
[    0.081972] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.082528] Detected VIPT I-cache on CPU3
[    0.082549] GICv3: CPU3: found redistributor 3 region 0:0x00000000018e0000
[    0.082560] GICv3: CPU3: using allocated LPI pending table @0x0000000080080000
[    0.082594] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.082658] smp: Brought up 1 node, 4 CPUs
[    0.162388] SMP: Total of 4 processors activated.
[    0.167202] CPU features: detected: 32-bit EL0 Support
[    0.172472] CPU features: detected: CRC32 instructions
[    0.184750] CPU: All CPU(s) started at EL2
[    0.188959] alternatives: patching kernel code
[    0.194609] devtmpfs: initialized
[    0.202845] KASLR disabled due to lack of seed
[    0.207582] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.217560] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.240154] pinctrl core: initialized pinctrl subsystem
[    0.246131] DMI not present or invalid.
[    0.250712] NET: Registered protocol family 16
[    0.256891] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.264236] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.272310] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.280984] thermal_sys: Registered thermal governor 'step_wise'
[    0.280989] thermal_sys: Registered thermal governor 'power_allocator'
[    0.287522] cpuidle: using governor menu
[    0.298403] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.305436] ASID allocator initialised with 65536 entries
[    0.328635] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.335511] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.342364] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.349216] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.357013] cryptd: max_cpu_qlen set to 1000
[    0.363946] k3-chipinfo 43000014.chipid: Family:AM62AX rev:SR1.0 JTAGID[0x0bb8d02f] Detected
[    0.373065] vcc_3v3_main: supplied by vmain_pd
[    0.377965] vcc_3v3_ETHPSD: supplied by vmain_pd
[    0.383040] soc_adc_5v0: supplied by vcc_3v3_main
[    0.388101] vcc_3v3_sys: supplied by vcc_3v3_main
[    0.393209] soc_adc_1v8: supplied by vcc_3v3_sys
[    0.398214] soc_adc_1v2: supplied by vcc_3v3_sys
[    0.403689] iommu: Default domain type: Translated
[    0.409017] SCSI subsystem initialized
[    0.413177] mc: Linux media interface: v0.10
[    0.417561] videodev: Linux video capture interface: v2.00
[    0.423229] pps_core: LinuxPPS API ver. 1 registered
[    0.428304] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.437655] PTP clock support registered
[    0.441690] EDAC MC: Ver: 3.0.0
[    0.445425] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fca100
[    0.452232] omap-mailbox 29010000.mailbox: omap mailbox rev 0x66fca100
[    0.459012] omap-mailbox 29020000.mailbox: omap mailbox rev 0x66fca100
[    0.465733] omap-mailbox 29030000.mailbox: no available mbox devices found
[    0.473147] FPGA manager framework
[    0.476693] Advanced Linux Sound Architecture Driver Initialized.
[    0.483786] clocksource: Switched to clocksource arch_sys_counter
[    0.490226] VFS: Disk quotas dquot_6.6.0
[    0.494298] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.506511] Carveout Heap: Exported 176 MiB at 0x00000000a3000000
[    0.512876] NET: Registered protocol family 2
[    0.517518] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.526179] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.534952] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.543157] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.550855] TCP: Hash tables configured (established 16384 bind 16384)
[    0.557701] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.564598] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.572061] NET: Registered protocol family 1
[    0.576952] RPC: Registered named UNIX socket transport module.
[    0.583024] RPC: Registered udp transport module.
[    0.587857] RPC: Registered tcp transport module.
[    0.592670] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.599261] NET: Registered protocol family 44
[    0.603818] PCI: CLS 0 bytes, default 64
[    0.608631] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.620375] Initialise system trusted keyrings
[    0.625116] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.635224] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.641734] NFS: Registering the id_resolver key type
[    0.646950] Key type id_resolver registered
[    0.651229] Key type id_legacy registered
[    0.655389] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.662244] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.669994] 9p: Installing v9fs 9p2000 file system support
[    0.711337] Key type asymmetric registered
[    0.715536] Asymmetric key parser 'x509' registered
[    0.720557] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.728123] io scheduler mq-deadline registered
[    0.732762] io scheduler kyber registered
[    0.738839] pinctrl-single f4000.pinctrl: 171 pins, size 684
[    0.750866] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    0.768599] brd: module loaded
[    0.778007] loop: module loaded
[    0.782159] megasas: 07.714.04.00-rc1
[    0.788867] tun: Universal TUN/TAP device driver, 1.6
[    0.794487] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    0.800903] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.807004] sky2: driver version 1.30
[    0.811511] VFIO - User Level meta-driver version: 0.3
[    0.817599] i2c /dev entries driver
[    0.822179] sdhci: Secure Digital Host Controller Interface driver
[    0.828506] sdhci: Copyright(c) Pierre Ossman
[    0.833195] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.839740] ledtrig-cpu: registered to indicate activity on CPUs
[    0.846216] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.853912] optee: probing for conduit method.
[    0.858509] optee: revision 3.20 (8e74d476)
[    0.858761] optee: dynamic shared memory is enabled
[    0.868418] optee: initialized driver
[    0.873677] NET: Registered protocol family 17
[    0.878413] 9pnet: Installing 9P2000 support
[    0.882851] Key type dns_resolver registered
[    0.887574] Loading compiled-in X.509 certificates
[    0.898929] ti-sci 44043000.system-controller: ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
[    0.923198] omap_i2c 20000000.i2c: bus 0 rev0.12 at 400 kHz
[    0.929862] omap_i2c 20010000.i2c: bus 1 rev0.12 at 100 kHz
[    0.935970] ti-sci-intr 4210000.interrupt-controller: Interrupt Router 5 domain created
[    0.944302] ti-sci-intr bus@f0000:interrupt-controller@a00000: Interrupt Router 3 domain created
[    0.953520] ti-sci-inta 48000000.interrupt-controller: Interrupt Aggregator domain 28 created
[    0.962515] ti-sci-inta 4e0a0000.interrupt-controller: Interrupt Aggregator domain 200 created
[    0.971654] ti-udma 485c0100.dma-controller: Number of rings: 82
[    0.979554] ti-udma 485c0100.dma-controller: Channels: 48 (bchan: 18, tchan: 12, rchan: 18)
[    0.990440] ti-udma 485c0000.dma-controller: Number of rings: 150
[    1.000107] ti-udma 485c0000.dma-controller: Channels: 35 (tchan: 20, rchan: 15)
[    1.009527] ti-udma 4e230000.dma-controller: Number of rings: 6
[    1.016007] ti-udma 4e230000.dma-controller: Channels: 6 (bchan: 0, tchan: 0, rchan: 6)
[    1.025394] printk: console [ttyS2] disabled
[    1.029834] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 16, base_baud = 3000000) is a 8250
[    1.038603] printk: console [ttyS2] enabled
[    1.038603] printk: console [ttyS2] enabled
[    1.047052] printk: bootconsole [ns16550a0] disabled
[    1.047052] printk: bootconsole [ns16550a0] disabled
[    1.058928] [drm] Initialized tidss 1.0.0 20180215 for 30200000.dss on minor 0
[    1.069090] davinci_mdio 8000f00.mdio: Configuring MDIO in normal mode
[    1.075918] mdio_bus 8000f00.mdio: mii_bus 8000f00.mdio couldn't get reset GPIO
[    1.083574] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
[    1.096371] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
[    1.103501] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
[    1.110121] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:0
[    1.120489] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
[    1.237166] davinci_mdio 8000f00.mdio: Configuring MDIO in normal mode
[    1.283799] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[    1.291680] davinci_mdio: probe of 8000f00.mdio failed with error -5
[    1.299412] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
[    1.299453] mmc1: CQHCI version 5.10
[    1.307435] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
[    1.317621] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
[    1.326949] ALSA device list:
[    1.329935]   No soundcards found.
[    1.350419] mmc1: SDHCI controller on fa00000.mmc [fa00000.mmc] using ADMA 64-bit
[    1.358669] Waiting for root device PARTUUID=0d52f5b8-02...
[    1.393334] mmc1: new high speed SDXC card at address aaaa
[    1.399449] mmcblk1: mmc1:aaaa SN64G 59.5 GiB
[    1.405603]  mmcblk1: p1 p2
[    1.613336] EXT4-fs (mmcblk1p2): 1 orphan inode deleted
[    1.618614] EXT4-fs (mmcblk1p2): recovery complete
[    1.632998] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.641189] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.648051] devtmpfs: mounted
[    1.651957] Freeing unused kernel memory: 1920K
[    1.656593] Run /sbin/init as init process
[    1.969549] systemd[1]: System time before build time, advancing clock.
[    2.056685] NET: Registered protocol family 10
[    2.062151] Segment Routing with IPv6
[    2.109831] systemd[1]: systemd 244.5+ running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[    2.131925] systemd[1]: Detected architecture arm64.

Welcome to Arago 2021.09!

[    2.176670] systemd[1]: Set hostname to <am62axx-evm>.
[    2.473752] systemd[1]: /lib/systemd/system/irqbalanced.service:6: Unknown key name 'ConditionCPUs' in section 'Unit', ignoring.
[    2.509045] systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock → /run/docker.sock; please update the unit file accordingly.
[    2.636499] random: systemd: uninitialized urandom read (16 bytes read)
[    2.646889] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    2.668066] random: systemd: uninitialized urandom read (16 bytes read)
[    2.676484] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    2.699956] random: systemd: uninitialized urandom read (16 bytes read)
[    2.708322] systemd[1]: Created slice system-syslog\x2dng.slice.
[  OK  ] Created slice system-syslog\x2dng.slice.
[    2.733598] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    2.756285] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[    2.780098] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[    2.804109] systemd[1]: Reached target Paths.
[  OK  ] Reached target Paths.
[    2.819925] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    2.839910] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    2.855914] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    2.894156] systemd[1]: Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[    2.916160] systemd[1]: Reached target RPC Port Mapper.
[  OK  ] Reached target RPC Port Mapper.
[    2.941044] systemd[1]: Listening on Process Core Dump Socket.
[  OK  ] Listening on Process Core Dump Socket.
[    2.964257] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[    2.991168] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[    2.999985] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    3.020562] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    3.036664] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[    3.060490] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    3.080264] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    3.104592] systemd[1]: Mounting Huge Pages File System...
         Mounting Huge Pages File System...
[    3.124519] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    3.152539] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[    3.173238] systemd[1]: Mounting Temporary Directory (/tmp)...
         Mounting Temporary Directory (/tmp)...
[    3.193306] systemd[1]: Starting Create list of static device nodes for the current kernel...
         Starting Create list of st…odes for the current kernel...
[    3.225358] systemd[1]: Starting RPC Bind...
         Starting RPC Bind...
[    3.240199] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[    3.255418] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    3.291895] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    3.311410] cryptodev: loading out-of-tree module taints kernel.
[    3.312555] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems cryptodev: driver 1.10 loaded.
[0m...
[    3.331439] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[    3.345833] systemd[1]: Starting udev Coldplug all Devices...
         Starting udev Coldplug all Devices...
[    3.370175] systemd[1]: Started RPC Bind.
[  OK  ] Started RPC Bind.
[    3.384609] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Started Create list of sta… nodes for the current kernel.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Remount Root and Kernel File Systems.
         Mounting Kernel Configuration File System...
         Starting Flush Journal to Persistent Storage...
[    3.597288] systemd-journald[169]: Received client request to flush runtime journal.
         Starting Apply Kernel Variables...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Create Static Device Nodes in /dev.
[    3.729870] random: systemd: uninitialized urandom read (16 bytes read)
[  OK  ] Reached target Local File Systems (Pre).
[    3.752018] random: systemd: uninitialized urandom read (16 bytes read)
         Mounting /media/ram...
[    3.765727] random: systemd-journal: uninitialized urandom read (16 bytes read)
         Mounting /var/volatile...
         Starting udev Kernel Device Manager...
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Mounted /media/ram.
[  OK  ] Mounted /var/volatile.
         Starting udev Wait for Complete Device Initialization...
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Started udev Kernel Device Manager.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Set.
[  OK  ] Reached target System Time Synchronized.
[    4.272270] random: crng init done
[    4.275706] random: 65 urandom warning(s) missed due to ratelimiting
[  OK  ] Started Load/Save Random Seed.
[    4.309723] vdec 30210000.video-codec: sram node not found
[    4.347523] vdec 30210000.video-codec: IRQ index 0 not found
[    4.348819] platform 79000000.r5f: configured R5F for remoteproc mode
[    4.360973] vdec 30210000.video-codec: failed to get irq resource
[    4.370384] platform 79000000.r5f: assigned reserved memory node r5f-dma-memory@9b800000
[    4.371071] k3-dsp-rproc 7e000000.dsp: assigned reserved memory node c7x-dma-memory@99800000
[    4.381842] remoteproc remoteproc0: 79000000.r5f is available
[    4.387658] k3-dsp-rproc 7e000000.dsp: configured DSP for remoteproc mode
[    4.400071] remoteproc remoteproc1: 7e000000.dsp is available
[    4.400689] remoteproc remoteproc0: powering up 79000000.r5f
[    4.412283] remoteproc remoteproc0: Booting fw image am62a-mcu-r5f0_0-fw, size 52788
[    4.432837] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[    4.433561]  remoteproc0#vdev0buffer: assigned reserved memory node r5f-dma-memory@9b800000
[    4.453543] virtio_rpmsg_bus virtio0: rpmsg host is online
[    4.459203]  remoteproc0#vdev0buffer: registered virtio0 (type 7)
[    4.465463] remoteproc remoteproc0: remote processor 79000000.r5f is now up
[    4.473438] platform 78000000.r5f: configured R5F for IPC-only mode
[    4.479930] platform 78000000.r5f: assigned reserved memory node r5f-dma-memory@9c800000
[    4.488888] remoteproc remoteproc2: 78000000.r5f is available
[    4.494846] remoteproc remoteproc2: attaching to 78000000.r5f
[    4.500960] platform 78000000.r5f: R5F core initialized in IPC-only mode
[    4.507815]  remoteproc2#vdev0buffer: assigned reserved memory node r5f-dma-memory@9c800000
[    4.512859] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xd
[    4.516651] virtio_rpmsg_bus virtio1: rpmsg host is online
[    4.523970] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xe
[    4.530226]  remoteproc2#vdev0buffer: registered virtio1 (type 7)
[    4.536522] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xd
[    4.542508] remoteproc remoteproc2: remote processor 78000000.r5f is now attached
[    5.049303] remoteproc remoteproc1: powering up 7e000000.dsp
[    5.055096] remoteproc remoteproc1: Booting fw image am62a-c71_0-fw, size 14948104
[    5.062887] remoteproc remoteproc1: unsupported resource 65538
[    5.083205] k3-dsp-rproc 7e000000.dsp: booting DSP core using boot addr = 0x99a00000
[    5.099559]  remoteproc1#vdev0buffer: assigned reserved memory node c7x-dma-memory@99800000
[    5.108618] virtio_rpmsg_bus virtio2: rpmsg host is online
[    5.117602]  remoteproc1#vdev0buffer: registered virtio2 (type 7)
[    5.120323] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xd
[    5.123809] remoteproc remoteproc1: remote processor 7e000000.dsp is now up
[    5.132361] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0x15
[    5.145735] virtio_rpmsg_bus virtio2: creating channel ti.ipc4.ping-pong addr 0xe
[    5.153754] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0x15
[    5.161283] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xe
[    5.729608] cdns-csi2rx: probe of 30101000.csi-bridge failed with error -22
[  OK  ] Reached target Hardware activated USB gadget.
[    5.841597] usbcore: registered new interface driver usbfs
[    5.847264] usbcore: registered new interface driver hub
[    5.852754] usbcore: registered new device driver usb
[    5.907445] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.913163] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    5.921201] xhci-hcd xhci-hcd.0.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000000000010010
[    5.930752] xhci-hcd xhci-hcd.0.auto: irq 452, io mem 0x31100000
[    5.936972] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.942528] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    5.950276] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    5.957013] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    5.965295] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.972628] usb usb1: Product: xHCI Host Controller
[    5.977645] usb usb1: Manufacturer: Linux 5.10.168-g2c23e6c538 xhci-hcd
[    5.984343] usb usb1: SerialNumber: xhci-hcd.0.auto
[    5.990057] hub 1-0:1.0: USB hub found
[    5.993983] hub 1-0:1.0: 1 port detected
[    6.000644] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.008946] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    6.017238] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  OK  ] Created slice system-systemd\x2dfsc[    6.024623] usb usb2: Product: xHCI Host Controller
k.slice.
[    6.035013] usb usb2: Manufacturer: Linux 5.10.168-g2c23e6c538 xhci-hcd
[    6.042866] usb usb2: SerialNumber: xhci-hcd.0.auto
[    6.048609] hub 2-0:1.0: USB hub found
[    6.052541] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[  OK  ] Found device /dev/mmcblk1p1.
         Starting File System Check on /dev/mmcblk1p1...
[  OK  ] Started udev Wait for Complete Device Initialization.
[  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
         Starting Docker Socket for the API.
[  OK  ] Listening on dropbear.socket.
         Starting Reboot and dump vmcore via kexec...
[  OK  ] Listening on Docker Socket for the API.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Job spooling tools.
[  OK  ] Started Periodic Command Scheduler.
[  OK  ] Started D-Bus System Message Bus.
         Starting Ethernet Bridge Filtering Tables...
         Starting Print notice about GPLv3 packages...
         Starting IPv6 Packet Filtering Framework...
         Starting IPv4 Packet Filtering Framework...
[  OK  ] Started irqbalance daemon.
         Starting System Logger Daemon "default" instance...
         Starting Login Service...
[  OK  ] Started TEE Supplicant.
         Starting weston.service...
[  OK  ] Started Reboot and dump vmcore via kexec.
[  OK  ] Started File System Check on /dev/mmcblk1p1.
[  OK  ] Started IPv4 Packet Filtering Framework.
[  OK  ] Started IPv6 Packet Filtering Framework.
[  OK  ] Started Ethernet Bridge Filtering Tables.
[  OK  ] Reached target Network (Pre).
         Mounting /run/media/mmcblk1p1...
         Starting Network Service...
[  OK  ] Started Network Service.
         Starting Wait for Network to be Configured...
         Starting Network Name Resolution...
[  OK  ] Mounted /run/media/mmcblk1p1.
[  OK  ] Started System Logger Daemon "default" instance.
[  OK  ] Started Login Service.
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Network.
[  OK  ] Reached target Host and Network Name Lookups.
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Enable and configure wl18xx bluetooth stack...
[  OK  ] Started NFS status monitor for NFSv2/3 locking..
         Starting Simple Network Ma…ent Protocol (SNMP) Daemon....
         Starting Permit User Sessions...
[  OK  ] Started Vsftpd ftp daemon.
[  OK  ] Started Enable and configure wl18xx bluetooth stack.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Serial Getty on ttyS2.
[  OK  ] Reached target Login Prompts.
         Starting Synchronize System and HW clocks...
[FAILED] Failed to start Synchronize System and HW clocks.
See 'systemctl status sync-clocks.service' for details.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Simple Network Man…ement Protocol (SNMP) Daemon..
[  OK  ] Started weston.service.
         Starting EdgeAI OOB demos...
         Starting Matrix GUI...
         Starting telnetd.service...
[  OK  ] Started Matrix GUI.
[  OK  ] Started telnetd.service.
         Starting LSB: Expand Rootfs of boot device...
         Starting syslog.service...
***************************************************************
***************************************************************
NOTICE: This file system contains the following GPLv3 packages:
        autoconf
        bash-dev
        bash
        bc
        binutils
        cifs-utils
        coreutils-stdbuf
        coreutils
        cpio
        cpp-symlinks
        cpp
        dosfstools
        elfutils
        g++-symlinks
        g++
        gawk
        gcc-symlinks
        gcc
        gdb
        gdbserver
        gettext
        glmark2
        gstreamer1.0-libav
        gzip
        hidapi
        less
        libasm1
        libbfd
        libdw1
        libelf1
        libgdbm-compat4
        libgdbm-dev
        libgdbm6
        libgettextlib
        libgettextsrc
        libgmp10
        libidn2-0
        libmpc3
        libmpfr6
        libreadline-dev
        libreadline8
        libunistring2
        m4-dev
        m4
        make
        nettle
        parted
        python3-rfc3987
        python3-strict-rfc3339
        tar
        which
        zeromq

If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution.  This can be done using
the opkg remove command.  i.e.:
    opkg remove <package>
Where <package> is the name printed in the list above

NOTE: If the package is a dependency of another package you
      will be notified of the dependent packages.  You should
      use the --force-removal-of-dependent-packages option to
      also remove the dependent packages as well
***************************************************************
***************************************************************
[  OK  ] Started syslog.service.
[  OK  ] Started Print notice about GPLv3 packages.
[  OK  ] Started LSB: Expand Rootfs of boot device.

 _____                    _____           _         _
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
              |___|                    |___|

Arago Project am62axx-evm ttyS2

Arago 2021.09 am62axx-evm ttyS2

am62axx-evm login:

如何解决这两个问题?

此致、liang

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    请在下面检查内核(mido_bus.c)中的源代码并检查电路板上的 DTS 和 GPIO 设置。 谢谢。  

    int _mdiobus_register (struct mII_BUS *bus、struct module *owner)
    {
    结构 MDIO_device * mdiodev;
    int i,err;
    结构 gpio_desc * gpiod;

    如果(NULL == bus || NULL == bus->name ||
    null == bus->read || NULL == bus->write)
    返回-EINVAL;

    bug_on (bus->state!= MDIOBUS_allocated &&
    bus->state != MDIOBUS_UNregistered);

    Bus->owner = owner;
    bus->dev.parent = bus->parent;
    bus->dev.class =&MDIO_bus_class;
    bus->dev.groups =空;
    DEV_SET_NAME (&bus->dev、"%s"、bus->id);

    /*我们需要将状态设置为 MDIOBUS_UNregister 才能正确释放
    * mdiobus_free ()中的设备
    *
    *如果成功,将在该函数的后面更新状态
    */
    bus->state = MDIOBUS_UNregistered;

    ERR = device_register (&bus->dev);
    如果(err){
    pr_err ("mii_BUS %s 注册失败",bus->id);
    返回-EINVAL;

    mutex_init (&bus->MDIO_lock);
    mutex_init (&bus->shared_lock);

    /*使总线级 PHY GPIO 复位无效*/
    gpiod = devm_gpiod_get_optional (&bus->dev、"reset"、GPIOD_out_low);