lkml.org 
[lkml]   [2022]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 08/14] riscv: dts: canaan: add a specific compatible for k210's dma
    Date
    From: Conor Dooley <conor.dooley@microchip.com>

    The DMAC on the k210 has a non standard interrupt configuration, which
    leads to dtbs_check warnings:

    k210_generic.dtb: dma-controller@50000000: interrupts: [[27], [28], [29], [30], [31], [32]] is too long
    From schema: linux/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml

    Update the binding to use a custom compatible to avoid the warning.

    Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
    ---
    arch/riscv/boot/dts/canaan/k210.dtsi | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/riscv/boot/dts/canaan/k210.dtsi b/arch/riscv/boot/dts/canaan/k210.dtsi
    index 287ea6eebe47..314f6da5d7f6 100644
    --- a/arch/riscv/boot/dts/canaan/k210.dtsi
    +++ b/arch/riscv/boot/dts/canaan/k210.dtsi
    @@ -135,7 +135,7 @@ gpio0: gpio-controller@38001000 {
    };

    dmac0: dma-controller@50000000 {
    - compatible = "snps,axi-dma-1.01a";
    + compatible = "canaan,k210-axi-dma", "snps,axi-dma-1.01a";
    reg = <0x50000000 0x1000>;
    interrupts = <27>, <28>, <29>, <30>, <31>, <32>;
    #dma-cells = <1>;
    --
    2.36.1
    \
     
     \ /
      Last update: 2022-06-18 14:35    [W:4.147 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site