diff mbox series

[scarthgap,6/6] pocketbeagle2: add configs for new PocketBeagle2 platform

Message ID 20250517005450.3648292-6-denis@denix.org
State Under Review
Delegated to: Ryan Eatmon
Headers show
Series [scarthgap,1/6] linux-bb.org: bump to the latest 6.6 | expand

Commit Message

Denys Dmytriyenko May 17, 2025, 12:54 a.m. UTC
From: Denys Dmytriyenko <denys@konsulko.com>

Add configuration files for the new PocketBeagle2 platform.

U-boot support for this platform is still in its own branch.

Adjust U-boot bootcmd, since EFI boot doesn't seem to work.

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 .../conf/machine/pocketbeagle2-k3r5.conf      | 12 ++++++++
 meta-beagle/conf/machine/pocketbeagle2.conf   | 28 +++++++++++++++++++
 .../u-boot/u-boot-bb.org_2025.04.bb           |  9 +++++-
 .../recipes-kernel/linux/linux-bb.org_6.12.bb |  2 +-
 4 files changed, 49 insertions(+), 2 deletions(-)
 create mode 100644 meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
 create mode 100644 meta-beagle/conf/machine/pocketbeagle2.conf
diff mbox series

Patch

diff --git a/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf b/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
new file mode 100644
index 00000000..32e40312
--- /dev/null
+++ b/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf
@@ -0,0 +1,12 @@ 
+#@TYPE: Machine
+#@NAME: PocketBeagle2 (R5F)
+#@DESCRIPTION: Machine configuration for the PocketBeagle2 (R5F core)
+
+require conf/machine/include/k3r5.inc
+require conf/machine/include/beagle-bsp.inc
+
+SYSFW_SOC = "am62x"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs-fs"
+
+UBOOT_MACHINE = "am6232_pocketbeagle2_r5_defconfig"
diff --git a/meta-beagle/conf/machine/pocketbeagle2.conf b/meta-beagle/conf/machine/pocketbeagle2.conf
new file mode 100644
index 00000000..3d9651bd
--- /dev/null
+++ b/meta-beagle/conf/machine/pocketbeagle2.conf
@@ -0,0 +1,28 @@ 
+#@TYPE: Machine
+#@NAME: PocketBeagle2 (A53)
+#@DESCRIPTION: Machine configuration for the PocketBeagle2 board (A53 core)
+
+require conf/machine/include/k3.inc
+require conf/machine/include/mc_k3r5.inc
+
+require conf/machine/include/beagle-bsp.inc
+
+SOC_FAMILY:append = ":am62xx"
+
+SERIAL_CONSOLES = "115200;ttyS2"
+
+TFA_BOARD = "lite"
+TFA_K3_SYSTEM_SUSPEND = "1"
+
+OPTEEMACHINE = "k3-am62x"
+
+UBOOT_MACHINE = "am6232_pocketbeagle2_a53_defconfig"
+
+KERNEL_DEVICETREE_PREFIX = " \
+    ti/k3-am6232 \
+"
+
+KERNEL_DEVICETREE = " \
+    ti/k3-am6232-pocketbeagle2.dtb \
+    ti/k3-am6232-pocketbeagle2-techlab-cape.dtbo \
+"
diff --git a/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
index 9fc4015e..aa825d99 100644
--- a/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
+++ b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.04.bb
@@ -2,7 +2,7 @@  require recipes-bsp/u-boot/u-boot-ti.inc
 
 SUMMARY = "BeagleBoard.org U-Boot"
 
-COMPATIBLE_MACHINE = "beagle.*"
+COMPATIBLE_MACHINE = "pocketbeagle2|beagle.*"
 
 PV = "2025.04"
 
@@ -17,3 +17,10 @@  SRCREV:beagley-ai = "cc376f9faef201670c7bb1734f42f5475c73f85d"
 SRCREV:beagley-ai-k3r5 = "cc376f9faef201670c7bb1734f42f5475c73f85d"
 
 SRC_URI:append:beagley-ai = " file://bootcmd-ti-mmc.cfg"
+
+BRANCH:pocketbeagle2 = "v2025.04-pocketbeagle2"
+BRANCH:pocketbeagle2-k3r5 = "v2025.04-pocketbeagle2"
+SRCREV:pocketbeagle2 = "f7439516453b7728bda496ff6496ef6f1411aae3"
+SRCREV:pocketbeagle2-k3r5 = "f7439516453b7728bda496ff6496ef6f1411aae3"
+
+SRC_URI:append:pocketbeagle2 = " file://bootcmd-ti-mmc.cfg"
diff --git a/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
index 2ef82e0c..bdfd4646 100644
--- a/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
+++ b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb
@@ -6,7 +6,7 @@  SUMMARY = "BeagleBoard.org Linux kernel"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 
-COMPATIBLE_MACHINE = "beagle.*"
+COMPATIBLE_MACHINE = "pocketbeagle2|beagle.*"
 
 inherit kernel