riscv: dts: Add dma-channels property and modify compatible
authorZong Li <zong.li@sifive.com>
Mon, 28 Mar 2022 09:52:23 +0000 (17:52 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 21 Apr 2022 00:37:04 +0000 (17:37 -0700)
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>
arch/riscv/boot/dts/sifive/fu540-c000.dtsi

index aad45d7..7ea6300 100644 (file)
                        status = "disabled";
                };
                dma: dma@3000000 {
-                       compatible = "sifive,fu540-c000-pdma";
+                       compatible = "sifive,fu540-c000-pdma", "sifive,pdma0";
                        reg = <0x0 0x3000000 0x0 0x8000>;
                        interrupt-parent = <&plic0>;
                        interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>,
                                     <30>;
+                       dma-channels = <4>;
                        #dma-cells = <1>;
                };
                uart1: serial@10011000 {