public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Adam Ford <aford173@gmail.com>
To: u-boot@lists.denx.de
Cc: marcel.ziswiler@toradex.com, tharvey@gateworks.com,
	Adam Ford <aford173@gmail.com>, Stefano Babic <sbabic@denx.de>,
	Fabio Estevam <festevam@gmail.com>,
	"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>
Subject: [PATCH 4/7] arm: dts: imx8mm: Create generic DTSI for booting from FlexSPI
Date: Sat,  5 Feb 2022 10:22:36 -0600	[thread overview]
Message-ID: <20220205162240.854948-4-aford173@gmail.com> (raw)
In-Reply-To: <20220205162240.854948-1-aford173@gmail.com>

There is a common imx8mm-u-boot.dtsi that generates images for
booting from MMC, but when booting FlexSPI, the image needs
to be created differently.  To facilitate this, the new
dtsi file includes the old one, deletes the node that
packages the  SPL + U-Boot.itb, and replaces it with a node that
packages the FlexSPI Config Block + SPL + U-Boot.itb and puts
them to their proper respective locations for FlexSPI booting.

Signed-off-by: Adam Ford <aford173@gmail.com>

diff --git a/arch/arm/dts/imx8mm-flexspi-u-boot-dtsi b/arch/arm/dts/imx8mm-flexspi-u-boot-dtsi
new file mode 100644
index 0000000000..1b889afa0c
--- /dev/null
+++ b/arch/arm/dts/imx8mm-flexspi-u-boot-dtsi
@@ -0,0 +1,37 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+#include "imx8mm-u-boot.dtsi"
+
+/*
+ * According to the TRM, the FlexSPI Configuration block exists at
+ * offset 0.  This pushes SPL and U-Boot proper to different addresses
+ * To facilicate this, we'll delete the previous node and create a new
+ * one specific to the FlexSPI booting.
+ */
+
+ &binman {
+ 	/delete-node/ imx-boot;
+
+	imx-fspi-boot {
+		filename = "flash.bin";
+		pad-byte = <0x00>;
+
+		fcfb {
+			filename = "arch/arm/mach-imx/imx8m/fcfb.bin";
+			offset = <0x00>;
+			type = "blob-ext";
+		};
+
+		spl {
+			filename = "spl.bin";
+			offset = <0x1000>;
+			type = "blob-ext";
+		};
+
+		binman_uboot: uboot {
+			filename = "u-boot.itb";
+			offset = <0x600000>;
+			type = "blob-ext";
+		};
+	};
+ };
-- 
2.32.0


  parent reply	other threads:[~2022-02-05 16:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-05 16:22 [PATCH 1/7] arch: mach-imx: imx8m: Add FlexSPI addresses for SPL booting Adam Ford
2022-02-05 16:22 ` [PATCH 2/7] imx8m: Add FlexSPI Configuration Block Adam Ford
2022-02-06 17:55   ` Adam Ford
2022-02-05 16:22 ` [PATCH 3/7] imx8m: add image cfg for i.MX8MM FlexSPI booting Adam Ford
2022-02-05 16:22 ` Adam Ford [this message]
2022-02-05 16:22 ` [PATCH 5/7] arm: dts: imx8mm-beacon: Enhange FlexSPI/flash nodes Adam Ford
2022-02-05 16:22 ` [PATCH 6/7] arm: dts: Add imx8mm-beacon-kit-flexspi Adam Ford
2022-02-05 16:22 ` [PATCH 7/7] imx8m: Add imx8mm_beacon_fspi Adam Ford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220205162240.854948-4-aford173@gmail.com \
    --to=aford173@gmail.com \
    --cc=festevam@gmail.com \
    --cc=marcel.ziswiler@toradex.com \
    --cc=sbabic@denx.de \
    --cc=tharvey@gateworks.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox