From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH v4 07/10] pwm: tegra: Add device tree support Date: Tue, 20 Mar 2012 09:33:01 -0600 Message-ID: <4F68A32D.1000402@wwwdotorg.org> References: <1331740593-10807-1-git-send-email-thierry.reding@avionic-design.de> <1331740593-10807-8-git-send-email-thierry.reding@avionic-design.de> <4F67EE9A.6080101@wwwdotorg.org> <20120320084807.GC20249@avionic-0098.adnet.avionic-design.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120320084807.GC20249-RM9K5IK7kjIyiCvfTdI0JKcOhU4Rzj621B7CTYaBSLdn68oJJulU0Q@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Thierry Reding 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 List-Id: devicetree@vger.kernel.org On 03/20/2012 02:48 AM, Thierry Reding wrote: > * Stephen Warren wrote: >> On 03/14/2012 09:56 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. >>> >>> Signed-off-by: Thierry Reding >> >>> +++ b/Documentation/devicetree/bindings/pwm/tegra-pwm.txt >> >> Can this please be named nvidia,tegra20-pwm.txt so that if we need >> different bindings for any future Tegra PWM, we won't have any filename >> conflicts? > > That file already documents the bindings for Tegra 20 and Tegra 30, that's > why I chose the move generic name. Could this perhaps be documented within > the file instead? Or should I rather add a nvidia,tegra30-pwm.txt with a > reference to the nvidia,tegra20-pwm.txt? I think it's fine for a file of name nvidia,tegra20-pwm.txt to document both Tegra20 and Tegra30; the file is named after the first/earliest compatible value it documents. The issue is more that /if/ say TegraNN needs a different binding, I want the naming consistent (e.g. nvidia,tegraNN-pwm.txt) rather than having the old file with one style and the new file named using a different style.