Skip to contentSkip to conversation

Updates for omap3-evm

PATCH In review Derald D. Woods 2 participants 10 messages May 16, 2022 – Jun 10, 2022

lore
Share & tools
lore
#0 lore raw

cover Updates for omap3-evm

This patch set brings omap3-evm inline with similar boards and improves the ability to boot a 'fitImage' using DEFAULT_FIT_TI_ARGS.

Derald D. Woods (3):
ARM: omap3: evm: Power on MMC when setting up PMIC
ARM: omap3: evm: Complete DM_I2C migration
ARM: omap3: evm: Fix 'fitImage' booting

 board/ti/evm/evm.c          |  8 +-------
 configs/omap3_evm_defconfig | 11 +++++++----
 2 files changed, 8 insertions(+), 11 deletions(-)
Signature · 1 line
2.36.1
#1 lore raw

PATCH 1/3 ARM: omap3: evm: Power on MMC when setting up PMIC

This commit copies the related code changes from the BeagleBoard.

Reference:
- https://source.denx.de/u-boot/u-boot/-/commit/848cfe098f59c47a2542385513fb554430b874d6

---
 board/ti/evm/evm.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
board/ti/evm/evm.c +1 -7
index 96434b3ba0..39b5c706a9 100644
@@ -159,6 +159,7 @@ void get_board_mem_timings(struct board_sdrc_timings *timings)
 int misc_init_r(void)
 {
 	twl4030_power_init();
+	twl4030_power_mmc_init(0);
 
 #if defined(CONFIG_SMC911X)
 	setup_net_chip();
@@ -247,10 +248,3 @@ static void reset_net_chip(void)
 	gpio_set_value(rst_gpio, 1);
 }
 #endif /* CONFIG_SMC911X */
-
-#if defined(CONFIG_MMC)
-void board_mmc_power_init(void)
-{
-	twl4030_power_mmc_init(0);
-}
-#endif /* CONFIG_MMC */
Signature · 1 line
2.36.1
#3 lore raw

PATCH 2/3 ARM: omap3: evm: Complete DM_I2C migration

In reply to Derald D. Woods

This commits enables DM_I2C and sets the default bus to 0.

---
 configs/omap3_evm_defconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configs/omap3_evm_defconfig +2 -2
index d451e201c7..2d8e627171 100644
@@ -56,8 +56,8 @@ CONFIG_SPL_OF_TRANSLATE=y
 CONFIG_USB_FUNCTION_FASTBOOT=y
 CONFIG_FASTBOOT_BUF_ADDR=0x82000000
 CONFIG_GPIO_HOG=y
-CONFIG_SYS_I2C_LEGACY=y
-CONFIG_SPL_SYS_I2C_LEGACY=y
+CONFIG_DM_I2C=y
+CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
Signature · 1 line
2.36.1
#5 lore raw

PATCH 3/3 ARM: omap3: evm: Fix 'fitImage' booting

In reply to Derald D. Woods

This commit sets two additional variables in the default BOOTCOMMAND. Adding 'boot=mmc' and 'addr_fit=0x8b000000' removes the need for a special 'uEnv.txt' to be created. The 'addr_fit' variable is the key piece here. It is normally defined as 0x90000000, in the macro DEFAULT_FIT_TI_ARGS. For this OMAP34XX board, 0x8b000000 works without touching other varibles. This was tested with a 'fitImage' created using the following FIT source:

----------------------------------------------------------------------
/dts-v1/;

/ {
	description = "Simple image with single Linux kernel and FDT blob";
	#address-cells = <1>;

	images {
		kernel {
			description = "Linux kernel: omap2plus";
			data = /incbin/("./zImage");
			type = "kernel";
			arch = "arm";
			os = "linux";
			compression = "none";
			load = <0x80008000>;
			entry = <0x80008000>;
			hash-1 {
				algo = "sha256";
			};
		};
		fdt-omap3-evm.dtb {
			description = "FDT: omap3-evm.dtb";
			data = /incbin/("./omap3-evm.dtb");
			type = "flat_dt";
			arch = "arm";
			compression = "none";
			load = <0x8ff00000>;
			hash-1 {
				algo = "sha256";
			};
		};
	};

	configurations {
		default = "conf-omap3-evm.dtb";
		conf-omap3-evm.dtb {
			description = "Boot Linux kernel with FDT blob";
			kernel = "kernel";
			fdt = "fdt-omap3-evm.dtb";
		};
	};
};

----------------------------------------------------------------------

Additionally, the default environment is now stored in "uboot.env" on the FAT partition of MMC '0'.

Fixes 11e2ab3f0b ("ARM: omap3: evm: Enable booting 'fitImage' with DEFAULT_FIT_TI_ARGS")
---
 configs/omap3_evm_defconfig | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
configs/omap3_evm_defconfig +5 -2
index 2d8e627171..e2e29e2eb6 100644
@@ -10,7 +10,7 @@ CONFIG_TARGET_OMAP3_EVM=y
 CONFIG_SPL_SYS_MALLOC_F_LEN=0x400
 CONFIG_SPL=y
 CONFIG_DISTRO_DEFAULTS=y
-CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run envboot; run distro_bootcmd"
+CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then setenv boot mmc; setenv addr_fit 0x8b000000; run update_to_fit; run mmcboot; fi; run envboot; run distro_bootcmd"
 CONFIG_USE_PREBOOT=y
 CONFIG_DEFAULT_FDT_FILE="omap3-evm.dtb"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
@@ -48,7 +48,10 @@ CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_SPL_REMOVE_PROPS="clocks clock-names interrupt-parent"
 CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_NAND=y
+CONFIG_ENV_IS_IN_FAT=y
+CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_SPL_DM=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
Signature · 1 line
2.36.1
#7 lore raw
In reply to Derald D. Woods
Quoted 8 lines · Derald D. Woods

This patch set brings omap3-evm inline with similar boards and improves the ability to boot a 'fitImage' using DEFAULT_FIT_TI_ARGS.

Derald D. Woods (3):
ARM: omap3: evm: Power on MMC when setting up PMIC
ARM: omap3: evm: Complete DM_I2C migration
ARM: omap3: evm: Fix 'fitImage' booting

Quoted 8 lines
 board/ti/evm/evm.c          |  8 +-------
 configs/omap3_evm_defconfig | 11 +++++++----
 2 files changed, 8 insertions(+), 11 deletions(-)

--
2.36.1

Ping.

#8 lore raw
Quoted 11 lines · Derald Woods
Quoted 8 lines · Derald D. Woods

This patch set brings omap3-evm inline with similar boards and improves the ability to boot a 'fitImage' using DEFAULT_FIT_TI_ARGS.

Derald D. Woods (3):
ARM: omap3: evm: Power on MMC when setting up PMIC
ARM: omap3: evm: Complete DM_I2C migration
ARM: omap3: evm: Fix 'fitImage' booting

Quoted 5 lines
Quoted 3 lines
 board/ti/evm/evm.c          |  8 +-------
 configs/omap3_evm_defconfig | 11 +++++++----
 2 files changed, 8 insertions(+), 11 deletions(-)

Ping.

Now that -next is open, I'll pick these up soon. Unless they need to
be in v2022.07? Thanks!

Signature · 1 line
Tom
#9 lore raw
Quoted 17 lines · Tom Rini
Quoted 1 line · Derald Woods

On Sun, May 15, 2022 at 10:25 PM Derald D. Woods <

[email protected]>

Quoted 14 lines
Quoted 11 lines · wrote:

This patch set brings omap3-evm inline with similar boards and improves the ability to boot a 'fitImage' using DEFAULT_FIT_TI_ARGS.

Derald D. Woods (3):
ARM: omap3: evm: Power on MMC when setting up PMIC
ARM: omap3: evm: Complete DM_I2C migration
ARM: omap3: evm: Fix 'fitImage' booting

 board/ti/evm/evm.c          |  8 +-------
 configs/omap3_evm_defconfig | 11 +++++++----
 2 files changed, 8 insertions(+), 11 deletions(-)
Quoted 8 lines
Quoted 1 line

Ping.

Now that -next is open, I'll pick these up soon. Unless they need to
be in v2022.07? Thanks!

--
Tom

That's fine. Thanks for the update.
Derald

#6 lore raw

Re: [PATCH 3/3] ARM: omap3: evm: Fix 'fitImage' booting

In reply to Derald D. Woods
Quoted 8 lines · Derald D. Woods

This commit sets two additional variables in the default BOOTCOMMAND. Adding 'boot=mmc' and 'addr_fit=0x8b000000' removes the need for a special 'uEnv.txt' to be created. The 'addr_fit' variable is the key piece here. It is normally defined as 0x90000000, in the macro DEFAULT_FIT_TI_ARGS. For this OMAP34XX board, 0x8b000000 works without touching other varibles. This was tested with a 'fitImage' created using the following FIT source:

Applied to u-boot/next, thanks!

Signature · 1 line
Tom