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.

TDA4VM: Regarding Ethernet fixed-link speed Error

Part Number: TDA4VM

Dear TI,

I am able to run the SDK_07 on our custom board but now I am not able to run the Ethernet Switch configuration script and even GPIO toggle script. I am attaching the failure in this script and our patches that we run on the SDK for our custom board.

It worked completely fine with SDK_06.

diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board.dts /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board.dts
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board.dts	2020-06-17 16:24:08.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board.dts	2020-06-30 12:04:31.931548582 +0200
@@ -86,6 +86,7 @@
 		gpios = <&main_gpio0 117 GPIO_ACTIVE_HIGH>;
 		states = <1800000 0x0
 			  3300000 0x1>;
+		status = "disabled";
 	};
 };
 
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi	2020-06-17 16:24:08.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi	2020-06-30 12:10:30.001853010 +0200
@@ -335,7 +335,12 @@
 	cpsw-phy-sel@40f04040 {
 		compatible = "ti,am654-cpsw-phy-sel";
 		reg= <0x0 0x40f04040 0x0 0x4>;
-		reg-names = "gmii-sel";
+		reg-names = "gmii-sel";		
+	};
+	
+		fixed-link{
+		Speed = <1000>;
+		Full-duplex;
 	};
 };
 
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi	2020-06-17 16:24:08.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi	2020-06-30 12:21:06.709935750 +0200
@@ -132,17 +132,17 @@
 			mux-reg-masks = <0x4 0x2>; /* HBMC select */
 		};
 
