Skip to content

Commit

Permalink
riscv: dts: sophgo: cv18xx: add DMA controller
Browse files Browse the repository at this point in the history
Add DMA controller dt node for CV18XX/SG200x.

Link: https://lore.kernel.org/r/IA1PR20MB4953BD73E12B8A1CDBD9E1A3BB042@IA1PR20MB4953.namprd20.prod.outlook.com
Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
  • Loading branch information
Inochi Amaoto authored and Chen Wang committed Sep 2, 2024
1 parent 8400291 commit 514951a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions arch/riscv/boot/dts/sophgo/cv18xx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,22 @@
status = "disabled";
};

dmac: dma-controller@4330000 {
compatible = "snps,axi-dma-1.01a";
reg = <0x04330000 0x1000>;
interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk CLK_SDMA_AXI>, <&clk CLK_SDMA_AXI>;
clock-names = "core-clk", "cfgr-clk";
#dma-cells = <1>;
dma-channels = <8>;
snps,block-size = <1024 1024 1024 1024
1024 1024 1024 1024>;
snps,priority = <0 1 2 3 4 5 6 7>;
snps,dma-masters = <2>;
snps,data-width = <4>;
status = "disabled";
};

plic: interrupt-controller@70000000 {
reg = <0x70000000 0x4000000>;
interrupts-extended = <&cpu0_intc 11>, <&cpu0_intc 9>;
Expand Down

0 comments on commit 514951a

Please sign in to comment.