Skip to contentSkip to conversation

conf: machine: j721s2-evm: Add support for J721S2 HS-FS

RFC PATCH In review Sinthu Raja 2 participants 3 messages Jan 25, 2023

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 conf: machine: j721s2-evm: Add support for J721S2 HS-FS

From: Sinthu Raja <[email protected]>

Add the basic J721S2 HS-FS configuration.
- Add configurations to support both HS-FS and GP.
- Add ti-sci-firmware overrides.

---
 conf/machine/j721s2-evm-k3r5-gp.conf        | 20 ++++++++++++++++++++
 conf/machine/j721s2-evm-k3r5-sr1-hs-fs.conf | 15 +++++++++++++++
 conf/machine/j721s2-evm.conf                | 12 ++++++++++++
 conf/multiconfig/k3r5-sr1-hs-fs.conf        |  3 +++
 conf/multiconfig/k3r5-sr1.conf              |  3 +++
 recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb      |  3 ++-
 6 files changed, 55 insertions(+), 1 deletion(-)
 create mode 100644 conf/machine/j721s2-evm-k3r5-gp.conf
 create mode 100644 conf/machine/j721s2-evm-k3r5-sr1-hs-fs.conf
 create mode 100644 conf/multiconfig/k3r5-sr1-hs-fs.conf
 create mode 100644 conf/multiconfig/k3r5-sr1.conf
conf/machine/j721s2-evm-k3r5-gp.conf new file +20 -0
new file mode 100644
index 00000000..06456ef7
@@ -0,0 +1,20 @@
+#@TYPE: Machine
+#@NAME: J721S2 GP EVM (R5F)
+#@DESCRIPTION: Machine configuration for the TI J721S2 GP EVM (R5F core)
+
+# Booting GP requires different SYSFW, the rest is handled at runtime
+
+require conf/machine/include/k3r5.inc
+SOC_FAMILY_append = ":k3r5-gp"
+
+SYSFW_SOC = "j721s2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "gp"
+SYSFW_TIBOOT3_SYMLINK = "tiboot3.bin"
+
+UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
+
+SPL_BINARY = ""
+UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}"
+UBOOT_IMAGE = "u-boot-r5spl-gp-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
+UBOOT_SYMLINK = "u-boot-r5spl-gp.${UBOOT_SUFFIX}"
conf/machine/j721s2-evm-k3r5-sr1-hs-fs.conf new file +15 -0
new file mode 100644
index 00000000..786338a9
@@ -0,0 +1,15 @@
+#@TYPE: Machine
+#@NAME: J721S2 HS-FS EVM (R5F)
+#@DESCRIPTION: Machine configuration for the TI J721S2 HS-FS EVM (R5F core)
+
+# Booting HS-FS requires different SYSFW, the rest is handled at runtime
+
+require conf/machine/include/k3r5.inc
+SOC_FAMILY_append = ":k3r5-sr1-hs-fs"
+
+SYSFW_SOC = "j721s2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs-fs"
+SYSFW_TIBOOT3_SYMLINK = ""
+
+UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
conf/machine/j721s2-evm.conf +12 -0
index 1ed693c5..bf1c82a1 100644
@@ -25,3 +25,15 @@ UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
 
 do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
 do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
+
+# Since default tiboot3.bin on AM64x is for SR2.0 HS-FS, add a version for GP
+BBMULTICONFIG = "k3r5-sr1-hs-fs"
+IMAGE_BOOT_FILES += " tiboot3-j721s2-hs-fs-evm.bin"
+do_image_wic[mcdepends] = "mc::k3r5-sr1-hs-fs:ti-sci-fw:do_deploy"
+do_image_tar[mcdepends] = "mc::k3r5-sr1-hs-fs:ti-sci-fw:do_deploy"
+
+# Since default tiboot3.bin on AM64x is for SR2.0 HS-FS, add a version for GP
+BBMULTICONFIG += "k3r5-gp"
+IMAGE_BOOT_FILES += " tiboot3-j721s2-gp-evm.bin"
+do_image_wic[mcdepends] += "mc::k3r5-gp:ti-sci-fw:do_deploy"
+do_image_tar[mcdepends] += "mc::k3r5-gp:ti-sci-fw:do_deploy"
conf/multiconfig/k3r5-sr1-hs-fs.conf new file +3 -0
new file mode 100644
index 00000000..2fa28c95
@@ -0,0 +1,3 @@
+require k3r5-sr1.conf
+
+MACHINE_append = "-hs-fs"
conf/multiconfig/k3r5-sr1.conf new file +3 -0
new file mode 100644
index 00000000..2b87de8a
@@ -0,0 +1,3 @@
+require k3r5.conf
+
+MACHINE_append = "-sr1"
recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +2 -1
index 0fb3a832..39e5907f 100644
@@ -33,7 +33,8 @@ SYSFW_PREFIX_j7-hs-evm-k3r5 = "fs"
 SYSFW_PREFIX_j7-hs-evm-k3r5-sr1-1 = "fs"
 SYSFW_PREFIX_j7200-evm-k3r5 = "fs"
 SYSFW_PREFIX_j7200-hs-evm-k3r5 = "fs"
