u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] arm: dts: Create common imx8mn-u-boot
@ 2022-07-31 23:45 Adam Ford
  2022-07-31 23:45 ` [PATCH 1/7] arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi Adam Ford
                   ` (8 more replies)
  0 siblings, 9 replies; 20+ messages in thread
From: Adam Ford @ 2022-07-31 23:45 UTC (permalink / raw)
  To: u-boot
  Cc: aford, Adam Ford, Stefano Babic, Fabio Estevam,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey

Every imx8mn board has a bunch of similar entries on their
respective board-u-boot.dtsi file to make the board bootable.
Instead of maintaining multiple files with duplicate code,
have them all point to a new, common file.  This file includes
the necessary nodes that were common to nearly all boards
and added spba1 to help faciliate SPL_DM_SERIAL.  This also
adds support for CONFIG_FSPI_CONF_HEADER which can be used
to generate flash.bin files for booting from FlexSPI.

Adam Ford (7):
  arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
  arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot
  arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot
  arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot
  arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot
  arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot
  arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot

 arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi    | 180 +------------
 .../dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi  | 172 +-----------
 arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi      | 180 +------------
 arch/arm/dts/imx8mn-evk-u-boot.dtsi           | 108 --------
 arch/arm/dts/imx8mn-u-boot.dtsi               | 248 ++++++++++++++++++
 .../dts/imx8mn-var-som-symphony-u-boot.dtsi   | 188 +------------
 arch/arm/dts/imx8mn-venice-u-boot.dtsi        | 188 +------------
 7 files changed, 254 insertions(+), 1010 deletions(-)
 create mode 100644 arch/arm/dts/imx8mn-u-boot.dtsi

