TI中文支持网
TI专业的中文技术问题搜集分享网站

TDA4VM: TDA4VM_EVH ospi不识别_a72

Part Number:TDA4VM

hi,

ti-processor-sdk-linux-j784s4-evm-08_06_00_12.git开机后不识别ospi,发现dma获取不到,SDK中的prebuild img也如此:

[1.322721] printk: console [ttyS2] enabled
[1.331157] printk: bootconsole [ns16550a0] disabled
[1.342342] cadence-qspi 47040000.spi: error -ENODEV: No Rx DMA available
[1.349631] spi-nor: probe of spi0.0 failed with error -22
[1.355480] cadence-qspi 47050000.spi: error -ENODEV: No Rx DMA available
[1.362509] spi-nor spi1.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[1.369373] spi-nor: probe of spi1.0 failed with error -2

yk z:

ospi_ti_demo.log内核开机日志

,

Cherry Zhou:

您好,您的问题我们升级到英文论坛看下,链接如下:

e2e.ti.com/…/tda4vm-tda4vm_evh-ospi-cannot-recognize-_a72

,

Cherry Zhou:

确认下您用的是TI J784s4 EVM吗?

目前我们也正在处理一个现有的内部问题。 有一种解决方法应该会有所帮助(但目前还未测试过)。 请在 Linux 驱动程序中尝试以下更改: 

diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c
index 3f64275a3140..2138bd28bd6d 100644
--- a/drivers/spi/spi-cadence-quadspi.c
+++ b/drivers/spi/spi-cadence-quadspi.c
@@ -2219,6 +2219,8 @@ static int cqspi_request_mmap_dma(struct cqspi_st *cqspi)if (IS_ERR(cqspi->rx_chan)) {int ret = PTR_ERR(cqspi->rx_chan);cqspi->rx_chan = NULL;
+if (ret == -ENODEV)
+ret = -EPROBE_DEFER;return dev_err_probe(&cqspi->pdev->dev, ret, "No Rx DMA available\n");}init_completion(&c 

,

yk z:

确认下您用的是TI J784s4 EVM吗

是的

patch:

行 206: 20230524_14:34:21:500:[ 0.000000] GICv3: 960 SPIs implemented 行 207: 20230524_14:34:21:500:[ 0.000000] GICv3: 0 Extended SPIs implemented 行 433: 20230524_14:34:22:796:[ 1.477158] cadence-qspi 47040000.spi: error (____ptrval____): No Rx DMA available 行 433: 20230524_14:34:22:796:[ 1.477158] cadence-qspi 47040000.spi: error (____ptrval____): No Rx DMA available 行 435: 20230524_14:34:22:850:[ 1.494626] spi-nor: probe of spi0.0 failed with error -22 行 435: 20230524_14:34:22:850:[ 1.494626] spi-nor: probe of spi0.0 failed with error -22 行 436: 20230524_14:34:22:850:[ 1.500467] cadence-qspi 47050000.spi: error (____ptrval____): No Rx DMA available 行 436: 20230524_14:34:22:850:[ 1.500467] cadence-qspi 47050000.spi: error (____ptrval____): No Rx DMA available 行 438: 20230524_14:34:22:850:[ 1.517669] spi-nor spi1.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff 行 438: 20230524_14:34:22:850:[ 1.517669] spi-nor spi1.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff 行 439: 20230524_14:34:22:851:[ 1.524533] spi-nor: probe of spi1.0 failed with error -2 行 439: 20230524_14:34:22:851:[ 1.524533] spi-nor: probe of spi1.0 failed with error -2

看起来没有效果

20230524_14:35:12:506:root@j784s4-evm:~# ls /dev/mt* -al20230524_14:35:12:534:ls: cannot access '/dev/mt*': No such file or directory

,

Cherry Zhou:

好的那以上方法是没有用的,目前需要等待我们的内部团队在下一个SDK版本中进行修复。

赞(0)
未经允许不得转载:TI中文支持网 » TDA4VM: TDA4VM_EVH ospi不识别_a72
分享到: 更多 (0)