-SYSFW_PREFIX_j721s2-evm-k3r5 = "fs"
+SYSFW_PREFIX_j721s2-evm-k3r5-gp = "fs"
+SYSFW_PREFIX_j721s2-evm-k3r5-sr1-hs-fs = "fs"
 SYSFW_PREFIX_j721s2-hs-evm-k3r5 = "fs"
 SYSFW_PREFIX_j784s4-evm-k3r5 = "fs"
 SYSFW_PREFIX_j784s4-hs-evm-k3r5 = "fs"
Signature · 1 line
2.36.1
#1 lore raw
Quoted 73 lines · Sinthu Raja M via lists.yoctoproject.org

From: Sinthu Raja <[email protected]>

Add the basic J721S2 HS-FS configuration.
- Add configurations to support both HS-FS and GP.
- Add ti-sci-firmware overrides.

---
  conf/machine/j721s2-evm-k3r5-gp.conf        | 20 ++++++++++++++++++++
  conf/machine/j721s2-evm-k3r5-sr1-hs-fs.conf | 15 +++++++++++++++
  conf/machine/j721s2-evm.conf                | 12 ++++++++++++
  conf/multiconfig/k3r5-sr1-hs-fs.conf        |  3 +++
  conf/multiconfig/k3r5-sr1.conf              |  3 +++
  recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb      |  3 ++-
  6 files changed, 55 insertions(+), 1 deletion(-)

create mode 100644 conf/machine/j721s2-evm-k3r5-gp.conf create mode 100644 conf/machine/j721s2-evm-k3r5-sr1-hs-fs.conf create mode 100644 conf/multiconfig/k3r5-sr1-hs-fs.conf create mode 100644 conf/multiconfig/k3r5-sr1.conf

conf/machine/j721s2-evm-k3r5-gp.conf new file +20 -0
new file mode 100644
index 00000000..06456ef7
@@ -0,0 +1,20 @@
+#@TYPE: Machine
+#@NAME: J721S2 GP EVM (R5F)
+#@DESCRIPTION: Machine configuration for the TI J721S2 GP EVM (R5F core)
+
+# Booting GP requires different SYSFW, the rest is handled at runtime
+
+require conf/machine/include/k3r5.inc
+SOC_FAMILY_append = ":k3r5-gp"
+
+SYSFW_SOC = "j721s2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "gp"
+SYSFW_TIBOOT3_SYMLINK = "tiboot3.bin"
+
+UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
+
+SPL_BINARY = ""
+UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}"
+UBOOT_IMAGE = "u-boot-r5spl-gp-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
+UBOOT_SYMLINK = "u-boot-r5spl-gp.${UBOOT_SUFFIX}"
conf/machine/j721s2-evm-k3r5-sr1-hs-fs.conf new file +15 -0
new file mode 100644
index 00000000..786338a9
@@ -0,0 +1,15 @@
+#@TYPE: Machine
+#@NAME: J721S2 HS-FS EVM (R5F)
+#@DESCRIPTION: Machine configuration for the TI J721S2 HS-FS EVM (R5F core)
+
+# Booting HS-FS requires different SYSFW, the rest is handled at runtime
+
+require conf/machine/include/k3r5.inc
+SOC_FAMILY_append = ":k3r5-sr1-hs-fs"
+
+SYSFW_SOC = "j721s2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs-fs"
+SYSFW_TIBOOT3_SYMLINK = ""
+
+UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
conf/machine/j721s2-evm.conf +0 -0
index 1ed693c5..bf1c82a1 100644

conf/machine/j721s2-evm.conf UBOOT_MACHINE = "j721s2_evm_a72_defconfig" · line 29

Quoted 5 lines
conf/machine/j721s2-evm.conf +2 -0
@@ -25,3 +25,15 @@ UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
 
  do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
  do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
+
+# Since default tiboot3.bin on AM64x is for SR2.0 HS-FS, add a version for GP

This comment and the one below are not right, SoC name, version, and HS types are all wrong.