-- 
2.34.1


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [PATCH 1/7] arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
  2022-07-31 23:45 [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Adam Ford
@ 2022-07-31 23:45 ` Adam Ford
  2022-08-14 16:32   ` Adam Ford
  2022-07-31 23:45 ` [PATCH 2/7] arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot Adam Ford
                   ` (7 subsequent siblings)
  8 siblings, 1 reply; 20+ messages in thread
From: Adam Ford @ 2022-07-31 23:45 UTC (permalink / raw)
  To: u-boot
  Cc: aford, Adam Ford, Stefano Babic, Fabio Estevam,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey

Multiple boards create duplicate entries in their respective
-u-boot.dtsi files which all basically do the same thing.
To consolidate these and make it easier to make improvements
going forward, consolidate them all into one place.

This file creates a flash.bin image using binman, and supports
LPDDR4, DDR4 and DDR3.  Since individual boards use different
peripherals and different UART ports, those entries were kept
in their respective board files, but the spba1 node was addded
which contains all UART1-3 to help facilitate SPL_DM_SERIAL.
Individual users will still need to include their respective
UART and pinctrl nodes for those UARTS.

This consolidated file also supports generating a flash.bin file
which can boot from flexSPI if CONFIG_FSPI_CONF_HEADER is
enabled.

Signed-off-by: Adam Ford <aford173@gmail.com>
---
Patches on top of [1]

[1] - https://patchwork.ozlabs.org/project/uboot/patch/20220731171610.487086-1-aford173@gmail.com/

diff --git a/arch/arm/dts/imx8mn-u-boot.dtsi b/arch/arm/dts/imx8mn-u-boot.dtsi
new file mode 100644
index 0000000000..327d4070fc
--- /dev/null
+++ b/arch/arm/dts/imx8mn-u-boot.dtsi
@@ -0,0 +1,248 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2022 Logic PD, Inc dba Beacon EmbeddedWorks
+ */
+
+/ {
+	binman: binman {
+		multiple-images;
+	};
+
+	firmware {
+		optee {
+			compatible = "linaro,optee-tz";
+			method = "smc";
+		};
+	};
+
+	wdt-reboot {
+		compatible = "wdt-reboot";
+		wdt = <&wdog1>;
+		u-boot,dm-spl;
+	};
+};
+
+&{/soc@0} {
+	u-boot,dm-pre-reloc;
+	u-boot,dm-spl;
+};
+
+&aips1 {
+	u-boot,dm-spl;
+	u-boot,dm-pre-reloc;
+};
+
+&aips2 {
+	u-boot,dm-spl;
+};
+
+&aips3 {
+	u-boot,dm-spl;
+};
+
+&aips4 {
+	u-boot,dm-spl;
+};
+
+&clk {
+	u-boot,dm-spl;
+	u-boot,dm-pre-reloc;
+	/delete-property/ assigned-clocks;
+	/delete-property/ assigned-clock-parents;
+	/delete-property/ assigned-clock-rates;
+};
+
+&iomuxc {
+	u-boot,dm-spl;
+};
+
+&osc_24m {
+	u-boot,dm-spl;
+	u-boot,dm-pre-reloc;
+};
+
+&spba1 {
+	u-boot,dm-spl;
+};
+
+&wdog1 {
+	u-boot,dm-spl;
+};
+
+&binman {
+	 u-boot-spl-ddr {
+		filename = "u-boot-spl-ddr.bin";
+		pad-byte = <0xff>;
+		align-size = <4>;
+		align = <4>;
+
+		u-boot-spl {
+			align-end = <4>;
+			filename = "u-boot-spl.bin";
+		};
+
+		ddr-1d-imem-fw {
+#ifdef CONFIG_IMX8M_LPDDR4
+			filename = "lpddr4_pmu_train_1d_imem.bin";
+#elif CONFIG_IMX8M_DDR4
+			filename = "ddr4_imem_1d.bin";
+#else
+			filename = "ddr3_imem_1d.bin";
+#endif
+			type = "blob-ext";
+			align-end = <4>;
+		};
+
+		ddr-1d-dmem-fw {
+#ifdef CONFIG_IMX8M_LPDDR4
+			filename = "lpddr4_pmu_train_1d_dmem.bin";
+#elif CONFIG_IMX8M_DDR4
+			filename = "ddr4_dmem_1d.bin";
+#else
+			filename = "ddr3_dmem_1d.bin";
+#endif
+			type = "blob-ext";
+			align-end = <4>;
+		};
+
+		ddr-2d-imem-fw {
+#ifdef CONFIG_IMX8M_LPDDR4
+			filename = "lpddr4_pmu_train_2d_imem.bin";
+#elif CONFIG_IMX8M_DDR4
+			filename = "ddr4_imem_2d.bin";
+#endif
+			type = "blob-ext";
+			align-end = <4>;
+		};
+
+		ddr-2d-dmem-fw {
+#ifdef CONFIG_IMX8M_LPDDR4
+			filename = "lpddr4_pmu_train_2d_dmem.bin";
+#elif CONFIG_IMX8M_DDR4
+			filename = "ddr4_dmem_2d.bin";
+#endif
+			type = "blob-ext";
+			align-end = <4>;
+		};
+	};
+
+	spl {
+		filename = "spl.bin";
+
+		mkimage {
+			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
+
+			blob {
+				filename = "u-boot-spl-ddr.bin";
+			};
+		};
+	};
+
+	itb {
+		filename = "u-boot.itb";
+
+		fit {
+			description = "Configuration to load ATF before U-Boot";
+			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
+			fit,fdt-list = "of-list";
+			#address-cells = <1>;
+
+			images {
+				uboot {
+					arch = "arm64";
+					compression = "none";
+					description = "U-Boot (64-bit)";
+					load = <CONFIG_SYS_TEXT_BASE>;
+					type = "standalone";
+
+					uboot-blob {
+						filename = "u-boot-nodtb.bin";
+						type = "blob-ext";
+					};
+				};
+
+				atf {
+					arch = "arm64";
+					compression = "none";
+					description = "ARM Trusted Firmware";
+					entry = <0x960000>;
+					load = <0x960000>;
+					type = "firmware";
+
+					atf-blob {
+						filename = "bl31.bin";
+						type = "atf-bl31";
+					};
+				};
+
+				binman_fip: fip {
+					arch = "arm64";
+					compression = "none";
+					description = "Trusted Firmware FIP";
+					load = <0x40310000>;
+					type = "firmware";
+				};
+
+				@fdt-SEQ {
+					compression = "none";
+					description = "NAME";
+					type = "flat_dt";
+
+					uboot-fdt-blob {
+						filename = "u-boot.dtb";
+						type = "blob-ext";
+					};
+				};
+			};
+
+			configurations {
+				default = "@config-DEFAULT-SEQ";
+
+				binman_configuration: @config-SEQ {
+					description = "NAME";
+					fdt = "fdt-SEQ";
+					firmware = "uboot";
+					loadables = "atf";
+				};
+			};
+		};
+	};
+
+	imx-boot {
+		filename = "flash.bin";
+		pad-byte = <0x00>;
+
+#ifdef CONFIG_FSPI_CONF_HEADER
+		fspi_conf_block {
+			filename = CONFIG_FSPI_CONF_FILE;
+			type = "blob-ext";
+			offset = <0x400>;
+		};
+
+		spl {
+			filename = "spl.bin";
+			offset = <0x1000>;
+			type = "blob-ext";
+		};
+
+		binman_uboot: uboot {
+			filename = "u-boot.itb";
+			offset = <0x59000>;
+			type = "blob-ext";
+		};
+#else
+
+		spl {
+			offset = <0x0>;
+			filename = "spl.bin";
+			type = "blob-ext";
+		};
+
+		binman_uboot: uboot {
+			offset = <0x58000>;
+			filename = "u-boot.itb";
+			type = "blob-ext";
+		};
+#endif
+	};
+};
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH 2/7] arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot
  2022-07-31 23:45 [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Adam Ford
  2022-07-31 23:45 ` [PATCH 1/7] arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi Adam Ford
@ 2022-07-31 23:45 ` Adam Ford
  2022-07-31 23:45 ` [PATCH 3/7] arm: dts: imx8mn-bsh-smm-s2: " Adam Ford
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 20+ messages in thread
From: Adam Ford @ 2022-07-31 23:45 UTC (permalink / raw)
  To: u-boot
  Cc: aford, Adam Ford, Stefano Babic, Fabio Estevam,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey

Now that a unified imx8mn-u-boot is available, remove duplicated
code for generating flash.bin and other common imx8mn peripherals.

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

diff --git a/arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi b/arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi
index 0efa6862eb..3180d57239 100644
--- a/arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi
+++ b/arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi
@@ -1,24 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * Copyright 2020 Compass Electronics Group, LLC
+ * Copyright 2022 Logic PD, Inc. dba Beacon EmbeddedWorks
  */
 
-/ {
-	binman: binman {
-		multiple-images;
-	};
-
-	wdt-reboot {
-		compatible = "wdt-reboot";
-		wdt = <&wdog1>;
-		u-boot,dm-spl;
-	};
-};
-
-&{/soc@0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
+#include "imx8mn-u-boot.dtsi"
 
 &{/soc@0/bus@30800000/i2c@30a20000/pmic@4b} {
 	u-boot,dm-spl;
@@ -28,27 +13,6 @@
 	u-boot,dm-spl;
 };
 
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
 &gpio1 {
 	u-boot,dm-spl;
 };
@@ -61,15 +25,6 @@
 	u-boot,dm-spl;
 };
 
-&iomuxc {
-	u-boot,dm-spl;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
 &pca6416_0 {
 	compatible = "ti,tca6416";
 };
@@ -106,10 +61,6 @@
 	u-boot,off-on-delay-us = <20000>;
 };
 
-&spba1 {
-	u-boot,dm-spl;
-};
-
 &uart2 {
 	u-boot,dm-spl;
 };
@@ -132,133 +83,6 @@
 	mmc-hs400-enhanced-strobe;
 };
 
-&wdog1 {
-	u-boot,dm-spl;
-};
-
 &pinctrl_wdog {
 	u-boot,dm-spl;
 };
-
-&binman {
-	 u-boot-spl-ddr {
-		filename = "u-boot-spl-ddr.bin";
-		pad-byte = <0xff>;
-		align-size = <4>;
-		align = <4>;
-
-		u-boot-spl {
-			align-end = <4>;
-		};
-
-		ddr-1d-imem-fw {
-			filename = "lpddr4_pmu_train_1d_imem.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-
-		ddr-1d-dmem-fw {
-			filename = "lpddr4_pmu_train_1d_dmem.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-
-		ddr-2d-imem-fw {
-			filename = "lpddr4_pmu_train_2d_imem.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-
-		ddr-2d-dmem-fw {
-			filename = "lpddr4_pmu_train_2d_dmem.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-	};
-
-
-	spl {
-		filename = "spl.bin";
-
-		mkimage {
-			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
-
-			blob {
-				filename = "u-boot-spl-ddr.bin";
-			};
-		};
-	};
-
-	itb {
-		filename = "u-boot.itb";
-
-		fit {
-			description = "Configuration to load ATF before U-Boot";
-			#address-cells = <1>;
-			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
-
-			images {
-				uboot {
-					description = "U-Boot (64-bit)";
-					type = "standalone";
-					arch = "arm64";
-					compression = "none";
-					load = <CONFIG_SYS_TEXT_BASE>;
-
-					uboot_blob: blob-ext {
-						filename = "u-boot-nodtb.bin";
-					};
-				};
-
-				atf {
-					description = "ARM Trusted Firmware";
-					type = "firmware";
-					arch = "arm64";
-					compression = "none";
-					load = <0x960000>;
-					entry = <0x960000>;
-
-					atf_blob: blob-ext {
-						filename = "bl31.bin";
-					};
-				};
-
-				fdt {
-					description = "NAME";
-					type = "flat_dt";
-					compression = "none";
-
-					uboot_fdt_blob: blob-ext {
-						filename = "u-boot.dtb";
-					};
-				};
-			};
-
-			configurations {
-				default = "conf";
-
-				conf {
-					description = "NAME";
-					firmware = "uboot";
-					loadables = "atf";
-					fdt = "fdt";
-				};
-			};
-		};
-	};
-
-	imx-boot {
-		filename = "flash.bin";
-		pad-byte = <0x00>;
-
-		spl: blob-ext@1 {
-			offset = <0x0>;
-			filename = "spl.bin";
-		};
-
-		uboot: blob-ext@2 {
-			offset = <0x58000>;
-			filename = "u-boot.itb";
-		};
-	};
-};
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH 3/7] arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot
  2022-07-31 23:45 [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Adam Ford
  2022-07-31 23:45 ` [PATCH 1/7] arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi Adam Ford
  2022-07-31 23:45 ` [PATCH 2/7] arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot Adam Ford
@ 2022-07-31 23:45 ` Adam Ford
  2022-07-31 23:45 ` [PATCH 4/7] arm: dts: imx8mn-ddr4-evk: " Adam Ford
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 20+ messages in thread
From: Adam Ford @ 2022-07-31 23:45 UTC (permalink / raw)
  To: u-boot
  Cc: aford, Adam Ford, Stefano Babic, Fabio Estevam,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey

Now that a unified imx8mn-u-boot is available, remove duplicated
code for generating flash.bin and other common imx8mn peripherals.

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

diff --git a/arch/arm/dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi b/arch/arm/dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi
index c4ae7ca4f3..3967e0bd15 100644
--- a/arch/arm/dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi
+++ b/arch/arm/dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi
@@ -4,22 +4,7 @@
  * Copyright 2021 BSH Hausgeraete GmbH
  */
 
-/ {
-	binman: binman {
-		multiple-images;
-	};
-
-	wdt-reboot {
-		compatible = "wdt-reboot";
-		wdt = <&wdog1>;
-		u-boot,dm-spl;
-	};
-};
-
-&{/soc@0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
+#include "imx8mn-u-boot.dtsi"
 
 &{/soc@0/bus@30800000/i2c@30a20000/pmic@4b} {
 	u-boot,dm-spl;
@@ -29,27 +14,6 @@
 	u-boot,dm-spl;
 };
 
-&aips1 {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&aips4 {
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
 &gpio1 {
 	u-boot,dm-spl;
 };
@@ -66,15 +30,6 @@
 	u-boot,dm-spl;
 };
 
-&iomuxc {
-	u-boot,dm-spl;
-};
-
-&osc_24m {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
 &pinctrl_i2c1 {
 	u-boot,dm-spl;
 };
@@ -98,128 +53,3 @@
 &wdog1 {
 	u-boot,dm-spl;
 };
-
-&binman {
-	u-boot-spl-ddr {
-		align = <4>;
-		align-size = <4>;
-		filename = "u-boot-spl-ddr.bin";
-		pad-byte = <0xff>;
-
-		u-boot-spl {
-			align-end = <4>;
-			filename = "u-boot-spl.bin";
-		};
-
-		ddr-1d-imem-fw {
-			filename = "ddr3_imem_1d.bin";
-			align-end = <4>;
-			type = "blob-ext";
-		};
-
-		ddr-1d-dmem-fw {
-			filename = "ddr3_dmem_1d.bin";
-			align-end = <4>;
-			type = "blob-ext";
-		};
-	};
-
-	spl {
-		filename = "spl.bin";
-
-		mkimage {
-			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
-
-			blob {
-				filename = "u-boot-spl-ddr.bin";
-			};
-		};
-	};
-
-	itb {
-		filename = "u-boot.itb";
-
-		fit {
-			description = "Configuration to load ATF before U-Boot";
-			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
-			fit,fdt-list = "of-list";
-			#address-cells = <1>;
-
-			images {
-				uboot {
-					arch = "arm64";
-					compression = "none";
-					description = "U-Boot (64-bit)";
-					load = <CONFIG_SYS_TEXT_BASE>;
-					type = "standalone";
-
-					uboot_blob {
-						filename = "u-boot-nodtb.bin";
-						type = "blob-ext";
-					};
-				};
-
-				atf {
-					arch = "arm64";
-					compression = "none";
-					description = "ARM Trusted Firmware";
-					entry = <0x960000>;
-					load = <0x960000>;
-					type = "firmware";
-
-					atf_blob {
-						filename = "bl31.bin";
-						type = "atf-bl31";
-					};
-				};
-
-				binman_fip: fip {
-					arch = "arm64";
-					compression = "none";
-					description = "Trusted Firmware FIP";
-					load = <0x40310000>;
-					type = "firmware";
-				};
-
-				@fdt-SEQ {
-					compression = "none";
-					description = "NAME";
-					type = "flat_dt";
-
-					uboot_fdt_blob {
-						filename = "u-boot.dtb";
-						type = "blob-ext";
-					};
-				};
-			};
-
-			configurations {
-				default = "@config-DEFAULT-SEQ";
-
-				binman_configuration: @config-SEQ {
-					description = "NAME";
-					fdt = "fdt-SEQ";
-					firmware = "uboot";
-					loadables = "atf";
-				};
-			};
-		};
-	};
-
-	imx-boot {
-		filename = "flash.bin";
-		pad-byte = <0x00>;
-
-		spl {
-			filename = "spl.bin";
-			offset = <0x0>;
-			type = "blob-ext";
-		};
-
-		binman_uboot: uboot {
-			filename = "u-boot.itb";
-			offset = <0x58000>;
-			type = "blob-ext";
-		};
-	};
-};
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH 4/7] arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot
  2022-07-31 23:45 [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Adam Ford
                   ` (2 preceding siblings ...)
  2022-07-31 23:45 ` [PATCH 3/7] arm: dts: imx8mn-bsh-smm-s2: " Adam Ford
@ 2022-07-31 23:45 ` Adam Ford
  2022-07-31 23:45 ` [PATCH 5/7] arm: dts: imx8mn-evk: " Adam Ford
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 20+ messages in thread
From: Adam Ford @ 2022-07-31 23:45 UTC (permalink / raw)
  To: u-boot
  Cc: aford, Adam Ford, Stefano Babic, Fabio Estevam,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey

Now that a unified imx8mn-u-boot is available, remove duplicated
code for generating flash.bin and other common imx8mn peripherals.

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

diff --git a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
index 78773c198e..54f3ebe88b 100644
--- a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
@@ -3,58 +3,7 @@
  * Copyright 2019, 2021 NXP
  */
 
-/ {
-	binman: binman {
-		multiple-images;
-	};
-
-	wdt-reboot {
-		compatible = "wdt-reboot";
-		wdt = <&wdog1>;
-		u-boot,dm-spl;
-	};
-	firmware {
-		optee {
-			compatible = "linaro,optee-tz";
-			method = "smc";
-		};
-	};
-};
-
-&{/soc@0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&iomuxc {
-	u-boot,dm-spl;
-};
+#include "imx8mn-u-boot.dtsi"
 
 &pinctrl_reg_usdhc2_vmmc {
 	u-boot,dm-spl;
@@ -139,130 +88,3 @@
 	mmc-hs400-1_8v;
 	mmc-hs400-enhanced-strobe;
 };
-
-&wdog1 {
-	u-boot,dm-spl;
-};
-
-&binman {
-	 u-boot-spl-ddr {
-		filename = "u-boot-spl-ddr.bin";
-		pad-byte = <0xff>;
-		align-size = <4>;
-		align = <4>;
-
-		u-boot-spl {
-			align-end = <4>;
-		};
-
-		ddr-1d-imem-fw {
-			filename = "ddr4_imem_1d_201810.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-
-		ddr-1d-dmem-fw {
-			filename = "ddr4_dmem_1d_201810.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-
-		ddr-2d-imem-fw {
-			filename = "ddr4_imem_2d_201810.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-
-		ddr-2d-dmem-fw {
-			filename = "ddr4_dmem_2d_201810.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-	};
-
-
-	spl {
-		filename = "spl.bin";
-
-		mkimage {
-			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
-
-			blob {
-				filename = "u-boot-spl-ddr.bin";
-			};
-		};
-	};
-
-	itb {
-		filename = "u-boot.itb";
-
-		fit {
-			description = "Configuration to load ATF before U-Boot";
-			#address-cells = <1>;
-			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
-
-			images {
-				uboot {
-					description = "U-Boot (64-bit)";
-					type = "standalone";
-					arch = "arm64";
-					compression = "none";
-					load = <CONFIG_SYS_TEXT_BASE>;
-
-					uboot_blob: blob-ext {
-						filename = "u-boot-nodtb.bin";
-					};
-				};
-
-				atf {
-					description = "ARM Trusted Firmware";
-					type = "firmware";
-					arch = "arm64";
-					compression = "none";
-					load = <0x960000>;
-					entry = <0x960000>;
-
-					atf_blob: blob-ext {
-						filename = "bl31.bin";
-					};
-				};
-
-				fdt {
-					description = "NAME";
-					type = "flat_dt";
-					compression = "none";
-
-					uboot_fdt_blob: blob-ext {
-						filename = "u-boot.dtb";
-					};
-				};
-			};
-
-			configurations {
-				default = "conf";
-
-				conf {
-					description = "NAME";
-					firmware = "uboot";
-					loadables = "atf";
-					fdt = "fdt";
-				};
-			};
-		};
-	};
-
-	imx-boot {
-		filename = "flash.bin";
-		pad-byte = <0x00>;
-
-		spl: blob-ext@1 {
-			offset = <0x0>;
-			filename = "spl.bin";
-		};
-
-		uboot: blob-ext@2 {
-			offset = <0x58000>;
-			filename = "u-boot.itb";
-		};
-	};
-};
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH 5/7] arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot
  2022-07-31 23:45 [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Adam Ford
                   ` (3 preceding siblings ...)
  2022-07-31 23:45 ` [PATCH 4/7] arm: dts: imx8mn-ddr4-evk: " Adam Ford
@ 2022-07-31 23:45 ` Adam Ford
  2022-07-31 23:45 ` [PATCH 6/7] arm: dts: imx8mn-var-som-symphony: " Adam Ford
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 20+ messages in thread
From: Adam Ford @ 2022-07-31 23:45 UTC (permalink / raw)
  To: u-boot
  Cc: aford, Adam Ford, Stefano Babic, Fabio Estevam,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey

Now that a unified imx8mn-u-boot is available, remove duplicated
code for generating flash.bin and other common imx8mn peripherals.

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

diff --git a/arch/arm/dts/imx8mn-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-evk-u-boot.dtsi
index c4b83d3f7e..6c6c949f43 100644
--- a/arch/arm/dts/imx8mn-evk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mn-evk-u-boot.dtsi
@@ -24,111 +24,3 @@
 &pinctrl_pmic {
 	u-boot,dm-spl;
 };
-
-&binman {
-	 u-boot-spl-ddr {
-		filename = "u-boot-spl-ddr.bin";
-		pad-byte = <0xff>;
-		align-size = <4>;
-		align = <4>;
-
-		u-boot-spl {
-			align-end = <4>;
-		};
-
-		ddr-1d-imem-fw {
-			filename = "lpddr4_pmu_train_1d_imem.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-
-		ddr-1d-dmem-fw {
-			filename = "lpddr4_pmu_train_1d_dmem.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-
-		ddr-2d-imem-fw {
-			filename = "lpddr4_pmu_train_2d_imem.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-
-		ddr-2d-dmem-fw {
-			filename = "lpddr4_pmu_train_2d_dmem.bin";
-			type = "blob-ext";
-			align-end = <4>;
-		};
-	};
-
-
-	spl {
-		filename = "spl.bin";
-
-		mkimage {
-			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
-
-			blob {
-				filename = "u-boot-spl-ddr.bin";
-			};
-		};
-	};
-
-	itb {
-		filename = "u-boot.itb";
-
-		fit {
-			description = "Configuration to load ATF before U-Boot";
-			#address-cells = <1>;
-			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
-
-			images {
-				uboot {
-					description = "U-Boot (64-bit)";
-					type = "standalone";
-					arch = "arm64";
-					compression = "none";
-					load = <CONFIG_SYS_TEXT_BASE>;
-
-					uboot_blob: blob-ext {
-						filename = "u-boot-nodtb.bin";
-					};
-				};
-
-				atf {
-					description = "ARM Trusted Firmware";
-					type = "firmware";
-					arch = "arm64";
-					compression = "none";
-					load = <0x960000>;
-					entry = <0x960000>;
-
-					atf_blob: blob-ext {
-						filename = "bl31.bin";
-					};
-				};
-
-				fdt {
-					description = "NAME";
-					type = "flat_dt";
-					compression = "none";
-
-					uboot_fdt_blob: blob-ext {
-						filename = "u-boot.dtb";
-					};
-				};
-			};
-
-			configurations {
-				default = "conf";
-
-				conf {
-					description = "NAME";
-					firmware = "uboot";
-					loadables = "atf";
-					fdt = "fdt";
-				};
-			};
-		};
-	};
-};
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH 6/7] arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot
  2022-07-31 23:45 [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Adam Ford
                   ` (4 preceding siblings ...)
  2022-07-31 23:45 ` [PATCH 5/7] arm: dts: imx8mn-evk: " Adam Ford
@ 2022-07-31 23:45 ` Adam Ford
  2022-07-31 23:45 ` [PATCH 7/7] arm: dts: imx8mn-venice: " Adam Ford
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 20+ messages in thread
From: Adam Ford @ 2022-07-31 23:45 UTC (permalink / raw)
  To: u-boot
  Cc: aford, Adam Ford, Stefano Babic, Fabio Estevam,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey

Now that a unified imx8mn-u-boot is available, remove duplicated
code for generating flash.bin and other common imx8mn peripherals.

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

diff --git a/arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi b/arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi
index ed1ab10ded..a20683155c 100644
--- a/arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi
+++ b/arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi
@@ -3,22 +3,7 @@
  * Copyright 2021 Collabora Ltd.
  */
 
-/ {
-	binman: binman {
-		multiple-images;
-	};
-
-	wdt-reboot {
-		compatible = "wdt-reboot";
-		wdt = <&wdog1>;
-		u-boot,dm-spl;
-	};
-};
-
-&{/soc@0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
+#include "imx8mn-u-boot.dtsi"
 
 &{/soc@0/bus@30800000/i2c@30a20000/pmic@4b} {
 	u-boot,dm-spl;
@@ -28,27 +13,6 @@
 	u-boot,dm-spl;
 };
 
-&aips1 {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&aips4 {
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
 &gpio1 {
 	u-boot,dm-spl;
 };
@@ -65,15 +29,6 @@
 	u-boot,dm-spl;
 };
 
-&iomuxc {
-	u-boot,dm-spl;
-};
-
-&osc_24m {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
 &pinctrl_i2c1 {
 	u-boot,dm-spl;
 };
@@ -113,144 +68,3 @@
 &usdhc3 {
 	u-boot,dm-spl;
 };
-
-&wdog1 {
-	u-boot,dm-spl;
-};
-
-&binman {
-	u-boot-spl-ddr {
-		align = <4>;
-		align-size = <4>;
-		filename = "u-boot-spl-ddr.bin";
-		pad-byte = <0xff>;
-
-		u-boot-spl {
-			align-end = <4>;
-			filename = "u-boot-spl.bin";
-		};
-
-		ddr-1d-imem-fw {
-			filename = "ddr4_imem_1d.bin";
-			align-end = <4>;
-			type = "blob-ext";
-		};
-
-		ddr-1d-dmem-fw {
-			filename = "ddr4_dmem_1d.bin";
-			align-end = <4>;
-			type = "blob-ext";
-		};
-
-		ddr-2d-imem-fw {
-			filename = "ddr4_imem_2d.bin";
-			align-end = <4>;
-			type = "blob-ext";
-		};
-
-		ddr-2d-dmem-fw {
-			filename = "ddr4_dmem_2d.bin";
-			align-end = <4>;
-			type = "blob-ext";
-		};
-	};
-
-	spl {
-		filename = "spl.bin";
-
-		mkimage {
-			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
-
-			blob {
-				filename = "u-boot-spl-ddr.bin";
-			};
-		};
-	};
-
-	itb {
-		filename = "u-boot.itb";
-
-		fit {
-			description = "Configuration to load ATF before U-Boot";
-			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
-			fit,fdt-list = "of-list";
-			#address-cells = <1>;
-
-			images {
-				uboot {
-					arch = "arm64";
-					compression = "none";
-					description = "U-Boot (64-bit)";
-					load = <CONFIG_SYS_TEXT_BASE>;
-					type = "standalone";
-
-					uboot_blob {
-						filename = "u-boot-nodtb.bin";
-						type = "blob-ext";
-					};
-				};
-
-				atf {
-					arch = "arm64";
-					compression = "none";
-					description = "ARM Trusted Firmware";
-					entry = <0x960000>;
-					load = <0x960000>;
-					type = "firmware";
-
-					atf_blob {
-						filename = "bl31.bin";
-						type = "atf-bl31";
-					};
-				};
-
-				binman_fip: fip {
-					arch = "arm64";
-					compression = "none";
-					description = "Trusted Firmware FIP";
-					load = <0x40310000>;
-					type = "firmware";
-				};
-
-				@fdt-SEQ {
-					compression = "none";
-					description = "NAME";
-					type = "flat_dt";
-
-					uboot_fdt_blob {
-						filename = "u-boot.dtb";
-						type = "blob-ext";
-					};
-				};
-			};
-
-			configurations {
-				default = "@config-DEFAULT-SEQ";
-
-				binman_configuration: @config-SEQ {
-					description = "NAME";
-					fdt = "fdt-SEQ";
-					firmware = "uboot";
-					loadables = "atf";
-				};
-			};
-		};
-	};
-
-	imx-boot {
-		filename = "flash.bin";
-		pad-byte = <0x00>;
-
-		spl {
-			filename = "spl.bin";
-			offset = <0x0>;
-			type = "blob-ext";
-		};
-
-		binman_uboot: uboot {
-			filename = "u-boot.itb";
-			offset = <0x58000>;
-			type = "blob-ext";
-		};
-	};
-};
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [PATCH 7/7] arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot
  2022-07-31 23:45 [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Adam Ford
                   ` (5 preceding siblings ...)
  2022-07-31 23:45 ` [PATCH 6/7] arm: dts: imx8mn-var-som-symphony: " Adam Ford
@ 2022-07-31 23:45 ` Adam Ford
  2022-08-04 17:15 ` [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Tim Harvey
  2022-08-14 22:56 ` Fabio Estevam
  8 siblings, 0 replies; 20+ messages in thread
From: Adam Ford @ 2022-07-31 23:45 UTC (permalink / raw)
  To: u-boot
  Cc: aford, Adam Ford, Stefano Babic, Fabio Estevam,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey

Now that a unified imx8mn-u-boot is available, remove duplicated
code for generating flash.bin and other common imx8mn peripherals.

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

diff --git a/arch/arm/dts/imx8mn-venice-u-boot.dtsi b/arch/arm/dts/imx8mn-venice-u-boot.dtsi
index 9fb3871452..aea48f2d79 100644
--- a/arch/arm/dts/imx8mn-venice-u-boot.dtsi
+++ b/arch/arm/dts/imx8mn-venice-u-boot.dtsi
@@ -3,52 +3,7 @@
  * Copyright 2022 Gateworks Corporation
  */
 
-/ {
-	binman: binman {
-		multiple-images;
-	};
-
-	wdt-reboot {
-		compatible = "wdt-reboot";
-		wdt = <&wdog1>;
-		u-boot,dm-spl;
-	};
-};
-
-&{/soc@0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&iomuxc {
-	u-boot,dm-spl;
-};
+#include "imx8mn-u-boot.dtsi"
 
 &gpio1 {
 	u-boot,dm-spl;
@@ -106,147 +61,6 @@
 	u-boot,dm-spl;
 };
 
-&wdog1 {
-	u-boot,dm-spl;
-};
-
 &pinctrl_wdog {
 	u-boot,dm-spl;
 };
-
-&binman {
-	u-boot-spl-ddr {
-		align = <4>;
-		align-size = <4>;
-		filename = "u-boot-spl-ddr.bin";
-		pad-byte = <0xff>;
-
-		u-boot-spl {
-			align-end = <4>;
-			filename = "u-boot-spl.bin";
-		};
-
-		ddr-1d-imem-fw {
-			filename = "lpddr4_pmu_train_1d_imem.bin";
-			align-end = <4>;
-			type = "blob-ext";
-		};
-
-		ddr-1d-dmem-fw {
-			filename = "lpddr4_pmu_train_1d_dmem.bin";
-			align-end = <4>;
-			type = "blob-ext";
-		};
-
-		ddr-2d-imem-fw {
-			filename = "lpddr4_pmu_train_2d_imem.bin";
-			align-end = <4>;
-			type = "blob-ext";
-		};
-
-		ddr-2d-dmem-fw {
-			filename = "lpddr4_pmu_train_2d_dmem.bin";
-			align-end = <4>;
-			type = "blob-ext";
-		};
-	};
-
-	spl {
-		filename = "spl.bin";
-
-		mkimage {
-			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
-
-			blob {
-				filename = "u-boot-spl-ddr.bin";
-			};
-		};
-	};
-
-	itb {
-		filename = "u-boot.itb";
-
-		fit {
-			description = "Configuration to load ATF before U-Boot";
-			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
-			fit,fdt-list = "of-list";
-			#address-cells = <1>;
-
-			images {
-				uboot {
-					arch = "arm64";
-					compression = "none";
-					description = "U-Boot (64-bit)";
-					load = <CONFIG_SYS_TEXT_BASE>;
-					type = "standalone";
-
-					uboot_blob {
-						filename = "u-boot-nodtb.bin";
-						type = "blob-ext";
-					};
-				};
-
-				atf {
-					arch = "arm64";
-					compression = "none";
-					description = "ARM Trusted Firmware";
-					entry = <0x960000>;
-					load = <0x960000>;
-					type = "firmware";
-
-					atf_blob {
-						filename = "bl31.bin";
-						type = "blob-ext";
-					};
-				};
-
-				binman_fip: fip {
-					arch = "arm64";
-					compression = "none";
-					description = "Trusted Firmware FIP";
-					load = <0x40310000>;
-					type = "firmware";
-				};
-
-				@fdt-SEQ {
-					compression = "none";
-					description = "NAME";
-					type = "flat_dt";
-
-					uboot_fdt_blob {
-						filename = "u-boot.dtb";
-						type = "blob-ext";
-					};
-				};
-			};
-
-			configurations {
-				default = "@config-DEFAULT-SEQ";
-
-				binman_configuration: @config-SEQ {
-					description = "NAME";
-					fdt = "fdt-SEQ";
-					firmware = "uboot";
-					loadables = "atf";
-				};
-			};
-		};
-	};
-
-	imx-boot {
-		filename = "flash.bin";
-		pad-byte = <0x00>;
-
-		spl {
-			filename = "spl.bin";
-			offset = <0x0>;
-			type = "blob-ext";
-		};
-
-		binman_uboot: uboot {
-			filename = "u-boot.itb";
-			offset = <0x58000>;
-			type = "blob-ext";
-		};
-	};
-};
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

* Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot
  2022-07-31 23:45 [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Adam Ford
                   ` (6 preceding siblings ...)
  2022-07-31 23:45 ` [PATCH 7/7] arm: dts: imx8mn-venice: " Adam Ford
@ 2022-08-04 17:15 ` Tim Harvey
  2022-08-14 22:56 ` Fabio Estevam
  8 siblings, 0 replies; 20+ messages in thread
From: Tim Harvey @ 2022-08-04 17:15 UTC (permalink / raw)
  To: Adam Ford
  Cc: u-boot, aford, Stefano Babic, Fabio Estevam,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi

On Sun, Jul 31, 2022 at 4:46 PM Adam Ford <aford173@gmail.com> wrote:
>
> Every imx8mn board has a bunch of similar entries on their
> respective board-u-boot.dtsi file to make the board bootable.
> Instead of maintaining multiple files with duplicate code,
> have them all point to a new, common file.  This file includes
> the necessary nodes that were common to nearly all boards
> and added spba1 to help faciliate SPL_DM_SERIAL.  This also
> adds support for CONFIG_FSPI_CONF_HEADER which can be used
> to generate flash.bin files for booting from FlexSPI.
>
> Adam Ford (7):
>   arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
>   arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot
>   arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot
>   arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot
>   arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot
>   arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot
>   arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot
>
>  arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi    | 180 +------------
>  .../dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi  | 172 +-----------
>  arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi      | 180 +------------
>  arch/arm/dts/imx8mn-evk-u-boot.dtsi           | 108 --------
>  arch/arm/dts/imx8mn-u-boot.dtsi               | 248 ++++++++++++++++++
>  .../dts/imx8mn-var-som-symphony-u-boot.dtsi   | 188 +------------
>  arch/arm/dts/imx8mn-venice-u-boot.dtsi        | 188 +------------
>  7 files changed, 254 insertions(+), 1010 deletions(-)
>  create mode 100644 arch/arm/dts/imx8mn-u-boot.dtsi
>
> --
> 2.34.1
>

Thanks Adam,

For the series:

Reviewed-By: Tim Harvey <tharvey@gateworks.com>
Tested-By: Tim Harvey <tharvey@gateworks.com> #imx8mn-venice-gw7902

Best Regards,

Tim

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/7] arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
  2022-07-31 23:45 ` [PATCH 1/7] arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi Adam Ford
@ 2022-08-14 16:32   ` Adam Ford
  2022-10-04  2:01     ` Fabio Estevam
  0 siblings, 1 reply; 20+ messages in thread
From: Adam Ford @ 2022-08-14 16:32 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Adam Ford-BE, Stefano Babic, Fabio Estevam, NXP i.MX U-Boot Team,
	Ariel D'Alessandro, Michael Trimarchi, Tim Harvey,
	Peng Fan (OSS)

On Sun, Jul 31, 2022 at 6:46 PM Adam Ford <aford173@gmail.com> wrote:
>
> Multiple boards create duplicate entries in their respective
> -u-boot.dtsi files which all basically do the same thing.
> To consolidate these and make it easier to make improvements
> going forward, consolidate them all into one place.
>
> This file creates a flash.bin image using binman, and supports
> LPDDR4, DDR4 and DDR3.  Since individual boards use different
> peripherals and different UART ports, those entries were kept
> in their respective board files, but the spba1 node was addded
> which contains all UART1-3 to help facilitate SPL_DM_SERIAL.
> Individual users will still need to include their respective
> UART and pinctrl nodes for those UARTS.
>
> This consolidated file also supports generating a flash.bin file
> which can boot from flexSPI if CONFIG_FSPI_CONF_HEADER is
> enabled.
>

Fabio / Peng,

Any chance either one of you could review this?  This series should
fix any Nano boards that cannot boot and currently use DM_SERIAL.
after 4e5114daf9eb ("imx8mn: synchronise device tree with linux")
which moved the UART nodes under the SPBA node.

thanks

adam
> Signed-off-by: Adam Ford <aford173@gmail.com>
> ---
> Patches on top of [1]
>
> [1] - https://patchwork.ozlabs.org/project/uboot/patch/20220731171610.487086-1-aford173@gmail.com/
>
> diff --git a/arch/arm/dts/imx8mn-u-boot.dtsi b/arch/arm/dts/imx8mn-u-boot.dtsi
> new file mode 100644
> index 0000000000..327d4070fc
> --- /dev/null
> +++ b/arch/arm/dts/imx8mn-u-boot.dtsi
> @@ -0,0 +1,248 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * Copyright 2022 Logic PD, Inc dba Beacon EmbeddedWorks
> + */
> +
> +/ {
> +       binman: binman {
> +               multiple-images;
> +       };
> +
> +       firmware {
> +               optee {
> +                       compatible = "linaro,optee-tz";
> +                       method = "smc";
> +               };
> +       };
> +
> +       wdt-reboot {
> +               compatible = "wdt-reboot";
> +               wdt = <&wdog1>;
> +               u-boot,dm-spl;
> +       };
> +};
> +
> +&{/soc@0} {
> +       u-boot,dm-pre-reloc;
> +       u-boot,dm-spl;
> +};
> +
> +&aips1 {
> +       u-boot,dm-spl;
> +       u-boot,dm-pre-reloc;
> +};
> +
> +&aips2 {
> +       u-boot,dm-spl;
> +};
> +
> +&aips3 {
> +       u-boot,dm-spl;
> +};
> +
> +&aips4 {
> +       u-boot,dm-spl;
> +};
> +
> +&clk {
> +       u-boot,dm-spl;
> +       u-boot,dm-pre-reloc;
> +       /delete-property/ assigned-clocks;
> +       /delete-property/ assigned-clock-parents;
> +       /delete-property/ assigned-clock-rates;
> +};
> +
> +&iomuxc {
> +       u-boot,dm-spl;
> +};
> +
> +&osc_24m {
> +       u-boot,dm-spl;
> +       u-boot,dm-pre-reloc;
> +};
> +
> +&spba1 {
> +       u-boot,dm-spl;
> +};
> +
> +&wdog1 {
> +       u-boot,dm-spl;
> +};
> +
> +&binman {
> +        u-boot-spl-ddr {
> +               filename = "u-boot-spl-ddr.bin";
> +               pad-byte = <0xff>;
> +               align-size = <4>;
> +               align = <4>;
> +
> +               u-boot-spl {
> +                       align-end = <4>;
> +                       filename = "u-boot-spl.bin";
> +               };
> +
> +               ddr-1d-imem-fw {
> +#ifdef CONFIG_IMX8M_LPDDR4
> +                       filename = "lpddr4_pmu_train_1d_imem.bin";
> +#elif CONFIG_IMX8M_DDR4
> +                       filename = "ddr4_imem_1d.bin";
> +#else
> +                       filename = "ddr3_imem_1d.bin";
> +#endif
> +                       type = "blob-ext";
> +                       align-end = <4>;
> +               };
> +
> +               ddr-1d-dmem-fw {
> +#ifdef CONFIG_IMX8M_LPDDR4
> +                       filename = "lpddr4_pmu_train_1d_dmem.bin";
> +#elif CONFIG_IMX8M_DDR4
> +                       filename = "ddr4_dmem_1d.bin";
> +#else
> +                       filename = "ddr3_dmem_1d.bin";
> +#endif
> +                       type = "blob-ext";
> +                       align-end = <4>;
> +               };
> +
> +               ddr-2d-imem-fw {
> +#ifdef CONFIG_IMX8M_LPDDR4
> +                       filename = "lpddr4_pmu_train_2d_imem.bin";
> +#elif CONFIG_IMX8M_DDR4
> +                       filename = "ddr4_imem_2d.bin";
> +#endif
> +                       type = "blob-ext";
> +                       align-end = <4>;
> +               };
> +
> +               ddr-2d-dmem-fw {
> +#ifdef CONFIG_IMX8M_LPDDR4
> +                       filename = "lpddr4_pmu_train_2d_dmem.bin";
> +#elif CONFIG_IMX8M_DDR4
> +                       filename = "ddr4_dmem_2d.bin";
> +#endif
> +                       type = "blob-ext";
> +                       align-end = <4>;
> +               };
> +       };
> +
> +       spl {
> +               filename = "spl.bin";
> +
> +               mkimage {
> +                       args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
> +
> +                       blob {
> +                               filename = "u-boot-spl-ddr.bin";
> +                       };
> +               };
> +       };
> +
> +       itb {
> +               filename = "u-boot.itb";
> +
> +               fit {
> +                       description = "Configuration to load ATF before U-Boot";
> +                       fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
> +                       fit,fdt-list = "of-list";
> +                       #address-cells = <1>;
> +
> +                       images {
> +                               uboot {
> +                                       arch = "arm64";
> +                                       compression = "none";
> +                                       description = "U-Boot (64-bit)";
> +                                       load = <CONFIG_SYS_TEXT_BASE>;
> +                                       type = "standalone";
> +
> +                                       uboot-blob {
> +                                               filename = "u-boot-nodtb.bin";
> +                                               type = "blob-ext";
> +                                       };
> +                               };
> +
> +                               atf {
> +                                       arch = "arm64";
> +                                       compression = "none";
> +                                       description = "ARM Trusted Firmware";
> +                                       entry = <0x960000>;
> +                                       load = <0x960000>;
> +                                       type = "firmware";
> +
> +                                       atf-blob {
> +                                               filename = "bl31.bin";
> +                                               type = "atf-bl31";
> +                                       };
> +                               };
> +
> +                               binman_fip: fip {
> +                                       arch = "arm64";
> +                                       compression = "none";
> +                                       description = "Trusted Firmware FIP";
> +                                       load = <0x40310000>;
> +                                       type = "firmware";
> +                               };
> +
> +                               @fdt-SEQ {
> +                                       compression = "none";
> +                                       description = "NAME";
> +                                       type = "flat_dt";
> +
> +                                       uboot-fdt-blob {
> +                                               filename = "u-boot.dtb";
> +                                               type = "blob-ext";
> +                                       };
> +                               };
> +                       };
> +
> +                       configurations {
> +                               default = "@config-DEFAULT-SEQ";
> +
> +                               binman_configuration: @config-SEQ {
> +                                       description = "NAME";
> +                                       fdt = "fdt-SEQ";
> +                                       firmware = "uboot";
> +                                       loadables = "atf";
> +                               };
> +                       };
> +               };
> +       };
> +
> +       imx-boot {
> +               filename = "flash.bin";
> +               pad-byte = <0x00>;
> +
> +#ifdef CONFIG_FSPI_CONF_HEADER
> +               fspi_conf_block {
> +                       filename = CONFIG_FSPI_CONF_FILE;
> +                       type = "blob-ext";
> +                       offset = <0x400>;
> +               };
> +
> +               spl {
> +                       filename = "spl.bin";
> +                       offset = <0x1000>;
> +                       type = "blob-ext";
> +               };
> +
> +               binman_uboot: uboot {
> +                       filename = "u-boot.itb";
> +                       offset = <0x59000>;
> +                       type = "blob-ext";
> +               };
> +#else
> +
> +               spl {
> +                       offset = <0x0>;
> +                       filename = "spl.bin";
> +                       type = "blob-ext";
> +               };
> +
> +               binman_uboot: uboot {
> +                       offset = <0x58000>;
> +                       filename = "u-boot.itb";
> +                       type = "blob-ext";
> +               };
> +#endif
> +       };
> +};
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot
  2022-07-31 23:45 [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Adam Ford
                   ` (7 preceding siblings ...)
  2022-08-04 17:15 ` [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Tim Harvey
@ 2022-08-14 22:56 ` Fabio Estevam
  2022-08-15 11:43   ` Adam Ford
  8 siblings, 1 reply; 20+ messages in thread
From: Fabio Estevam @ 2022-08-14 22:56 UTC (permalink / raw)
  To: Adam Ford
  Cc: u-boot, aford, Stefano Babic, NXP i.MX U-Boot Team,
	Ariel D'Alessandro, Michael Trimarchi, Tim Harvey

Hi Adam,

On Sun, Jul 31, 2022 at 8:46 PM Adam Ford <aford173@gmail.com> wrote:
>
> Every imx8mn board has a bunch of similar entries on their
> respective board-u-boot.dtsi file to make the board bootable.
> Instead of maintaining multiple files with duplicate code,
> have them all point to a new, common file.  This file includes
> the necessary nodes that were common to nearly all boards
> and added spba1 to help faciliate SPL_DM_SERIAL.  This also
> adds support for CONFIG_FSPI_CONF_HEADER which can be used
> to generate flash.bin files for booting from FlexSPI.
>
> Adam Ford (7):
>   arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
>   arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot
>   arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot
>   arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot
>   arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot
>   arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot
>   arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot

For the series:

Reviewed-by: Fabio Estevam <festevam@denx.de>

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot
  2022-08-14 22:56 ` Fabio Estevam
@ 2022-08-15 11:43   ` Adam Ford
  2022-09-11 16:36     ` Adam Ford
  0 siblings, 1 reply; 20+ messages in thread
From: Adam Ford @ 2022-08-15 11:43 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: U-Boot Mailing List, Adam Ford-BE, Stefano Babic,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey

On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> Hi Adam,
>
> On Sun, Jul 31, 2022 at 8:46 PM Adam Ford <aford173@gmail.com> wrote:
> >
> > Every imx8mn board has a bunch of similar entries on their
> > respective board-u-boot.dtsi file to make the board bootable.
> > Instead of maintaining multiple files with duplicate code,
> > have them all point to a new, common file.  This file includes
> > the necessary nodes that were common to nearly all boards
> > and added spba1 to help faciliate SPL_DM_SERIAL.  This also
> > adds support for CONFIG_FSPI_CONF_HEADER which can be used
> > to generate flash.bin files for booting from FlexSPI.
> >
> > Adam Ford (7):
> >   arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
> >   arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot
> >   arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot
> >   arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot
> >   arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot
> >   arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot
> >   arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot
>
> For the series:
>
> Reviewed-by: Fabio Estevam <festevam@denx.de>

Thanks!

Stefano,

If you want me to squash the 1 dependent patch, I can squash it into
this series and submit a V2, but getting this series applied should
fix a bunch of boards which don't boot properly.

adam

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot
  2022-08-15 11:43   ` Adam Ford
@ 2022-09-11 16:36     ` Adam Ford
  2022-10-21 12:10       ` Adam Ford
  0 siblings, 1 reply; 20+ messages in thread
From: Adam Ford @ 2022-09-11 16:36 UTC (permalink / raw)
  To: Fabio Estevam, Stefano Babic
  Cc: U-Boot Mailing List, Adam Ford-BE, NXP i.MX U-Boot Team,
	Ariel D'Alessandro, Michael Trimarchi, Tim Harvey, Tom Rini

On Mon, Aug 15, 2022 at 6:43 AM Adam Ford <aford173@gmail.com> wrote:
>
> On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam <festevam@gmail.com> wrote:
> >
> > Hi Adam,
> >
> > On Sun, Jul 31, 2022 at 8:46 PM Adam Ford <aford173@gmail.com> wrote:
> > >
> > > Every imx8mn board has a bunch of similar entries on their
> > > respective board-u-boot.dtsi file to make the board bootable.
> > > Instead of maintaining multiple files with duplicate code,
> > > have them all point to a new, common file.  This file includes
> > > the necessary nodes that were common to nearly all boards
> > > and added spba1 to help faciliate SPL_DM_SERIAL.  This also
> > > adds support for CONFIG_FSPI_CONF_HEADER which can be used
> > > to generate flash.bin files for booting from FlexSPI.
> > >
> > > Adam Ford (7):
> > >   arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
> > >   arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot
> > >   arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot
> > >   arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot
> > >   arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot
> > >   arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot
> > >   arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot
> >
> > For the series:
> >
> > Reviewed-by: Fabio Estevam <festevam@denx.de>
>

Stefano,

It's been over a month, and I haven't heard any feedback from you and
it doesn't appear this series has been accepted.  Without it, Nano
boards with DM_SERIAL in SPL won't' boot because of the device tree
change which moved the UART's into a subnode.  Are you able to apply
to this series?  As I mentioned before, I can squash the dependent
patch into this series and push a V2 if you want.  With a pending
release in a few weeks, it would be nice to have the Nano boards
booting again.

thanks!

adam

> Thanks!
>
> Stefano,
>
> If you want me to squash the 1 dependent patch, I can squash it into
> this series and submit a V2, but getting this series applied should
> fix a bunch of boards which don't boot properly.
>
> adam

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/7] arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
  2022-08-14 16:32   ` Adam Ford
@ 2022-10-04  2:01     ` Fabio Estevam
  2022-10-04  6:40       ` Michael Nazzareno Trimarchi
  0 siblings, 1 reply; 20+ messages in thread
From: Fabio Estevam @ 2022-10-04  2:01 UTC (permalink / raw)
  To: Adam Ford
  Cc: U-Boot Mailing List, Adam Ford-BE, Stefano Babic,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey, Peng Fan (OSS)

Hi Adam,

On Sun, Aug 14, 2022 at 1:32 PM Adam Ford <aford173@gmail.com> wrote:

> Any chance either one of you could review this?  This series should
> fix any Nano boards that cannot boot and currently use DM_SERIAL.
> after 4e5114daf9eb ("imx8mn: synchronise device tree with linux")
> which moved the UART nodes under the SPBA node.

Sorry for the delay. The series looks good, thanks:

Reviewed-by: Fabio Estevam <festevam@denx.de>

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 1/7] arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
  2022-10-04  2:01     ` Fabio Estevam
@ 2022-10-04  6:40       ` Michael Nazzareno Trimarchi
  0 siblings, 0 replies; 20+ messages in thread
From: Michael Nazzareno Trimarchi @ 2022-10-04  6:40 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Adam Ford, U-Boot Mailing List, Adam Ford-BE, Stefano Babic,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Tim Harvey,
	Peng Fan (OSS)

Hi Adam

On Tue, Oct 4, 2022 at 4:02 AM Fabio Estevam <festevam@gmail.com> wrote:
>
> Hi Adam,
>
> On Sun, Aug 14, 2022 at 1:32 PM Adam Ford <aford173@gmail.com> wrote:
>
> > Any chance either one of you could review this?  This series should
> > fix any Nano boards that cannot boot and currently use DM_SERIAL.
> > after 4e5114daf9eb ("imx8mn: synchronise device tree with linux")
> > which moved the UART nodes under the SPBA node.
>
> Sorry for the delay. The series looks good, thanks:
>
> Reviewed-by: Fabio Estevam <festevam@denx.de>

Thank you for this series ;)

Michael



-- 
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael@amarulasolutions.com
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info@amarulasolutions.com
www.amarulasolutions.com

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot
  2022-09-11 16:36     ` Adam Ford
@ 2022-10-21 12:10       ` Adam Ford
  2022-10-21 12:13         ` Michael Nazzareno Trimarchi
  2022-10-21 12:27         ` Stefano Babic
  0 siblings, 2 replies; 20+ messages in thread
From: Adam Ford @ 2022-10-21 12:10 UTC (permalink / raw)
  To: Fabio Estevam, Stefano Babic
  Cc: U-Boot Mailing List, Adam Ford-BE, NXP i.MX U-Boot Team,
	Ariel D'Alessandro, Michael Trimarchi, Tim Harvey, Tom Rini

On Sun, Sep 11, 2022 at 11:36 AM Adam Ford <aford173@gmail.com> wrote:
>
> On Mon, Aug 15, 2022 at 6:43 AM Adam Ford <aford173@gmail.com> wrote:
> >
> > On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam <festevam@gmail.com> wrote:
> > >
> > > Hi Adam,
> > >
> > > On Sun, Jul 31, 2022 at 8:46 PM Adam Ford <aford173@gmail.com> wrote:
> > > >
> > > > Every imx8mn board has a bunch of similar entries on their
> > > > respective board-u-boot.dtsi file to make the board bootable.
> > > > Instead of maintaining multiple files with duplicate code,
> > > > have them all point to a new, common file.  This file includes
> > > > the necessary nodes that were common to nearly all boards
> > > > and added spba1 to help faciliate SPL_DM_SERIAL.  This also
> > > > adds support for CONFIG_FSPI_CONF_HEADER which can be used
> > > > to generate flash.bin files for booting from FlexSPI.
> > > >
> > > > Adam Ford (7):
> > > >   arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
> > > >   arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot
> > > >   arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot
> > > >   arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot
> > > >   arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot
> > > >   arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot
> > > >   arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot
> > >
> > > For the series:
> > >
> > > Reviewed-by: Fabio Estevam <festevam@denx.de>
> >
>
> Stefano,
>
> It's been over a month, and I haven't heard any feedback from you and
> it doesn't appear this series has been accepted.  Without it, Nano
> boards with DM_SERIAL in SPL won't' boot because of the device tree
> change which moved the UART's into a subnode.  Are you able to apply
> to this series?  As I mentioned before, I can squash the dependent
> patch into this series and push a V2 if you want.  With a pending
> release in a few weeks, it would be nice to have the Nano boards
> booting again.
>
> thanks!
>
> adam
>
> > Thanks!
> >
> > Stefano,
> >
> > If you want me to squash the 1 dependent patch, I can squash it into
> > this series and submit a V2, but getting this series applied should
> > fix a bunch of boards which don't boot properly.

Stefano,

Gentle nudge on this series.  I posted it back in July and several
people have responded with positive feedback.  Do you think it can be
merged?

thanks,

adam

> >
> > adam

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot
  2022-10-21 12:10       ` Adam Ford
@ 2022-10-21 12:13         ` Michael Nazzareno Trimarchi
  2022-10-21 12:27         ` Stefano Babic
  1 sibling, 0 replies; 20+ messages in thread
From: Michael Nazzareno Trimarchi @ 2022-10-21 12:13 UTC (permalink / raw)
  To: Adam Ford
  Cc: Fabio Estevam, Stefano Babic, U-Boot Mailing List, Adam Ford-BE,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Tim Harvey,
	Tom Rini

Hi

On Fri, Oct 21, 2022 at 2:10 PM Adam Ford <aford173@gmail.com> wrote:
>
> On Sun, Sep 11, 2022 at 11:36 AM Adam Ford <aford173@gmail.com> wrote:
> >
> > On Mon, Aug 15, 2022 at 6:43 AM Adam Ford <aford173@gmail.com> wrote:
> > >
> > > On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam <festevam@gmail.com> wrote:
> > > >
> > > > Hi Adam,
> > > >
> > > > On Sun, Jul 31, 2022 at 8:46 PM Adam Ford <aford173@gmail.com> wrote:
> > > > >
> > > > > Every imx8mn board has a bunch of similar entries on their
> > > > > respective board-u-boot.dtsi file to make the board bootable.
> > > > > Instead of maintaining multiple files with duplicate code,
> > > > > have them all point to a new, common file.  This file includes
> > > > > the necessary nodes that were common to nearly all boards
> > > > > and added spba1 to help faciliate SPL_DM_SERIAL.  This also
> > > > > adds support for CONFIG_FSPI_CONF_HEADER which can be used
> > > > > to generate flash.bin files for booting from FlexSPI.
> > > > >
> > > > > Adam Ford (7):
> > > > >   arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
> > > > >   arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot
> > > > >   arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot
> > > > >   arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot
> > > > >   arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot
> > > > >   arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot
> > > > >   arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot
> > > >
> > > > For the series:
> > > >
> > > > Reviewed-by: Fabio Estevam <festevam@denx.de>
> > >
> >
> > Stefano,
> >
> > It's been over a month, and I haven't heard any feedback from you and
> > it doesn't appear this series has been accepted.  Without it, Nano
> > boards with DM_SERIAL in SPL won't' boot because of the device tree
> > change which moved the UART's into a subnode.  Are you able to apply
> > to this series?  As I mentioned before, I can squash the dependent
> > patch into this series and push a V2 if you want.  With a pending
> > release in a few weeks, it would be nice to have the Nano boards
> > booting again.
> >
> > thanks!
> >
> > adam
> >
> > > Thanks!
> > >
> > > Stefano,
> > >
> > > If you want me to squash the 1 dependent patch, I can squash it into
> > > this series and submit a V2, but getting this series applied should
> > > fix a bunch of boards which don't boot properly.
>
> Stefano,
>
> Gentle nudge on this series.  I posted it back in July and several
> people have responded with positive feedback.  Do you think it can be
> merged?
>

It should. Can they need to be rebased?

Michael

> thanks,
>
> adam
>
> > >
> > > adam



-- 
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael@amarulasolutions.com
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info@amarulasolutions.com
www.amarulasolutions.com

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot
  2022-10-21 12:10       ` Adam Ford
  2022-10-21 12:13         ` Michael Nazzareno Trimarchi
@ 2022-10-21 12:27         ` Stefano Babic
  2022-10-21 12:28           ` Adam Ford
  1 sibling, 1 reply; 20+ messages in thread
From: Stefano Babic @ 2022-10-21 12:27 UTC (permalink / raw)
  To: Adam Ford, Fabio Estevam, Stefano Babic
  Cc: U-Boot Mailing List, Adam Ford-BE, NXP i.MX U-Boot Team,
	Ariel D'Alessandro, Michael Trimarchi, Tim Harvey, Tom Rini

Hi Adam,

On 21.10.22 14:10, Adam Ford wrote:
> On Sun, Sep 11, 2022 at 11:36 AM Adam Ford <aford173@gmail.com> wrote:
>>
>> On Mon, Aug 15, 2022 at 6:43 AM Adam Ford <aford173@gmail.com> wrote:
>>>
>>> On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam <festevam@gmail.com> wrote:
>>>>
>>>> Hi Adam,
>>>>
>>>> On Sun, Jul 31, 2022 at 8:46 PM Adam Ford <aford173@gmail.com> wrote:
>>>>>
>>>>> Every imx8mn board has a bunch of similar entries on their
>>>>> respective board-u-boot.dtsi file to make the board bootable.
>>>>> Instead of maintaining multiple files with duplicate code,
>>>>> have them all point to a new, common file.  This file includes
>>>>> the necessary nodes that were common to nearly all boards
>>>>> and added spba1 to help faciliate SPL_DM_SERIAL.  This also
>>>>> adds support for CONFIG_FSPI_CONF_HEADER which can be used
>>>>> to generate flash.bin files for booting from FlexSPI.
>>>>>
>>>>> Adam Ford (7):
>>>>>    arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
>>>>>    arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot
>>>>>    arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot
>>>>>    arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot
>>>>>    arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot
>>>>>    arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot
>>>>>    arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot
>>>>
>>>> For the series:
>>>>
>>>> Reviewed-by: Fabio Estevam <festevam@denx.de>
>>>
>>
>> Stefano,
>>
>> It's been over a month, and I haven't heard any feedback from you and
>> it doesn't appear this series has been accepted.  Without it, Nano
>> boards with DM_SERIAL in SPL won't' boot because of the device tree
>> change which moved the UART's into a subnode.  Are you able to apply
>> to this series?  As I mentioned before, I can squash the dependent
>> patch into this series and push a V2 if you want.  With a pending
>> release in a few weeks, it would be nice to have the Nano boards
>> booting again.
>>
>> thanks!
>>
>> adam
>>
>>> Thanks!
>>>
>>> Stefano,
>>>
>>> If you want me to squash the 1 dependent patch, I can squash it into
>>> this series and submit a V2, but getting this series applied should
>>> fix a bunch of boards which don't boot properly.
> 
> Stefano,
> 
> Gentle nudge on this series.  I posted it back in July and several
> people have responded with positive feedback.  Do you think it can be
> merged?
> 

I have applied a second bunch of patches, this will be in the third one. 
However, I have fixed a couple of small things during first merge. I 
cannot apply them clean, can you check and rebase on top of u-boot-imx ? 
Thanks !

Stefano

> thanks,
> 
> adam
> 
>>>
>>> adam

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot
  2022-10-21 12:27         ` Stefano Babic
@ 2022-10-21 12:28           ` Adam Ford
  2022-10-24 10:30             ` Stefano Babic
  0 siblings, 1 reply; 20+ messages in thread
From: Adam Ford @ 2022-10-21 12:28 UTC (permalink / raw)
  To: Stefano Babic
  Cc: Fabio Estevam, U-Boot Mailing List, Adam Ford-BE,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey, Tom Rini

On Fri, Oct 21, 2022 at 7:27 AM Stefano Babic <sbabic@denx.de> wrote:
>
> Hi Adam,
>
> On 21.10.22 14:10, Adam Ford wrote:
> > On Sun, Sep 11, 2022 at 11:36 AM Adam Ford <aford173@gmail.com> wrote:
> >>
> >> On Mon, Aug 15, 2022 at 6:43 AM Adam Ford <aford173@gmail.com> wrote:
> >>>
> >>> On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam <festevam@gmail.com> wrote:
> >>>>
> >>>> Hi Adam,
> >>>>
> >>>> On Sun, Jul 31, 2022 at 8:46 PM Adam Ford <aford173@gmail.com> wrote:
> >>>>>
> >>>>> Every imx8mn board has a bunch of similar entries on their
> >>>>> respective board-u-boot.dtsi file to make the board bootable.
> >>>>> Instead of maintaining multiple files with duplicate code,
> >>>>> have them all point to a new, common file.  This file includes
> >>>>> the necessary nodes that were common to nearly all boards
> >>>>> and added spba1 to help faciliate SPL_DM_SERIAL.  This also
> >>>>> adds support for CONFIG_FSPI_CONF_HEADER which can be used
> >>>>> to generate flash.bin files for booting from FlexSPI.
> >>>>>
> >>>>> Adam Ford (7):
> >>>>>    arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
> >>>>>    arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot
> >>>>>    arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot
> >>>>>    arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot
> >>>>>    arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot
> >>>>>    arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot
> >>>>>    arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot
> >>>>
> >>>> For the series:
> >>>>
> >>>> Reviewed-by: Fabio Estevam <festevam@denx.de>
> >>>
> >>
> >> Stefano,
> >>
> >> It's been over a month, and I haven't heard any feedback from you and
> >> it doesn't appear this series has been accepted.  Without it, Nano
> >> boards with DM_SERIAL in SPL won't' boot because of the device tree
> >> change which moved the UART's into a subnode.  Are you able to apply
> >> to this series?  As I mentioned before, I can squash the dependent
> >> patch into this series and push a V2 if you want.  With a pending
> >> release in a few weeks, it would be nice to have the Nano boards
> >> booting again.
> >>
> >> thanks!
> >>
> >> adam
> >>
> >>> Thanks!
> >>>
> >>> Stefano,
> >>>
> >>> If you want me to squash the 1 dependent patch, I can squash it into
> >>> this series and submit a V2, but getting this series applied should
> >>> fix a bunch of boards which don't boot properly.
> >
> > Stefano,
> >
> > Gentle nudge on this series.  I posted it back in July and several
> > people have responded with positive feedback.  Do you think it can be
> > merged?
> >
>
> I have applied a second bunch of patches, this will be in the third one.
> However, I have fixed a couple of small things during first merge. I
> cannot apply them clean, can you check and rebase on top of u-boot-imx ?
> Thanks !

