Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp621745ybj; Thu, 19 Sep 2019 20:22:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrMmMCDXGSCCJAaE406S1o819D2QiLpG4liyaewfGtntY+KmAjPsHUABKUuUYn6sv7TrgG X-Received: by 2002:aa7:c1d4:: with SMTP id d20mr19355296edp.223.1568949725582; Thu, 19 Sep 2019 20:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568949725; cv=none; d=google.com; s=arc-20160816; b=iwfZKZ6Mf7MzXwnLlFdNF9m6QY6MpoRtK+zUiRtSaTp/WgwQMVDmj4olsaMC8oNvs0 Z5ZL7IgOOu82ll+yJm3qI8F2FiQBKAiMNc1NDFl7/5MH/v8SoLnJjk58rQ240rxrpCYc YCH+My0LzDaNS5BCz0J22BPxiCYN4kTL7d8c/uH7sP+u6LScgrTVxymFZNLx+2lWy1Mn Q/fLeCUc7RP8pNHA55YHDb2GADsHpe8iWxpRK2S3FHKRQi3oB/48Pbb7uteTlRzMXEcU /yqQm8ralZbN0oEy8rw3tq61b7KGzOmRVQPnQ5/QYj8F7bgaQWMzz9IrrF5D05xx7EM5 nKAw== 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=R86vBoFfXWneUoeO+Fm4ojkUvcgQm0MNxv/8nE5+vuI=; b=Q0KCgf4U+tgA+7T//x897Vbm7N+I5g4JtadzThLAu3RkzidzYHv5g9XyHR2zRg6pNi jThXLlylIyJLa4346lV+kMN4AdC00/ZzlXwi7Z4NOBVQ0adP8Lo9zkZBrKUv/PBNIIh/ OysGQtbQBeg3DViBSwhcFBo/6ym8bVztxfcmDDpAaO3oUbpdZTxzcmkUy4g4gWS8QU8O XmxnoOnRjYBaHZwTXY/wU4NAIO0S/3yFCJ+XDPljqJQv7ZkWNKGZG/qLcrYUKu5aP8s1 xzPJpQPdBT2nqrrwS1R9fSC0tl6JscZIatDjlc6H5JNiEjL5Co8OGeqCAjnYFHSqoIJi VPgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OQeaODO9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si348092ejy.106.2019.09.19.20.21.42; Thu, 19 Sep 2019 20:22:05 -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=@kernel.org header.s=default header.b=OQeaODO9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389462AbfISSnR (ORCPT + 99 others); Thu, 19 Sep 2019 14:43:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:41714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388882AbfISSnR (ORCPT ); Thu, 19 Sep 2019 14:43:17 -0400 Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B229207FC; Thu, 19 Sep 2019 18:43:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568918595; bh=glOb8s+1ryg5HNxT7Y4/e5hT0T+6wfRsV2Bzu3qQtPU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OQeaODO9r7UEduye62Nwuxq/KXSRsnWU0sDeTKNIw+qnkGrG4m/YTdOl/c1kGiQbD 1NQ+K06ho/A5qPryH8kpCXMK/Hh59JJXTTj52/3afcOPhlgZokibHVX1Jn3XllJUME 3MTTtvPvvJg7TZzTdwqYBwvFpMFMdw/J+xS8tgLE= Received: by mail-qt1-f180.google.com with SMTP id c21so5493023qtj.12; Thu, 19 Sep 2019 11:43:15 -0700 (PDT) X-Gm-Message-State: APjAAAVA1whCCk18VjZF+9djs03Yww9ER564AvTFIsn9hw9olj/UXeKo qapIwgueKUklzH9o6C0sBDlPSKo1cJMWONMCkQ== X-Received: by 2002:ac8:75c7:: with SMTP id z7mr4916939qtq.136.1568918594807; Thu, 19 Sep 2019 11:43:14 -0700 (PDT) MIME-Version: 1.0 References: <20190919072756.1973-1-green.wan@sifive.com> In-Reply-To: <20190919072756.1973-1-green.wan@sifive.com> From: Rob Herring Date: Thu, 19 Sep 2019 13:43:03 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: dmaengine: sf-pdma: add bindins for SiFive PDMA To: Green Wan Cc: linux-hackers@sifive.com, Vinod Koul , Mark Rutland , Paul Walmsley , Palmer Dabbelt , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Linus Walleij , Nicolas Ferre , "Paul E. McKenney" , "open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM" , 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 Thu, Sep 19, 2019 at 2:28 AM 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 | 63 +++++++++++++++++++ > MAINTAINERS | 5 ++ > 2 files changed, 68 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..b5423f1cfcaf > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml > @@ -0,0 +1,63 @@ > +# 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 > + > + interrupt-parent: > + description: > + Interrupt parent must correspond to the name PLIC interrupt > + controller, i.e. "plic0" > + maxItems: 1 This fails 'make dt_binding_check'. You shouldn't have 'interrupt-parent' here anyways. > + > + '#dma-cells': > + const: 1 > + > +required: > + - compatible > + - reg > + - interrupt-parent It is valid for interrupt-parent to be in a parent node too, so required is wrong. > + - interrupts > + - '#dma-cells' > + > +examples: > + - | > + dma@3000000 { > + compatible = "sifive,fu540-c000-pdma"; > + reg = <0x0 0x3000000 0x0 0x8000>; > + interrupt-parent = <&plic0>; > + 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 >