]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: dts: sophgo: sg2044: add DMA controller device
authorInochi Amaoto <inochiama@gmail.com>
Sun, 8 Jun 2025 23:28:29 +0000 (07:28 +0800)
committerInochi Amaoto <inochiama@gmail.com>
Wed, 23 Jul 2025 01:55:14 +0000 (09:55 +0800)
The DMA controller of SG2044 is a standard Synopsys IP, which is
already supported by the kernel.

Add DMA controller DT node for SG2044.

Link: https://lore.kernel.org/r/20250608232836.784737-6-inochiama@gmail.com
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
arch/riscv/boot/dts/sophgo/sg2044.dtsi

index a25cbb78913d3c9219770c62b198e6eef717c0d5..a4d2f8a13cc3e2d111cdb88f24701d3a1945acbb 100644 (file)
                #size-cells = <2>;
                ranges;
 
+               dmac0: dma-controller@7020000000 {
+                       compatible = "snps,axi-dma-1.01a";
+                       reg = <0x70 0x20000000 0x0 0x10000>;
+                       #dma-cells = <1>;
+                       clock-names = "core-clk", "cfgr-clk";
+                       clocks = <&clk CLK_GATE_SYSDMA_AXI>,
+                                <&clk CLK_GATE_SYSDMA_AXI>;
+                       dma-noncoherent;
+                       interrupt-parent = <&intc>;
+                       interrupts = <36 IRQ_TYPE_LEVEL_HIGH>;
+                       dma-channels = <8>;
+                       snps,priority = <0 1 2 3 4 5 6 7>;
+                       snps,block-size = <4096 4096 4096 4096
+                                          4096 4096 4096 4096>;
+                       snps,dma-masters = <2>;
+                       snps,data-width = <2>;
+                       snps,axi-max-burst-len = <4>;
+                       status = "disabled";
+               };
+
                uart0: serial@7030000000 {
                        compatible = "sophgo,sg2044-uart", "snps,dw-apb-uart";
                        reg = <0x70 0x30000000 0x0 0x1000>;