This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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
确认下您用的是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
确认下您用的是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* -al
20230524_14:35:12:534:ls: cannot access '/dev/mt*': No such file or directory