-		hbmc: hyperbus@47034000 {
-			compatible = "ti,j721e-hbmc", "ti,am654-hbmc";
-			reg = <0x0 0x47034000 0x0 0x100>,
-				<0x5 0x00000000 0x1 0x0000000>;
-			power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>;
-			#address-cells = <2>;
-			#size-cells = <1>;
-			mux-controls = <&hbmc_mux 0>;
-			assigned-clocks = <&k3_clks 102 0>;
-			assigned-clock-rates = <250000000>;
-		};
+//		hbmc: hyperbus@47034000 {
+//			compatible = "ti,j721e-hbmc", "ti,am654-hbmc";
+//			reg = <0x0 0x47034000 0x0 0x100>,
+//				<0x5 0x00000000 0x1 0x0000000>;
+//			power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>;
+//			#address-cells = <2>;
+//			#size-cells = <1>;
+//			mux-controls = <&hbmc_mux 0>;
+//			assigned-clocks = <&k3_clks 102 0>;
+//			assigned-clock-rates = <250000000>;
+//		};
 
 		ospi0: spi@47040000 {
 			compatible = "ti,am654-ospi";
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-r5-common-proc-board.dts /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-r5-common-proc-board.dts
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-r5-common-proc-board.dts	2020-06-17 16:24:08.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-r5-common-proc-board.dts	2020-06-30 12:25:46.695728471 +0200
@@ -6,7 +6,7 @@
 /dts-v1/;
 
 #include "k3-j721e-som-p0.dtsi"
-#include "k3-j721e-ddr-evm-lp4-3733.dtsi"
+#include "k3-j721e-ddr-evm-lp4-3733-zf.dtsi"
 #include "k3-j721e-ddr.dtsi"
 
 / {
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-som-p0.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-som-p0.dtsi
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-som-p0.dtsi	2020-06-17 16:24:08.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-som-p0.dtsi	2020-06-30 12:29:11.445038999 +0200
@@ -10,9 +10,11 @@
 / {
 	memory@80000000 {
 		device_type = "memory";
-		/* 4G RAM */
-		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
-		      <0x00000008 0x80000000 0x00000000 0x80000000>;
+//		/* 4G RAM */
+//		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
+//		      <0x00000008 0x80000000 0x00000000 0x80000000>;
+				/* 1G RAM */
+			reg = <0x00000000 0x80000000 0x00000000 0x40000000>;
 	};
 
 	reserved_memory: reserved-memory {
@@ -65,18 +67,18 @@
 	};
 };
 
-&hbmc {
-	status = "disabled";
-	pinctrl-names = "default";
-	pinctrl-0 = <&mcu_fss0_hpb0_pins_default>;
-	ranges = <0x0 0x0 0x5 0x0 0x4000000>, /* 64MB Flash on CS0 */
-		 <0x1 0x0 0x5 0x4000000 0x800000>; /* 8MB RAM on CS1 */
-
-	flash@0,0 {
-		compatible = "cypress,hyperflash", "cfi-flash";
-		reg = <0x0 0x0 0x4000000>;
-	};
-};
+// &hbmc {
+//	status = "disabled";
+//	pinctrl-names = "default";
+//	pinctrl-0 = <&mcu_fss0_hpb0_pins_default>;
+//	ranges = <0x0 0x0 0x5 0x0 0x4000000>, /* 64MB Flash on CS0 */
+//		 <0x1 0x0 0x5 0x4000000 0x800000>; /* 8MB RAM on CS1 */
+
+//	flash@0,0 {
+//		compatible = "cypress,hyperflash", "cfi-flash";
+//		reg = <0x0 0x0 0x4000000>;
+//	};
+// };
 
 &ospi0 {
 	pinctrl-names = "default";
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/am6_init.c /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/am6_init.c
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/am6_init.c	2020-06-17 16:24:08.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/am6_init.c	2020-06-30 17:11:50.480023076 +0200
@@ -140,6 +140,11 @@
 
 	/* Make all control module registers accessible */
 	ctrl_mmr_unlock();
+	
+asm("test: nop");
+asm("       nop");
+asm("  b test ");
+asm(" nop");
 
 	setup_am654_navss_northbridge();
 
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/arm64-mmu.c /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/arm64-mmu.c
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/arm64-mmu.c	2020-06-17 16:24:08.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/arm64-mmu.c	2020-06-30 12:38:27.028594064 +0200
@@ -14,7 +14,8 @@
 
 #ifdef CONFIG_SOC_K3_AM6
 /* NR_DRAM_BANKS + 32bit IO + 64bit IO + terminator */
-#define NR_MMU_REGIONS	(CONFIG_NR_DRAM_BANKS + 5)
+// #define NR_MMU_REGIONS	(CONFIG_NR_DRAM_BANKS + 5)
+#define NR_MMU_REGIONS	(CONFIG_NR_DRAM_BANKS + 6)
 
 /* ToDo: Add 64bit IO */
 struct mm_region am654_mem_map[NR_MMU_REGIONS] = {
@@ -93,13 +94,14 @@
 	}, {
 		.virt = 0xbbc00000UL,
 		.phys = 0xbbc00000UL,
-		.size = 0x44400000UL,
-		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
-			 PTE_BLOCK_INNER_SHARE
-	}, {
-		.virt = 0x880000000UL,
-		.phys = 0x880000000UL,
-		.size = 0x80000000UL,
+//		.size = 0x44400000UL,
+//		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+//			 PTE_BLOCK_INNER_SHARE
+//	}, {
+//		.virt = 0x880000000UL,
+//		.phys = 0x880000000UL,
+//		.size = 0x80000000UL,
+		.size = 0x04400000UL,
 		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
 			 PTE_BLOCK_INNER_SHARE
 	}, {
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/board/ti/j721e/evm.c /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/board/ti/j721e/evm.c
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/board/ti/j721e/evm.c	2020-06-17 16:24:09.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/board/ti/j721e/evm.c	2020-06-30 12:48:30.016451718 +0200
@@ -41,15 +41,16 @@
 
 int dram_init(void)
 {
-#ifdef CONFIG_PHYS_64BIT
-	gd->ram_size = 0x100000000;
-#else
-	gd->ram_size = 0x80000000;
-#endif
-
+// #ifdef CONFIG_PHYS_64BIT
+//	gd->ram_size = 0x100000000;
+// #else
+//	gd->ram_size = 0x80000000;
+// #endif
+ gd->ram_size = 0x40000000;
 	return 0;
 }
 
+#if 0
 ulong board_get_usable_ram_top(ulong total_size)
 {
 #ifdef CONFIG_PHYS_64BIT
@@ -60,21 +61,24 @@
 
 	return gd->ram_top;
 }
+#endif
 
 int dram_init_banksize(void)
 {
 	/* Bank 0 declares the memory available in the DDR low region */
 	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
-	gd->bd->bi_dram[0].size = 0x80000000;
-	gd->ram_size = 0x80000000;
+//	gd->bd->bi_dram[0].size = 0x80000000;
+//	gd->ram_size = 0x80000000;
 
-#ifdef CONFIG_PHYS_64BIT
-	/* Bank 1 declares the memory available in the DDR high region */
-	gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
-	gd->bd->bi_dram[1].size = 0x80000000;
-	gd->ram_size = 0x100000000;
-#endif
+//#ifdef CONFIG_PHYS_64BIT
+//	/* Bank 1 declares the memory available in the DDR high region */
+//	gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
+//	gd->bd->bi_dram[1].size = 0x80000000;
+//	gd->ram_size = 0x100000000;
+// #endif
 
+	gd->bd->bi_dram[0].size = 0x40000000;
+	gd->ram_size = 0x40000000;
 	return 0;
 }
 
@@ -368,11 +372,11 @@
 #endif
 int board_late_init(void)
 {
-	setup_board_eeprom_env();
-	setup_serial();
+//	setup_board_eeprom_env();
+//	setup_serial();
 
 	/* Check for and probe any plugged-in daughtercards */
-	probe_daughtercards();
+//	probe_daughtercards();
 
 	return 0;
 }
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/configs/j721e_evm_a72_defconfig /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/configs/j721e_evm_a72_defconfig
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/configs/j721e_evm_a72_defconfig	2020-06-17 16:24:09.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/configs/j721e_evm_a72_defconfig	2020-06-30 12:50:26.121194469 +0200
@@ -12,7 +12,7 @@
 CONFIG_ENV_SIZE=0x20000
 CONFIG_ENV_OFFSET=0x680000
 CONFIG_SPL_STACK_R_ADDR=0x82000000
-CONFIG_NR_DRAM_BANKS=2
+CONFIG_NR_DRAM_BANKS=1
 CONFIG_SPL_FS_FAT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
@@ -110,10 +110,6 @@
 CONFIG_MISC=y
 CONFIG_DM_MMC=y
 CONFIG_SUPPORT_EMMC_BOOT=y
-CONFIG_MMC_IO_VOLTAGE=y
-CONFIG_SPL_MMC_IO_VOLTAGE=y
-CONFIG_MMC_UHS_SUPPORT=y
-CONFIG_SPL_MMC_UHS_SUPPORT=y
 CONFIG_MMC_HS400_SUPPORT=y
 CONFIG_SPL_MMC_HS400_SUPPORT=y
 CONFIG_MMC_SDHCI=y
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/ram/k3-j721e/k3-j721e-ddrss.c /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/ram/k3-j721e/k3-j721e-ddrss.c
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/ram/k3-j721e/k3-j721e-ddrss.c	2020-06-17 16:24:09.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/ram/k3-j721e/k3-j721e-ddrss.c	2020-06-30 13:15:46.022917360 +0200
@@ -67,7 +67,8 @@
 {
 	unsigned int req_type, counter;
 
-	debug("--->>> LPDDR4 Initialization is in progress ... <<<---\n");
+//	debug("--->>> LPDDR4 Initialization is in progress ... <<<---\n");
+	printf("--->>> LPDDR4 Initialization is in progress ... <<<---\n");
 
 	for (counter = 0; counter < ddrss->ddr_fhs_cnt; counter++) {
 		if (wait_for_bit_le32(ddrss->ddrss_ctrl_mmr +
@@ -80,9 +81,9 @@
 		req_type = readl(ddrss->ddrss_ctrl_mmr +
 				 CTRLMMR_DDR4_FSP_CLKCHNG_REQ_OFFS) & 0x03;
 
-		debug("%s: received freq change req: req type = %d, req no. = %d \n",
-		      __func__, req_type, counter);
-
+//		debug("%s: received freq change req: req type = %d, req no. = %d \n",
+//		      __func__, req_type, counter);
+		printf("%s: received freq change req: req type = %d, req no. = %d \n",__func__, req_type, counter);
 		if (req_type == 1)
 			clk_set_rate(&ddrss->ddr_clk, ddrss->ddr_freq1);
 		else if (req_type == 2)
@@ -119,8 +120,8 @@
 {
 	int ret;
 
-	debug("%s(ddrss=%p)\n", __func__, ddrss);
-
+//	debug("%s(ddrss=%p)\n", __func__, ddrss);
+	printf("%s(ddrss=%p)\n", __func__, ddrss);
 	ret = power_domain_on(&ddrss->ddrcfg_pwrdmn);
 	if (ret) {
 		dev_err(ddrss->dev, "power_domain_on() failed: %d\n", ret);
@@ -142,7 +143,8 @@
 	phys_addr_t reg;
 	int ret;
 
-	debug("%s(dev=%p)\n", __func__, dev);
+//	debug("%s(dev=%p)\n", __func__, dev);
+	printf("%s(dev=%p)\n", __func__, dev);
 
 	reg = dev_read_addr_name(dev, "cfg");
 	if (reg == FDT_ADDR_T_NONE) {
@@ -210,7 +212,8 @@
 		printf("LPDDR4_Probe: FAIL\n");
 		hang();
 	} else {
-		debug("LPDDR4_Probe: PASS\n");
+//		debug("LPDDR4_Probe: PASS\n");
+		printf("LPDDR4_Probe: PASS\n");
 	}
 }
 
@@ -236,7 +239,8 @@
 		printf("LPDDR4_Init: FAIL\n");
 		hang();
 	} else {
-		debug("LPDDR4_Init: PASS\n");
+//		debug("LPDDR4_Init: PASS\n");
+		printf("LPDDR4_Init: PASS\n");
 	}
 }
 
@@ -319,7 +323,8 @@
 		printf("LPDDR4_Start: FAIL\n");
 		hang();
 	} else {
-		debug("LPDDR4_Start: PASS\n");
+//		debug("LPDDR4_Start: PASS\n");
+		printf("LPDDR4_Start: PASS\n");
 	}
 }
 
@@ -328,7 +333,8 @@
 	int ret;
 	ddrss = dev_get_priv(dev);
 
-	debug("%s(dev=%p)\n", __func__, dev);
+//	debug("%s(dev=%p)\n", __func__, dev);
+	printf("%s(dev=%p)\n", __func__, dev);
 
 	ret = j721e_ddrss_ofdata_to_priv(dev);
 	if (ret)
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/remoteproc/ti_k3_dsp_rproc.c /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/remoteproc/ti_k3_dsp_rproc.c
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/remoteproc/ti_k3_dsp_rproc.c	2020-06-17 16:24:09.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/remoteproc/ti_k3_dsp_rproc.c	2020-06-30 13:29:23.988149868 +0200
@@ -59,6 +59,7 @@
 	struct k3_dsp_boot_data *data;
 	struct k3_dsp_mem *mem;
 	int num_mems;
+	ulong uses_lreset;
 };
 
 /*
@@ -204,6 +205,7 @@
 	dev_dbg(dev, "%s\n", __func__);
 
 	ti_sci_proc_request(&dsp->tsp);
+	
 	reset_assert(&dsp->dsp_rst);
 	ti_sci_proc_power_domain_off(&dsp->tsp);
 	ti_sci_proc_release(&dsp->tsp);
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/include/configs/j721e_evm.h /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/include/configs/j721e_evm.h
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/include/configs/j721e_evm.h	2020-06-17 16:24:09.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/include/configs/j721e_evm.h	2020-06-30 13:35:33.122511212 +0200
@@ -17,7 +17,7 @@
 #include <environment/ti/k3_dfu.h>
 
 /* DDR Configuration */
-#define CONFIG_SYS_SDRAM_BASE1		0x880000000
+// #define CONFIG_SYS_SDRAM_BASE1		0x880000000
 
 /* SPL Loader Configuration */
 #ifdef CONFIG_TARGET_J721E_A72_EVM

diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-am654-base-board.dts /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-am654-base-board.dts	2020-06-17 16:25:34.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-am654-base-board.dts	2020-07-03 17:01:11.199620804 +0200
@@ -34,7 +34,7 @@
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
-
+		status = "disabled";
 		secure_ddr: secure_ddr@9e800000 {
 			reg = <0 0x9e800000 0 0x01800000>; /* for OP-TEE */
 			alignment = <0x1000>;
@@ -70,6 +70,7 @@
 			alignment = <0x1000>;
 			no-map;
 		};
+		
 	};
 
 	gpio-keys {
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts	2020-06-17 16:25:34.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts	2020-06-30 15:33:59.075261774 +0200
@@ -82,25 +82,6 @@
 		clock-frequency = <1083801600>;
 	};
 
-	sound0: sound@0 {
-		compatible = "ti,j721e-cpb-audio";
-		ti,model = "j721e-cpb-analog";
-
-		ti,cpb-mcasp = <&mcasp10>;
-		ti,cpb-codec = <&pcm3168a_1>;
-
-		clocks = <&pll4>, <&pll15>,
-			 <&k3_clks 184 1>,
-			 <&k3_clks 184 2>, <&k3_clks 184 4>,
-			 <&k3_clks 157 371>,
-			 <&k3_clks 157 400>, <&k3_clks 157 401>;
-		clock-names = "pll4", "pll15",
-			      "cpb-mcasp",
-			      "cpb-mcasp-48000", "cpb-mcasp-44100",
-			      "audio-refclk2",
-			      "audio-refclk2-48000", "audio-refclk2-44100";
-	};
-
 	vdd_mmc1: fixedregulator-sd {
 		compatible = "regulator-fixed";
 		regulator-name = "vdd_mmc1";
@@ -124,6 +105,7 @@
 		gpios = <&main_gpio0 117 GPIO_ACTIVE_HIGH>;
 		states = <1800000 0x0
 			  3300000 0x1>;
+			  status ="disabled";
 	};
 
 	cpsw9g_virt_mac: main_r5fss_cpsw9g_virt_mac0 {
@@ -151,16 +133,16 @@
 		};
 	};
 
-	dp0: connector {
-		compatible = "dp-connector";
-		label = "DP0";
-
-		port {
-			dp_connector_in: endpoint {
-				remote-endpoint = <&dp_bridge_output>;
-			};
-		};
-	};
+//	dp0: connector {
+//		compatible = "dp-connector";
+//		label = "DP0";
+
+//		port {
+//			dp_connector_in: endpoint {
+//				remote-endpoint = <&dp_bridge_output>;
+//			};
+//		};
+//	};
 };
 
 &main_pmx0 {
@@ -169,12 +151,21 @@
 			J721E_IOPAD(0x0, PIN_INPUT, 7) /* (AC18) EXTINTn.GPIO0_0 */
 		>;
 	};
-
-	dp0_pins_default: dp0_pins_default {
-		pinctrl-single,pins = <
-			J721E_IOPAD(0x1c4, PIN_INPUT, 5) /* SPI0_CS1.DP0_HPD */
-		>;
-	};
+	
+myspi1_pins_default: myspi1_pins_default {
+                   pinctrl-single,pins = <
+                            J721E_IOPAD(0x1c8, PIN_OUTPUT, 0) /* (AA1) SPI0_CLK */
+                            J721E_IOPAD(0x1c4, PIN_OUTPUT, 0) /* (Y4) SPI0_CS1 */
+                            J721E_IOPAD(0x1cc, PIN_INPUT, 0) /* (AB5) SPI0_D0 */
+                            J721E_IOPAD(0x1d0, PIN_OUTPUT, 0) /* (AA3) SPI0_D1 */
+                   >;
+         };
+
+//	dp0_pins_default: dp0_pins_default {
+//		pinctrl-single,pins = <
+//			J721E_IOPAD(0x1c4, PIN_INPUT, 5) 
+//		>;
+//	};
 
 	main_i2c1_exp4_pins_default: main-i2c1-exp4-pins-default {
 		pinctrl-single,pins = <
@@ -203,12 +194,12 @@
 		>;
 	};
 
-	main_i2c6_pins_default: main-i2c6-pins-default {
-		pinctrl-single,pins = <
-			J721E_IOPAD(0x1d0, PIN_INPUT_PULLUP, 2) /* (AA3) SPI0_D1.I2C6_SCL */
-			J721E_IOPAD(0x1e4, PIN_INPUT_PULLUP, 2) /* (Y2) SPI1_D1.I2C6_SDA */
-		>;
-	};
+//	main_i2c6_pins_default: main-i2c6-pins-default {
+//		pinctrl-single,pins = <
+//			J721E_IOPAD(0x1d0, PIN_INPUT_PULLUP, 2) /* (AA3) SPI0_D1.I2C6_SCL */
+//			J721E_IOPAD(0x1e4, PIN_INPUT_PULLUP, 2) /* (Y2) SPI1_D1.I2C6_SDA */
+//		>;
+//	};
 
 	mcasp10_pins_default: mcasp10_pins_default {
 		pinctrl-single,pins = <
@@ -221,6 +212,7 @@
 			J721E_IOPAD(0x198, PIN_INPUT_PULLDOWN, 12) /* (V25) RGMII6_TD1.MCASP10_AXR4 */
 			J721E_IOPAD(0x19c, PIN_INPUT_PULLDOWN, 12) /* (W27) RGMII6_TD0.MCASP10_AXR5 */
 			J721E_IOPAD(0x1a0, PIN_INPUT_PULLDOWN, 12) /* (W29) RGMII6_TXC.MCASP10_AXR6 */
+			J721E_IOPAD(0xc8, PIN_OUTPUT, 7) /* (AE26) PRG0_PRU0_GPO6.GPIO0_49 */
 		>;
 	};
 
@@ -268,19 +260,23 @@
 	sw11_button_pins_default: sw11_button_pins_default {
 		pinctrl-single,pins = <
 			J721E_WKUP_IOPAD(0xcc, PIN_INPUT, 7) /* (G28) WKUP_GPIO0_7 */
+			J721E_WKUP_IOPAD(0xc0, PIN_OUTPUT, 7) /* (G25) WKUP_GPIO0_4 */
 		>;
 	};
 
 	mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default {
 		pinctrl-single,pins = <
-			J721E_WKUP_IOPAD(0x34, PIN_OUTPUT, 0) /* (F22) MCU_OSPI1_CLK */
-			J721E_WKUP_IOPAD(0x50, PIN_OUTPUT, 0) /* (C22) MCU_OSPI1_CSn0 */
-			J721E_WKUP_IOPAD(0x40, PIN_INPUT, 0) /* (D22) MCU_OSPI1_D0 */
-			J721E_WKUP_IOPAD(0x44, PIN_INPUT, 0) /* (G22) MCU_OSPI1_D1 */
-			J721E_WKUP_IOPAD(0x48, PIN_INPUT, 0) /* (D23) MCU_OSPI1_D2 */
-			J721E_WKUP_IOPAD(0x4c, PIN_INPUT, 0) /* (C23) MCU_OSPI1_D3 */
-			J721E_WKUP_IOPAD(0x3c, PIN_INPUT, 0) /* (B23) MCU_OSPI1_DQS */
-			J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */
+	  J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 0) /* (E20) MCU_OSPI0_CLK */
+      J721E_WKUP_IOPAD(0x2c, PIN_OUTPUT, 0) /* (F19) MCU_OSPI0_CSn0 */
+      J721E_WKUP_IOPAD(0xc, PIN_INPUT, 0) /* (D20) MCU_OSPI0_D0 */
+      J721E_WKUP_IOPAD(0x10, PIN_INPUT, 0) /* (G19) MCU_OSPI0_D1 */
+      J721E_WKUP_IOPAD(0x14, PIN_INPUT, 0) /* (G20) MCU_OSPI0_D2 */
+      J721E_WKUP_IOPAD(0x18, PIN_INPUT, 0) /* (F20) MCU_OSPI0_D3 */
+      J721E_WKUP_IOPAD(0x1c, PIN_INPUT, 0) /* (F21) MCU_OSPI0_D4 */
+      J721E_WKUP_IOPAD(0x20, PIN_INPUT, 0) /* (E21) MCU_OSPI0_D5 */
+      J721E_WKUP_IOPAD(0x24, PIN_INPUT, 0) /* (B22) MCU_OSPI0_D6 */
+      J721E_WKUP_IOPAD(0x28, PIN_INPUT, 0) /* (G21) MCU_OSPI0_D7 */
+      J721E_WKUP_IOPAD(0x8, PIN_INPUT, 0) /* (D21) MCU_OSPI0_DQS */
 		>;
 	};
 };