Quoted 16 lines
conf/machine/j721s2-evm.conf +10 -0
+BBMULTICONFIG = "k3r5-sr1-hs-fs"
+IMAGE_BOOT_FILES += " tiboot3-j721s2-hs-fs-evm.bin"
+do_image_wic[mcdepends] = "mc::k3r5-sr1-hs-fs:ti-sci-fw:do_deploy"
+do_image_tar[mcdepends] = "mc::k3r5-sr1-hs-fs:ti-sci-fw:do_deploy"
+
+# Since default tiboot3.bin on AM64x is for SR2.0 HS-FS, add a version for GP
+BBMULTICONFIG += "k3r5-gp"
+IMAGE_BOOT_FILES += " tiboot3-j721s2-gp-evm.bin"
+do_image_wic[mcdepends] += "mc::k3r5-gp:ti-sci-fw:do_deploy"
+do_image_tar[mcdepends] += "mc::k3r5-gp:ti-sci-fw:do_deploy"
conf/multiconfig/k3r5-sr1-hs-fs.conf new file +0 -0
new file mode 100644
index 00000000..2fa28c95

conf/multiconfig/k3r5-sr1-hs-fs.conf line 1

Quoted 1 line
conf/multiconfig/k3r5-sr1-hs-fs.conf new file +1 -0
@@ -0,0 +1,3 @@
+require k3r5-sr1.conf

Why "-sr1", do you expect an SR2 anytime soon?

Andrew

Quoted 36 lines
conf/multiconfig/k3r5-sr1-hs-fs.conf new file +2 -0
+
+MACHINE_append = "-hs-fs"
conf/multiconfig/k3r5-sr1.conf new file +3 -0
new file mode 100644
index 00000000..2b87de8a
@@ -0,0 +1,3 @@
+require k3r5.conf
+
+MACHINE_append = "-sr1"
recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +2 -2
index 0fb3a832..39e5907f 100644
@@ -33,7 +33,8 @@ SYSFW_PREFIX_j7-hs-evm-k3r5 = "fs"
  SYSFW_PREFIX_j7-hs-evm-k3r5-sr1-1 = "fs"
  SYSFW_PREFIX_j7200-evm-k3r5 = "fs"
  SYSFW_PREFIX_j7200-hs-evm-k3r5 = "fs"
-SYSFW_PREFIX_j721s2-evm-k3r5 = "fs"
+SYSFW_PREFIX_j721s2-evm-k3r5-gp = "fs"
+SYSFW_PREFIX_j721s2-evm-k3r5-sr1-hs-fs = "fs"
  SYSFW_PREFIX_j721s2-hs-evm-k3r5 = "fs"
  SYSFW_PREFIX_j784s4-evm-k3r5 = "fs"
  SYSFW_PREFIX_j784s4-hs-evm-k3r5 = "fs"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#15651): https://lists.yoctoproject.org/g/meta-ti/message/15651
Mute This Topic: https://lists.yoctoproject.org/mt/96519981/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

+Goswami, Piyali

Quoted 76 lines · Andrew Davis
Quoted 74 lines · Sinthu Raja M via lists.yoctoproject.org

From: Sinthu Raja <[email protected]>

Add the basic J721S2 HS-FS configuration.
- Add configurations to support both HS-FS and GP.
- Add ti-sci-firmware overrides.

---
  conf/machine/j721s2-evm-k3r5-gp.conf        | 20 ++++++++++++++++++++
  conf/machine/j721s2-evm-k3r5-sr1-hs-fs.conf | 15 +++++++++++++++
  conf/machine/j721s2-evm.conf                | 12 ++++++++++++
  conf/multiconfig/k3r5-sr1-hs-fs.conf        |  3 +++
  conf/multiconfig/k3r5-sr1.conf              |  3 +++
  recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb      |  3 ++-
  6 files changed, 55 insertions(+), 1 deletion(-)

create mode 100644 conf/machine/j721s2-evm-k3r5-gp.conf create mode 100644 conf/machine/j721s2-evm-k3r5-sr1-hs-fs.conf create mode 100644 conf/multiconfig/k3r5-sr1-hs-fs.conf create mode 100644 conf/multiconfig/k3r5-sr1.conf

