2022-12-30 13:35:08

by Hari Nagalla

[permalink] [raw]
Subject: [PATCH v2 0/2] Add C7xv DSP for AM62A

AM62A SoC family has a C7xv DSP subsystem with Analytics engine. This
susbystem is intended for deep learning purposes. C7xv is similar to C71
DSPs on K3 J7 SoCs with additional harware accelerators and IP updates
for deep learining.

Hari Nagalla (1):
dt-bindings: remoteproc: k3-dsp: update bindings for AM62A SoCs

Jai Luthra (1):
remoteproc: k3-c7x: Add support for C7xv DSP on AM62A SoC

.../bindings/remoteproc/ti,k3-dsp-rproc.yaml | 3 +++
drivers/remoteproc/ti_k3_dsp_remoteproc.c | 12 ++++++++++++
2 files changed, 15 insertions(+)

--
2.17.1


2022-12-30 13:38:50

by Hari Nagalla

[permalink] [raw]
Subject: [PATCH v2 2/2] remoteproc: k3-c7x: Add support for C7xv DSP on AM62A SoC

From: Jai Luthra <[email protected]>

Add support to the K3 DSP remoteproc driver to configure the C7xv
subsystem core on AM62A SoCs. The C7xv susbsytem is based on C71 DSP
with anlytics engine for deep learning purposes. The remoteproc
handling for device management is similar to the C66/C71 DSPs on K3
J7 family SoCs, even though there are additional hardware accelerators
and IP updates to C7xv subsystem.

Signed-off-by: Jai Luthra <[email protected]>
Signed-off-by: Hari Nagalla <[email protected]>
-----
V2: Correct original author and order of Signed-off-by
---
drivers/remoteproc/ti_k3_dsp_remoteproc.c | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/drivers/remoteproc/ti_k3_dsp_remoteproc.c b/drivers/remoteproc/ti_k3_dsp_remoteproc.c
index eb9c64f7b9b4..ec626a37fef6 100644
--- a/drivers/remoteproc/ti_k3_dsp_remoteproc.c
+++ b/drivers/remoteproc/ti_k3_dsp_remoteproc.c
@@ -870,6 +870,10 @@ static const struct k3_dsp_mem_data c71_mems[] = {
{ .name = "l1dram", .dev_addr = 0xe00000 },
};

+static const struct k3_dsp_mem_data c7xv_mems[] = {
+ { .name = "l2sram", .dev_addr = 0x800000 },
+};
+
static const struct k3_dsp_dev_data c66_data = {
.mems = c66_mems,
.num_mems = ARRAY_SIZE(c66_mems),
@@ -884,10 +888,18 @@ static const struct k3_dsp_dev_data c71_data = {
.uses_lreset = false,
};

+static const struct k3_dsp_dev_data c7xv_data = {
+ .mems = c7xv_mems,
+ .num_mems = ARRAY_SIZE(c7xv_mems),
+ .boot_align_addr = SZ_2M,
+ .uses_lreset = false,
+};
+
static const struct of_device_id k3_dsp_of_match[] = {
{ .compatible = "ti,j721e-c66-dsp", .data = &c66_data, },
{ .compatible = "ti,j721e-c71-dsp", .data = &c71_data, },
{ .compatible = "ti,j721s2-c71-dsp", .data = &c71_data, },
+ { .compatible = "ti,am62a-c7xv-dsp", .data = &c7xv_data, },
{ /* sentinel */ },
};
MODULE_DEVICE_TABLE(of, k3_dsp_of_match);
--
2.17.1

2022-12-30 13:51:51

by Hari Nagalla

[permalink] [raw]
Subject: [PATCH v2 1/2] dt-bindings: remoteproc: k3-dsp: update bindings for AM62A SoCs

The TI AM62A SoCs have a C7xv DSP and Analytics engine for deep
learning purposes. The DSP part is similar to the C71x DSP found on
K3 J7 SoCs, but additional hardware accelerators and IP are added to
the subsystem for deep learning.

Compatible info is updated to match AM62A SoCs.

Signed-off-by: Hari Nagalla <[email protected]>
---
V2: Fix indentation and review comments.
---
.../devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml | 3 +++
1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml
index cedbc5efdc56..f16e90380df1 100644
--- a/Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml
@@ -31,10 +31,12 @@ allOf:
properties:
compatible:
enum:
+ - ti,am62a-c7xv-dsp
- ti,j721e-c66-dsp
- ti,j721e-c71-dsp
- ti,j721s2-c71-dsp
description:
+ Use "ti,am62a-c7xv-dsp" for AM62A Deep learning DSPs on K3 AM62A SoCs
Use "ti,j721e-c66-dsp" for C66x DSPs on K3 J721E SoCs
Use "ti,j721e-c71-dsp" for C71x DSPs on K3 J721E SoCs
Use "ti,j721s2-c71-dsp" for C71x DSPs on K3 J721S2 SoCs
@@ -109,6 +111,7 @@ else:
properties:
compatible:
enum:
+ - ti,am62a-c7xv-dsp
- ti,j721e-c71-dsp
- ti,j721s2-c71-dsp
then:
--
2.17.1

2023-01-02 09:43:28

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2 1/2] dt-bindings: remoteproc: k3-dsp: update bindings for AM62A SoCs

On 30/12/2022 14:24, Hari Nagalla wrote:
> The TI AM62A SoCs have a C7xv DSP and Analytics engine for deep
> learning purposes. The DSP part is similar to the C71x DSP found on
> K3 J7 SoCs, but additional hardware accelerators and IP are added to
> the subsystem for deep learning.
>
> Compatible info is updated to match AM62A SoCs.
>


Acked-by: Krzysztof Kozlowski <[email protected]>

Best regards,
Krzysztof

2023-01-13 22:25:40

by Mathieu Poirier

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] Add C7xv DSP for AM62A

On Fri, Dec 30, 2022 at 07:24:51AM -0600, Hari Nagalla wrote:
> AM62A SoC family has a C7xv DSP subsystem with Analytics engine. This
> susbystem is intended for deep learning purposes. C7xv is similar to C71
> DSPs on K3 J7 SoCs with additional harware accelerators and IP updates
> for deep learining.
>
> Hari Nagalla (1):
> dt-bindings: remoteproc: k3-dsp: update bindings for AM62A SoCs
>
> Jai Luthra (1):
> remoteproc: k3-c7x: Add support for C7xv DSP on AM62A SoC
>
> .../bindings/remoteproc/ti,k3-dsp-rproc.yaml | 3 +++
> drivers/remoteproc/ti_k3_dsp_remoteproc.c | 12 ++++++++++++
> 2 files changed, 15 insertions(+)
>

Applied - thanks
Mathieu

> --
> 2.17.1
>