diff options
| author | Ze Huang <[email protected]> | 2025-04-28 09:24:36 +0000 |
|---|---|---|
| committer | Inochi Amaoto <[email protected]> | 2025-04-30 06:51:43 +0000 |
| commit | 3e6244429ba38f8dee3336b8b805948276b281ab (patch) | |
| tree | dcc4be368fc844b2addecc0d2ad6a4dfc4da888a /rust/macros/paste.rs | |
| parent | Linux 6.15-rc1 (diff) | |
| download | kernel-3e6244429ba38f8dee3336b8b805948276b281ab.tar.gz kernel-3e6244429ba38f8dee3336b8b805948276b281ab.zip | |
riscv: dts: sophgo: fix DMA data-width configuration for CV18xx
The "snps,data-width" property[1] defines the AXI data width of the DMA
controller as:
width = 8 × (2^n) bits
(0 = 8 bits, 1 = 16 bits, 2 = 32 bits, ..., 6 = 512 bits)
where "n" is the value of "snps,data-width".
For the CV18xx DMA controller, the correct AXI data width is 32 bits,
corresponding to "snps,data-width = 2".
Test results on Milkv Duo S can be found here [2].
Link: https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/dma/snps%2Cdw-axi-dmac.yaml#L74 [1]
Link: https://gist.github.com/Sutter099/4fa99bb2d89e5af975983124704b3861 [2]
Fixes: 514951a81a5e ("riscv: dts: sophgo: cv18xx: add DMA controller")
Co-developed-by: Yu Yuan <[email protected]>
Signed-off-by: Yu Yuan <[email protected]>
Signed-off-by: Ze Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Inochi Amaoto <[email protected]>
Signed-off-by: Chen Wang <[email protected]>
Signed-off-by: Chen Wang <[email protected]>
Diffstat (limited to 'rust/macros/paste.rs')
0 files changed, 0 insertions, 0 deletions
