public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Nishanth Menon <nm@ti.com>
To: Tom Rini <trini@konsulko.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Sinthu Raja <sinthu.raja@ti.com>,
	Manorit Chawdhry <m-chawdhry@ti.com>, Reid Tonking <reidt@ti.com>,
	Neha Malcom Francis <n-francis@ti.com>, Andrew Davis <afd@ti.com>,
	Simon Glass <sjg@chromium.org>,
	Robert Nelson <robertcnelson@gmail.com>,
	Jason Kridner <jkridner@beagleboard.org>,
	Nishanth Menon <nm@ti.com>, <u-boot@lists.denx.de>
Subject: [PATCH 11/15] arm: dts: k3-j721e-binman: Allow a single board configuration
Date: Thu, 2 Nov 2023 19:38:01 -0500	[thread overview]
Message-ID: <20231103003805.2420005-12-nm@ti.com> (raw)
In-Reply-To: <20231103003805.2420005-1-nm@ti.com>

Allow the reuse of k3-j721e-binman for other platforms such as
BeagleBone-AI64. We don't need to build SK device tree blobs in-order
to be able to build dtbs for single configuration platforms.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
 arch/arm/dts/k3-j721e-binman.dtsi             | 21 ++++++++++++++++++-
 .../k3-j721e-common-proc-board-u-boot.dtsi    |  2 ++
 arch/arm/dts/k3-j721e-sk-u-boot.dtsi          |  2 ++
 3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/k3-j721e-binman.dtsi b/arch/arm/dts/k3-j721e-binman.dtsi
index 4f566c21a9af..d9c4fbf593af 100644
--- a/arch/arm/dts/k3-j721e-binman.dtsi
+++ b/arch/arm/dts/k3-j721e-binman.dtsi
@@ -296,11 +296,14 @@
 
 #define SPL_NODTB "spl/u-boot-spl-nodtb.bin"
 #define SPL_J721E_EVM_DTB "spl/dts/k3-j721e-common-proc-board.dtb"
-#define SPL_J721E_SK_DTB "spl/dts/k3-j721e-sk.dtb"
 
 #define UBOOT_NODTB "u-boot-nodtb.bin"
 #define J721E_EVM_DTB "u-boot.dtb"
+
+#ifdef DUAL_DTB_BINMAN
+#define SPL_J721E_SK_DTB "spl/dts/k3-j721e-sk.dtb"
 #define J721E_SK_DTB "arch/arm/dts/k3-j721e-sk.dtb"
+#endif
 
 &binman {
 	ti-dm {
@@ -400,6 +403,7 @@
 					};
 				};
 
+#ifdef DUAL_DTB_BINMAN
 				fdt-1 {
 					description = "k3-j721e-sk";
 					type = "flat_dt";
@@ -414,6 +418,7 @@
 						filename = SPL_J721E_SK_DTB;
 					};
 				};
+#endif
 			};
 
 			configurations {
@@ -426,12 +431,14 @@
 					fdt = "fdt-0";
 				};
 
+#ifdef DUAL_DTB_BINMAN
 				conf-1 {
 					description = "k3-j721e-sk";
 					firmware = "atf";
 					loadables = "tee", "dm", "spl";
 					fdt = "fdt-1";
 				};
+#endif
 			};
 		};
 	};
@@ -482,6 +489,7 @@
 					};
 				};
 
+#ifdef DUAL_DTB_BINMAN
 				fdt-1 {
 					description = "k3-j721e-sk";
 					type = "flat_dt";
@@ -499,6 +507,7 @@
 						algo = "crc32";
 					};
 				};
+#endif
 			};
 
 			configurations {
@@ -511,12 +520,14 @@
 					fdt = "fdt-0";
 				};
 
+#ifdef DUAL_DTB_BINMAN
 				conf-1 {
 					description = "k3-j721e-sk";
 					firmware = "uboot";
 					loadables = "uboot";
 					fdt = "fdt-1";
 				};
+#endif
 			};
 		};
 	};
@@ -595,6 +606,7 @@
 					};
 				};
 
+#ifdef DUAL_DTB_BINMAN
 				fdt-1 {
 					description = "k3-j721e-sk";
 					type = "flat_dt";
@@ -604,6 +616,7 @@
 						filename = SPL_J721E_SK_DTB;
 					};
 				};
+#endif
 			};
 
 			configurations {
@@ -616,12 +629,14 @@
 					fdt = "fdt-0";
 				};
 
+#ifdef DUAL_DTB_BINMAN
 				conf-1 {
 					description = "k3-j721e-sk";
 					firmware = "atf";
 					loadables = "tee", "dm", "spl";
 					fdt = "fdt-1";
 				};
+#endif
 			};
 		};
 	};
@@ -664,6 +679,7 @@
 					};
 				};
 
+#ifdef DUAL_DTB_BINMAN
 				fdt-1 {
 					description = "k3-j721e-sk";
 					type = "flat_dt";
@@ -676,6 +692,7 @@
 						algo = "crc32";
 					};
 				};
