All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] remoteproc: pru: Enable PRU cores on K3 AM62x SoCs
@ 2022-06-02 10:19 Kishon Vijay Abraham I
  2022-06-02 10:19 ` [PATCH v2 1/3] dt-bindings: remoteproc: pru: Re-arrange "compatible" in alphabetic order Kishon Vijay Abraham I
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Kishon Vijay Abraham I @ 2022-06-02 10:19 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Rob Herring, Krzysztof Kozlowski
  Cc: Suman Anna, linux-remoteproc, devicetree, linux-kernel

Series adds AM62x specific compatible string to enable PRUSS-M in
AM62x SoCs.

Changes from v1:
1) Added a new patch to re-arrange "compatible" in alphabetic
    order

v1: https://lore.kernel.org/r/20220427083509.14458-1-kishon@ti.com

Kishon Vijay Abraham I (3):
  dt-bindings: remoteproc: pru: Re-arrange "compatible" in alphabetic
    order
  dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs
  remoteproc: pru: Add support for various PRU cores on K3 AM62x SoCs

 .../devicetree/bindings/remoteproc/ti,pru-rproc.yaml         | 5 +++--
 drivers/remoteproc/pru_rproc.c                               | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
2.17.1


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

* [PATCH v2 1/3] dt-bindings: remoteproc: pru: Re-arrange "compatible" in alphabetic order
  2022-06-02 10:19 [PATCH v2 0/3] remoteproc: pru: Enable PRU cores on K3 AM62x SoCs Kishon Vijay Abraham I
@ 2022-06-02 10:19 ` Kishon Vijay Abraham I
  2022-06-02 11:29   ` Krzysztof Kozlowski
  2022-06-02 10:19 ` [PATCH v2 2/3] dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs Kishon Vijay Abraham I
  2022-06-02 10:19 ` [PATCH v2 3/3] remoteproc: pru: Add support for various PRU cores on " Kishon Vijay Abraham I
  2 siblings, 1 reply; 7+ messages in thread
From: Kishon Vijay Abraham I @ 2022-06-02 10:19 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Rob Herring, Krzysztof Kozlowski
  Cc: Suman Anna, linux-remoteproc, devicetree, linux-kernel

Re-arrange "compatible" string in alphabetic order to decrease the
chance of conflicts.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
---
 .../devicetree/bindings/remoteproc/ti,pru-rproc.yaml          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml
index d7c3a78e37e6..5b67837b7fce 100644
--- a/Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml
@@ -36,17 +36,17 @@ properties:
     enum:
       - ti,am3356-pru   # for AM335x SoC family (AM3356+ SoCs only)
       - ti,am4376-pru   # for AM437x SoC family (AM4376+ SoCs only)
+      - ti,am5728-pru   # for AM57xx SoC family
       - ti,am642-pru    # for PRUs in K3 AM64x SoC family
       - ti,am642-rtu    # for RTUs in K3 AM64x SoC family
       - ti,am642-tx-pru # for Tx_PRUs in K3 AM64x SoC family
-      - ti,am5728-pru   # for AM57xx SoC family
-      - ti,k2g-pru      # for 66AK2G SoC family
       - ti,am654-pru    # for PRUs in K3 AM65x SoC family
       - ti,am654-rtu    # for RTUs in K3 AM65x SoC family
       - ti,am654-tx-pru # for Tx_PRUs in K3 AM65x SR2.0 SoCs
       - ti,j721e-pru    # for PRUs in K3 J721E SoC family
       - ti,j721e-rtu    # for RTUs in K3 J721E SoC family
       - ti,j721e-tx-pru # for Tx_PRUs in K3 J721E SoC family
+      - ti,k2g-pru      # for 66AK2G SoC family
 
   reg:
     items:
-- 
2.17.1


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

* [PATCH v2 2/3] dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs
  2022-06-02 10:19 [PATCH v2 0/3] remoteproc: pru: Enable PRU cores on K3 AM62x SoCs Kishon Vijay Abraham I
  2022-06-02 10:19 ` [PATCH v2 1/3] dt-bindings: remoteproc: pru: Re-arrange "compatible" in alphabetic order Kishon Vijay Abraham I
@ 2022-06-02 10:19 ` Kishon Vijay Abraham I
  2022-06-02 11:29   ` Krzysztof Kozlowski
  2022-06-02 10:19 ` [PATCH v2 3/3] remoteproc: pru: Add support for various PRU cores on " Kishon Vijay Abraham I
  2 siblings, 1 reply; 7+ messages in thread
From: Kishon Vijay Abraham I @ 2022-06-02 10:19 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Rob Herring, Krzysztof Kozlowski
  Cc: Suman Anna, linux-remoteproc, devicetree, linux-kernel

Update the PRU remoteproc bindings for the PRU cores on AM62x SoCs.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
---
 Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml
index 5b67837b7fce..cd55d80137f7 100644
--- a/Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml
@@ -37,6 +37,7 @@ properties:
       - ti,am3356-pru   # for AM335x SoC family (AM3356+ SoCs only)
       - ti,am4376-pru   # for AM437x SoC family (AM4376+ SoCs only)
       - ti,am5728-pru   # for AM57xx SoC family
+      - ti,am625-pru    # for PRUs in K3 AM62x SoC family
       - ti,am642-pru    # for PRUs in K3 AM64x SoC family
       - ti,am642-rtu    # for RTUs in K3 AM64x SoC family
       - ti,am642-tx-pru # for Tx_PRUs in K3 AM64x SoC family
-- 
2.17.1


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

* [PATCH v2 3/3] remoteproc: pru: Add support for various PRU cores on K3 AM62x SoCs
  2022-06-02 10:19 [PATCH v2 0/3] remoteproc: pru: Enable PRU cores on K3 AM62x SoCs Kishon Vijay Abraham I
  2022-06-02 10:19 ` [PATCH v2 1/3] dt-bindings: remoteproc: pru: Re-arrange "compatible" in alphabetic order Kishon Vijay Abraham I
  2022-06-02 10:19 ` [PATCH v2 2/3] dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs Kishon Vijay Abraham I
@ 2022-06-02 10:19 ` Kishon Vijay Abraham I
  2022-07-05 16:44   ` Mathieu Poirier
  2 siblings, 1 reply; 7+ messages in thread
From: Kishon Vijay Abraham I @ 2022-06-02 10:19 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Rob Herring, Krzysztof Kozlowski
  Cc: Suman Anna, linux-remoteproc, devicetree, linux-kernel

The K3 AM62x family of SoC has one PRUSS-M instance and it has two
Programmable Real-Time Units (PRU0 and PRU1). This does not support
Industrial Communications Subsystem features like Ethernet.

Enhance the existing PRU remoteproc driver to support the PRU cores
by using specific compatibles. The initial names for the firmware
images for each PRU core are retrieved from DT nodes, and can be adjusted
through sysfs if required.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
---
 drivers/remoteproc/pru_rproc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c
index 1777a01fa84e..128bf9912f2c 100644
--- a/drivers/remoteproc/pru_rproc.c
+++ b/drivers/remoteproc/pru_rproc.c
@@ -897,6 +897,7 @@ static const struct of_device_id pru_rproc_match[] = {
 	{ .compatible = "ti,j721e-pru",		.data = &k3_pru_data },
 	{ .compatible = "ti,j721e-rtu",		.data = &k3_rtu_data },
 	{ .compatible = "ti,j721e-tx-pru",	.data = &k3_tx_pru_data },
+	{ .compatible = "ti,am625-pru",		.data = &k3_pru_data },
 	{},
 };
 MODULE_DEVICE_TABLE(of, pru_rproc_match);
-- 
2.17.1


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

* Re: [PATCH v2 1/3] dt-bindings: remoteproc: pru: Re-arrange "compatible" in alphabetic order
  2022-06-02 10:19 ` [PATCH v2 1/3] dt-bindings: remoteproc: pru: Re-arrange "compatible" in alphabetic order Kishon Vijay Abraham I
