From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: Re: [PATCH v5 09/16] pwm: tegra: Add device tree support Date: Mon, 2 Apr 2012 10:37:49 +0200 Message-ID: <20120402083749.GA6576@avionic-0098.adnet.avionic-design.de> References: <1332945238-14897-1-git-send-email-thierry.reding@avionic-design.de> <1332945238-14897-10-git-send-email-thierry.reding@avionic-design.de> <4F7602CD.2010808@wwwdotorg.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Return-path: Content-Disposition: inline In-Reply-To: <4F7602CD.2010808-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Stephen Warren Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Sascha Hauer , Arnd Bergmann , Matthias Kaehlcke , Kurt Van Dijck , Rob Herring , Grant Likely , Colin Cross , Olof Johansson , Richard Purdie , Mark Brown , Mitch Bradley , Mike Frysinger , Eric Miao , Lars-Peter Clausen , Ryan Mallon , Shawn Guo , Bernhard Walle List-Id: devicetree@vger.kernel.org --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Stephen Warren wrote: > On 03/28/2012 08:33 AM, Thierry Reding wrote: > > Add auxdata to instantiate the PWFM controller from a device tree, > > include the corresponding nodes in the dtsi files for Tegra 20 and > > Tegra 30 and add binding documentation. > >=20 > > Signed-off-by: Thierry Reding > > Acked-by: Stephen Warren >=20 > > diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pwm/pwm-tegra.c > ... > > +#ifdef CONFIG_OF > > +static struct of_device_id tegra_pwm_of_match[] =3D { > > + { .compatible =3D "nvidia,tegra20-pwm" }, > > + { .compatible =3D "nvidia,tegra30-pwm" }, >=20 > Could you swap those two lines, so that tegra30-pwm matches first. It > makes no difference at present, but might in the future if the driver > actually has to differentiate the two SoCs. I thought the matching order was determined by the compatible property in t= he device tree, not the OF match table of the driver. Thierry --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAk95ZV0ACgkQZ+BJyKLjJp/n6ACcC+nf0skcU25IvJvxZYNSPIF+ mpoAoK4XUCdXUReq+2JqLjhrTlEKlq1a =GyhS -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--