Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: ti: k3-psil-am62a: Fix SPI PDMA data

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>
Link: https://lore.kernel.org/r/20231123-psil_fix-v1-1-6604d80819be@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Jai Luthra and committed by
Vinod Koul
be37542a 744f5e7b

+6 -6
+6 -6
drivers/dma/ti/k3-psil-am62a.c
··· 84 84 PSIL_SAUL(0x7505, 21, 35, 8, 36, 0), 85 85 PSIL_SAUL(0x7506, 22, 43, 8, 43, 0), 86 86 PSIL_SAUL(0x7507, 23, 43, 8, 44, 0), 87 - /* PDMA_MAIN0 - SPI0-3 */ 87 + /* PDMA_MAIN0 - SPI0-2 */ 88 + PSIL_PDMA_XY_PKT(0x4300), 89 + PSIL_PDMA_XY_PKT(0x4301), 88 90 PSIL_PDMA_XY_PKT(0x4302), 89 91 PSIL_PDMA_XY_PKT(0x4303), 90 92 PSIL_PDMA_XY_PKT(0x4304), ··· 97 95 PSIL_PDMA_XY_PKT(0x4309), 98 96 PSIL_PDMA_XY_PKT(0x430a), 99 97 PSIL_PDMA_XY_PKT(0x430b), 100 - PSIL_PDMA_XY_PKT(0x430c), 101 - PSIL_PDMA_XY_PKT(0x430d), 102 98 /* PDMA_MAIN1 - UART0-6 */ 103 99 PSIL_PDMA_XY_PKT(0x4400), 104 100 PSIL_PDMA_XY_PKT(0x4401), ··· 151 151 /* SAUL */ 152 152 PSIL_SAUL(0xf500, 27, 83, 8, 83, 1), 153 153 PSIL_SAUL(0xf501, 28, 91, 8, 91, 1), 154 - /* PDMA_MAIN0 - SPI0-3 */ 154 + /* PDMA_MAIN0 - SPI0-2 */ 155 + PSIL_PDMA_XY_PKT(0xc300), 156 + PSIL_PDMA_XY_PKT(0xc301), 155 157 PSIL_PDMA_XY_PKT(0xc302), 156 158 PSIL_PDMA_XY_PKT(0xc303), 157 159 PSIL_PDMA_XY_PKT(0xc304), ··· 164 162 PSIL_PDMA_XY_PKT(0xc309), 165 163 PSIL_PDMA_XY_PKT(0xc30a), 166 164 PSIL_PDMA_XY_PKT(0xc30b), 167 - PSIL_PDMA_XY_PKT(0xc30c), 168 - PSIL_PDMA_XY_PKT(0xc30d), 169 165 /* PDMA_MAIN1 - UART0-6 */ 170 166 PSIL_PDMA_XY_PKT(0xc400), 171 167 PSIL_PDMA_XY_PKT(0xc401),