conf/machine/j721s2-evm-k3r5-gp.conf new file +20 -0
new file mode 100644
index 00000000..06456ef7
@@ -0,0 +1,20 @@
+#@TYPE: Machine
+#@NAME: J721S2 GP EVM (R5F)
+#@DESCRIPTION: Machine configuration for the TI J721S2 GP EVM (R5F core)
+
+# Booting GP requires different SYSFW, the rest is handled at runtime
+
+require conf/machine/include/k3r5.inc
+SOC_FAMILY_append = ":k3r5-gp"
+
+SYSFW_SOC = "j721s2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "gp"
+SYSFW_TIBOOT3_SYMLINK = "tiboot3.bin"
+
+UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
+
+SPL_BINARY = ""
+UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}"
+UBOOT_IMAGE = "u-boot-r5spl-gp-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
+UBOOT_SYMLINK = "u-boot-r5spl-gp.${UBOOT_SUFFIX}"
conf/machine/j721s2-evm-k3r5-sr1-hs-fs.conf new file +15 -0
new file mode 100644
index 00000000..786338a9
@@ -0,0 +1,15 @@
+#@TYPE: Machine
+#@NAME: J721S2 HS-FS EVM (R5F)
+#@DESCRIPTION: Machine configuration for the TI J721S2 HS-FS EVM (R5F core)
+
+# Booting HS-FS requires different SYSFW, the rest is handled at runtime
+
+require conf/machine/include/k3r5.inc
+SOC_FAMILY_append = ":k3r5-sr1-hs-fs"
+
+SYSFW_SOC = "j721s2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs-fs"
+SYSFW_TIBOOT3_SYMLINK = ""
+
+UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
conf/machine/j721s2-evm.conf +0 -0
index 1ed693c5..bf1c82a1 100644
@@ -25,3 +25,15 @@ UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
 
Quoted 7 lines

conf/machine/j721s2-evm.conf UBOOT_MACHINE = "j721s2_evm_a72_defconfig" · line 29

Quoted 4 lines
conf/machine/j721s2-evm.conf +2 -0
  do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
  do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
+
+# Since default tiboot3.bin on AM64x is for SR2.0 HS-FS, add a version for GP

This comment and the one below are not right, SoC name, version, and HS types are all wrong.

My Bad! Will update this.

Quoted 12 lines
Quoted 12 lines
conf/machine/j721s2-evm.conf +10 -0
+BBMULTICONFIG = "k3r5-sr1-hs-fs"
+IMAGE_BOOT_FILES += " tiboot3-j721s2-hs-fs-evm.bin"
+do_image_wic[mcdepends] = "mc::k3r5-sr1-hs-fs:ti-sci-fw:do_deploy"
+do_image_tar[mcdepends] = "mc::k3r5-sr1-hs-fs:ti-sci-fw:do_deploy"
+
+# Since default tiboot3.bin on AM64x is for SR2.0 HS-FS, add a version for GP
+BBMULTICONFIG += "k3r5-gp"
+IMAGE_BOOT_FILES += " tiboot3-j721s2-gp-evm.bin"
+do_image_wic[mcdepends] += "mc::k3r5-gp:ti-sci-fw:do_deploy"
+do_image_tar[mcdepends] += "mc::k3r5-gp:ti-sci-fw:do_deploy"
conf/multiconfig/k3r5-sr1-hs-fs.conf +0 -0
Quoted 9 lines

conf/multiconfig/k3r5-sr1-hs-fs.conf line 1

Quoted 6 lines

new file mode 100644
index 00000000..2fa28c95

conf/multiconfig/k3r5-sr1-hs-fs.conf new file +1 -0
@@ -0,0 +1,3 @@
+require k3r5-sr1.conf

Why "-sr1", do you expect an SR2 anytime soon?

When discussed with Piyali got to know that there may be another revision. So to avoid naming conventions in the future, we added SR1.

Quoted 38 lines

Andrew

Quoted 36 lines
conf/multiconfig/k3r5-sr1-hs-fs.conf new file +2 -0
+
+MACHINE_append = "-hs-fs"
conf/multiconfig/k3r5-sr1.conf new file +3 -0
new file mode 100644
index 00000000..2b87de8a
@@ -0,0 +1,3 @@
+require k3r5.conf
+
+MACHINE_append = "-sr1"
recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +2 -2
index 0fb3a832..39e5907f 100644
@@ -33,7 +33,8 @@ SYSFW_PREFIX_j7-hs-evm-k3r5 = "fs"
  SYSFW_PREFIX_j7-hs-evm-k3r5-sr1-1 = "fs"
  SYSFW_PREFIX_j7200-evm-k3r5 = "fs"
  SYSFW_PREFIX_j7200-hs-evm-k3r5 = "fs"
-SYSFW_PREFIX_j721s2-evm-k3r5 = "fs"
+SYSFW_PREFIX_j721s2-evm-k3r5-gp = "fs"
+SYSFW_PREFIX_j721s2-evm-k3r5-sr1-hs-fs = "fs"
  SYSFW_PREFIX_j721s2-hs-evm-k3r5 = "fs"
  SYSFW_PREFIX_j784s4-evm-k3r5 = "fs"
  SYSFW_PREFIX_j784s4-hs-evm-k3r5 = "fs"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#15651): https://lists.yoctoproject.org/g/meta-ti/message/15651
Mute This Topic: https://lists.yoctoproject.org/mt/96519981/3619733
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
With Regards
Sinthu Raja