DMA Engine development
 help / color / mirror / Atom feed
* [PATCH] dmaengine: ti: k3-psil-am62a: Fix SPI PDMA data
@ 2023-11-23  9:27 Jai Luthra
  2023-11-24 13:32 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Jai Luthra @ 2023-11-23  9:27 UTC (permalink / raw)
  To: Peter Ujfalusi, Vinod Koul, Vignesh Raghavendra
  Cc: dmaengine, linux-kernel, Ronald Wahl, Jai Luthra

AM62Ax has 3 SPI channels where each channel has 4x TX and 4x RX
threads. Also fix the thread numbers to match what the firmware expects
according to the PSI-L device description.

Link: http://downloads.ti.com/tisci/esd/latest/5_soc_doc/am62ax/psil_cfg.html [1]
Fixes: aac6db7e243a ("dmaengine: ti: k3-psil-am62a: Add AM62Ax PSIL and PDMA data")
Signed-off-by: Jai Luthra <j-luthra@ti.com>
---
This is the same fix done for a different SoC (AM62) here:
https://lore.kernel.org/all/20231030190113.16782-1-rwahl@gmx.de/
---
 drivers/dma/ti/k3-psil-am62a.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/dma/ti/k3-psil-am62a.c b/drivers/dma/ti/k3-psil-am62a.c
index ca9d71f91422..4cf9123b0e93 100644
--- a/drivers/dma/ti/k3-psil-am62a.c
+++ b/drivers/dma/ti/k3-psil-am62a.c
@@ -84,7 +84,9 @@ static struct psil_ep am62a_src_ep_map[] = {
 	PSIL_SAUL(0x7505, 21, 35, 8, 36, 0),
 	PSIL_SAUL(0x7506, 22, 43, 8, 43, 0),
 	PSIL_SAUL(0x7507, 23, 43, 8, 44, 0),
-	/* PDMA_MAIN0 - SPI0-3 */
+	/* PDMA_MAIN0 - SPI0-2 */
+	PSIL_PDMA_XY_PKT(0x4300),
+	PSIL_PDMA_XY_PKT(0x4301),
 	PSIL_PDMA_XY_PKT(0x4302),
 	PSIL_PDMA_XY_PKT(0x4303),
 	PSIL_PDMA_XY_PKT(0x4304),
@@ -95,8 +97,6 @@ static struct psil_ep am62a_src_ep_map[] = {
 	PSIL_PDMA_XY_PKT(0x4309),
 	PSIL_PDMA_XY_PKT(0x430a),
 	PSIL_PDMA_XY_PKT(0x430b),
-	PSIL_PDMA_XY_PKT(0x430c),
-	PSIL_PDMA_XY_PKT(0x430d),
 	/* PDMA_MAIN1 - UART0-6 */
 	PSIL_PDMA_XY_PKT(0x4400),
 	PSIL_PDMA_XY_PKT(0x4401),
@@ -151,7 +151,9 @@ static struct psil_ep am62a_dst_ep_map[] = {
 	/* SAUL */
 	PSIL_SAUL(0xf500, 27, 83, 8, 83, 1),
 	PSIL_SAUL(0xf501, 28, 91, 8, 91, 1),
-	/* PDMA_MAIN0 - SPI0-3 */
+	/* PDMA_MAIN0 - SPI0-2 */
+	PSIL_PDMA_XY_PKT(0xc300),
+	PSIL_PDMA_XY_PKT(0xc301),
 	PSIL_PDMA_XY_PKT(0xc302),
 	PSIL_PDMA_XY_PKT(0xc303),
 	PSIL_PDMA_XY_PKT(0xc304),
@@ -162,8 +164,6 @@ static struct psil_ep am62a_dst_ep_map[] = {
 	PSIL_PDMA_XY_PKT(0xc309),
 	PSIL_PDMA_XY_PKT(0xc30a),
 	PSIL_PDMA_XY_PKT(0xc30b),
-	PSIL_PDMA_XY_PKT(0xc30c),
-	PSIL_PDMA_XY_PKT(0xc30d),
 	/* PDMA_MAIN1 - UART0-6 */
 	PSIL_PDMA_XY_PKT(0xc400),
 	PSIL_PDMA_XY_PKT(0xc401),

---
base-commit: 948112cbca96dba98bee51f2a064d28a947abf07
change-id: 20231123-psil_fix-1123cf1c8db0

Best regards,
-- 
Jai Luthra <j-luthra@ti.com>


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

* Re: [PATCH] dmaengine: ti: k3-psil-am62a: Fix SPI PDMA data
  2023-11-23  9:27 [PATCH] dmaengine: ti: k3-psil-am62a: Fix SPI PDMA data Jai Luthra
@ 2023-11-24 13:32 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2023-11-24 13:32 UTC (permalink / raw)
  To: Peter Ujfalusi, Vignesh Raghavendra, Jai Luthra
  Cc: dmaengine, linux-kernel, Ronald Wahl


On Thu, 23 Nov 2023 14:57:31 +0530, Jai Luthra wrote:
> AM62Ax has 3 SPI channels where each channel has 4x TX and 4x RX
> threads. Also fix the thread numbers to match what the firmware expects
> according to the PSI-L device description.
> 
> 

Applied, thanks!

[1/1] dmaengine: ti: k3-psil-am62a: Fix SPI PDMA data
      commit: be37542afbfcd27b3bb99a135abf9b4736b96f75

Best regards,
-- 
~Vinod



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

end of thread, other threads:[~2023-11-24 13:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-23  9:27 [PATCH] dmaengine: ti: k3-psil-am62a: Fix SPI PDMA data Jai Luthra
2023-11-24 13:32 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox