Skip to contentSkip to conversation

remoteproc: pru: Enable PRU cores on K3 AM62x SoCs

PATCH Superseded Kishon Vijay Abraham I 2 participants 6 messages Apr 27, 2022 – May 16, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover remoteproc: pru: Enable PRU cores on K3 AM62x SoCs

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

Kishon Vijay Abraham I (2):
dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs
remoteproc: pru: Add support for various PRU cores on K3 AM62x SoCs

 Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml | 1 +
 drivers/remoteproc/pru_rproc.c                                 | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/2 dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs

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

---
 Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml +1 -0
index d7c3a78e37e6..e351550b012c 100644
@@ -47,6 +47,7 @@ properties:
       - 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,am625-pru    # for PRUs in K3 AM62x SoC family
 
   reg:
     items:
Signature · 1 line
2.17.1
#2 lore raw

Re: [PATCH 1/2] dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs

Quoted 12 lines · Kishon Vijay Abraham I

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

---
 Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml +0 -0
index d7c3a78e37e6..e351550b012c 100644

Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml properties: · line 50

Quoted 4 lines
Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml +1 -0
@@ -47,6 +47,7 @@ properties:
       - 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,am625-pru    # for PRUs in K3 AM62x SoC family

Looks like out of order.

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH 1/2] dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs

Hi Krzysztof,

Quoted 8 lines · Krzysztof Kozlowski
Quoted 7 lines · Kishon Vijay Abraham I

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

---
 Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml properties: · line 50

Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml +1 -0
index d7c3a78e37e6..e351550b012c 100644
@@ -47,6 +47,7 @@ properties:
       - 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,am625-pru    # for PRUs in K3 AM62x SoC family

Looks like out of order.

yes, this is out of sync with the existing format binding. I'll send a patch fixing it.

Thanks,
Kishon

#4 lore raw

Re: [PATCH 1/2] dt-bindings: remoteproc: pru: Update bindings for K3 AM62x SoCs

Quoted 23 lines · Kishon Vijay Abraham I

Hi Krzysztof,

Quoted 8 lines · Krzysztof Kozlowski
Quoted 7 lines · Kishon Vijay Abraham I

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

---
 Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml properties: · line 50

Quoted 9 lines
Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml +1 -0
index d7c3a78e37e6..e351550b012c 100644
@@ -47,6 +47,7 @@ properties:
       - 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,am625-pru    # for PRUs in K3 AM62x SoC family

Looks like out of order.

Quoted 2 lines

yes, this is out of sync with the existing format binding. I'll send a patch fixing it.

I meant, you introduce it out-of-order. So this patch should be modified and new compatible added in some better place.

Best regards,
Krzysztof

#5 lore raw

PATCH 2/2 remoteproc: pru: Add support for various PRU cores on K3 AM62x SoCs

In reply to Kishon Vijay Abraham I

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.

---
 drivers/remoteproc/pru_rproc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/remoteproc/pru_rproc.c +1 -0
index 1777a01fa84e..128bf9912f2c 100644
@@ -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);
Signature · 1 line
2.17.1