Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933443AbdCaM46 (ORCPT ); Fri, 31 Mar 2017 08:56:58 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34598 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753049AbdCaM4L (ORCPT ); Fri, 31 Mar 2017 08:56:11 -0400 Date: Fri, 31 Mar 2017 14:56:07 +0200 From: Thierry Reding To: Alexandre Courbot Cc: Jonathan Hunter , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, gnurou@gmail.com Subject: Re: [PATCH v2] dt-bindings: Add documentation for GP10B GPU Message-ID: <20170331125607.GA29779@ulmo.ba.sec> References: <20170330091831.18322-2-acourbot@nvidia.com> <20170330092644.11890-1-acourbot@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: <20170330092644.11890-1-acourbot@nvidia.com> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3549 Lines: 95 --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 30, 2017 at 06:26:44PM +0900, Alexandre Courbot wrote: > GP10B's definition is mostly similar to GK20A's and GM20B's. The only > noticeable difference is the use of power domains instead of a regulator > for power supply. >=20 > Signed-off-by: Alexandre Courbot > --- > Changes since v1: > - It's much better when it compiles. >=20 > .../devicetree/bindings/gpu/nvidia,gk20a.txt | 25 ++++++++++++++++= +++++- > 1 file changed, 24 insertions(+), 1 deletion(-) >=20 > diff --git a/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt b/Doc= umentation/devicetree/bindings/gpu/nvidia,gk20a.txt > index ff3db65e50de..b7e4c7444510 100644 > --- a/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt > +++ b/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt > @@ -5,6 +5,7 @@ Required properties: > Currently recognized values: > - nvidia,gk20a > - nvidia,gm20b > + - nvidia,gp10b > - reg: Physical base address and length of the controller's registers. > Must contain two entries: > - first entry for bar0 > @@ -14,7 +15,8 @@ Required properties: > - interrupt-names: Must include the following entries: > - stall > - nonstall > -- vdd-supply: regulator for supply voltage. > +- vdd-supply: regulator for supply voltage. Only required for GPUs not u= sing > + power domains. > - clocks: Must contain an entry for each entry in clock-names. > See ../clocks/clock-bindings.txt for details. > - clock-names: Must include the following entries: > @@ -27,6 +29,8 @@ is also required: > See ../reset/reset.txt for details. > - reset-names: Must include the following entries: > - gpu > +- power-domains: GPUs that make use of power domains can define this pro= perty > + instead of vdd-supply. Currently "nvidia,gp10b" makes use of this. > =20 > Optional properties: > - iommus: A reference to the IOMMU. See ../iommu/iommu.txt for details. > @@ -68,3 +72,22 @@ Example for GM20B: > iommus =3D <&mc TEGRA_SWGROUP_GPU>; > status =3D "disabled"; > }; > + > +Example for GP10B: > + > + gpu@17000000 { > + compatible =3D "nvidia,gp10b"; > + reg =3D <0x0 0x17000000 0x0 0x1000000>, > + <0x0 0x18000000 0x0 0x1000000>; Would it make sense to add a reg-names property to give these meaning? I know that the binding describes what each entry is, but having the names specified in a property would make it more immediately obvious. Just a thought, otherwise looks good to me. Thierry --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAljeUeQACgkQ3SOs138+ s6Ga/A/+NAAYoM6EcNR0ENu5+cpcxGpXJ3pW8KhNnkL4VtHFr7xKNCbqlS4tU65e wmWc/ks/gufcJUM5sR4UzMrVBD8wPoc4EZtsTwDueOZtjMKi26tvVNquj7ZNR/Fo WiFJntTXupHtjbSL5iLKX/RFo+7fXb+j+Z/fVGxqt0V9u7qi20/Wx9xuaKaUW1G8 mE6/8kGGA/fgPMNOp6qIyQndwK1W/8ghatvQRoQQ79jYi6mQfsLZmUQYUSu37+f8 KXiSHdU6NqugMh0wxmVWEcfgvFWQgZXx04Ox2BqnrP2aA/UEA5zfx8IIOXsprEwx 7Xe14AlxGVwXDPOEq9/m2gMX1cSFqTWEkT14wgeqqyYOGiyKqPaLHo6eZHu1ypB3 Cr784TiLfBCAjovmQgO/PgPP+psp9+d3j8+N8KGWk53K3Vng8NlwH9t5IXyPTAp2 p5kMO0R8JlGOOyZroA47Oy2FEHgY2FhXOZFNgxAAarrYVXyBRPNqY2RyP3t1GqY8 BWCL2nDGJH1Zeame3AAH5B/9nGHig1vhX6lDeGgLPx1D8DvQvUKiizpYqEZafneT rauEJeQdibFJC8ZL+vftmTTsYAAMbch9Uphk/8SAmXbmvWgYiWwKmd8vo4mAaoN+ 2lg9F9qDduAeWLWAJFo+TIiIwFvL/V78i6R1Ze54q9zibCFXfuc= =OXep -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--