+#endif
 			};
 
 			configurations {
@@ -688,12 +705,14 @@
 					fdt = "fdt-0";
 				};
 
+#ifdef DUAL_DTB_BINMAN
 				conf-1 {
 					description = "k3-j721e-sk";
 					firmware = "uboot";
 					loadables = "uboot";
 					fdt = "fdt-1";
 				};
+#endif
 			};
 		};
 	};
diff --git a/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi b/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi
index cd95907b981b..3317e902d677 100644
--- a/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi
+++ b/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi
@@ -3,6 +3,8 @@
  * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
  */
 
+#define DUAL_DTB_BINMAN 1
+
 #include "k3-j721e-binman.dtsi"
 
 &cbass_main {
diff --git a/arch/arm/dts/k3-j721e-sk-u-boot.dtsi b/arch/arm/dts/k3-j721e-sk-u-boot.dtsi
index 370fe5190b2d..507964827547 100644
--- a/arch/arm/dts/k3-j721e-sk-u-boot.dtsi
+++ b/arch/arm/dts/k3-j721e-sk-u-boot.dtsi
@@ -3,6 +3,8 @@
  * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/
  */
 
+#define DUAL_DTB_BINMAN 1
+
 #include "k3-j721e-binman.dtsi"
 
 &cbass_main {
-- 
2.40.0


  parent reply	other threads:[~2023-11-03  0:43 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-03  0:37 [PATCH 00/15] board: ti: Add support for BeagleBone AI-64 Nishanth Menon
2023-11-03  0:37 ` [PATCH 01/15] arm: mach-k3: j721e: Improve support for UDA FS Nishanth Menon
2023-11-04 10:24   ` Kumar, Udit
2023-11-06 12:18     ` Nishanth Menon
2023-11-06 14:21       ` Kumar, Udit
2023-11-03  0:37 ` [PATCH 02/15] configs: j7200: Remove HBMC_AM654 config Nishanth Menon
2023-11-03  0:37 ` [PATCH 03/15] board: ti: j721e: evm: Drop board check for ESM Nishanth Menon
2023-11-04 10:33   ` Kumar, Udit
2023-11-06 12:19     ` Nishanth Menon
2023-11-06 14:18       ` Kumar, Udit
2023-11-03  0:37 ` [PATCH 04/15] board: ti: j721e: evm: Drop unused headers Nishanth Menon
2023-11-03  0:37 ` [PATCH 05/15] board: ti: j721e: evm: Switch to using IS_ENABLED Nishanth Menon
2023-11-03  0:37 ` [PATCH 06/15] board: ti: j721e: evm: Drop board based serdes initialization Nishanth Menon
2023-11-04 10:35   ` Kumar, Udit
2023-11-04 14:13     ` Kumar, Udit
2023-11-03  0:37 ` [PATCH 07/15] board: ti: j721e: evm: Use IS_ENABLED with CONFIG_PHYS_64BIT Nishanth Menon
2023-11-03  0:37 ` [PATCH 08/15] board: ti: j721e: evm: Split code to isolate eeprom detected logic Nishanth Menon
2023-11-03  0:37 ` [PATCH 09/15] board: ti: j721e: j721e.env: Add explicit boot_targets Nishanth Menon
2023-11-03  0:38 ` [PATCH 10/15] configs: j721e_evm_a72_defconfig: Switch to bootstd Nishanth Menon
2023-11-06  5:28   ` Manorit Chawdhry
2023-11-06 12:21     ` Nishanth Menon
2023-11-06 15:22       ` Tom Rini
2023-11-03  0:38 ` Nishanth Menon [this message]
2023-11-03  0:38 ` [PATCH 12/15] arm: dts: k3-j721e-binman: Use macros that can be overridden for dtbs Nishanth Menon
2023-11-03  0:38 ` [PATCH 13/15] arm: dts: Add k3-j721e-beagleboneai64 Nishanth Menon
2023-11-03  0:38 ` [PATCH 14/15] board: ti: Add j721e_beagleboneai64_* config fragments and env file Nishanth Menon
2023-11-03 18:51   ` Andrew Davis
2023-11-03 19:06     ` Nishanth Menon
2023-11-03 19:20       ` Andrew Davis
2023-11-17 14:27         ` Romain Naour
2023-11-17 18:43           ` Andrew Davis
2023-11-20 13:16             ` Romain Naour
2023-11-03 20:20       ` Tom Rini
2023-11-03 21:34         ` Nishanth Menon
2023-11-03  0:38 ` [PATCH 15/15] doc: board: ti: Add BeagleBone AI-64 documentation Nishanth Menon
2023-11-03 14:39 ` [PATCH 00/15] board: ti: Add support for BeagleBone AI-64 Tom Rini

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=20231103003805.2420005-12-nm@ti.com \
    --to=nm@ti.com \
    --cc=afd@ti.com \
    --cc=jkridner@beagleboard.org \
    --cc=m-chawdhry@ti.com \
    --cc=n-francis@ti.com \
    --cc=reidt@ti.com \
    --cc=robertcnelson@gmail.com \
    --cc=sinthu.raja@ti.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /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