[PATCH V4 7/8] board: ti: am62x: Add am62x_beagleplay_* defconfigs and env file

Nishanth Menon nm at ti.com
Tue Aug 22 20:41:34 CEST 2023

Add defconfig fragments for am625 based beagleplay and corresponding
customized environment file for beagleplay.

Signed-off-by: Nishanth Menon <nm at ti.com>
* new env file to override boot targets, led sequence etc.
* config files updates for GPIO, I2C etc for A53.
* Speed up of A53 mmc support.

V3: https://lore.kernel.org/all/20230815164440.2713726-4-nm@ti.com/
V2: https://lore.kernel.org/u-boot/20230727234446.3651836-4-nm@ti.com/
V1: https://lore.kernel.org/all/20230725185253.2123433-6-nm@ti.com/
 board/ti/am62x/beagleplay.env        | 23 ++++++++++++
 board/ti/am62x/beagleplay_a53.config | 55 ++++++++++++++++++++++++++++
 board/ti/am62x/beagleplay_r5.config  | 15 ++++++++
 3 files changed, 93 insertions(+)
 create mode 100644 board/ti/am62x/beagleplay.env
 create mode 100644 board/ti/am62x/beagleplay_a53.config
 create mode 100644 board/ti/am62x/beagleplay_r5.config

diff --git a/board/ti/am62x/beagleplay.env b/board/ti/am62x/beagleplay.env
new file mode 100644
index 000000000000..8f39fb214333
--- /dev/null
+++ b/board/ti/am62x/beagleplay.env
@@ -0,0 +1,23 @@
+#include <env/ti/ti_armv7_common.env>
+#include <env/ti/mmc.env>
+	setenv name_fdt ${default_device_tree};
+	setenv fdtfile ${name_fdt}
+args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
+	${mtdparts}
+run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
+set_led_state_fail_load= led led-0 off; led led-1 on;
+	led led-2 off; led led-3 on; led led-4 off
+set_led_state_start_load=led led-0 on; led led-1 off;
+	led led-2 on; led led-3 off; led led-4 on
+boot_targets=mmc1 mmc0 usb pxe
+bootmeths=extlinux efi
diff --git a/board/ti/am62x/beagleplay_a53.config b/board/ti/am62x/beagleplay_a53.config
new file mode 100644
index 000000000000..967f794446dd
--- /dev/null
+++ b/board/ti/am62x/beagleplay_a53.config
@@ -0,0 +1,55 @@
+# Defconfig fragment to apply on top of am62x_evm_a53_defconfig
+CONFIG_BOOTCOMMAND="run set_led_state_start_load;run findfdt; run envboot; run distro_bootcmd;run set_led_state_fail_load"
+CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
+# Use the Beagleplay env file
+# Do not use emmc boot - we will use FS only
+# CONFIG_SPL_MMC_HS200_SUPPORT is not set
+# Enable GPIO control
+# Enable LEDs
+# Enable I2C bus
+# Regulator
+# Uses Realtek phy rather than TI phy
+# No SPI flash on Beagleplay
diff --git a/board/ti/am62x/beagleplay_r5.config b/board/ti/am62x/beagleplay_r5.config
new file mode 100644
index 000000000000..4ee0375a2a1d
--- /dev/null
+++ b/board/ti/am62x/beagleplay_r5.config
@@ -0,0 +1,15 @@
+# Defconfig fragment to apply on top of:
+# am62x_evm_r5_defconfig
+# Do spl board init
+# Do not use emmc boot - we will use FS only
+# No SPI flash on Beagleplay

More information about the U-Boot mailing list