arm64: dts: imx94-xspi: add the DMA channels
Subsystems (4)
PATCH 1/3 arm64: dts: imx94-xspi: add the DMA channels
From: Han Xu <[email protected]>
Add the DMA channels for iMX94 XSPI controller.
--- arch/arm64/boot/dts/freescale/imx94.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx94.dtsi +4 -0
@@ -820,6 +820,8 @@ xspi1: spi@42b90000 { #size-cells = <0>; clocks = <&scmi_clk IMX94_CLK_XSPI1>; clock-names = "per"; + dmas = <&edma2 27 0 0>, <&edma2 28 0 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; };
@@ -836,6 +838,8 @@ xspi2: spi@42be0000 { #size-cells = <0>; clocks = <&scmi_clk IMX94_CLK_XSPI2>; clock-names = "per"; + dmas = <&edma4 42 0 0>, <&edma4 43 0 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; }; };
Signature · 1 line
2.34.1
PATCH 2/3 spi: nxp-xspi: Improve AHB read performance with DMA
From: Han Xu <[email protected]>
Use eDMA for XSPI AHB read to improve the performance.
Read with CPU
root@imx943evk:~# dd if=/dev/mtd0 of=/dev/null bs=32M count=1 1+0 records in 1+0 records out 33554432 bytes (34 MB, 32 MiB) copied, 0.479719 s, 69.9 MB/s
Read with DMA
root@imx943evk:~# dd if=/dev/mtd0 of=/dev/null bs=32M count=1 1+0 records in 1+0 records out 33554432 bytes (34 MB, 32 MiB) copied, 0.115788 s, 290 MB/s
--- drivers/spi/spi-nxp-xspi.c | 118 +++++++++++++++++++++++++++++++++++-- 1 file changed, 114 insertions(+), 4 deletions(-)
drivers/spi/spi-nxp-xspi.c +114 -4
@@ -35,6 +35,8 @@#include <linux/clk.h> #include <linux/completion.h> #include <linux/delay.h> +#include <linux/dmaengine.h> +#include <linux/dma-mapping.h> #include <linux/err.h> #include <linux/errno.h> #include <linux/interrupt.h>
@@ -303,6 +305,8 @@ (opr)) << (((idx) % 2) * OPRND_SHIFT))#define NXP_XSPI_MIN_IOMAP SZ_4M +#define NXP_XSPI_DMA_TOUT 5000/* ms */ +#define NXP_XSPI_DMA_ALIGN 32#define NXP_XSPI_MAX_CHIPSELECT 2#define POLL_TOUT_US 5000
@@ -336,6 +340,8 @@ struct nxp_xspi {/* mutex lock for each operation */ struct mutex lock;int selected; +struct dma_chan *dma_rx; +struct completion dma_rx_c;#define XSPI_DTR_PROTO BIT(0)int flags;/* Save the previous operation clock rate */
@@ -796,6 +802,78 @@ static int nxp_xspi_ahb_read(struct nxp_xspi *xspi, const struct spi_mem_op *op)return 0 ; } +static int nxp_xspi_dma_init (struct device *dev,struct nxp_xspi *xspi) +{ + xspi->dma_rx =dma_request_chan (dev,"rx" ); +if (IS_ERR (xspi->dma_rx)) { +int ret =PTR_ERR (xspi->dma_rx); + + xspi->dma_rx =NULL ; +if (ret == -EPROBE_DEFER ) +return ret; +dev_dbg (dev,"NO DMA RX channel, falling back to CPU read\n" ); +return 0 ; + } +init_completion (&xspi->dma_rx_c); + +return 0 ; +} + +static void nxp_xspi_dma_rx_callback (void *data) +{ +struct nxp_xspi *xspi = data; + +complete (&xspi->dma_rx_c); +} + +static int nxp_xspi_ahb_dma_read (struct nxp_xspi *xspi, +const struct spi_mem_op *op) +{ +struct dma_async_tx_descriptor *desc; +struct dma_chan *chan = xspi->dma_rx; +unsigned long timeout; +dma_addr_t dma_addr; +int ret =0 ; + + dma_addr =dma_map_single (chan->device->dev, + op->data.buf.in, op->data.nbytes, +DMA_FROM_DEVICE ); + +if (dma_mapping_error (chan->device->dev, dma_addr)) { +dev_err (xspi->dev,"failed to map DMA buffer for AHB read\n" ); +return -ENOMEM ; + } + + desc =dmaengine_prep_dma_memcpy (chan, dma_addr, + xspi->memmap_phy + op->addr.val, + op->data.nbytes, +DMA_PREP_INTERRUPT |DMA_CTRL_ACK ); +if (!desc) { +dev_err (xspi->dev,"failed to prepare AHB RX DMA descriptor\n" ); + ret = -EIO ; + goto err_unmap; + } + desc->callback = nxp_xspi_dma_rx_callback; + desc->callback_param = xspi; +reinit_completion (&xspi->dma_rx_c); +dmaengine_submit (desc); +dma_async_issue_pending (chan); + + timeout =wait_for_completion_timeout (&xspi->dma_rx_c, +msecs_to_jiffies (NXP_XSPI_DMA_TOUT )); +if (!timeout) { +dev_err (xspi->dev,"AHB RX DMA timeout\n" ); +dmaengine_terminate_sync (chan); + ret = -ETIMEDOUT ; + } + +err_unmap: +dma_unmap_single (chan->device->dev, dma_addr, + op->data.nbytes,DMA_FROM_DEVICE ); + +return ret; +} +static int nxp_xspi_fill_txfifo (struct nxp_xspi *xspi,const struct spi_mem_op *op) {
@@ -1016,10 +1094,15 @@ static int nxp_xspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op)* all use IP write. */ if ((op->data.dir ==SPI_MEM_DATA_IN ) && !needs_ip_only (xspi) - && ((op->addr.val + op->data.nbytes) <= xspi->memmap_phy_size)) - err =nxp_xspi_ahb_read (xspi, op); -else + && ((op->addr.val + op->data.nbytes) <= xspi->memmap_phy_size)) { +/* use DMA for transfers no less than ahb_buf_size, when DMA is available */ +if (xspi->dma_rx && op->data.nbytes >= xspi->devtype_data->ahb_buf_size) + err =nxp_xspi_ahb_dma_read (xspi, op); +else + err =nxp_xspi_ahb_read (xspi, op); + }else { err =nxp_xspi_do_op (xspi, op); + }nxp_xspi_sw_reset (xspi);
@@ -1042,6 +1125,24 @@ static int nxp_xspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op)if (!needs_ip_only (xspi) && (op->addr.val < xspi->memmap_phy_size) && ((op->addr.val + op->data.nbytes) > xspi->memmap_phy_size)) op->data.nbytes = xspi->memmap_phy_size - op->addr.val; + +/* +* For AHB DMA read, align the transfer to NXP_XSPI_DMA_ALIGN +* boundaries. If the start address is unaligned, shorten this +* transfer so the next one starts on an aligned boundary. +* Otherwise, if the length is unaligned, round it down. +*/ +if (xspi->dma_rx && !needs_ip_only (xspi) && + (op->data.nbytes >= xspi->devtype_data->ahb_buf_size)) { +if (op->addr.val %NXP_XSPI_DMA_ALIGN ) + op->data.nbytes = +ALIGN (op->addr.val,NXP_XSPI_DMA_ALIGN ) - + op->addr.val; +else if (op->data.nbytes %NXP_XSPI_DMA_ALIGN ) + op->data.nbytes = +ALIGN_DOWN (op->data.nbytes, +NXP_XSPI_DMA_ALIGN ); + } }return 0 ;
@@ -1203,6 +1304,10 @@ static void nxp_xspi_cleanup(void *data)if (xspi->ahb_addr)iounmap (xspi->ahb_addr); +if (xspi->dma_rx) { +dmaengine_terminate_sync (xspi->dma_rx); +dma_release_channel (xspi->dma_rx); + } }static int nxp_xspi_probe (struct platform_device *pdev)
@@ -1250,7 +1355,12 @@ static int nxp_xspi_probe(struct platform_device *pdev)/* Find the irq */ irq =platform_get_irq (pdev,0 );if (irq <0 ) -return dev_err_probe (dev, irq,"Failed to get irq source" ); +return dev_err_probe (dev, irq,"Failed to get irq source" ); + +/* DMA is optional, failure(other than -EPROBE_DEFER) falls back to CPU */ + ret =nxp_xspi_dma_init (dev, xspi); +if (ret == -EPROBE_DEFER ) +return ret;pm_runtime_set_autosuspend_delay (dev,XSPI_RPM_TIMEOUT_MS );pm_runtime_use_autosuspend (dev);
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH 2/3] spi: nxp-xspi: Improve AHB read performance with DMA
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider: - [High] Calling dma_map_single() directly on op->data.buf.in without verifying it is a linearly mapped…
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] Calling dma_map_single() directly on op->data.buf.in without verifying it is a linearly mapped virtual address causes kernel panics or silent memory corruption with vmalloc buffers.
- [High] Directly passing the memory-mapped physical address as a DMA address to the DMA engine bypasses the DMA API and causes IOMMU translation faults.
- [Medium] The DMA channel allocated for RX is permanently leaked if the probe function encounters an error before the cleanup action is registered.
--
commit 8ae000beff392fc0d98a1b38fb68f9efe125110e
Author: Han Xu <[email protected]>
spi: nxp-xspi: Improve AHB read performance with DMA
This commit introduces eDMA support for XSPI AHB reads to improve performance. It falls back to CPU reads if DMA is unavailable or for small transfers.
Quoted 4 lines
drivers/spi/spi-nxp-xspi.c +0
-0
[ ... ]
Quoted 1 line
drivers/spi/spi-nxp-xspi.c +0
-0@@ -799,6 +805,78 @@ static int nxp_xspi_ahb_read(struct nxp_xspi *xspi, const struct spi_mem_op *op)
[ ... ]
drivers/spi/spi-nxp-xspi.c static int nxp_xspi_ahb_read(struct nxp_xspi *xspi, const struct spi_mem_op *op) · line 840
Quoted 12 lines
drivers/spi/spi-nxp-xspi.c +12
-0+static int nxp_xspi_ahb_dma_read (struct nxp_xspi *xspi, +const struct spi_mem_op *op) +{ +struct dma_async_tx_descriptor *desc; +struct dma_chan *chan = xspi->dma_rx; +unsigned long timeout; +dma_addr_t dma_addr; +int ret =0 ; + + dma_addr =dma_map_single (chan->device->dev, + op->data.buf.in, op->data.nbytes, +DMA_FROM_DEVICE );
[Severity: High]
How does this code handle vmalloc addresses?
SPI memory operations (e.g., via MTD/UBIFS) frequently pass large vmalloc'd buffers in op->data.buf.in. Calling dma_map_single() on a vmalloc address causes virt_to_phys() to produce an invalid physical address, leading to a kernel panic or silent memory corruption.
Since dmaengine_prep_dma_memcpy() cannot accept an sg_table, should the driver verify !is_vmalloc_addr(op->data.buf.in) and fall back to CPU read?
drivers/spi/spi-nxp-xspi.c static int nxp_xspi_ahb_read(struct nxp_xspi *xspi, const struct spi_mem_op *op) · line 848
Quoted 8 lines
drivers/spi/spi-nxp-xspi.c +8
-0+ +if (dma_mapping_error (chan->device->dev, dma_addr)) { +dev_err (xspi->dev,"failed to map DMA buffer for AHB read\n" ); +return -ENOMEM ; + } + + desc = dmaengine_prep_dma_memcpy(chan, dma_addr, + xspi->memmap_phy + op->addr.val,
[Severity: High]
Is it safe to pass the memory-mapped physical address directly to the DMA engine descriptor without mapping it first?
The driver computes the source address as xspi->memmap_phy + op->addr.val and passes it directly as a dma_addr_t. Bypassing the DMA API (such as dma_map_resource()) means the physical address is never mapped into the DMA controller's IOVA space. This breaks on platforms where the eDMA operates behind an IOMMU.
Quoted 2 lines
drivers/spi/spi-nxp-xspi.c +2
-0+ op->data.nbytes, + DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
[ ... ]
Quoted 4 lines
drivers/spi/spi-nxp-xspi.c +0
-0@@ -1254,7 +1359,12 @@ static int nxp_xspi_probe(struct platform_device *pdev)/* Find the irq */ irq =platform_get_irq (pdev,0 );if (irq <0 )
drivers/spi/spi-nxp-xspi.c static int nxp_xspi_probe(struct platform_device *pdev) · line 1370
Quoted 10 lines
drivers/spi/spi-nxp-xspi.c +6
-1-return dev_err_probe (dev, irq,"Failed to get irq source" ); +return dev_err_probe (dev, irq,"Failed to get irq source" ); + +/* DMA is optional, failure(other than -EPROBE_DEFER) falls back to CPU */ + ret =nxp_xspi_dma_init (dev, xspi); +if (ret == -EPROBE_DEFER ) +return ret;pm_runtime_set_autosuspend_delay (dev,XSPI_RPM_TIMEOUT_MS );pm_runtime_use_autosuspend (dev);
[Severity: Medium]
Could this leak the DMA channel if an error occurs later in the probe sequence?
nxp_xspi_dma_init() allocates an unmanaged DMA channel via dma_request_chan(), but the teardown logic using devm_add_action_or_reset() isn't registered until much later in the probe sequence. If intermediate steps fail (such as devm_pm_runtime_enable()), it appears the probe returns early without releasing the DMA channel.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Mark Brown
maintainerRe: [PATCH 2/3] spi: nxp-xspi: Improve AHB read performance with DMA
In reply to [email protected]Quoted 3 lines · On Wed, Jun 17, 2026 at 04:55:18PM -0500, [email protected] wrote:
From: Han Xu <[email protected]>
Use eDMA for XSPI AHB read to improve the performance.
You've not copied me on the rest of the series so I don't know what's going on with dependencies. When sending a patch series it is important to ensure that all the various maintainers understand what the relationship between the patches as the expecation is that there will be interdependencies. Either copy everyone on the whole series or at least copy them on the cover letter and explain what's going on. If there are no strong interdependencies then it's generally simplest to just send the patches separately to avoid any possible confusion.
Re: [PATCH 2/3] spi: nxp-xspi: Improve AHB read performance with DMA
In reply to [email protected]Quoted 1 line · On Wed, Jun 17, 2026 at 04:55:18PM -0500, [email protected] wrote:
Use eDMA for XSPI AHB read to improve the performance.
It'd better mention 4x performance improve here.
Quoted 32 lines
Read with CPU
root@imx943evk:~# dd if=/dev/mtd0 of=/dev/null bs=32M count=1 1+0 records in 1+0 records out 33554432 bytes (34 MB, 32 MiB) copied, 0.479719 s, 69.9 MB/sRead with DMA
root@imx943evk:~# dd if=/dev/mtd0 of=/dev/null bs=32M count=1 1+0 records in 1+0 records out 33554432 bytes (34 MB, 32 MiB) copied, 0.115788 s, 290 MB/sSigned-off-by Han Xu <[email protected]>--- drivers/spi/spi-nxp-xspi.c | 118 +++++++++++++++++++++++++++++++++++-- 1 file changed, 114 insertions(+), 4 deletions(-)drivers/spi/spi-nxp-xspi.c +2
-0@@ -35,6 +35,8 @@#include <linux/clk.h> #include <linux/completion.h> #include <linux/delay.h> +#include <linux/dmaengine.h> +#include <linux/dma-mapping.h> #include <linux/err.h> #include <linux/errno.h> #include <linux/interrupt.h>
drivers/spi/spi-nxp-xspi.c line 308
Quoted 4 lines
drivers/spi/spi-nxp-xspi.c +1
-0@@ -303,6 +305,8 @@ (opr)) << (((idx) % 2) * OPRND_SHIFT))#define NXP_XSPI_MIN_IOMAP SZ_4M +#define NXP_XSPI_DMA_TOUT 5000/* ms */
Need unit, NXP_XPI_DMA_TOUT_MS,
Add comments why choose 5ms here, in case someone need change it in future.
Quoted 19 lines
drivers/spi/spi-nxp-xspi.c +5
-0+#define NXP_XSPI_DMA_ALIGN 32#define NXP_XSPI_MAX_CHIPSELECT 2#define POLL_TOUT_US 5000@@ -336,6 +340,8 @@ struct nxp_xspi {/* mutex lock for each operation */ struct mutex lock;int selected; +struct dma_chan *dma_rx; +struct completion dma_rx_c;#define XSPI_DTR_PROTO BIT(0)int flags;/* Save the previous operation clock rate */ @@ -796,6 +802,78 @@ static int nxp_xspi_ahb_read(struct nxp_xspi *xspi, const struct spi_mem_op *op)return 0 ; } +static int nxp_xspi_dma_init (struct device *dev,struct nxp_xspi *xspi) +{
drivers/spi/spi-nxp-xspi.c static int nxp_xspi_ahb_read(struct nxp_xspi *xspi, const struct spi_mem_op *op) · line 816
Quoted 10 lines
drivers/spi/spi-nxp-xspi.c +10
-0+ xspi->dma_rx =dma_request_chan (dev,"rx" ); +if (IS_ERR (xspi->dma_rx)) { +int ret =PTR_ERR (xspi->dma_rx); + + xspi->dma_rx =NULL ; +if (ret == -EPROBE_DEFER ) +return ret; +dev_dbg (dev,"NO DMA RX channel, falling back to CPU read\n" ); +return 0 ; + }
use local variable will a little bit simpile
dma_chan *rx = dma_request_chan()
if (IS_ERR(rx) ){
if (PTR_ERR(rx) == -EPROBE_DEFER)
return ret;
return 0;
}
xspi->dma_rx = rx;Quoted 64 lines
drivers/spi/spi-nxp-xspi.c +60
-0+init_completion (&xspi->dma_rx_c); + +return 0 ; +} + +static void nxp_xspi_dma_rx_callback (void *data) +{ +struct nxp_xspi *xspi = data; + +complete (&xspi->dma_rx_c); +} + +static int nxp_xspi_ahb_dma_read (struct nxp_xspi *xspi, +const struct spi_mem_op *op) +{ +struct dma_async_tx_descriptor *desc; +struct dma_chan *chan = xspi->dma_rx; +unsigned long timeout; +dma_addr_t dma_addr; +int ret =0 ; + + dma_addr =dma_map_single (chan->device->dev, + op->data.buf.in, op->data.nbytes, +DMA_FROM_DEVICE ); + +if (dma_mapping_error (chan->device->dev, dma_addr)) { +dev_err (xspi->dev,"failed to map DMA buffer for AHB read\n" ); +return -ENOMEM ; + } + + desc =dmaengine_prep_dma_memcpy (chan, dma_addr, + xspi->memmap_phy + op->addr.val, + op->data.nbytes, +DMA_PREP_INTERRUPT |DMA_CTRL_ACK ); +if (!desc) { +dev_err (xspi->dev,"failed to prepare AHB RX DMA descriptor\n" ); + ret = -EIO ; + goto err_unmap; + } + desc->callback = nxp_xspi_dma_rx_callback; + desc->callback_param = xspi; +reinit_completion (&xspi->dma_rx_c); +dmaengine_submit (desc); +dma_async_issue_pending (chan); + + timeout =wait_for_completion_timeout (&xspi->dma_rx_c, +msecs_to_jiffies (NXP_XSPI_DMA_TOUT )); +if (!timeout) { +dev_err (xspi->dev,"AHB RX DMA timeout\n" ); +dmaengine_terminate_sync (chan); + ret = -ETIMEDOUT ; + } + +err_unmap: +dma_unmap_single (chan->device->dev, dma_addr, + op->data.nbytes,DMA_FROM_DEVICE ); + +return ret; +} +static int nxp_xspi_fill_txfifo (struct nxp_xspi *xspi,const struct spi_mem_op *op) {
drivers/spi/spi-nxp-xspi.c static int nxp_xspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) · line 1100
Quoted 10 lines
drivers/spi/spi-nxp-xspi.c +4
-3@@ -1016,10 +1094,15 @@ static int nxp_xspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op)* all use IP write. */ if ((op->data.dir ==SPI_MEM_DATA_IN ) && !needs_ip_only (xspi) - && ((op->addr.val + op->data.nbytes) <= xspi->memmap_phy_size)) - err =nxp_xspi_ahb_read (xspi, op); -else + && ((op->addr.val + op->data.nbytes) <= xspi->memmap_phy_size)) { +/* use DMA for transfers no less than ahb_buf_size, when DMA is available */ +if (xspi->dma_rx && op->data.nbytes >= xspi->devtype_data->ahb_buf_size) + err =nxp_xspi_ahb_dma_read (xspi, op);
If err happen, do we need failback to use CPU to read()?
Quoted 9 lines
drivers/spi/spi-nxp-xspi.c +4
-0+else + err =nxp_xspi_ahb_read (xspi, op); + }else { err =nxp_xspi_do_op (xspi, op); + }nxp_xspi_sw_reset (xspi);
drivers/spi/spi-nxp-xspi.c static int nxp_xspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) · line 1134
Quoted 10 lines
drivers/spi/spi-nxp-xspi.c +7
-0@@ -1042,6 +1125,24 @@ static int nxp_xspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op)if (!needs_ip_only (xspi) && (op->addr.val < xspi->memmap_phy_size) && ((op->addr.val + op->data.nbytes) > xspi->memmap_phy_size)) op->data.nbytes = xspi->memmap_phy_size - op->addr.val; + +/* +* For AHB DMA read, align the transfer to NXP_XSPI_DMA_ALIGN +* boundaries. If the start address is unaligned, shorten this +* transfer so the next one starts on an aligned boundary. +* Otherwise, if the length is unaligned, round it down. +*/
DMA_ALGIN restriction come from DMA or XSPI? If come from DMA, need use DMA API to get such align requirement.
Quoted 26 lines
drivers/spi/spi-nxp-xspi.c +15
-0+if (xspi->dma_rx && !needs_ip_only (xspi) && + (op->data.nbytes >= xspi->devtype_data->ahb_buf_size)) { +if (op->addr.val %NXP_XSPI_DMA_ALIGN ) + op->data.nbytes = +ALIGN (op->addr.val,NXP_XSPI_DMA_ALIGN ) - + op->addr.val; +else if (op->data.nbytes %NXP_XSPI_DMA_ALIGN ) + op->data.nbytes = +ALIGN_DOWN (op->data.nbytes, +NXP_XSPI_DMA_ALIGN ); + } }return 0 ;@@ -1203,6 +1304,10 @@ static void nxp_xspi_cleanup(void *data)if (xspi->ahb_addr)iounmap (xspi->ahb_addr); +if (xspi->dma_rx) { +dmaengine_terminate_sync (xspi->dma_rx); +dma_release_channel (xspi->dma_rx); + } }static int nxp_xspi_probe (struct platform_device *pdev)
drivers/spi/spi-nxp-xspi.c static int nxp_xspi_probe(struct platform_device *pdev) · line 1358
Quoted 5 lines
drivers/spi/spi-nxp-xspi.c +1
-1@@ -1250,7 +1355,12 @@ static int nxp_xspi_probe(struct platform_device *pdev)/* Find the irq */ irq =platform_get_irq (pdev,0 );if (irq <0 ) -return dev_err_probe (dev, irq,"Failed to get irq source" ); +return dev_err_probe (dev, irq,"Failed to get irq source" );
This change is not related this patch.
Frank
Quoted 12 lines
drivers/spi/spi-nxp-xspi.c +5
-1+ +/* DMA is optional, failure(other than -EPROBE_DEFER) falls back to CPU */ + ret =nxp_xspi_dma_init (dev, xspi); +if (ret == -EPROBE_DEFER ) +return ret;pm_runtime_set_autosuspend_delay (dev,XSPI_RPM_TIMEOUT_MS );pm_runtime_use_autosuspend (dev); --2.34.1
PATCH 3/3 dt-bindings: spi: nxp,imx94-xspi: add DMA properties
In reply to [email protected]From: Han Xu <[email protected]>
Add dmas and dma-names to describe TX and RX DMA channels for the i.MX94 XSPI controller.
--- .../devicetree/bindings/spi/nxp,imx94-xspi.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/spi/nxp,imx94-xspi.yaml +10 -0
@@ -30,6 +30,16 @@ properties: - const: base - const: mmap + dmas: + items: + - description: Transmit DMA + - description: Receive DMA + + dma-names: + items: + - const: tx + - const: rx + interrupts: items: - description: interrupt for EENV0
Signature · 1 line
2.34.1
Re: [PATCH 3/3] dt-bindings: spi: nxp,imx94-xspi: add DMA properties
Quoted 7 lines · On Wed, Jun 17, 2026 at 04:55:19PM -0500, [email protected] wrote:
From: Han Xu <[email protected]>
Add dmas and dma-names to describe TX and RX DMA channels for the i.MX94 XSPI controller.
Signed-off-by Han Xu <[email protected]>---
This patch should be fix one.
Quoted 28 lines
.../devicetree/bindings/spi/nxp,imx94-xspi.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/spi/nxp,imx94-xspi.yaml +10
-1@@ -30,6 +30,16 @@ properties: - const: base - const: mmap + dmas: + items: + - description: Transmit DMA + - description: Receive DMA + + dma-names: + items: + - const: tx + - const: rx + interrupts: items: - description: interrupt for EENV0 --2.34.1
Re: [PATCH 3/3] dt-bindings: spi: nxp,imx94-xspi: add DMA properties
In reply to [email protected]Quoted 1 line · On Wed, Jun 17, 2026 at 04:55:19PM -0500, [email protected] wrote:
tags is reversed in spi.
spi: dt-bindings: imx94-xspi ....
you can use git log --oneline Document/devicetree/bindings/spi
Frank
Quoted 33 lines
Add dmas and dma-names to describe TX and RX DMA channels for the i.MX94 XSPI controller.
Signed-off-by Han Xu <[email protected]>--- .../devicetree/bindings/spi/nxp,imx94-xspi.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)Documentation/devicetree/bindings/spi/nxp,imx94-xspi.yaml +10
-1@@ -30,6 +30,16 @@ properties: - const: base - const: mmap + dmas: + items: + - description: Transmit DMA + - description: Receive DMA + + dma-names: + items: + - const: tx + - const: rx + interrupts: items: - description: interrupt for EENV0 --2.34.1
Mark Brown
maintainerRe: [PATCH 3/3] dt-bindings: spi: nxp,imx94-xspi: add DMA properties
In reply to [email protected]Quoted 4 lines · On Wed, Jun 17, 2026 at 04:55:19PM -0500, [email protected] wrote:
From: Han Xu <[email protected]>
Add dmas and dma-names to describe TX and RX DMA channels for the i.MX94 XSPI controller.
Please submit patches using subject lines reflecting the style for the subsystem, this makes it easier for people to identify relevant patches. Look at what existing commits in the area you're changing are doing and make sure your subject lines visually resemble what they're doing. There's no need to resubmit to fix this alone.