All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-ti][dunfell][PATCH] machine: Add j721s2 evm configuration
@ 2022-01-24 15:14 Ryan Eatmon
  2022-01-24 17:24 ` Denys Dmytriyenko
  0 siblings, 1 reply; 4+ messages in thread
From: Ryan Eatmon @ 2022-01-24 15:14 UTC (permalink / raw)
  To: Yogesh Siraswar, Praneeth Bajjuri, Denys Dmytriyenko, meta-ti

From: Nishanth Menon <nm@ti.com>

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 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"
+SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
+TFA_K3_USART = "0x8"
+OPTEE_K3_USART = "0x8"
+
+KERNEL_DEVICETREE = " \
+    ti/k3-j721s2-common-proc-board.dtb \
+"
+
+UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
+
+# J721S2 supports multi-certificate images, use the same
+IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
+
+do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
+do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
diff --git a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
index 13ae1f6b..d70d664c 100644
--- a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
+++ b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
@@ -3,11 +3,12 @@ require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
 DEPENDS = "openssl-native u-boot-mkimage-native dtc-native"
 DEPENDS_append_j7200-evm-k3r5 = " virtual/bootloader"
 DEPENDS_append_j7200-hs-evm-k3r5 = " virtual/bootloader"
+DEPENDS_append_j721s2-evm-k3r5 = " virtual/bootloader"
 DEPENDS_append_am64xx-evm-k3r5 = " virtual/bootloader"
 DEPENDS_append_am64xx-hs-evm-k3r5 = " virtual/bootloader"
 
 CLEANBROKEN = "1"
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
 # Loaded by R5F core
 COMPATIBLE_MACHINE = "k3r5"
@@ -23,10 +24,11 @@ SYSFW_CONFIG ?= "unknown"
 
 SYSFW_PREFIX = "ti-sci-firmware"
 SYSFW_PREFIX_j7-evm-k3r5 = "ti-fs-firmware"
-SYSFW_PREFIX_j7200-evm-k3r5 = "ti-fs-firmware"
 SYSFW_PREFIX_j7-hs-evm-k3r5 = "ti-fs-firmware"
 SYSFW_PREFIX_j7-hs-evm-k3r5-sr1-1 = "ti-fs-firmware"
+SYSFW_PREFIX_j7200-evm-k3r5 = "ti-fs-firmware"
 SYSFW_PREFIX_j7200-hs-evm-k3r5 = "ti-fs-firmware"
+SYSFW_PREFIX_j721s2-evm-k3r5 = "ti-fs-firmware"
 
 SYSFW_SUFFIX ?= "unknown"
 
@@ -63,6 +65,7 @@ EXTRA_OEMAKE_append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}
 
 EXTRA_OEMAKE_append_j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
 EXTRA_OEMAKE_append_j7200-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
+EXTRA_OEMAKE_append_j721s2-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
 EXTRA_OEMAKE_append_am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
 EXTRA_OEMAKE_append_am64xx-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
 
@@ -127,6 +130,21 @@ do_deploy_j7200-hs-evm-k3r5() {
         install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
 }
 
+do_install_j721s2-evm-k3r5() {
+	install -d ${D}/boot
+	install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE}
+	ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK}
+	ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY}
+}
+
+do_deploy_j721s2-evm-k3r5() {
+	install -d ${DEPLOYDIR}
+	install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE}
+	ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK}
+	ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY}
+	install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
+}
+
 do_install_am64xx-evm-k3r5() {
 	install -d ${D}/boot
 	install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE}
@@ -156,4 +174,5 @@ do_deploy_am64xx-hs-evm-k3r5() {
         ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY}
         install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
 }
+
 addtask deploy before do_build after do_compile
diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc
index f9cbb074..aceabe86 100644
--- a/recipes-bsp/u-boot/u-boot-ti.inc
+++ b/recipes-bsp/u-boot/u-boot-ti.inc
@@ -66,6 +66,7 @@ SPL_UART_BINARY_k3r5 = ""
 SPL_UART_BINARY_lego-ev3 = ""
 SPL_UART_BINARY_j7200-evm-k3r5 = "u-boot-spl.bin"
 SPL_UART_BINARY_j7200-hs-evm-k3r5 = "u-boot-spl.bin"
+SPL_UART_BINARY_j721s2-evm-k3r5 = "u-boot-spl.bin"
 SPL_UART_BINARY_am64xx-evm-k3r5 = "u-boot-spl.bin"
 SPL_UART_BINARY_am64xx-hs-evm-k3r5 = "u-boot-spl.bin"
 
@@ -403,6 +404,11 @@ do_deploy_append_j7200-hs-evm-k3r5 () {
 	mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
 }
 
+do_deploy_append_j721s2-evm-k3r5 () {
+	mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
+	mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
+}
+
 do_deploy_append_am64xx-evm-k3r5 () {
 	mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
 	mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [meta-ti][dunfell][PATCH] machine: Add j721s2 evm configuration
  2022-01-24 15:14 [meta-ti][dunfell][PATCH] machine: Add j721s2 evm configuration Ryan Eatmon
@ 2022-01-24 17:24 ` Denys Dmytriyenko
  2022-01-24 23:47   ` Nishanth Menon
  0 siblings, 1 reply; 4+ messages in thread
From: Denys Dmytriyenko @ 2022-01-24 17:24 UTC (permalink / raw)
  To: reatmon, Nishanth Menon; +Cc: Yogesh Siraswar, Praneeth Bajjuri, meta-ti

On Mon, Jan 24, 2022 at 09:14:13AM -0600, Ryan Eatmon via lists.yoctoproject.org wrote:
> From: Nishanth Menon <nm@ti.com>
> 
> Signed-off-by: Nishanth Menon <nm@ti.com>
> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
> ---
>  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"
> +SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"


> +TFA_K3_USART = "0x8"
> +OPTEE_K3_USART = "0x8"

Are these new variables? Where are they coming from?


> +
> +KERNEL_DEVICETREE = " \
> +    ti/k3-j721s2-common-proc-board.dtb \
> +"
> +
> +UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
> +
> +# J721S2 supports multi-certificate images, use the same
> +IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
> +
> +do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
> +do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
> diff --git a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> index 13ae1f6b..d70d664c 100644
> --- a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> +++ b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> @@ -3,11 +3,12 @@ require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
>  DEPENDS = "openssl-native u-boot-mkimage-native dtc-native"
>  DEPENDS_append_j7200-evm-k3r5 = " virtual/bootloader"
>  DEPENDS_append_j7200-hs-evm-k3r5 = " virtual/bootloader"
> +DEPENDS_append_j721s2-evm-k3r5 = " virtual/bootloader"
>  DEPENDS_append_am64xx-evm-k3r5 = " virtual/bootloader"
>  DEPENDS_append_am64xx-hs-evm-k3r5 = " virtual/bootloader"
>  
>  CLEANBROKEN = "1"
> -PR = "${INC_PR}.1"
> +PR = "${INC_PR}.2"
>  
>  # Loaded by R5F core
>  COMPATIBLE_MACHINE = "k3r5"
> @@ -23,10 +24,11 @@ SYSFW_CONFIG ?= "unknown"
>  
>  SYSFW_PREFIX = "ti-sci-firmware"
>  SYSFW_PREFIX_j7-evm-k3r5 = "ti-fs-firmware"
> -SYSFW_PREFIX_j7200-evm-k3r5 = "ti-fs-firmware"
>  SYSFW_PREFIX_j7-hs-evm-k3r5 = "ti-fs-firmware"
>  SYSFW_PREFIX_j7-hs-evm-k3r5-sr1-1 = "ti-fs-firmware"
> +SYSFW_PREFIX_j7200-evm-k3r5 = "ti-fs-firmware"
>  SYSFW_PREFIX_j7200-hs-evm-k3r5 = "ti-fs-firmware"
> +SYSFW_PREFIX_j721s2-evm-k3r5 = "ti-fs-firmware"
>  
>  SYSFW_SUFFIX ?= "unknown"
>  
> @@ -63,6 +65,7 @@ EXTRA_OEMAKE_append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}
>  
>  EXTRA_OEMAKE_append_j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
>  EXTRA_OEMAKE_append_j7200-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
> +EXTRA_OEMAKE_append_j721s2-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
>  EXTRA_OEMAKE_append_am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
>  EXTRA_OEMAKE_append_am64xx-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
>  
> @@ -127,6 +130,21 @@ do_deploy_j7200-hs-evm-k3r5() {
>          install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
>  }
>  
> +do_install_j721s2-evm-k3r5() {
> +	install -d ${D}/boot
> +	install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE}
> +	ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK}
> +	ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY}
> +}
> +
> +do_deploy_j721s2-evm-k3r5() {
> +	install -d ${DEPLOYDIR}
> +	install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE}
> +	ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK}
> +	ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY}
> +	install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
> +}
> +
>  do_install_am64xx-evm-k3r5() {
>  	install -d ${D}/boot
>  	install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE}
> @@ -156,4 +174,5 @@ do_deploy_am64xx-hs-evm-k3r5() {
>          ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY}
>          install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
>  }
> +
>  addtask deploy before do_build after do_compile
> diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc
> index f9cbb074..aceabe86 100644
> --- a/recipes-bsp/u-boot/u-boot-ti.inc
> +++ b/recipes-bsp/u-boot/u-boot-ti.inc
> @@ -66,6 +66,7 @@ SPL_UART_BINARY_k3r5 = ""
>  SPL_UART_BINARY_lego-ev3 = ""
>  SPL_UART_BINARY_j7200-evm-k3r5 = "u-boot-spl.bin"
>  SPL_UART_BINARY_j7200-hs-evm-k3r5 = "u-boot-spl.bin"
> +SPL_UART_BINARY_j721s2-evm-k3r5 = "u-boot-spl.bin"
>  SPL_UART_BINARY_am64xx-evm-k3r5 = "u-boot-spl.bin"
>  SPL_UART_BINARY_am64xx-hs-evm-k3r5 = "u-boot-spl.bin"
>  
> @@ -403,6 +404,11 @@ do_deploy_append_j7200-hs-evm-k3r5 () {
>  	mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
>  }
>  
> +do_deploy_append_j721s2-evm-k3r5 () {
> +	mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
> +	mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
> +}
> +
>  do_deploy_append_am64xx-evm-k3r5 () {
>  	mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
>  	mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
> -- 
> 2.17.1
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-ti][dunfell][PATCH] machine: Add j721s2 evm configuration
  2022-01-24 17:24 ` Denys Dmytriyenko
