Received: by 10.192.165.156 with SMTP id m28csp810852imm; Thu, 19 Apr 2018 07:57:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Co/l2UwoMclcizYUSPAGpeahLcF9/Q72kDmTrYqb4dREDdTH43fkC0UTjymunSvRU9LHe X-Received: by 2002:a17:902:8342:: with SMTP id z2-v6mr6343861pln.311.1524149873134; Thu, 19 Apr 2018 07:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524149873; cv=none; d=google.com; s=arc-20160816; b=FwnzJIOQZd7i7XIAtY+LEve7RGJT25L5LJ4gMBlLLe+CGVCUfoAyyPnsAacPt8QqQN C40TlZ732ojf6AwtveuHzyIjRa52TZkl1VtnEF/8iMEOyia/jBHJIA4gPCj9ORkFWDH1 BjFEos7pq25grBiYkAkVBpoPztvok9nNnxuo73NTT7Rnv8fcpZL/yHzi31SVJqsIF+jC mjpUCT3RWzGaivP7iF/Hg0yWIfnTK5RGomcZQrFgOS8C0zGaaV2/0483i7mC0V7eXjob Cg0jqMxncC626ZNhMwrbtaeXXLN4KXgdY6ONy04NsYi/zk3QN/ekwEwBLm+cDA1gvDKM +fnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:references :in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=HbPyVWqZLnxsjYGbK67YnQK2078XznvHoE5Bytfh9Y8=; b=PgaUh86zk9ImhOjOJP9/uJeG7YLuar9kQoAE4bg0LNHPHi7gd56r/we0uCBrjm6hEC ygjUsCVWAsQ3hy1Y7qqYKOwT4/FcoPmXl12XcsiefJv/mcoyeblLfxpgOXTruJNQjWSb F/9KeGz94TGc5iaFZ3bYZRSl+H69IGIydX1l7WB373E/Z7hky4MAdhqk4lN06f7SwuBe zrHCyPAcYKNRv3FaFTGugnlCmCJ+CkPygBqR2aLdlos3JQpip0Rn8LmEUBPgsvdt6We6 eXXREmRJJfwsWCxJF8Mg3ihZ1fN7k+XfxlORHaX2Ee/47FAVxt1KEhOF6cR1LetJYel0 HRvQ== ARC-Authentication-Results: i=1; mx.google.com; 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 v64si3105663pfb.78.2018.04.19.07.57.38; Thu, 19 Apr 2018 07:57:53 -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; 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 S1753466AbeDSO41 (ORCPT + 99 others); Thu, 19 Apr 2018 10:56:27 -0400 Received: from mail.bootlin.com ([62.4.15.54]:40319 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752854AbeDSO4Z (ORCPT ); Thu, 19 Apr 2018 10:56:25 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id AACCF2068D; Thu, 19 Apr 2018 16:56:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from aptenodytes (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 4575E20146; Thu, 19 Apr 2018 16:56:23 +0200 (CEST) Message-ID: Subject: Re: [PATCH 6/9] sunxi-cedrus: Add device tree binding document From: Paul Kocialkowski To: Rob Herring Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, "Signed-off-by : Bob Ham" , Thomas Petazzoni , Alexandre Courbot , Maxime Ripard , Chen-Yu Tsai , Florent Revest , Hans Verkuil , Icenowy Zheng , Sakari Ailus , Thomas van Kleef , Laurent Pinchart Date: Thu, 19 Apr 2018 16:55:10 +0200 In-Reply-To: <20180318124800.7soqh34fxvwjm7pn@rob-hp-laptop> References: <20180309100933.15922-3-paul.kocialkowski@bootlin.com> <20180309101445.16190-4-paul.kocialkowski@bootlin.com> <20180318124800.7soqh34fxvwjm7pn@rob-hp-laptop> Organization: Bootlin Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-y+arpT7OIZ5LFWnZA2uN" X-Mailer: Evolution 3.28.1 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-y+arpT7OIZ5LFWnZA2uN Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Sun, 2018-03-18 at 07:48 -0500, Rob Herring wrote: > On Fri, Mar 09, 2018 at 11:14:42AM +0100, Paul Kocialkowski wrote: > > From: Florent Revest >=20 > "device tree binding document" can all be summarized with the subject=20 > prefix "dt-bindings: media: ". Will do in v2, thanks. > Also, email should be updated to @bootlin.com? I will keep the address @free-electrons.com (since there is no matching @bootlin.com address). Although that address was broken at the time of sending v1, it should be a valid redirect nowadays. > >=20 > > Device Tree bindings for the Allwinner's video engine > >=20 > > Signed-off-by: Florent Revest > > --- > > .../devicetree/bindings/media/sunxi-cedrus.txt | 44 > > ++++++++++++++++++++++ > > 1 file changed, 44 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/media/sunxi- > > cedrus.txt > >=20 > > diff --git a/Documentation/devicetree/bindings/media/sunxi- > > cedrus.txt b/Documentation/devicetree/bindings/media/sunxi- > > cedrus.txt > > new file mode 100644 > > index 000000000000..138581113c49 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/media/sunxi-cedrus.txt > > @@ -0,0 +1,44 @@ > > +Device-Tree bindings for SUNXI video engine found in sunXi SoC > > family > > + > > +Required properties: > > +- compatible : "allwinner,sun4i-a10-video-engine"; > > +- memory-region : DMA pool for buffers allocation; >=20 > Why do you need this linkage? Many drivers use CMA and don't need > this. The VPU can only access the first 256 MiB of DRAM, that are DMA-mapped starting from the DRAM base. This requires specific memory allocation and handling. I'll add the information in v2. > > +- clocks : list of clock specifiers, corresponding to > > + entries in clock-names property; > > +- clock-names : should contain "ahb", "mod" and "ram" > > entries; > > +- resets : phandle for reset; > > +- interrupts : should contain VE interrupt number; > > +- reg : should contain register base and length > > of VE. > > + > > +Example: > > + > > +reserved-memory { > > + #address-cells =3D <1>; > > + #size-cells =3D <1>; > > + ranges; > > + > > + ve_reserved: cma { > > + compatible =3D "shared-dma-pool"; > > + reg =3D <0x43d00000 0x9000000>; > > + no-map; > > + linux,cma-default; > > + }; > > +}; > > + > > +video-engine { > > + compatible =3D "allwinner,sun4i-a10-video-engine"; > > + memory-region =3D <&ve_reserved>; > > + > > + clocks =3D <&ahb_gates 32>, <&ccu CLK_VE>, > > + <&dram_gates 0>; > > + clock-names =3D "ahb", "mod", "ram"; > > + > > + assigned-clocks =3D <&ccu CLK_VE>; > > + assigned-clock-rates =3D <320000000>; >=20 > Not documented. Will do in v2. --=20 Paul Kocialkowski, Bootlin (formerly Free Electrons) Embedded Linux and kernel engineering https://bootlin.com --=-y+arpT7OIZ5LFWnZA2uN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEJZpWjZeIetVBefti3cLmz3+fv9EFAlrYrc4ACgkQ3cLmz3+f v9E6Ogf/f1f6J5mtla35B01CUFcA7QlVM5My+Dle7hi8P9z2YzzxrjmMTv399EQe oRi8QMXSmULQNTbUaQfUzXQD+5Q6Y5gtfiZlLX8y/NNDkRwhGyJWCUbCMspR/kFn fria3jo2qTLMnf8R+daBTGO7yTdCq5g8xqKcUJuAim7vWyvQt1r2RKx3fGfKM25P 9oe9nbpup22sexlf3m94SFRobqOePaw32mTfwNvnJ4ch2H9FTpw209mhDwr9RwWT F2ii5TdIFbl+QX8Z37yuWuQzd1tD+/WJxMNdXNmdp4/LhLi6fxkedLeNFW26Nxbl r5vHhG01SJwgUFO0Ti9IR1nZdDe4ng== =NLng -----END PGP SIGNATURE----- --=-y+arpT7OIZ5LFWnZA2uN--