Re: [dunfell][PATCH] machine: Add j721s2 evm configuration


Nishanth Menon
 

On 12:24-20220124, Denys Dmytriyenko wrote:
On Mon, Jan 24, 2022 at 09:14:13AM -0600, Ryan Eatmon via lists.yoctoproject.org wrote:
From: Nishanth Menon <nm@...>
Needs a commit message please.

Signed-off-by: Nishanth Menon <nm@...>
Signed-off-by: Ryan Eatmon <reatmon@...>
---
conf/machine/j721s2-evm-k3r5.conf | 11 +++++++++++
conf/machine/j721s2-evm.conf | 22 ++++++++++++++++++++++
recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 23 +++++++++++++++++++++--
recipes-bsp/u-boot/u-boot-ti.inc | 6 ++++++
4 files changed, 60 insertions(+), 2 deletions(-)
create mode 100644 conf/machine/j721s2-evm-k3r5.conf
create mode 100644 conf/machine/j721s2-evm.conf

diff --git a/conf/machine/j721s2-evm-k3r5.conf b/conf/machine/j721s2-evm-k3r5.conf
new file mode 100644
index 00000000..508e96e5
--- /dev/null
+++ b/conf/machine/j721s2-evm-k3r5.conf
@@ -0,0 +1,11 @@
+#@TYPE: Machine
+#@NAME: J721S2 EVM (R5F)
+#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
+
+require conf/machine/include/k3r5.inc
+
+SYSFW_SOC = "j721s2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "gp"
+
+UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
diff --git a/conf/machine/j721s2-evm.conf b/conf/machine/j721s2-evm.conf
new file mode 100644
index 00000000..82fd33da
--- /dev/null
+++ b/conf/machine/j721s2-evm.conf
@@ -0,0 +1,22 @@
+#@TYPE: Machine
+#@NAME: J721S2 EVM
+#@DESCRIPTION: Machine configuration for the TI J721S2 EVM
+
+require conf/machine/include/j7.inc
+
+SERIAL_CONSOLES = "115200;ttyS10"

See https://lore.kernel.org/all/20211223121650.26868-3-vigneshr@ti.com/

The intent is to go with ttyS2 using aliases, however, will use
main_usart8 (traditionally ttyS10).


+SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"

+TFA_K3_USART = "0x8"
+OPTEE_K3_USART = "0x8"
Are these new variables? Where are they coming from?
Correct, there are patches before this that needs to be included as well.

A single patch does'nt suffice the needs to j721s2.

https://gist.github.com/nmenon/5e0d1125bb71f1575123ec9869f8693c are
probably the preceding patches - they need to be reviewed to make sure
this is the correct way to do things.

--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D

Join meta-ti@lists.yoctoproject.org to automatically receive all group messages.