@@ -298,7 +294,7 @@
 			J721E_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */
 			J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */
 			J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */
-			J721E_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* MCU_RGMII1_TXC */
+			J721E_WKUP_IOPAD(0x0070, PIN_OUTPUT, 0) /* MCU_RGMII1_TXC */
 			J721E_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* MCU_RGMII1_RXC */
 		>;
 	};
@@ -550,36 +546,37 @@
 	port@0 {
 		reg = <0>;
 
-		dpi_out_real0: endpoint {
-			remote-endpoint = <&dp_bridge_input>;
-		};
-	};
+//		dpi_out_real0: endpoint {
+//			remote-endpoint = <&dp_bridge_input>;
+//		};
+//	};
+//};
+
+//&mhdp {
+//	status = "ok";
+//	pinctrl-names = "default";
+//	pinctrl-0 = <&dp0_pins_default>;
 };
-
-&mhdp {
-	status = "ok";
-	pinctrl-names = "default";
-	pinctrl-0 = <&dp0_pins_default>;
 };
 
-&dp0_ports {
-	#address-cells = <1>;
-	#size-cells = <0>;
-
-	port@0 {
-		reg = <0>;
-		dp_bridge_input: endpoint {
-			remote-endpoint = <&dpi_out_real0>;
-		};
-	};
-
-	port@1 {
-		reg = <1>;
-		dp_bridge_output: endpoint {
-			remote-endpoint = <&dp_connector_in>;
-		};
-	};
-};
+//&dp0_ports {
+//	#address-cells = <1>;
+//	#size-cells = <0>;
+
+//	port@0 {
+//		reg = <0>;
+//		dp_bridge_input: endpoint {
+//			remote-endpoint = <&dpi_out_real0>;
+//		};
+//	};
+
+//	port@1 {
+//		reg = <1>;
+//		dp_bridge_output: endpoint {
+//			remote-endpoint = <&dp_connector_in>;
+//		};
+//	};
+//};
 
 &main_i2c0 {
 	pinctrl-names = "default";
@@ -662,44 +659,44 @@
 		#gpio-cells = <2>;
 	};
 
-	pcm3168a_1: audio-codec@44 {
-		compatible = "ti,pcm3168a";
-		reg = <0x44>;
-
-		#sound-dai-cells = <1>;
-
-		reset-gpios = <&exp3 0 GPIO_ACTIVE_LOW>;
-
-		/* C_AUDIO_REFCLK2 -> RGMII6_RXC (W26) */
-		clocks = <&k3_clks 157 371>;
-		clock-names = "scki";
-
-		/* HSDIV3_16FFT_MAIN_4_HSDIVOUT2_CLK -> REFCLK2 */
-		assigned-clocks = <&k3_clks 157 371>;
-		assigned-clock-parents = <&k3_clks 157 400>;
-		assigned-clock-rates = <24576000>; /* for 48KHz */
-
-		VDD1-supply = <&vsys_3v3>;
-		VDD2-supply = <&vsys_3v3>;
-		VCCAD1-supply = <&vsys_5v0>;
-		VCCAD2-supply = <&vsys_5v0>;
-		VCCDA1-supply = <&vsys_5v0>;
-		VCCDA2-supply = <&vsys_5v0>;
-	};
-};
-
-&main_i2c6 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&main_i2c6_pins_default>;
-	clock-frequency = <400000>;
-
-	exp5: gpio@20 {
-		compatible = "ti,tca6408";
-		reg = <0x20>;
-		gpio-controller;
-		#gpio-cells = <2>;
-	};
-};
+//	pcm3168a_1: audio-codec@44 {
+//		compatible = "ti,pcm3168a";
+//		reg = <0x44>;
+
+//		#sound-dai-cells = <1>;
+
+//		reset-gpios = <&exp3 0 GPIO_ACTIVE_LOW>;
+
+//		/* C_AUDIO_REFCLK2 -> RGMII6_RXC (W26) */
+//		clocks = <&k3_clks 157 371>;
+//		clock-names = "scki";
+
+//		/* HSDIV3_16FFT_MAIN_4_HSDIVOUT2_CLK -> REFCLK2 */
+//		assigned-clocks = <&k3_clks 157 371>;
+//		assigned-clock-parents = <&k3_clks 157 400>;
+//		assigned-clock-rates = <24576000>; /* for 48KHz */
+
+//		VDD1-supply = <&vsys_3v3>;
+//		VDD2-supply = <&vsys_3v3>;
+//		VCCAD1-supply = <&vsys_5v0>;
+//		VCCAD2-supply = <&vsys_5v0>;
+//		VCCDA1-supply = <&vsys_5v0>;
+//		VCCDA2-supply = <&vsys_5v0>;
+//	};
+};
+
+//&main_i2c6 {
+//	pinctrl-names = "default";
+//	pinctrl-0 = <&main_i2c6_pins_default>;
+//	clock-frequency = <400000>;
+
+//	exp5: gpio@20 {
+//		compatible = "ti,tca6408";
+//		reg = <0x20>;
+//		gpio-controller;
+//		#gpio-cells = <2>;
+//	};
+//};
 
 &mcasp10 {
 	#sound-dai-cells = <0>;
@@ -723,24 +720,24 @@
 
 &mcu_cpsw {
 	pinctrl-names = "default";
-	pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
-
+//	pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
+   pinctrl-0 = <&mcu_cpsw_pins_default>;
 	cpts {
 		ti,pps = <3 1>;
 	};
 };
 
-&davinci_mdio {
-	phy0: ethernet-phy@0 {
-		reg = <0>;
-		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
-		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
-	};
-};
+//&davinci_mdio {
+//	phy0: ethernet-phy@0 {
+//		reg = <0>;
+//		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
+//		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
+//	};
+//};
 
 &cpsw_port1 {
 	phy-mode = "rgmii-rxid";
-	phy-handle = <&phy0>;
+//	phy-handle = <&phy0>;
 };
 
 #define TS_OFFSET(pa, val)     (0x4 + (pa) * 4) (0x10000 | val)
@@ -766,11 +763,13 @@
 
 &main_sdhci1 {
 	/* SD/MMC */
-	vmmc-supply = <&vdd_mmc1>;
-	vqmmc-supply = <&vdd_sd_dv_alt>;
+//	vmmc-supply = <&vdd_mmc1>;
+//	vqmmc-supply = <&vdd_sd_dv_alt>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&main_mmc1_pins_default>;
+	ti,driver-strength-ohm = <50>;
 	disable-wp;
+		no-1-8-v;
 };
 
 &main_sdhci2 {
@@ -808,6 +807,18 @@
 	};
 };
 
+&main_spi0 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&myspi1_pins_default>;
+	ti,spi-num-cs = <2>;
+	spidev@0 {
+		spi-max-frequency = <24000000>;
+		reg = <1>;
+		compatible = "linux,spidev";
+	};
+};
+
 &pcie0_rc {
 	reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>;
 	phys = <&serdes0_pcie_link>;
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e.dtsi
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e.dtsi	2020-06-17 16:25:34.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e.dtsi	2020-07-01 11:50:03.819689405 +0200
@@ -141,16 +141,16 @@
 			 <0x00 0x06400000 0x00 0x06400000 0x00 0x00400000>, /* USBSS1 */
 			 <0x00 0x01000000 0x00 0x01000000 0x00 0x0af02400>, /* Most peripherals */
 			 <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */
-			 <0x00 0x0d000000 0x00 0x0d000000 0x00 0x01800000>, /* PCIe Core*/
-			 <0x00 0x0e000000 0x00 0x0e000000 0x00 0x01800000>, /* PCIe Core*/
-			 <0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */
+//			 <0x00 0x0d000000 0x00 0x0d000000 0x00 0x01800000>, /* PCIe Core*/
+//			 <0x00 0x0e000000 0x00 0x0e000000 0x00 0x01800000>, /* PCIe Core*/
+//			 <0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */
 			 <0x00 0x64800000 0x00 0x64800000 0x00 0x00800000>, /* C71 */
-			 <0x44 0x00000000 0x44 0x00000000 0x00 0x08000000>, /* PCIe2 DAT */
-			 <0x44 0x10000000 0x44 0x10000000 0x00 0x08000000>, /* PCIe3 DAT */
+//			 <0x44 0x00000000 0x44 0x00000000 0x00 0x08000000>, /* PCIe2 DAT */
+//			 <0x44 0x10000000 0x44 0x10000000 0x00 0x08000000>, /* PCIe3 DAT */
 			 <0x4d 0x80800000 0x4d 0x80800000 0x00 0x00800000>, /* C66_0 */
 			 <0x4d 0x81800000 0x4d 0x81800000 0x00 0x00800000>, /* C66_1 */
-			 <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */
-			 <0x00 0x70000000 0x00 0x70000000 0x00 0x00800000>, /* MSMC RAM */
+//			 <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */
+//			 <0x00 0x70000000 0x00 0x70000000 0x00 0x00800000>, /* MSMC RAM */
 
 			 /* MCUSS_WKUP Range */
 			 <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>,
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi	2020-06-17 16:25:34.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi	2020-06-30 11:40:40.738189374 +0200
@@ -1264,6 +1264,16 @@
 		assigned-clocks = <&k3_clks 253 1>;
 		assigned-clock-parents = <&k3_clks 253 5>;
 	};
