Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp508126ybj; Sat, 21 Sep 2019 06:11:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzA2H4aXejZdcPL6uy35+5xoxwguXhmV0vdBogcssXQDmI7AcfeEkT1WySJAd/vsF3Bxgsx X-Received: by 2002:adf:eb05:: with SMTP id s5mr2938697wrn.360.1569071490183; Sat, 21 Sep 2019 06:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569071490; cv=none; d=google.com; s=arc-20160816; b=f9BNG0Vx1WkQOePpfLZryJ3PJE+VITQAQDea7UvMY7pCg5ZLM1gCH3+7zFM2fQznf5 PFoZhvsjNVR9unoFzXpnNt9SIvM/tLOIheC6QLZPZokvh4ZXbYMJrDcB4EC5DWVftWhz NknyuY7e7hbhJ3dSilbGqNDFONwrEa8ePqH1bi7cH12naSFsLQzInhnZ+bTYIi+NtG1w ULMS36OUTo3wYr+NtHHeewa84gJZY5BGYm3G4+a/l8qPBdO4C5DiVh3qolr2Z/RTG6+d lU7ukAf7ZwcF2LqOWkWZm5Skyn8q295cbzd1LU6XQd5BfDYF2nzqs9ZyE9/C/9N7uKW1 f6cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=g994BJg/jPAigCOVsri275vhxV1YMwyqa+ZWpEcSJHY=; b=Q7IveGs5pFfx2K0HsWA7/UKT/91DPYkwoILI9Yp4Vip6wPVft/0A9u8wvucZiC4A7Z ZqQ6EvDjkNk4tAH6+/IHuucwQBQ2dBEwVi/fjpLPxGvGDUoeWwx9Tn+fd6a8F8R35QNf HvPZIHmjfF3x2HNGTsrKJjVTLAWaiDnHrYsmdTgnyq/WEYbi/kkNxRBfAKNvjFzfO4tB FRfYxTIePqouqy7xV9LdOzANxwza5MYh3Cid8qeG/XGow9AO449pAwJQHGH5gl68g1km j2WJQ8SiTEDTXRS6QEU+JKy1Mk+Rz1f1Cj70LXB1Wj1TVGyl88Ipk8DsvriDT7u185Gn maYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=iFc44Jyz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si2929478edq.60.2019.09.21.06.10.34; Sat, 21 Sep 2019 06:11:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=iFc44Jyz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437987AbfITKBs (ORCPT + 99 others); Fri, 20 Sep 2019 06:01:48 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:41824 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437968AbfITKBr (ORCPT ); Fri, 20 Sep 2019 06:01:47 -0400 Received: by mail-io1-f67.google.com with SMTP id r26so14772636ioh.8 for ; Fri, 20 Sep 2019 03:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g994BJg/jPAigCOVsri275vhxV1YMwyqa+ZWpEcSJHY=; b=iFc44JyzXlsEdJ8ZGOrWgpTK0QF37LYXPDpneIFX6jIh3j9MM3sAu1JGGTadYRKuwW CGl0Fmrl34Sy+7DxuUlu82SW2IVLCHpQOmoeAApYxtgGdXZ4U4i504sEJ9qWkIE2mR0k gWIeJskW/cZLd2m2sNLkxAFFne9NpN8DuiK+ZshTWQJboqhi3fk5xYVnFyDkbDoGmDam 5xiLOm5+J+eEPhm2b+N/5/2Xo/v4KTqIeYmEtXWgDctdq8wzZvJ/nzPPedZwHZKdqTOZ vrp0QrFtQntkesy5Rp7I1O5fqPAz5BGq6ELB/cOVvXCoOkAZYUNmwlxjXXRnSLmzsb8Y /3bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g994BJg/jPAigCOVsri275vhxV1YMwyqa+ZWpEcSJHY=; b=dSUU8APgN4gJvu68nF5pywNFGkqbe9ghE29IrFxyn1USd7adzY2EpqIen6MULWN8rO oOHJ6BSarOnXXMnMGm8CoTSFaEwHh70Knn8t9JV2Zy1v0JRNcKjZ0kkgMr+IMNFzjdPb JlVgLxyErKElS+aMEjveR49++UzTN1zROA7ijauSZGiYAfvYKX42XcwDeDoantARhiyu 4IRrkxjELeuapHdo/vexyTHL1cggKa92nYIMjRxSqQ9+/47luKOKCqGKc41sQLqRSI2l fbDGxlj4Yvio8QKI3PQd5omDoFEy0a3ZfA2O985LUUlI7rkkaM02gmw1knFwPuNS4FDZ NU8A== X-Gm-Message-State: APjAAAUo5IW/eGL0CuJTu6ZXyBAhHcyrublS6S0RIjXmKqPkasg+dhZV yz4rKG2g0pKE39tTh4OR32Th8BccI8GgjtweLFF8EQ== X-Received: by 2002:a6b:e719:: with SMTP id b25mr11639828ioh.100.1568973705798; Fri, 20 Sep 2019 03:01:45 -0700 (PDT) MIME-Version: 1.0 References: <20190920090033.19438-1-green.wan@sifive.com> In-Reply-To: <20190920090033.19438-1-green.wan@sifive.com> From: Pragnesh Patel Date: Fri, 20 Sep 2019 15:31:35 +0530 Message-ID: Subject: Re: [PATCH v3 1/3] dt-bindings: dmaengine: sf-pdma: add bindins for SiFive PDMA To: Green Wan Cc: linux-hackers@sifive.com, Vinod Koul , Rob Herring , Mark Rutland , Paul Walmsley , Palmer Dabbelt , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Linus Walleij , Nicolas Ferre , "Paul E. McKenney" , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 20, 2019 at 2:30 PM Green Wan wrote: > > Add DT bindings document for Platform DMA(PDMA) driver of board, > HiFive Unleashed Rev A00. > > Signed-off-by: Green Wan > --- > .../bindings/dma/sifive,fu540-c000-pdma.yaml | 55 +++++++++++++++++++ > MAINTAINERS | 5 ++ > 2 files changed, 60 insertions(+) > create mode 100644 Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml > > diff --git a/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml > new file mode 100644 > index 000000000000..3ed015f2b83a > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/sifive,fu540-c000-pdma.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: SiFive Unleashed Rev C000 Platform DMA > + > +maintainers: > + - Green Wan > + - Palmer Debbelt > + - Paul Walmsley > + > +description: | > + Platform DMA is a DMA engine of SiFive Unleashed. It supports 4 > + channels. Each channel has 2 interrupts. One is for DMA done and > + the other is for DME error. > + > + In different SoC, DMA could be attached to different IRQ line. > + DT file need to be changed to meet the difference. For technical > + doc, > + > + https://static.dev.sifive.com/FU540-C000-v1.0.pdf > + > +properties: > + compatible: > + items: > + - const: sifive,fu540-c000-pdma > + > + reg: > + maxItems: 1 > + > + interrupts: > + minItems: 8 > + maxItems: 8 "make dt_binding_check" should give you the error that interrupts is too short. When you say minItems: 8 then interrupts property should be like this: interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>, <30>; So, remove the minItems: 8 and change maxItems: 1 for interrupts = <23 24 25 26 27 28 29 30>; > + > + '#dma-cells': > + const: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + - '#dma-cells' > + > +examples: > + - | > + dma@3000000 { > + compatible = "sifive,fu540-c000-pdma"; > + reg = <0x0 0x3000000 0x0 0x8000>; > + interrupts = <23 24 25 26 27 28 29 30>; > + #dma-cells = <1>; > + }; > + > +... > diff --git a/MAINTAINERS b/MAINTAINERS > index 49f75d1b7b51..d0caa09a479e 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -14591,6 +14591,11 @@ F: drivers/media/usb/siano/ > F: drivers/media/usb/siano/ > F: drivers/media/mmc/siano/ > > +SIFIVE PDMA DRIVER > +M: Green Wan > +S: Maintained > +F: Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml > + > SIFIVE DRIVERS > M: Palmer Dabbelt > M: Paul Walmsley > -- > 2.17.1 > > -- > You received this message because you are subscribed to the Google Groups "linux-hackers" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-hackers+unsubscribe@sifive.com. > To view this discussion on the web visit https://groups.google.com/a/sifive.com/d/msgid/linux-hackers/20190920090033.19438-1-green.wan%40sifive.com.