]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: dts: spacemit: Add PDMA node for K1 SoC
authorGuodong Xu <guodong@riscstar.com>
Fri, 22 Aug 2025 03:06:32 +0000 (11:06 +0800)
committerYixun Lan <dlan@gentoo.org>
Tue, 2 Sep 2025 12:41:20 +0000 (20:41 +0800)
Add PDMA dma-controller node under dma_bus for SpacemiT K1 SoC.

The PDMA node is marked as disabled by default, allowing board-specific
device trees to enable it as needed.

Signed-off-by: Guodong Xu <guodong@riscstar.com>
Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Link: https://lore.kernel.org/r/20250822-working_dma_0701_v2-v5-6-f5c0eda734cc@riscstar.com
Signed-off-by: Yixun Lan <dlan@gentoo.org>
arch/riscv/boot/dts/spacemit/k1.dtsi

index 6c68b2e54675ebdc71e60d14248f51470bb33d0f..19dc9c94e5b51f2cd6cc068950663e451b87a8a1 100644 (file)
                        dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
                                     <0x1 0x00000000 0x1 0x80000000 0x3 0x00000000>;
 
+                       pdma: dma-controller@d4000000 {
+                               compatible = "spacemit,k1-pdma";
+                               reg = <0x0 0xd4000000 0x0 0x4000>;
+                               clocks = <&syscon_apmu CLK_DMA>;
+                               resets = <&syscon_apmu RESET_DMA>;
+                               interrupts = <72>;
+                               dma-channels = <16>;
+                               #dma-cells= <1>;
+                               status = "disabled";
+                       };
+
                        uart0: serial@d4017000 {
                                compatible = "spacemit,k1-uart",
                                             "intel,xscale-uart";