+	
+	   main_spi0: spi@2100000 {
+		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
+		reg = <0x0 0x2100000 0x0 0x400>;
+		interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&k3_clks 266 1>;
+		power-domains = <&k3_pds 266 TI_SCI_PD_EXCLUSIVE>;
+		#address-cells = <1>;
+		#size-cells = <0>; 
+    };
 
 	main_i2c0: i2c@2000000 {
 		compatible = "ti,j721e-i2c", "ti,omap4-i2c";
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi	2020-06-17 16:25:47.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi	2020-07-13 10:50:15.298696519 +0200
@@ -11,16 +11,18 @@
 	memory@80000000 {
 		device_type = "memory";
 		/* 4G RAM */
-		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
-		      <0x00000008 0x80000000 0x00000000 0x80000000>;
+//		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
+//		      <0x00000008 0x80000000 0x00000000 0x80000000>;
+		/* @dudichul: Changed to 1GB, one bank */
+		reg = <0x00000000 0x40000000 0x00000000 0x40000000>;
 	};
 
 	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
-
-		secure_ddr: optee@9e800000 {
+		
+				secure_ddr: optee@9e800000 {
 			reg = <0x00 0x9e800000 0x00 0x01800000>;
 			alignment = <0x1000>;
 			no-map;
@@ -38,29 +40,29 @@
 			no-map;
 		};
 
-        mcu_r5fss0_core1_dma_memory_region: r5f-dma-memory@fb000000 {
-            compatible = "shared-dma-pool";
-            reg = <0x00 0xfb000000 0x00 0x00100000>;
-            no-map;
-        };
-       
-        mcu_r5fss0_core1_memory_region: r5f-memory@fb100000 {
-            compatible = "shared-dma-pool";
-            reg = <0x00 0xfb100000 0x00 0x00f00000>;
-            no-map;
-        };
+		mcu_r5fss0_core1_dma_memory_region: r5f-dma-memory@a1000000 {
+			compatible = "shared-dma-pool";
+			reg = <0x00 0xa1000000 0x00 0x100000>;
+			no-map;
+		};
+
+		mcu_r5fss0_core1_memory_region: r5f-memory@a1100000 {
+			compatible = "shared-dma-pool";
+			reg = <0x00 0xa1100000 0x00 0xf00000>;
+			no-map;
+		};
     
-        main_r5fss0_core0_dma_memory_region: r5f-dma-memory@a1000000 {
-            compatible = "shared-dma-pool";
-            reg = <0x00 0xa1000000 0x00 0x00100000>;
-            no-map;
-        };
-
-        main_r5fss0_core0_memory_region: r5f-memory@a1100000 {
-            compatible = "shared-dma-pool";
-            reg = <0x00 0xa1100000 0x00 0x01f00000>;
-            no-map;
-        };
+       main_r5fss0_core0_dma_memory_region: r5f-dma-memory@a2000000 {
+			compatible = "shared-dma-pool";
+			reg = <0x00 0xa2000000 0x00 0x100000>;
+			no-map;
+		};
+
+		main_r5fss0_core0_memory_region: r5f-memory@a2100000 {
+			compatible = "shared-dma-pool";
+			reg = <0x00 0xa2100000 0x00 0xf00000>;
+			no-map;
+		};
 
 		main_r5fss0_core1_dma_memory_region: r5f-dma-memory@a3000000 {
 			compatible = "shared-dma-pool";
@@ -96,49 +98,45 @@
 			compatible = "shared-dma-pool";
 			reg = <0x00 0xa5100000 0x00 0xf00000>;
 			no-map;
-		};
-
+		};		
+		
 		c66_1_dma_memory_region: c66-dma-memory@a6000000 {
 			compatible = "shared-dma-pool";
-			reg = <0x00 0xa6000000 0x00 0x100000>;
+			reg = <0x00 0xB2800000 0x00 0x100000>;
 			no-map;
 		};
 
 		c66_0_memory_region: c66-memory@a6100000 {
 			compatible = "shared-dma-pool";
-			reg = <0x00 0xa6100000 0x00 0xf00000>;
+			reg = <0x00 0xB2900000 0x00 0xf00000>;
 			no-map;
 		};
 
 		c66_0_dma_memory_region: c66-dma-memory@a7000000 {
 			compatible = "shared-dma-pool";
-			reg = <0x00 0xa7000000 0x00 0x100000>;
+			reg = <0x00 0xB3800000 0x00 0x100000>;
 			no-map;
 		};
-
 		c66_1_memory_region: c66-memory@a7100000 {
 			compatible = "shared-dma-pool";
-			reg = <0x00 0xa7100000 0x00 0xf00000>;
+			reg = <0x00 0xB3900000 0x00 0xf00000>;
 			no-map;
 		};
-
+		
 		c71_0_dma_memory_region: c71-dma-memory@a8000000 {
 			compatible = "shared-dma-pool";
-			reg = <0x00 0xa8000000 0x00 0x100000>;
+			reg = <0x00 0xB4800000 0x00 0x100000>;
 			no-map;
 		};
 
 		c71_0_memory_region: c71-memory@a8100000 {
 			compatible = "shared-dma-pool";
-			reg = <0x00 0xa8100000 0x00 0xf00000>;
+			reg = <0x00 0xB4900000 0x00 0xf00000>;
 			no-map;
 		};
+		
+			
 
-		rtos_ipc_memory_region: ipc-memories@aa000000 {
-			reg = <0x00 0xaa000000 0x00 0x02000000>;
-			alignment = <0x1000>;
-			no-map;
-		};
 	};
 };
 
@@ -187,12 +185,10 @@
 		#size-cells = <1>;
 	};
 };
-
 &mcu_r5fss0_core0 {
 	memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
 			<&mcu_r5fss0_core0_memory_region>;
 };
-
 &mcu_r5fss0_core1 {
 	memory-region = <&mcu_r5fss0_core1_dma_memory_region>,
 			<&mcu_r5fss0_core1_memory_region>;
@@ -207,7 +203,6 @@
 	memory-region = <&main_r5fss0_core1_dma_memory_region>,
 			<&main_r5fss0_core1_memory_region>;
 };
-
 &main_r5fss1_core0 {
 	memory-region = <&main_r5fss1_core0_dma_memory_region>,
 			<&main_r5fss1_core0_memory_region>;
@@ -218,7 +213,7 @@
 			<&main_r5fss1_core1_memory_region>;
 };
 
-&c66_0 {
+				&c66_0 {
 	memory-region = <&c66_0_dma_memory_region>,
 			<&c66_0_memory_region>;
 };
@@ -231,4 +226,4 @@
 &c71_0 {
 	memory-region = <&c71_0_dma_memory_region>,
 			<&c71_0_memory_region>;
-};
+};
\ No newline at end of file
diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/configs/tisdk_j7-evm_defconfig /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/configs/tisdk_j7-evm_defconfig
--- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/configs/tisdk_j7-evm_defconfig	2020-06-17 16:27:24.000000000 +0200
+++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/linux-5.4.40+gitAUTOINC+66cf445b76-g66cf445b76/arch/arm64/configs/tisdk_j7-evm_defconfig	2020-06-30 11:47:43.605007296 +0200
@@ -2848,7 +2848,7 @@
 #
 # SPI Protocol Masters
 #
-# CONFIG_SPI_SPIDEV is not set
+CONFIG_SPI_SPIDEV=y
 # CONFIG_SPI_LOOPBACK_TEST is not set
 # CONFIG_SPI_TLE62X0 is not set
 # CONFIG_SPI_SLAVE is not set

Error -->

LOG_DMESG -->