@ 2022-06-02 11:29   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-02 11:29 UTC (permalink / raw)
  To: Kishon Vijay Abraham I, Bjorn Andersson, Mathieu Poirier,
	Rob Herring, Krzysztof Kozlowski
  Cc: Suman Anna, linux-remoteproc, devicetree, linux-kernel

On 02/06/2022 12:19, Kishon Vijay Abraham I wrote:
> Re-arrange "compatible" string in alphabetic order to decrease the
> chance of conflicts.
> 
> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

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

* Re: [PATCH v2 2/3] dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs
  2022-06-02 10:19 ` [PATCH v2 2/3] dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs Kishon Vijay Abraham I
@ 2022-06-02 11:29   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-02 11:29 UTC (permalink / raw)
  To: Kishon Vijay Abraham I, Bjorn Andersson, Mathieu Poirier,
	Rob Herring, Krzysztof Kozlowski
  Cc: Suman Anna, linux-remoteproc, devicetree, linux-kernel

On 02/06/2022 12:19, Kishon Vijay Abraham I wrote:
> Update the PRU remoteproc bindings for the PRU cores on AM62x SoCs.
> 
> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

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

* Re: [PATCH v2 3/3] remoteproc: pru: Add support for various PRU cores on K3 AM62x SoCs
  2022-06-02 10:19 ` [PATCH v2 3/3] remoteproc: pru: Add support for various PRU cores on " Kishon Vijay Abraham I
@ 2022-07-05 16:44   ` Mathieu Poirier
  0 siblings, 0 replies; 7+ messages in thread
From: Mathieu Poirier @ 2022-07-05 16:44 UTC (permalink / raw)
  To: Kishon Vijay Abraham I
  Cc: Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, Suman Anna,
	linux-remoteproc, devicetree, linux-kernel

On Thu, Jun 02, 2022 at 03:49:20PM +0530, Kishon Vijay Abraham I wrote:
> The K3 AM62x family of SoC has one PRUSS-M instance and it has two
> Programmable Real-Time Units (PRU0 and PRU1). This does not support
> Industrial Communications Subsystem features like Ethernet.
> 
> Enhance the existing PRU remoteproc driver to support the PRU cores
> by using specific compatibles. The initial names for the firmware
> images for each PRU core are retrieved from DT nodes, and can be adjusted
> through sysfs if required.
> 
> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
> ---
>  drivers/remoteproc/pru_rproc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c
> index 1777a01fa84e..128bf9912f2c 100644
> --- a/drivers/remoteproc/pru_rproc.c
> +++ b/drivers/remoteproc/pru_rproc.c
> @@ -897,6 +897,7 @@ static const struct of_device_id pru_rproc_match[] = {
>  	{ .compatible = "ti,j721e-pru",		.data = &k3_pru_data },
>  	{ .compatible = "ti,j721e-rtu",		.data = &k3_rtu_data },
>  	{ .compatible = "ti,j721e-tx-pru",	.data = &k3_tx_pru_data },
> +	{ .compatible = "ti,am625-pru",		.data = &k3_pru_data },

I have applied this set.

Thanks,
Mathieu

>  	{},
>  };
>  MODULE_DEVICE_TABLE(of, pru_rproc_match);
> -- 
> 2.17.1
> 

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

end of thread, other threads:[~2022-07-05 16:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-02 10:19 [PATCH v2 0/3] remoteproc: pru: Enable PRU cores on K3 AM62x SoCs Kishon Vijay Abraham I
2022-06-02 10:19 ` [PATCH v2 1/3] dt-bindings: remoteproc: pru: Re-arrange "compatible" in alphabetic order Kishon Vijay Abraham I
2022-06-02 11:29   ` Krzysztof Kozlowski
2022-06-02 10:19 ` [PATCH v2 2/3] dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs Kishon Vijay Abraham I
2022-06-02 11:29   ` Krzysztof Kozlowski
2022-06-02 10:19 ` [PATCH v2 3/3] remoteproc: pru: Add support for various PRU cores on " Kishon Vijay Abraham I
2022-07-05 16:44   ` Mathieu Poirier

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.