@ 2022-01-24 23:47   ` Nishanth Menon
  2022-01-25 14:50     ` Yogesh Siraswar
  0 siblings, 1 reply; 4+ messages in thread
From: Nishanth Menon @ 2022-01-24 23:47 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: reatmon, Yogesh Siraswar, Praneeth Bajjuri, meta-ti

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@ti.com>
> > 

Needs a commit message please.

> > Signed-off-by: Nishanth Menon <nm@ti.com>
> > Signed-off-by: Ryan Eatmon <reatmon@ti.com>
> > ---
> >  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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-ti][dunfell][PATCH] machine: Add j721s2 evm configuration
  2022-01-24 23:47   ` Nishanth Menon
@ 2022-01-25 14:50     ` Yogesh Siraswar
  0 siblings, 0 replies; 4+ messages in thread
From: Yogesh Siraswar @ 2022-01-25 14:50 UTC (permalink / raw)
  To: Nishanth Menon, Denys Dmytriyenko; +Cc: reatmon, Praneeth Bajjuri, meta-ti

This needs to be a series with linux, u-boot, firmware and k3-image-gen 
recipes updated with the platform support. Unless the support is already 
present.

On 1/24/2022 5:47 PM, Nishanth Menon wrote:
> 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@ti.com>
>>>
> 
> Needs a commit message please.
> 
>>> Signed-off-by: Nishanth Menon <nm@ti.com>
>>> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
>>> ---
>>>   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.
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-25 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-24 15:14 [meta-ti][dunfell][PATCH] machine: Add j721s2 evm configuration Ryan Eatmon
2022-01-24 17:24 ` Denys Dmytriyenko
2022-01-24 23:47   ` Nishanth Menon
2022-01-25 14:50     ` Yogesh Siraswar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.