j7-evm login: root
Last login: Wed Jun 17 14:17:23 UTC 2020
root@j7-evm:~# cd /home/
root@j7-evm:/home# ls
Init_Device  bcm          gpio_toggle  root         spidev_test
root@j7-evm:/home# cd gpio_toggle/
root@j7-evm:/home/gpio_toggle# ls
GPIOToggle
root@j7-evm:/home/gpio_toggle# ./GPIOToggle 
[  104.025576] export_store: invalid GPIO 133
./GPIOToggle: line 7: echo: write error: Invalid argument
[  104.029766] export_store: invalid GPIO 4
./GPIOToggle: line 10: echo: write error: Invalid argument
./GPIOToggle: line 13: /sys/class/gpio/gpio133/direction: No such file or directory
./GPIOToggle: line 14: /sys/class/gpio/gpio4/direction: No such file or directory
./GPIOToggle: line 20: /sys/class/gpio/gpio133/value: No such file or directory
./GPIOToggle: line 23: /sys/class/gpio/gpio4/value: No such file or directory
./GPIOToggle: line 28: /sys/class/gpio/gpio133/value: No such file or directory
./GPIOToggle: line 31: /sys/class/gpio/gpio4/value: No such file or directory
./GPIOToggle: line 20: /sys/class/gpio/gpio133/value: No such file or directory
./GPIOToggle: line 23: /sys/class/gpio/gpio4/value: No such file or directory
^Croot@j7-evm:/home/gpio_toggle# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
[    0.000000] Linux version 5.4.40-g66cf445b76 (user@UbuntuLTS2) (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 SMP PREEMPT Tue Jul 21 14:37:55 CEST 2020
[    0.000000] Machine model: Texas Instruments K3 J721E SoC
[    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[    0.000000] printk: bootconsole [ns16550a0] enabled
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a4000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a4100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a5000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a5100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000b2800000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node c66-dma-memory@a6000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000b2900000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node c66-memory@a6100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000b3800000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node c66-dma-memory@a7000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000b3900000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node c66-memory@a7100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000b4800000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node c71-dma-memory@a8000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000b4900000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node c71-memory@a8100000, compatible id shared-dma-pool
[    0.000000] cma: Failed to reserve 512 MiB
[    0.000000] On node 0 totalpages: 1664
[    0.000000]   DMA zone: 14 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 13696 pages, LIFO batch:3
[    0.000000]   DMA32 zone: 18446744073709539584 pages, LIFO batch:3
[    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.0
[    0.000000] percpu: Embedded 2 pages/cpu s48408 r8192 d74472 u131072
[    0.000000] pcpu-alloc: s48408 r8192 d74472 u131072 alloc=2*65536
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: EL2 vector hardening
[    0.000000] Built 1 zonelists, mobility grouping off.  Total pages: 1650
[    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),-@8m(ospi.rootfs);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs) root=PARTUUID=569de07f-02 rw rootfstype=ext4 rootwait
[    0.000000] Dentry cache hash table entries: 16384 (order: 1, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 857216K/106496K available (9534K kernel code, 776K rwdata, 3840K rodata, 1728K init, 695K bss, 18446744073708800896K reserved, 0K 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 restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[    0.000000] 	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: 960 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: no VLPI support, no direct LPI support
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
[    0.000000] ITS [mem 0x01820000-0x0182ffff]
[    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
[    0.000000] ITS@0x0000000001820000: allocated 1048576 Devices @b5800000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x00000000bdd10000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000000bdd20000
[    0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x438 with crng_init=0
[    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.000001] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[    0.008354] Console: colour dummy device 80x25
[    0.012908] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[    0.023576] pid_max: default: 32768 minimum: 301
[    0.028322] LSM: Security Framework initializing
[    0.033063] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
[    0.040630] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
[    0.072673] ASID allocator initialised with 32768 entries
[    0.086200] rcu: Hierarchical SRCU implementation.
[    0.099142] Platform MSI: gic-its@1820000 domain created
[    0.104665] PCI/MSI: /interconnect@100000/interrupt-controller@1800000/gic-its@1820000 domain created
[    0.122100] smp: Bringing up secondary CPUs ...
[    0.159054] Detected PIPT I-cache on CPU1
[    0.159071] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
[    0.159081] GICv3: CPU1: using allocated LPI pending table @0x00000000bdd30000
[    0.159100] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
[    0.159139] smp: Brought up 1 node, 2 CPUs
[    0.188481] SMP: Total of 2 processors activated.
[    0.193285] CPU features: detected: 32-bit EL0 Support
[    0.198538] CPU features: detected: CRC32 instructions
[    0.209789] CPU: All CPU(s) started at EL2
[    0.213981] alternatives: patching kernel code
[    0.218907] devtmpfs: initialized
[    0.226156] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.236123] futex hash table entries: 512 (order: -1, 32768 bytes, linear)
[    0.243249] pinctrl core: initialized pinctrl subsystem
[    0.248915] NET: Registered protocol family 16
[    0.253621] DMA: preallocated 256 KiB pool for atomic allocations
[    0.260099] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.269020] sram interconnect@100000:sram@70000000: found no memory resource
[    0.276234] sram: probe of interconnect@100000:sram@70000000 failed with error -22
[    0.290059] HugeTLB registered 16.0 GiB page size, pre-allocated 0 pages
[    0.296911] HugeTLB registered 512 MiB page size, pre-allocated 0 pages
[    0.303668] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.311906] cryptd: max_cpu_qlen set to 1000
[    0.318859] vsys_3v3: supplied by evm_12v0
[    0.323186] vsys_5v0: supplied by evm_12v0
[    0.327730] iommu: Default domain type: Translated 
[    0.332836] SCSI subsystem initialized
[    0.336924] mc: Linux media interface: v0.10
[    0.341295] videodev: Linux video capture interface: v2.00
[    0.346910] pps_core: LinuxPPS API ver. 1 registered
[    0.351979] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.361315] PTP clock support registered
[    0.365325] EDAC MC: Ver: 3.0.0
[    0.368974] FPGA manager framework
[    0.372484] Advanced Linux Sound Architecture Driver Initialized.
[    0.378980] clocksource: Switched to clocksource arch_sys_counter
[    0.385280] VFS: Disk quotas dquot_6.6.0
[    0.389326] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
[    0.398542] thermal_sys: Registered thermal governor 'step_wise'
[    0.398543] thermal_sys: Registered thermal governor 'power_allocator'
[    0.404840] NET: Registered protocol family 2
[    0.416173] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes, linear)
[    0.424931] TCP established hash table entries: 8192 (order: 0, 65536 bytes, linear)
[    0.432872] TCP bind hash table entries: 8192 (order: 1, 131072 bytes, linear)
[    0.440305] TCP: Hash tables configured (established 8192 bind 8192)
[    0.446841] UDP hash table entries: 2048 (order: 0, 65536 bytes, linear)
[    0.453728] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes, linear)
[    0.461103] NET: Registered protocol family 1
[    0.465772] RPC: Registered named UNIX socket transport module.
[    0.471825] RPC: Registered udp transport module.
[    0.476628] RPC: Registered tcp transport module.
[    0.481430] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.488012] PCI: CLS 0 bytes, default 64
[    0.492261] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.503573] Initialise system trusted keyrings
[    0.508172] workingset: timestamp_bits=46 max_order=14 bucket_order=0
[    0.516708] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.522871] NFS: Registering the id_resolver key type
[    0.528044] Key type id_resolver registered
[    0.532315] Key type id_legacy registered
[    0.536410] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.543333] 9p: Installing v9fs 9p2000 file system support
[    0.556373] Key type asymmetric registered
[    0.560565] Asymmetric key parser 'x509' registered
[    0.565572] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.573132] io scheduler mq-deadline registered
[    0.577758] io scheduler kyber registered
[    0.582839] pinctrl-single 4301c000.pinmux: 94 pins, size 376
[    0.588909] pinctrl-single 11c000.pinmux: 173 pins, size 692
[    0.595048] pinctrl-single a40000.timesync_router: 512 pins, size 2048
[    0.603856] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
[    0.610114] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
[    0.616431] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages
[    0.622839] debugfs: Directory '31010000.pat' with parent 'regmap' already present!
[    0.630792] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages
[    0.637201] debugfs: Directory '31011000.pat' with parent 'regmap' already present!
[    0.645122] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages
[    0.651532] debugfs: Directory '31012000.pat' with parent 'regmap' already present!
[    0.659445] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages
[    0.665766] debugfs: Directory '31013000.pat' with parent 'regmap' already present!
[    0.673709] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages
[    0.680031] debugfs: Directory '31014000.pat' with parent 'regmap' already present!
[    0.689307] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    0.700911] brd: module loaded
[    0.706750] loop: module loaded
[    0.711289] libphy: Fixed MDIO Bus: probed
[    0.715643] tun: Universal TUN/TAP device driver, 1.6
[    0.721023] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    0.729029] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.735097] sky2: driver version 1.30
[    0.739279] VFIO - User Level meta-driver version: 0.3
[    0.744848] i2c /dev entries driver
[    0.748890] sdhci: Secure Digital Host Controller Interface driver
[    0.755204] sdhci: Copyright(c) Pierre Ossman
[    0.759864] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.766089] ledtrig-cpu: registered to indicate activity on CPUs
[    0.772801] optee: probing for conduit method from DT.
[    0.778060] optee: revision 3.8 (199fca17)
[    0.778326] optee: initialized driver
[    0.786965] NET: Registered protocol family 17
[    0.791569] 9pnet: Installing 9P2000 support
[    0.795952] Key type dns_resolver registered
[    0.800433] registered taskstats version 1
[    0.804620] Loading compiled-in X.509 certificates
[    0.813280] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
[    0.819596] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
[    0.827329] ti-sci 44083000.dmsc: ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla')
[    0.852153] random: fast init done
[    0.877727] davinci-mcasp 2ba0000.mcasp: IRQ common not found
[    0.884834] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
[    0.890804] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
[    0.896742] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz
[    0.902760] pca953x 3-0020: 3-0020 supply vcc not found, using dummy regulator
[    0.931024] pca953x 3-0020: failed writing register
[    0.936056] pca953x: probe of 3-0020 failed with error -121
[    0.941838] pca953x 3-0022: 3-0022 supply vcc not found, using dummy regulator
[    0.949295] pca953x 3-0022: failed writing register
[    0.954314] pca953x: probe of 3-0022 failed with error -121
[    0.960044] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz
[    0.966034] omap_i2c 2010000.i2c: bus 4 rev0.12 at 400 kHz
[    0.971912] omap_i2c 2020000.i2c: bus 5 rev0.12 at 100 kHz
[    0.977827] pca953x 6-0020: 6-0020 supply vcc not found, using dummy regulator
[    1.007024] pca953x 6-0020: failed writing register
[    1.012043] pca953x: probe of 6-0020 failed with error -121
[    1.017770] omap_i2c 2030000.i2c: bus 6 rev0.12 at 400 kHz
[    1.023629] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz
[    1.029525] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz
[    1.035414] omap_i2c 2060000.i2c: bus 9 rev0.12 at 100 kHz
[    1.041630] ti-sci-intr interconnect@100000:interconnect@28380000:interrupt-controller2: Interrupt Router 137 domain created
[    1.053195] ti-sci-intr interconnect@100000:interrupt-controller0: Interrupt Router 131 domain created
[    1.062800] ti-sci-intr interconnect@100000:navss@30000000:interrupt-controller1: Interrupt Router 213 domain created
[    1.073802] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created
[    1.090529] cdns-torrent-phy 5050000.serdes: 4 lanes, max bit rate 5.400 Gbps
[    1.099471] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
[    1.109348] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
[    1.116112] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
[    1.124930] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
[    1.135072] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
[    1.141831] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
[    1.149486] omap8250 40a00000.serial: PM domain pd:149 will not be powered off
[    1.156987] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 7, base_baud = 6000000) is a 8250
[    1.166138] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 18, base_baud = 3000000) is a 8250
[    1.174875] printk: console [ttyS2] enabled
[    1.183311] printk: bootconsole [ns16550a0] disabled
[    1.193644] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 19, base_baud = 3000000) is a 8250
[    1.202467] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 20, base_baud = 3000000) is a 8250
[    1.211213] arm-smmu-v3 36600000.smmu: ias 48-bit, oas 48-bit (features 0x00001faf)
[    1.220474] arm-smmu-v3 36600000.smmu: allocated 524288 entries for cmdq
[    1.229007] arm-smmu-v3 36600000.smmu: allocated 524288 entries for evtq
[    2.317065] arm-smmu-v3 36600000.smmu: CMD_SYNC timeout at 0x00000001 [hwprod 0x00000002, hwcons 0x00000001]
[    3.407908] arm-smmu-v3 36600000.smmu: CMD_SYNC timeout at 0x00000004 [hwprod 0x00000005, hwcons 0x00000001]
[    3.417765] arm-smmu-v3 36600000.smmu: msi_domain absent - falling back to wired irqs
[    3.426440] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.433046] [drm] No driver support for vblank timestamp query.
[    3.439857] [drm] Initialized tidss 1.0.0 20180215 for 4a00000.dss on minor 0
[    3.447463] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled
[    3.457968] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled
[    3.468121] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled
[    3.478360] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled
[    3.489102] scsi host0: ufshcd
[    3.494332] cadence-qspi 47040000.spi: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[    3.502152] cadence-qspi 47040000.spi: Cadence QSPI NOR probe failed -2
[    3.509014] cadence-qspi: probe of 47040000.spi failed with error -2
[    3.515737] cadence-qspi 47050000.spi: unrecognized JEDEC id bytes: 00 00 00 00 00 00
[    3.523553] cadence-qspi 47050000.spi: Cadence QSPI NOR probe failed -2
[    3.530376] cadence-qspi: probe of 47050000.spi failed with error -2
[    3.574989] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[    3.582630] davinci_mdio 46000f00.mdio: detected phy mask ffffffe0
[    3.591403] libphy: 46000f00.mdio: probed
[    3.595415] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver unknown
[    3.603405] davinci_mdio 46000f00.mdio: phy[1]: device 46000f00.mdio:01, driver unknown
[    3.611390] davinci_mdio 46000f00.mdio: phy[2]: device 46000f00.mdio:02, driver unknown
[    3.619374] davinci_mdio 46000f00.mdio: phy[3]: device 46000f00.mdio:03, driver unknown
[    3.627358] davinci_mdio 46000f00.mdio: phy[4]: device 46000f00.mdio:04, driver unknown
[    3.635362] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2
[    3.646763] am65-cpsw-nuss 46000000.ethernet: Failed to request tx dma channel -517
[    3.655318] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
[    3.663832] mmc0: CQHCI version 5.10
[    3.702170] mmc0: SDHCI controller on 4f80000.sdhci [4f80000.sdhci] using ADMA 64-bit
[    3.710344] mmc1: CQHCI version 5.10
[    3.746869] mmc1: SDHCI controller on 4fb0000.sdhci [4fb0000.sdhci] using ADMA 64-bit
[    3.755023] davinci-mcasp 2ba0000.mcasp: IRQ common not found
[    3.761541] davinci_gpio 42110000.gpio: IRQ index 4 not found
[    3.767316] davinci_gpio 42110000.gpio: IRQ not populated, err = -6
[    3.776782] pca953x 4-0020: 4-0020 supply vcc not found, using dummy regulator
[    3.807023] pca953x 4-0020: failed writing register
[    3.811961] pca953x: probe of 4-0020 failed with error -121
[    3.817899] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
[    3.824751] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
[    3.831693] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
[    3.838581] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
[    3.845437] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
[    3.853768] mmc0: switch to bus width 4 failed
[    3.860481] ti-udma 285c0000.dma-controller: Channels: 24 (tchan: 12, rchan: 12, gp-rflow: 8)
[    3.868996] mmc0: mmc_select_hs200 failed, error -110
[    3.874039] mmc0: error -110 whilst initialising MMC card
[    3.881224] ti-udma 31150000.dma-controller: Channels: 84 (tchan: 42, rchan: 42, gp-rflow: 16)
[    3.926083] cdns-ufshcd 4e84000.ufs: link startup failed 1
[    3.930985] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[    3.931559] cdns-ufshcd 4e84000.ufs: UFS Host state=0
[    3.939191] davinci_mdio 46000f00.mdio: detected phy mask ffffffe0
[    3.944223] cdns-ufshcd 4e84000.ufs: lrb in use=0x0, outstanding reqs=0x0 tasks=0x0
[    3.944225] cdns-ufshcd 4e84000.ufs: saved_err=0x0, saved_uic_err=0x0
[    3.964445] cdns-ufshcd 4e84000.ufs: Device power mode=1, UIC link state=0
[    3.965394] libphy: 46000f00.mdio: probed
[    3.971304] cdns-ufshcd 4e84000.ufs: PM in progress=0, sys. suspended=0
[    3.971306] cdns-ufshcd 4e84000.ufs: Auto BKOPS=0, Host self-block=0
[    3.971308] cdns-ufshcd 4e84000.ufs: Clk gate=1
[    3.971310] cdns-ufshcd 4e84000.ufs: error handling flags=0x0, req. abort count=0
[    3.971318] cdns-ufshcd 4e84000.ufs: Host capabilities=0x1587031f, caps=0x0
[    3.975347] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver unknown
[    3.981911] cdns-ufshcd 4e84000.ufs: quirks=0x0, dev. quirks=0x0
[    3.988263] davinci_mdio 46000f00.mdio: phy[1]: device 46000f00.mdio:01, driver unknown
[    3.992768] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[0, 0], lane[0, 0], pwr[INVALID MODE, INVALID MODE], rate = 0
[    3.992789] host_regs: 00000000: 1587031f 00000000 00000210 00000000
[    4.000236] davinci_mdio 46000f00.mdio: phy[2]: device 46000f00.mdio:02, driver unknown
[    4.007181] host_regs: 00000010: 00000000 00000000 00000000 00000000
[    4.015167] davinci_mdio 46000f00.mdio: phy[3]: device 46000f00.mdio:03, driver unknown
[    4.021149] host_regs: 00000020: 00000000 00000470 00000000 00000000
[    4.021151] host_regs: 00000030: 00000008 00000001 00000000 00000000
[    4.021153] host_regs: 00000040: 00000000 00000000 00000000 00000000
[    4.021155] host_regs: 00000050: 00000000 00000000 00000000 00000000
[    4.029139] davinci_mdio 46000f00.mdio: phy[4]: device 46000f00.mdio:04, driver unknown
[    4.041279] host_regs: 00000060: 00000000 00000000 00000000 00000000
[    4.047637] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2
[    4.055596] host_regs: 00000070: 00000000 00000000 00000000 00000000
[    4.055598] host_regs: 00000080: 00000000 00000000 00000000 00000000
[    4.055601] host_regs: 00000090: 00000000 00000000 00000000 00000000
[    4.062754] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
[    4.069920] cdns-ufshcd 4e84000.ufs: hba->ufs_version = 0x210, hba->capabilities = 0x1587031f
[    4.069923] cdns-ufshcd 4e84000.ufs: hba->outstanding_reqs = 0x0, hba->outstanding_tasks = 0x0
[    4.069925] cdns-ufshcd 4e84000.ufs: last_hibern8_exit_tstamp at 0 us, hibern8_exit_cnt = 0
[    4.069931] cdns-ufshcd 4e84000.ufs: No record of pa_err errors
[    4.076708] am65-cpsw-nuss 46000000.ethernet: slave[1] no phy found
[    4.082606] cdns-ufshcd 4e84000.ufs: No record of dl_err errors
[    4.082608] cdns-ufshcd 4e84000.ufs: No record of nl_err errors
[    4.082614] cdns-ufshcd 4e84000.ufs: No record of tl_err errors
[    4.090269] davinci-mcasp 2ba0000.mcasp: IRQ common not found
[    4.095295] cdns-ufshcd 4e84000.ufs: No record of dme_err errors
[    4.106485] ti-sci-inta 33d00000.interrupt-controller: Parent IRQ allocation failed
[    4.109620] cdns-ufshcd 4e84000.ufs: No record of auto_hibern8_err errors
[    4.109621] cdns-ufshcd 4e84000.ufs: No record of fatal_err errors
[    4.109628] cdns-ufshcd 4e84000.ufs: link_startup_fail[0] = 0x1 at 3831105 us
[    4.121001] genirq: Failed to request resources for 31150000.dma-controller chan0 (irq 61) on irqchip MSI-INTA
[    4.127329] cdns-ufshcd 4e84000.ufs: No record of resume_fail errors
[    4.133721] ti-udma 31150000.dma-controller: chan0: ring irq request failed
[    4.140006] cdns-ufshcd 4e84000.ufs: No record of suspend_fail errors
[    4.146861] ti-udma 31150000.dma-controller: get channel fail in udma_of_xlate.
[    4.154929] cdns-ufshcd 4e84000.ufs: No record of dev_reset errors
[    4.154931] cdns-ufshcd 4e84000.ufs: No record of host_reset errors
[    4.154933] cdns-ufshcd 4e84000.ufs: No record of task_abort errors
[    4.164337] ti-sci-inta 33d00000.interrupt-controller: Parent IRQ allocation failed
[    4.171852] cdns-ufshcd 4e84000.ufs: clk: core_clk, rate: 250000000
[    4.171854] cdns-ufshcd 4e84000.ufs: clk: phy_clk, rate: 19200000
[    4.171856] cdns-ufshcd 4e84000.ufs: clk: ref_clk, rate: 19200000
[    4.177814] genirq: Failed to request resources for 31150000.dma-controller chan0 (irq 61) on irqchip MSI-INTA
[    4.332817] ti-udma 31150000.dma-controller: chan0: ring irq request failed
[    4.340161] ti-udma 31150000.dma-controller: get channel fail in udma_of_xlate.
[    4.350153] debugfs: Directory 'pd:242' with parent 'pm_genpd' already present!
[    4.357525] debugfs: Directory 'pd:241' with parent 'pm_genpd' already present!
[    4.364887] debugfs: Directory 'pd:240' with parent 'pm_genpd' already present!
[    4.372231] debugfs: Directory 'pd:239' with parent 'pm_genpd' already present!
[    4.380136] hctosys: unable to open rtc device (rtc0)
[    4.387823] mmc0: new HS200 MMC card at address 0001
[    4.397132] mmcblk0: mmc0:0001 R1J55A 7.28 GiB 
[    4.401860] mmcblk0boot0: mmc0:0001 R1J55A partition 1 8.00 MiB
[    4.407959] mmcblk0boot1: mmc0:0001 R1J55A partition 2 8.00 MiB
[    4.413943] mmcblk0rpmb: mmc0:0001 R1J55A partition 3 4.00 MiB, chardev (240:0)
[    4.427489] ALSA device list:
[    4.430448]   No soundcards found.
[    4.434187] Waiting for root device PARTUUID=569de07f-02...
[    5.000635] mmc1: new high speed SDHC card at address aaaa
[    5.006408] mmcblk1: mmc1:aaaa SC16G 14.8 GiB 
[    5.017546]  mmcblk1: p1 p2
[    5.039410] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.047510] VFS: Mounted root (ext4 filesystem) on device 179:98.
[    5.062529] devtmpfs: mounted
[    5.065968] Freeing unused kernel memory: 1728K
[    5.070511] Run /sbin/init as init process
[    5.385868] systemd[1]: System time before build time, advancing clock.
[    5.466357] NET: Registered protocol family 10
[    5.471131] Segment Routing with IPv6
[    5.499778] systemd[1]: systemd 244.3+ 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)
[    5.521463] systemd[1]: Detected architecture arm64.
[    5.569787] systemd[1]: Set hostname to <j7-evm>.
[    5.802417] systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock \xe2\x86\x92 /run/docker.sock; please update the unit file accordingly.
[    5.874069] random: systemd: uninitialized urandom read (16 bytes read)
[    5.880762] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[    5.893088] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[    5.902861] systemd[1]: Created slice system-getty.slice.
[    5.919051] random: systemd: uninitialized urandom read (16 bytes read)
[    5.926183] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    5.943032] random: systemd: uninitialized urandom read (16 bytes read)
[    5.950078] systemd[1]: Created slice User and Session Slice.
[    5.967106] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    5.991075] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    6.015070] systemd[1]: Reached target Paths.
[    6.031034] systemd[1]: Reached target Remote File Systems.
[    6.047024] systemd[1]: Reached target Slices.
[    6.063029] systemd[1]: Reached target Swap.
[    6.088305] systemd[1]: Listening on RPCbind Server Activation Socket.
[    6.107040] systemd[1]: Reached target RPC Port Mapper.
[    6.131070] systemd[1]: Listening on Process Core Dump Socket.
[    6.147112] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    6.182481] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[    6.190725] systemd[1]: Listening on Journal Socket (/dev/log).
[    6.207234] systemd[1]: Listening on Journal Socket.
[    6.223236] systemd[1]: Listening on Network Service Netlink Socket.
[    6.243160] systemd[1]: Listening on udev Control Socket.
[    6.259118] systemd[1]: Listening on udev Kernel Socket.
[    6.277404] systemd[1]: Mounting Huge Pages File System...
[    6.296908] systemd[1]: Mounting POSIX Message Queue File System...
[    6.320970] systemd[1]: Mounting Kernel Debug File System...
[    6.339525] systemd[1]: Mounting Temporary Directory (/tmp)...
[    6.357602] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    6.385587] systemd[1]: Starting Start psplash boot splash screen...
[    6.417369] systemd[1]: Started Hardware RNG Entropy Gatherer Daemon.
[    6.441304] systemd[1]: Starting RPC Bind...
[    6.455148] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[    6.466912] systemd[1]: Starting Journal Service...
[    6.497606] systemd[1]: Starting Load Kernel Modules...
[    6.509170] cryptodev: loading out-of-tree module taints kernel.
[    6.529355] systemd[1]: Starting Remount Root and Kernel File Systems...
[    6.536214] cryptodev: driver 1.10 loaded.
[    6.557027] systemd[1]: Starting udev Coldplug all Devices...
[    6.564876] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[    6.585470] systemd[1]: Started RPC Bind.
[    6.607962] systemd[1]: Started Journal Service.
[    6.805514] systemd-journald[234]: Received client request to flush runtime journal.
[    7.739626] PVR_K:  313: SysDevInit: platform_get_resource() failed
[    7.759875] systemd-coredump[342]: Failed to get COMM: No such process
[    7.770116] PVR_K:(Error):   313: PVRSRVDeviceCreate: Failed to get device config (PVRSRV_ERROR_INIT_FAILURE)
[    7.785464] systemd-coredump[345]: Failed to get COMM: No such process
[    7.798019] systemd-coredump[348]: Failed to get COMM: No such process
[    7.803065] [drm:pvr_drm_load [pvrsrvkm]] *ERROR* failed to create device node for device (____ptrval____) (PVRSRV_ERROR_INIT_FAILURE)
[    7.818801] systemd-coredump[350]: Failed to get EXE, ignoring: No such process
[    7.858952] systemd-coredump[357]: Failed to get EXE, ignoring: No such process
[    7.874874] systemd-coredump[359]: Failed to get COMM: No such process
[    7.892495] systemd-coredump[362]: Failed to get COMM: No such process
[    7.903762] rti-wdt 2200000.rti: heartbeat 60 sec
[    7.913127] systemd-coredump[365]: Failed to get COMM: No such process
[    7.964274] systemd-coredump[374]: Failed to get COMM: No such process
[    7.995021] rti-wdt 2210000.rti: heartbeat 60 sec
[    8.005699] export_store: invalid GPIO 133
[    8.010826] export_store: invalid GPIO 4
[    8.308040] k3-dsp-rproc 4d80800000.dsp: assigned reserved memory node c66-dma-memory@a7000000
[    8.416176] ti-sci-inta 33d00000.interrupt-controller: Parent IRQ allocation failed
[    8.498744] genirq: Failed to request resources for 31150000.dma-controller chan0 (irq 61) on irqchip MSI-INTA
[    8.527108] ti-udma 31150000.dma-controller: chan0: ring irq request failed
[    8.569506] k3-dsp-rproc 4d80800000.dsp: configured DSP for remoteproc mode
[    8.653283] remoteproc remoteproc0: 4d80800000.dsp is available
[    8.677377] ti-udma 31150000.dma-controller: get channel fail in udma_of_xlate.
[    8.701853] remoteproc remoteproc0: Direct firmware load for j7-c66_0-fw failed with error -2
[    8.715855] remoteproc remoteproc0: powering up 4d80800000.dsp
[    8.720046] saul-crypto 4e00000.crypto: Unable to request rx1 DMA channel
[    8.725957] remoteproc remoteproc0: Direct firmware load for j7-c66_0-fw failed with error -2
[    8.742453] remoteproc remoteproc0: request_firmware failed: -2
[    8.752226] k3-dsp-rproc 4d81800000.dsp: assigned reserved memory node c66-dma-memory@a6000000
[    8.827166] k3-dsp-rproc 4d81800000.dsp: configured DSP for IPC-only mode
[    8.828272] saul-crypto: probe of 4e00000.crypto failed with error -22
[    8.908412] remoteproc remoteproc1: 4d81800000.dsp is available
[    9.055123] k3-dsp-rproc 64800000.dsp: assigned reserved memory node c71-dma-memory@a8000000
[    9.063952] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[    9.076319] k3-dsp-rproc 64800000.dsp: configured DSP for remoteproc mode
[    9.086185] remoteproc remoteproc1: powering up 4d81800000.dsp
[    9.092591] remoteproc remoteproc1: Booting fw image j7-c66_1-fw, size 192416
[    9.103101] k3-dsp-rproc 4d81800000.dsp: DSP initialized in IPC-only mode
[    9.110092]  remoteproc1#vdev0buffer: assigned reserved memory node c66-dma-memory@a6000000
[    9.121322] virtio_rpmsg_bus virtio0: rpmsg host is online
[    9.129825]  remoteproc1#vdev0buffer: registered virtio0 (type 7)
[    9.137776] remoteproc remoteproc1: remote processor 4d81800000.dsp is now up
[    9.152231] remoteproc remoteproc2: 64800000.dsp is available
[    9.196563] remoteproc remoteproc2: Direct firmware load for j7-c71_0-fw failed with error -2
[    9.206917] remoteproc remoteproc2: powering up 64800000.dsp
[    9.216756] remoteproc remoteproc2: Direct firmware load for j7-c71_0-fw failed with error -2
[    9.225320] random: crng init done
[    9.225322] random: 7 urandom warning(s) missed due to ratelimiting
[    9.243015] remoteproc remoteproc2: request_firmware failed: -2
[    9.321602] platform 41000000.r5f: configured R5F for IPC-only mode
[    9.375209] platform 41000000.r5f: assigned reserved memory node r5f-dma-memory@a0000000
[    9.576103] remoteproc remoteproc3: 41000000.r5f is available
[    9.668916] remoteproc remoteproc3: powering up 41000000.r5f
[    9.674872] remoteproc remoteproc3: Booting fw image j7-mcu-r5f0_0-fw, size 259000
[    9.686289] platform 5c00000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[    9.811086] platform 5c00000.r5f: configured R5F for IPC-only mode
[    9.821511] platform 5c00000.r5f: assigned reserved memory node r5f-dma-memory@a2000000
[    9.957495] remoteproc remoteproc4: 5c00000.r5f is available
[   10.039621] platform 5d00000.r5f: configured R5F for IPC-only mode
[   10.124762] platform 5d00000.r5f: assigned reserved memory node r5f-dma-memory@a3000000
[   10.146277] remoteproc remoteproc4: powering up 5c00000.r5f
[   10.151881] remoteproc remoteproc4: Booting fw image j7-main-r5f0_0-fw, size 2411612
[   10.165356] remoteproc remoteproc4: header-less resource table
[   10.323091] remoteproc remoteproc5: 5d00000.r5f is available
[   10.408853] platform 5e00000.r5f: configured R5F for IPC-only mode
[   10.479982] platform 5e00000.r5f: assigned reserved memory node r5f-dma-memory@a4000000
[   10.502177] remoteproc remoteproc5: powering up 5d00000.r5f
[   10.507751] remoteproc remoteproc5: Booting fw image j7-main-r5f0_1-fw, size 2411804
[   10.522481] remoteproc remoteproc5: header-less resource table
[   10.554157] remoteproc remoteproc6: 5e00000.r5f is available
[   10.603975] platform 5f00000.r5f: configured R5F for remoteproc mode
[   10.644230] platform 5f00000.r5f: assigned reserved memory node r5f-dma-memory@a5000000
[   10.683188] remoteproc remoteproc7: 5f00000.r5f is available
[   10.694276] remoteproc remoteproc7: Direct firmware load for j7-main-r5f1_1-fw failed with error -2
[   10.703038] remoteproc remoteproc6: powering up 5e00000.r5f
[   10.707011] remoteproc remoteproc7: powering up 5f00000.r5f
[   10.708914] remoteproc remoteproc6: Booting fw image j7-main-r5f1_0-fw, size 2178288
[   10.718590] remoteproc remoteproc7: Direct firmware load for j7-main-r5f1_1-fw failed with error -2
[   10.729803] remoteproc remoteproc6: header-less resource table
[   10.738998] remoteproc remoteproc7: request_firmware failed: -2
[   11.901932] remoteproc remoteproc8: b034000.pru is available
[   11.937759] pru-rproc b034000.pru: PRU rproc node /interconnect@100000/icssg@b000000/pru@34000 probed successfully
[   11.975067] remoteproc remoteproc9: b004000.rtu is available
[   11.995114] pru-rproc b004000.rtu: PRU rproc node /interconnect@100000/icssg@b000000/rtu@4000 probed successfully
[   12.011747] pru-rproc b00a000.txpru: IRQ vring not found
[   12.018189] pru-rproc b00a000.txpru: IRQ kick not found
[   12.027037] remoteproc remoteproc10: b00a000.txpru is available
[   12.035063] pru-rproc b00a000.txpru: PRU rproc node /interconnect@100000/icssg@b000000/txpru@a000 probed successfully
[   12.064745] remoteproc remoteproc11: b038000.pru is available
[   12.083538] pru-rproc b038000.pru: PRU rproc node /interconnect@100000/icssg@b000000/pru@38000 probed successfully
[   12.107669] remoteproc remoteproc12: b006000.rtu is available
[   12.119846] pru-rproc b006000.rtu: PRU rproc node /interconnect@100000/icssg@b000000/rtu@6000 probed successfully
[   12.139684] pru-rproc b00c000.txpru: IRQ vring not found
[   12.150490] pru-rproc b00c000.txpru: IRQ kick not found
[   12.159066] remoteproc remoteproc13: b00c000.txpru is available
[   12.167075] pru-rproc b00c000.txpru: PRU rproc node /interconnect@100000/icssg@b000000/txpru@c000 probed successfully
[   12.192188] remoteproc remoteproc14: b134000.pru is available
[   12.200659] pru-rproc b134000.pru: PRU rproc node /interconnect@100000/icssg@b100000/pru@34000 probed successfully
[   12.220038] remoteproc remoteproc15: b104000.rtu is available
[   12.235053] pru-rproc b104000.rtu: PRU rproc node /interconnect@100000/icssg@b100000/rtu@4000 probed successfully
[   12.283151] pru-rproc b10a000.txpru: IRQ vring not found
[   12.289842] pru-rproc b10a000.txpru: IRQ kick not found
[   12.306872] remoteproc remoteproc16: b10a000.txpru is available
[   12.312999] pru-rproc b10a000.txpru: PRU rproc node /interconnect@100000/icssg@b100000/txpru@a000 probed successfully
[   12.332775] remoteproc remoteproc17: b138000.pru is available
[   12.343009] pru-rproc b138000.pru: PRU rproc node /interconnect@100000/icssg@b100000/pru@38000 probed successfully
[   12.360534] remoteproc remoteproc18: b106000.rtu is available
[   12.371008] pru-rproc b106000.rtu: PRU rproc node /interconnect@100000/icssg@b100000/rtu@6000 probed successfully
[   12.388090] pru-rproc b10c000.txpru: IRQ vring not found
[   12.393537] pru-rproc b10c000.txpru: IRQ kick not found
[   12.403245] remoteproc remoteproc19: b10c000.txpru is available
[   12.409184] pru-rproc b10c000.txpru: PRU rproc node /interconnect@100000/icssg@b100000/txpru@c000 probed successfully
[   12.582122] cdns-usb3 6000000.usb: DRD version v1 (ID: 0004024e, rev: 00000200)
[   12.679902] cdns-usb3 6400000.usb: DRD version v1 (ID: 0004024e, rev: 00000200)
[   12.800430] usbcore: registered new interface driver usbfs
[   12.811096] usbcore: registered new interface driver hub
[   12.823075] usbcore: registered new device driver usb
[   12.845291] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[   12.850781] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
[   12.867109] xhci-hcd xhci-hcd.2.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000000000010010
[   12.883006] xhci-hcd xhci-hcd.2.auto: irq 508, io mem 0x06410000
[   12.889190] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[   12.902986] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.914985] usb usb1: Product: xHCI Host Controller
[   12.919860] usb usb1: Manufacturer: Linux 5.4.40-g66cf445b76 xhci-hcd
[   12.930981] usb usb1: SerialNumber: xhci-hcd.2.auto
[   12.939510] hub 1-0:1.0: USB hub found
[   12.943270] hub 1-0:1.0: 1 port detected
[   12.952263] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[   12.957922] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2
[   12.970994] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
[   12.982998] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   12.995019] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[   13.006984] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.014193] usb usb2: Product: xHCI Host Controller
[   13.022983] usb usb2: Manufacturer: Linux 5.4.40-g66cf445b76 xhci-hcd
[   13.029412] usb usb2: SerialNumber: xhci-hcd.2.auto
[   13.043282] hub 2-0:1.0: USB hub found
[   13.047052] hub 2-0:1.0: 1 port detected
[  104.025576] export_store: invalid GPIO 133
[  104.029766] export_store: invalid GPIO 4
root@j7-evm:/home/gpio_toggle# [  129.269382] Initializing XFRM netlink socket
[  132.737562] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[  132.755287] Bridge firewalling registered

  • Hi,

    Regarding GPIO,
    It could be that the sysfs entries might have changed, follow the instructions from https://e2e.ti.com/support/processors/f/791/t/918654 to figure out correct sysfs entries.

    Regards,
    Vishal

  • Sysfs entries for GPIO has indeed changed from SDK 6.2 (Linux Kernel 4.19) to SDK 7.0 (Linux Kernel 5.4)

    SDK 7.0

    root@j7-evm:~# ls -l /sys/class/gpio/
    total 0
    --w------- 1 root root 65536 Jun 17 14:17 export
    lrwxrwxrwx 1 root root 0 Jun 17 14:17 gpiochip300 -> ../../devices/platform/interconnect@100000/601000.gpio/gpio/gpiochip300
    lrwxrwxrwx 1 root root 0 Jun 17 14:17 gpiochip336 -> ../../devices/platform/interconnect@100000/600000.gpio/gpio/gpiochip336
    lrwxrwxrwx 1 root root 0 Jun 17 14:17 gpiochip464 -> ../../devices/platform/interconnect@100000/2030000.i2c/i2c-5/5-0020/gpio/gpiochip464
    lrwxrwxrwx 1 root root 0 Jun 17 14:17 gpiochip472 -> ../../devices/platform/interconnect@100000/2000000.i2c/i2c-3/3-0022/gpio/gpiochip472
    lrwxrwxrwx 1 root root 0 Jun 17 14:17 gpiochip496 -> ../../devices/platform/interconnect@100000/2000000.i2c/i2c-3/3-0020/gpio/gpiochip496
    --w------- 1 root root 65536 Jun 17 14:17 unexport


    SDK 6.2

    root@j7-evm:~# ls -l /sys/class/gpio/
    --w------- 1 root root 65536 Feb 17 08:38 export
    lrwxrwxrwx 1 root root 0 Feb 17 08:38 gpiochip0 -> ../../devices/platform/interconnect@100000/interconnect@100000:interconnect@28380000/42110000.gpio/gpio/gpiochip0
    lrwxrwxrwx 1 root root 0 Feb 17 08:38 gpiochip212 -> ../../devices/platform/interconnect@100000/601000.gpio/gpio/gpiochip212
    lrwxrwxrwx 1 root root 0 Feb 17 08:38 gpiochip448 -> ../../devices/platform/interconnect@100000/2010000.i2c/i2c-4/4-0020/gpio/gpiochip448
    lrwxrwxrwx 1 root root 0 Feb 17 08:38 gpiochip456 -> ../../devices/platform/interconnect@100000/2060000.i2c/i2c-9/9-0020/gpio/gpiochip456
    lrwxrwxrwx 1 root root 0 Feb 17 08:38 gpiochip464 -> ../../devices/platform/interconnect@100000/2030000.i2c/i2c-6/6-0020/gpio/gpiochip464
    lrwxrwxrwx 1 root root 0 Feb 17 08:38 gpiochip472 -> ../../devices/platform/interconnect@100000/2000000.i2c/i2c-3/3-0022/gpio/gpiochip472
    lrwxrwxrwx 1 root root 0 Feb 17 08:38 gpiochip496 -> ../../devices/platform/interconnect@100000/2000000.i2c/i2c-3/3-0020/gpio/gpiochip496
    lrwxrwxrwx 1 root root 0 Feb 17 08:38 gpiochip84 -> ../../devices/platform/interconnect@100000/600000.gpio/gpio/gpiochip84
    --w------- 1 root root 65536 Feb 17 08:38 unexport

  • Regarding fixed-link, did you follow all the changes from previous bringup?
    https://e2e.ti.com/support/processors/f/791/p/883618/3276983#3276983

  • Hi Vishal,

    I see only 2 GPIOCHIP for main domain GPIO 1 & 2. We are using wkupdomain GPIO0_4 and main domain GPIO6 to blink the LED. In device tree i see pinconfig for both added.

    root@j7-evm:~# find /proc/device-tree/__symbols__/ | grep gpio
    /proc/device-tree/__symbols__/main_gpio_intr
    /proc/device-tree/__symbols__/main_gpio7
    /proc/device-tree/__symbols__/main_gpio5
    /proc/device-tree/__symbols__/wkup_gpio0
    /proc/device-tree/__symbols__/main_gpio3
    /proc/device-tree/__symbols__/main_gpio1
    /proc/device-tree/__symbols__/gpio_keys
    /proc/device-tree/__symbols__/wkup_gpio_intr
    /proc/device-tree/__symbols__/main_gpio6
    /proc/device-tree/__symbols__/wkup_gpio1
    /proc/device-tree/__symbols__/main_gpio4
    /proc/device-tree/__symbols__/main_gpio2
    /proc/device-tree/__symbols__/main_gpio0
    root@j7-evm:~# cat /proc/device-tree/__symbols__/wkup_gpio0
    /interconnect@100000/interconnect@28380000/gpio@42110000root@j7-evm:~# ls -la /sys/class/gpio
    total 0
    drwxr-xr-x    2 root     root             0 Jun 17 14:17 .
    drwxr-xr-x   62 root     root             0 Jun 17 14:17 ..
    --w-------    1 root     root         65536 Jun 17 14:17 export
    lrwxrwxrwx    1 root     root             0 Jun 17 14:27 gpiochip348 -> ../../devices/platform/interconnect@100000/601000.gpio/gpio/gpiochip348
    lrwxrwxrwx    1 root     root             0 Jun 17 14:27 gpiochip384 -> ../../devices/platform/interconnect@100000/600000.gpio/gpio/gpiochip384
    --w-------    1 root     root         65536 Jun 17 14:27 unexport
    root@j7-evm:~# cat /proc/device-tree/__symbols__/wkup_gpio0
    /interconnect@100000/interconnect@28380000/gpio@42110000root@j7-evm:~# cat /proc/device-tree/__symbols__/main_gpio0
    /interconnect@100000/gpio@600000root@j7-evm:~# cat /proc/device-tree/__symbols__/main_gpio1
    /interconnect@100000/gpio@601000root@j7-evm:~# cat /proc/device-tree/__symbols__/main_gpio2
    /interconnect@100000/gpio@610000root@j7-evm:~# cat /proc/device-tree/__symbols__/main_gpio3
    /interconnect@100000/gpio@611000root@j7-evm:~# cat /proc/device-tree/__symbols__/main_gpio4
    /interconnect@100000/gpio@620000root@j7-evm:~# cat /proc/device-tree/__symbols__/main_gpio5
    /interconnect@100000/gpio@621000root@j7-evm:~# cat /proc/device-tree/__symbols__/main_gpio6
    /interconnect@100000/gpio@630000root@j7-evm:~# cat /proc/device-tree/__symbols__/main_gpio7
    /interconnect@100000/gpio@631000root@j7-evm:~# ^C
    root@j7-evm:~#

    Also, the gpiochip 348 & 384 for me are shifted from yours by 48 but i don't think that is an issue.

    Regards

    Manish

  • Hi Manish,

    I see wkup_gpio failure when trying SDK 7.0. Let me check on this and get back.

    [ 4.198196] davinci_gpio 42110000.gpio: IRQ index 4 not found
    [ 4.203968] davinci_gpio 42110000.gpio: IRQ not populated, err = -6

    You should be able to use main_gpio though. The gpiochip number is pretty arbitrary in kernel and there is no standard logic to it. Since TI EVM has some more GPIO expanders the numbers are different between TI EVM and ZF board.

    Regards,
    Vishal

  • Hi Vishal ,

    Yes the main Domain GPIO i can use and as you said wkup domain GPIO i am also not able to use.

    Regards

    Manish

  • We are working on a fix for wkup_gpio0, will keep you posted.

  • Try the below changes for wkup_gpio to be functional

    1) Apply the attached patches to board-support/k3-image-gen-2020.04a folder

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/0001_2D00_soc_2D00_j721e_2D00_rm_2D00_cfg_2D00_Auto_2D00_generate_2D00_from_2D00_the_2D00_K3_2D00_Resource_2D00_Partitioning_2D00_tool.patch.patch

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/0002_2D00_soc_2D00_j721e_2D00_rm_2D00_cfg_2D00_Reassign_2D00_GPIO_2D00_interrupt_2D00_routers.patch.patch


    2) Build sysfw.itb from 

    cd board-support/k3-image-gen-2020.04a
    make SOC=j721e

    3) Update sysfw.itb on the SD card boot partition


    Regards,
    Vishal