We also tried creating patch and adding to sources/meta-imx/meta-bsp/recipes-bsp/u-bootu-boot-imx_2022.04.bb
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += "file://0001-DTB-Makefile.patch"
these were the only changes we made. Please refer below.
From 4a738b4639bb800b3d34aba6f9c3c792feb45ca8 Mon Sep 17 00:00:00 2001
From: Vignesh Baskaran <vigneshbbaskaran@gmail.com>
Date: Thu, 23 Feb 2023 16:24:03 +0530
Subject: [PATCH] DTB & Makefile
Signed-off-by: Vignesh Baskaran <vigneshbbaskaran@gmail.com>
---
Makefile | 2 +-
arch/arm/dts/imx8mm-evk.dts | 17 +++++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 33615b8706..c73f719fe8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
VERSION = 2022
PATCHLEVEL = 04
SUBLEVEL =
-EXTRAVERSION =
+EXTRAVERSION = "VIgnesh Baskaran"
NAME =
# *DOCUMENTATION*
diff --git a/arch/arm/dts/imx8mm-evk.dts b/arch/arm/dts/imx8mm-evk.dts
index c07eb8be8e..4c72a3f03b 100644
--- a/arch/arm/dts/imx8mm-evk.dts
+++ b/arch/arm/dts/imx8mm-evk.dts
@@ -69,7 +69,24 @@
status = "okay";
};
+&ecspi2 {
+ fsl,spi-num-chipselects = <1>;
+ cs-gpios = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ecspi2>;
+ status = "okay";
+};
+
&iomuxc {
+
+ pinctrl_ecspi2: ecspi2grp {
+ fsl,pins = <
+ MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x00000116
+ MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x00000116
+ MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x00001916
+ MX8MM_IOMUXC_ECSPI2_SS0_ECSPI2_SS0 0x00000116
+ >;
+ };
pinctrl_flexspi: flexspigrp {
fsl,pins = <
MX8MM_IOMUXC_NAND_ALE_QSPI_A_SCLK 0x1c2
but while compile $ bitbake core-image-minmal
" u-boot-imx-2022.04-r0 do_compile " and goes to 99% and in infinite loop.
Thanks
Vignesh