From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D429C74A21 for ; Wed, 10 Jul 2019 13:49:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1DD7020651 for ; Wed, 10 Jul 2019 13:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562766540; bh=u+h9L2PkMGszB6CZLiEEQigUEngQOBljD1CgcZzVQs8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=Nrfds7sIouswVf4INSWfGhz8k9IoWOtSdjx1fe2OFLA0wdRESWk5Bdq9LYQtelFv3 Tj3FtbmeoalilnJcJDoqk8rWt/Rqsj20JSaeBLTSuLE1WrYGqxWQst2WcOGgVLVUTQ jlhCj9isNw4aaKRLL8/ldIaBTmg8s7GZPgRhDN9k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727154AbfGJNs7 (ORCPT ); Wed, 10 Jul 2019 09:48:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:56878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727102AbfGJNs7 (ORCPT ); Wed, 10 Jul 2019 09:48:59 -0400 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.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 8EA482086D; Wed, 10 Jul 2019 13:48:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562766538; bh=u+h9L2PkMGszB6CZLiEEQigUEngQOBljD1CgcZzVQs8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lZ4A3uCdSkp29Q/gAuH6R2uj6rbrd53DWPa4VlstJqQldNKxgTjsLASLg+tfjB+hg NNi6IR+fLrGr3J0vl6OWLzR8CFyoUz93EuC0buH4M99Yywpe7IF47tdardJkbkPqvI /S7S4Rn2gJbCmsj+gUCx3VhOBuKiXlUikMMoIjYE= Received: by mail-qk1-f180.google.com with SMTP id g18so1915014qkl.3; Wed, 10 Jul 2019 06:48:58 -0700 (PDT) X-Gm-Message-State: APjAAAVOMA4uI29oStj4HfAxQZvNlH/8NeoJWVDEWQUj7ftqxsc9NqOY 5yNPQu599Qqonw1QxjgVJrNDpqsqavPLoJ0QkA== X-Google-Smtp-Source: APXvYqzLjS4ENFrvg6Ny01xGrcyKKx0P85tzVM/HZcRb+gBjeV+mgbMRCgrB0/kR689V7NgUiJbGMqBd++/xEeWl0uU= X-Received: by 2002:a37:a48e:: with SMTP id n136mr23970720qke.223.1562766537777; Wed, 10 Jul 2019 06:48:57 -0700 (PDT) MIME-Version: 1.0 References: <20190613005109.1867-1-jassisinghbrar@gmail.com> <20190613005237.1996-1-jassisinghbrar@gmail.com> <20190709143437.GA30850@bogus> In-Reply-To: From: Rob Herring Date: Wed, 10 Jul 2019 07:48:40 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: milbeaut-m10v-hdmac: Add Socionext Milbeaut HDMAC bindings To: Jassi Brar Cc: "open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM" , Devicetree List , Linux Kernel Mailing List , Vinod , Mark Rutland , Takao Orito , Masami Hiramatsu , Kazuhiro Kasai , Jassi Brar Content-Type: text/plain; charset="UTF-8" Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On Tue, Jul 9, 2019 at 10:12 PM Jassi Brar wrote: > > On Tue, Jul 9, 2019 at 9:34 AM Rob Herring wrote: > > > > On Wed, Jun 12, 2019 at 07:52:37PM -0500, jassisinghbrar@gmail.com wrote: > > > From: Jassi Brar > > > > > > Document the devicetree bindings for Socionext Milbeaut HDMAC > > > controller. Controller has upto 8 floating channels, that need > > > a predefined slave-id to work from a set of slaves. > > > > > > Signed-off-by: Jassi Brar > > > --- > > > .../bindings/dma/milbeaut-m10v-hdmac.txt | 54 +++++++++++++++++++ > > > 1 file changed, 54 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/dma/milbeaut-m10v-hdmac.txt > > > > > > diff --git a/Documentation/devicetree/bindings/dma/milbeaut-m10v-hdmac.txt b/Documentation/devicetree/bindings/dma/milbeaut-m10v-hdmac.txt > > > new file mode 100644 > > > index 000000000000..a104fcb9e73d > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/dma/milbeaut-m10v-hdmac.txt > > > @@ -0,0 +1,51 @@ > > > +* Milbeaut AHB DMA Controller > > > + > > > +Milbeaut AHB DMA controller has transfer capability bellow. > > > + - memory to memory transfer > > > + - device to memory transfer > > > + - memory to device transfer > > > + > > > +Required property: > > > +- compatible: Should be "socionext,milbeaut-m10v-hdmac" > > > +- reg: Should contain DMA registers location and length. > > > +- interrupts: Should contain all of the per-channel DMA interrupts. > > > > How many? > > > Each channel has an IRQ line. And the number of channels is > configurable. So instead of having some explicit property like > 'dma-channels', we infer that from the number of irqs registered. Yes, I get that. There's still a range that's valid and you need to define those constraints. If there's a variable number of channels, then that implies different SoCs which should also mean different compatible strings. Rob