lkml.org 
[lkml]   [2022]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 2/3] dt-bindings: Add dma-channels for pdma device node
    Date
    Add dma-channels property, then we can determine how many channels there
    by device tree, rather than statically defines it in PDMA driver

    Signed-off-by: Zong Li <zong.li@sifive.com>
    ---
    .../devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml | 7 +++++++
    1 file changed, 7 insertions(+)

    diff --git a/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
    index d32a71b975fe..3dbb8caefc17 100644
    --- a/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
    +++ b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
    @@ -34,6 +34,12 @@ properties:
    minItems: 1
    maxItems: 8

    + dma-channels:
    + description: For backwards-compatible, the default value is 4
    + minimum: 1
    + maximum: 4
    + default: 4
    +
    '#dma-cells':
    const: 1

    @@ -50,6 +56,7 @@ examples:
    dma@3000000 {
    compatible = "sifive,fu540-c000-pdma";
    reg = <0x3000000 0x8000>;
    + dma-channels = <4>;
    interrupts = <23 24 25 26 27 28 29 30>;
    #dma-cells = <1>;
    };
    --
    2.31.1
    \
     
     \ /
      Last update: 2022-01-14 10:19    [W:5.267 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site