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=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS 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 89714C43142 for ; Mon, 30 Jul 2018 21:14:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 298D120890 for ; Mon, 30 Jul 2018 21:14:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=crapouillou.net header.i=@crapouillou.net header.b="j0SgNsHM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 298D120890 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=crapouillou.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731906AbeG3Wu7 (ORCPT ); Mon, 30 Jul 2018 18:50:59 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:48348 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731047AbeG3Wu7 (ORCPT ); Mon, 30 Jul 2018 18:50:59 -0400 Date: Mon, 30 Jul 2018 23:13:45 +0200 From: Paul Cercueil Subject: Re: [PATCH v3 01/18] doc: dt-bindings: jz4780-dma: Update bindings to reflect driver changes To: Rob Herring Cc: Vinod Koul , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , Zubair Lutfullah Kakakhel , Mathieu Malaterre , Daniel Silsby , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Message-Id: <1532985225.4702.0@smtp.crapouillou.net> In-Reply-To: <20180724233558.GA30764@rob-hp-laptop> References: <20180721110643.19624-1-paul@crapouillou.net> <20180721110643.19624-2-paul@crapouillou.net> <20180724233558.GA30764@rob-hp-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1532985245; bh=uYpD3fWWlneHsqhr3HImK00L2GSDPkiA17V2JO0mQUw=; h=Date:From:Subject:To:Cc:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=j0SgNsHMGUYTOoxLnyjcU3hBtpJEjtsF9EvZKSjEnZr5SUSmHkA2hzCaSw9Ez1e/ff1ejh5o53ezpqGUGfVUZczqodfhPhaSZwlMFqnaCwskWiG+MvWYhOvQpR7aaxYn+kioLp8AStp7Lc0pxGLUN7Af2t3Mf/awjbxHgQ7Mnvo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Le mer. 25 juil. 2018 =E0 1:35, Rob Herring a =E9crit : > On Sat, Jul 21, 2018 at 01:06:26PM +0200, Paul Cercueil wrote: >> The driver is now compatible with four SoCs: JZ4780, JZ4770,=20 >> JZ4725B and >> JZ4740. >=20 > What the driver supports is irrelevant to the binding. That's just informative. But I can remove it, no problem. >>=20 >> Besides, it now expects the devicetree to supply a second memory >> resource. This resource is mandatory on the newly supported SoCs. >> For the JZ4780, new devicetree code must also provide it, although=20 >> the >> driver is still compatible with older devicetree binaries. >>=20 >> Signed-off-by: Paul Cercueil >> Tested-by: Mathieu Malaterre >> --- >> Documentation/devicetree/bindings/dma/jz4780-dma.txt | 14=20 >> ++++++++++---- >> 1 file changed, 10 insertions(+), 4 deletions(-) >>=20 >> v2: New patch in this series; regroups the changes made to the >> jz4780-dma.txt doc file in the previous version of the patchset. >>=20 >> v3: Updated example to comply with devicetree specification >>=20 >> diff --git a/Documentation/devicetree/bindings/dma/jz4780-dma.txt=20 >> b/Documentation/devicetree/bindings/dma/jz4780-dma.txt >> index f25feee62b15..14f33305e194 100644 >> --- a/Documentation/devicetree/bindings/dma/jz4780-dma.txt >> +++ b/Documentation/devicetree/bindings/dma/jz4780-dma.txt >> @@ -2,8 +2,13 @@ >>=20 >> Required properties: >>=20 >> -- compatible: Should be "ingenic,jz4780-dma" >> -- reg: Should contain the DMA controller registers location and=20 >> length. >> +- compatible: Should be one of: >> + * ingenic,jz4740-dma >> + * ingenic,jz4725b-dma >> + * ingenic,jz4770-dma >> + * ingenic,jz4780-dma >=20 > So none of these are compatible with each other? It should be one=20 > valid > combination per line. That's correct - they are all slightly different. >> +- reg: Should contain the DMA channel registers location and=20 >> length, followed >> + by the DMA controller registers location and length. >> - interrupts: Should contain the interrupt specifier of the DMA=20 >> controller. >> - interrupt-parent: Should be the phandle of the interrupt=20 >> controller that >> - clocks: Should contain a clock specifier for the JZ4780 PDMA=20 >> clock. >> @@ -20,9 +25,10 @@ Optional properties: >>=20 >> Example: >>=20 >> -dma: dma@13420000 { >> +dma: dma-controller@13420000 { >> compatible =3D "ingenic,jz4780-dma"; >> - reg =3D <0x13420000 0x10000>; >> + reg =3D <0x13420000 0x400 >> + 0x13421000 0x40>; >>=20 >> interrupt-parent =3D <&intc>; >> interrupts =3D <10>; >> -- >> 2.11.0 >>=20 =