Yes, I'll send out a V2 rebased this afternoon

adam
>
> Stefano
>
> > thanks,
> >
> > adam
> >
> >>>
> >>> adam
>
> --
> =====================================================================
> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany
> Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
> =====================================================================
>

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot
  2022-10-21 12:28           ` Adam Ford
@ 2022-10-24 10:30             ` Stefano Babic
  0 siblings, 0 replies; 20+ messages in thread
From: Stefano Babic @ 2022-10-24 10:30 UTC (permalink / raw)
  To: Adam Ford, Stefano Babic
  Cc: Fabio Estevam, U-Boot Mailing List, Adam Ford-BE,
	NXP i.MX U-Boot Team, Ariel D'Alessandro, Michael Trimarchi,
	Tim Harvey, Tom Rini

On 21.10.22 14:28, Adam Ford wrote:
> On Fri, Oct 21, 2022 at 7:27 AM Stefano Babic <sbabic@denx.de> wrote:
>>
>> Hi Adam,
>>
>> On 21.10.22 14:10, Adam Ford wrote:
>>> On Sun, Sep 11, 2022 at 11:36 AM Adam Ford <aford173@gmail.com> wrote:
>>>>
>>>> On Mon, Aug 15, 2022 at 6:43 AM Adam Ford <aford173@gmail.com> wrote:
>>>>>
>>>>> On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam <festevam@gmail.com> wrote:
>>>>>>
>>>>>> Hi Adam,
>>>>>>
>>>>>> On Sun, Jul 31, 2022 at 8:46 PM Adam Ford <aford173@gmail.com> wrote:
>>>>>>>
>>>>>>> Every imx8mn board has a bunch of similar entries on their
>>>>>>> respective board-u-boot.dtsi file to make the board bootable.
>>>>>>> Instead of maintaining multiple files with duplicate code,
>>>>>>> have them all point to a new, common file.  This file includes
>>>>>>> the necessary nodes that were common to nearly all boards
>>>>>>> and added spba1 to help faciliate SPL_DM_SERIAL.  This also
>>>>>>> adds support for CONFIG_FSPI_CONF_HEADER which can be used
>>>>>>> to generate flash.bin files for booting from FlexSPI.
>>>>>>>
>>>>>>> Adam Ford (7):
>>>>>>>     arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi
>>>>>>>     arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot
>>>>>>>     arm: dts: imx8mn-bsh-smm-s2: Consolidate with imx8mn-u-boot
>>>>>>>     arm: dts: imx8mn-ddr4-evk: Consolidate with imx8mn-u-boot
>>>>>>>     arm: dts: imx8mn-evk: Consolidate with imx8mn-u-boot
>>>>>>>     arm: dts: imx8mn-var-som-symphony: Consolidate with imx8mn-u-boot
>>>>>>>     arm: dts: imx8mn-venice: Consolidate with imx8mn-u-boot
>>>>>>
>>>>>> For the series:
>>>>>>
>>>>>> Reviewed-by: Fabio Estevam <festevam@denx.de>
>>>>>
>>>>
>>>> Stefano,
>>>>
>>>> It's been over a month, and I haven't heard any feedback from you and
>>>> it doesn't appear this series has been accepted.  Without it, Nano
>>>> boards with DM_SERIAL in SPL won't' boot because of the device tree
>>>> change which moved the UART's into a subnode.  Are you able to apply
>>>> to this series?  As I mentioned before, I can squash the dependent
>>>> patch into this series and push a V2 if you want.  With a pending
>>>> release in a few weeks, it would be nice to have the Nano boards
>>>> booting again.
>>>>
>>>> thanks!
>>>>
>>>> adam
>>>>
>>>>> Thanks!
>>>>>
>>>>> Stefano,
>>>>>
>>>>> If you want me to squash the 1 dependent patch, I can squash it into
>>>>> this series and submit a V2, but getting this series applied should
>>>>> fix a bunch of boards which don't boot properly.
>>>
>>> Stefano,
>>>
>>> Gentle nudge on this series.  I posted it back in July and several
>>> people have responded with positive feedback.  Do you think it can be
>>> merged?
>>>
>>
>> I have applied a second bunch of patches, this will be in the third one.
>> However, I have fixed a couple of small things during first merge. I
>> cannot apply them clean, can you check and rebase on top of u-boot-imx ?
>> Thanks !
> 
> Yes, I'll send out a V2 rebased this afternoon

