riscv: sophgo: allow DMA multiplexer set channel number for DMA controller
Subsystems (5)
Inochi Amaoto
maintainercover riscv: sophgo: allow DMA multiplexer set channel number for DMA controller
As the DMA controller on Sophgo CV1800 series SoC only has 8 channels, the SoC provides a dma multiplexer to reuse the DMA channel. However, the dma multiplexer also controlls the DMA interrupt multiplexer, which means that the dma multiplexer needs to know the channel number.
Change the DMA phandle args parsing logic so it can use handshake number as channel number if necessary.
This patch series add fallback compatiable according to the disscussion.
Change from v5:
- https://lore.kernel.org/all/[email protected]
1. Add dt-bindings patch for fallback compatiable
2. patch 2: Adapt the binding change.
Change from v4:
- https://lore.kernel.org/all/[email protected]/
1. drop patch 1 and patch 2 as they are merged
2. Add ABI break statement and clarification for this patch.
Change from v3:
- https://lore.kernel.org/all/[email protected]/
1. rebase to v7.0-rc1
2. patch 1: Apply Conor's tag
3. patch 2: Apply Frank's tag
Change from v2:
- https://lore.kernel.org/all/[email protected]/
1. patch 2: rename "AXI_DMA_FLAG_HANDSHAKE_AS_CHAN" to "ARG0_AS_CHAN"
Change from v1:
- https://lore.kernel.org/all/[email protected]/
1. rebase to v6.19-rc1
2. patch 1: remove a comment placed in wrong place.
3. patch 2: fix typo in comments.
4. patch 2: initialize chan as NULL in dw_axi_dma_of_xlate. Inochi Amaoto (2):
dt-bindings: dma: snps,dw-axi-dmac: Add fallback compatible for
CV1800B
riscv: dts: sophgo: cv180x: Allow the DMA multiplexer to set channel
number for DMA controller
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 5 +++-- arch/riscv/boot/dts/sophgo/cv180x.dtsi | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)
--
2.54.0
Inochi Amaoto
maintainerPATCH 1/2 dt-bindings: dma: snps,dw-axi-dmac: Add fallback compatible for CV1800B
The previous version of the binding change only add compatible string without adding the fallback compatible, this breaks backward compatibility. Add the needed fallback compatible to fix this.
--- Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml +3 -2
@@ -21,11 +21,12 @@ properties: - enum: - snps,axi-dma-1.01a - intel,kmb-axi-dma - - sophgo,cv1800b-axi-dma - starfive,jh7110-axi-dma - starfive,jh8100-axi-dma - items: - - const: altr,agilex5-axi-dma + - enum: + - altr,agilex5-axi-dma + - sophgo,cv1800b-axi-dma - const: snps,axi-dma-1.01a reg:
Signature · 1 line
2.54.0
Inochi Amaoto
maintainerQuoted 44 lines · Inochi Amaoto
As the DMA controller on Sophgo CV1800 series SoC only has 8 channels, the SoC provides a dma multiplexer to reuse the DMA channel. However, the dma multiplexer also controlls the DMA interrupt multiplexer, which means that the dma multiplexer needs to know the channel number.
Change the DMA phandle args parsing logic so it can use handshake number as channel number if necessary.
This patch series add fallback compatiable according to the disscussion.
Change from v5:
- https://lore.kernel.org/all/[email protected]
1. Add dt-bindings patch for fallback compatiable
2. patch 2: Adapt the binding change.Change from v4:
- https://lore.kernel.org/all/[email protected]/
1. drop patch 1 and patch 2 as they are merged
2. Add ABI break statement and clarification for this patch.Change from v3:
- https://lore.kernel.org/all/[email protected]/
1. rebase to v7.0-rc1
2. patch 1: Apply Conor's tag
3. patch 2: Apply Frank's tagChange from v2:
- https://lore.kernel.org/all/[email protected]/
1. patch 2: rename "AXI_DMA_FLAG_HANDSHAKE_AS_CHAN" to "ARG0_AS_CHAN"Change from v1:
- https://lore.kernel.org/all/[email protected]/
1. rebase to v6.19-rc1
2. patch 1: remove a comment placed in wrong place.
3. patch 2: fix typo in comments.
4. patch 2: initialize chan as NULL indw_axi_dma_of_xlate. Inochi Amaoto (2):
dt-bindings: dma: snps,dw-axi-dmac: Add fallback compatible forCV1800Briscv: dts: sophgo: cv180x: Allow the DMA multiplexer to set channel
number for DMA controller
Quoted 7 lines
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 5 +++-- arch/riscv/boot/dts/sophgo/cv180x.dtsi | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)--
2.54.0
Please ignore this broken version, the right version is
https://lore.kernel.org/all/[email protected]
Sorry for this noise.
Regard,
Inochi