Skip to contentSkip to conversation

dmaengine: ti: k3-udma: Add PSIL threads for AM62P and J722S

PATCH Applied Vaishnav Achath 3 participants 3 messages Dec 13, 2023 – Dec 21, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dmaengine: ti: k3-udma: Add PSIL threads for AM62P and J722S

From: Vignesh Raghavendra <[email protected]>

Add PSIL thread information and enable UDMA support for AM62P and J722S SoC. J722S SoC family is a superset of AM62P, thus common PSIL thread ID map is reused for both devices.

For those interested, more details about the SoC can be found in the Technical Reference Manual here:

	AM62P - https://www.ti.com/lit/pdf/spruj83
	J722S -	https://www.ti.com/lit/zip/sprujb3

---
V1: https://lore.kernel.org/all/[email protected]/
J722S Bootlog with DMA enabled : https://gist.github.com/vaishnavachath/46b56dab34dfea3a171d3ad266160780

V1->V2:
* Add J722S support and additional CSI2RX channels
* Update copyright year to 2023 and update commit message.

 drivers/dma/ti/Makefile        |   3 +-
 drivers/dma/ti/k3-psil-am62p.c | 325 +++++++++++++++++++++++++++++++++
 drivers/dma/ti/k3-psil-priv.h  |   1 +
 drivers/dma/ti/k3-psil.c       |   2 +
 drivers/dma/ti/k3-udma.c       |   2 +
 5 files changed, 332 insertions(+), 1 deletion(-)
 create mode 100644 drivers/dma/ti/k3-psil-am62p.c
drivers/dma/ti/Makefile +2 -1
index acc950bf609c..d376c117cecf 100644
@@ -12,6 +12,7 @@ k3-psil-lib-objs := k3-psil.o \
 		    k3-psil-j721s2.o \
 		    k3-psil-am62.o \
 		    k3-psil-am62a.o \
-		    k3-psil-j784s4.o
+		    k3-psil-j784s4.o \
+		    k3-psil-am62p.o
 obj-$(CONFIG_TI_K3_PSIL) += k3-psil-lib.o
 obj-$(CONFIG_TI_DMA_CROSSBAR) += dma-crossbar.o
drivers/dma/ti/k3-psil-am62p.c new file +325 -0

325 lines not on this page · raw message

drivers/dma/ti/k3-psil-priv.h +1 -0
index c383723d1c8f..a577be97e344 100644
@@ -45,5 +45,6 @@ extern struct psil_ep_map j721s2_ep_map;
 extern struct psil_ep_map am62_ep_map;
 extern struct psil_ep_map am62a_ep_map;
 extern struct psil_ep_map j784s4_ep_map;
+extern struct psil_ep_map am62p_ep_map;
 
 #endif /* K3_PSIL_PRIV_H_ */
drivers/dma/ti/k3-psil.c +2 -0
index c11389d67a3f..25148d952472 100644
@@ -26,6 +26,8 @@ static const struct soc_device_attribute k3_soc_devices[] = {
 	{ .family = "AM62X", .data = &am62_ep_map },
 	{ .family = "AM62AX", .data = &am62a_ep_map },
 	{ .family = "J784S4", .data = &j784s4_ep_map },
+	{ .family = "AM62PX", .data = &am62p_ep_map },
+	{ .family = "J722S", .data = &am62p_ep_map },
 	{ /* sentinel */ }
 };
 
drivers/dma/ti/k3-udma.c +2 -0
index 30fd2f386f36..2841a539c264 100644
@@ -4441,6 +4441,8 @@ static const struct soc_device_attribute k3_soc_devices[] = {
 	{ .family = "AM62X", .data = &am64_soc_data },
 	{ .family = "AM62AX", .data = &am64_soc_data },
 	{ .family = "J784S4", .data = &j721e_soc_data },
+	{ .family = "AM62PX", .data = &am64_soc_data },
+	{ .family = "J722S", .data = &am64_soc_data },
 	{ /* sentinel */ }
 };
 
Signature · 1 line
2.17.1
Reviewed-by on v2 1/1
#1 lore raw

Hi Vaishnav,

Thanks for the patch.

Quoted 6 lines · Vaishnav

From: Vignesh Raghavendra <[email protected]>

Add PSIL thread information and enable UDMA support for AM62P and J722S SoC. J722S SoC family is a superset of AM62P, thus common PSIL thread ID map is reused for both devices.

Quoted 8 lines

For those interested, more details about the SoC can be found in the Technical Reference Manual here:

	AM62P - https://www.ti.com/lit/pdf/spruj83
	J722S -	https://www.ti.com/lit/zip/sprujb3
Quoted 15 lines

---
V1: https://lore.kernel.org/all/[email protected]/
J722S Bootlog with DMA enabled : https://gist.github.com/vaishnavachath/46b56dab34dfea3a171d3ad266160780

V1->V2:
* Add J722S support and additional CSI2RX channels
* Update copyright year to 2023 and update commit message.

 drivers/dma/ti/Makefile        |   3 +-
 drivers/dma/ti/k3-psil-am62p.c | 325 +++++++++++++++++++++++++++++++++
 drivers/dma/ti/k3-psil-priv.h  |   1 +
 drivers/dma/ti/k3-psil.c       |   2 +
 drivers/dma/ti/k3-udma.c       |   2 +
 5 files changed, 332 insertions(+), 1 deletion(-)
 create mode 100644 drivers/dma/ti/k3-psil-am62p.c

[...]

Quoted 1 line
Signature · 4 lines
Thanks,
Jai

GPG Fingerprint: 4DE0 D818 E5D5 75E8 D45A AFC5 43DE 91F9 249A 7145
maintainer Applied
#2 lore raw
In reply to Vaishnav Achath
Quoted 10 lines · Vaishnav Achath

Add PSIL thread information and enable UDMA support for AM62P and J722S SoC. J722S SoC family is a superset of AM62P, thus common PSIL thread ID map is reused for both devices.

For those interested, more details about the SoC can be found in the Technical Reference Manual here:

	AM62P - https://www.ti.com/lit/pdf/spruj83
	J722S -	https://www.ti.com/lit/zip/sprujb3

[...]

Applied, thanks!

[1/1] dmaengine: ti: k3-udma: Add PSIL threads for AM62P and J722S

      commit: 3b08b3775593442be52cbb99efbccbd7fe4fa3fe

Best regards,

Signature · 1 line
~Vinod