Thanks, CI is testing.

Stefano

> 
> adam
>>
>> Stefano
>>
>>> thanks,
>>>
>>> adam
>>>
>>>>>
>>>>> adam
>>
>> --
>> =====================================================================
>> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
>> HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany
>> Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
>> =====================================================================
>>

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-10-24 10:30 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-31 23:45 [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Adam Ford
2022-07-31 23:45 ` [PATCH 1/7] arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi Adam Ford
2022-08-14 16:32   ` Adam Ford
2022-10-04  2:01     ` Fabio Estevam
2022-10-04  6:40       ` Michael Nazzareno Trimarchi
2022-07-31 23:45 ` [PATCH 2/7] arm: dts: imx8mn-beacon-kit: Consolidate with imx8mn-u-boot Adam Ford
2022-07-31 23:45 ` [PATCH 3/7] arm: dts: imx8mn-bsh-smm-s2: " Adam Ford
2022-07-31 23:45 ` [PATCH 4/7] arm: dts: imx8mn-ddr4-evk: " Adam Ford
2022-07-31 23:45 ` [PATCH 5/7] arm: dts: imx8mn-evk: " Adam Ford
2022-07-31 23:45 ` [PATCH 6/7] arm: dts: imx8mn-var-som-symphony: " Adam Ford
2022-07-31 23:45 ` [PATCH 7/7] arm: dts: imx8mn-venice: " Adam Ford
2022-08-04 17:15 ` [PATCH 0/7] arm: dts: Create common imx8mn-u-boot Tim Harvey
2022-08-14 22:56 ` Fabio Estevam
2022-08-15 11:43   ` Adam Ford
2022-09-11 16:36     ` Adam Ford
2022-10-21 12:10       ` Adam Ford
2022-10-21 12:13         ` Michael Nazzareno Trimarchi
2022-10-21 12:27         ` Stefano Babic
2022-10-21 12:28           ` Adam Ford
2022-10-24 10:30             ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).