Skip to content

Commit 6f6fa9c

Browse files
zongboxpalmer-dabbelt
authored andcommitted
riscv: dts: Add dma-channels property and modify compatible
Add dma-channels property, then we can determine how many channels there by device tree, in addition, we add the pdma versioning scheme for compatible. Signed-off-by: Zong Li <zong.li@sifive.com> Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com> Acked-by: Palmer Dabbelt <palmer@rivosinc.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 7da9ca3 commit 6f6fa9c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arch/riscv/boot/dts/sifive/fu540-c000.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,12 @@
168168
status = "disabled";
169169
};
170170
dma: dma@3000000 {
171-
compatible = "sifive,fu540-c000-pdma";
171+
compatible = "sifive,fu540-c000-pdma", "sifive,pdma0";
172172
reg = <0x0 0x3000000 0x0 0x8000>;
173173
interrupt-parent = <&plic0>;
174174
interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>,
175175
<30>;
176+
dma-channels = <4>;
176177
#dma-cells = <1>;
177178
};
178179
uart1: serial@10011000 {

0 commit comments

Comments
 (0)