From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH v3 1/3] mfd: mc13xxx: add device tree probe support Date: Tue, 20 Dec 2011 01:59:32 +0000 Message-ID: <20111220015931.GX2860@opensource.wolfsonmicro.com> References: <1323702958-4831-1-git-send-email-shawn.guo@linaro.org> <1323702958-4831-2-git-send-email-shawn.guo@linaro.org> <20111220005708.GM2860@opensource.wolfsonmicro.com> <20111220020101.GD5683@S2100-06.ap.freescale.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20111220020101.GD5683-+NayF8gZjK2ctlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Shawn Guo Cc: Samuel Ortiz , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Liam Girdwood , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Sascha Hauer , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org On Tue, Dec 20, 2011 at 10:01:02AM +0800, Shawn Guo wrote: > On Tue, Dec 20, 2011 at 12:57:09AM +0000, Mark Brown wrote: > > On Mon, Dec 12, 2011 at 11:15:56PM +0800, Shawn Guo wrote: > > > +Sub-nodes: > > > +- regulators : Contain the regulator nodes. The name of regulator node > > > + is being used by mc13xxx regulator driver to find the correct relator > > > + device. > > Reading this I'm not clear what the name of the node is, or what the > > valid node names are. > In the example below, the name would be 'mc13892__sw1'. You're missing the point - someone reading the documentation needs to be able to figure out what strings they need to use for all the different regulators on the chip are without groveling through the driver code. > > > + sw1_reg: mc13892__sw1 { > > The examples don't really elucidate this either (and the __ is rather > > odd). > Yes, that's because the name defined by mc13892 regulator driver is odd. That's *not* something that we should be exposing in the device tree bindings. This is an implementation detail of the Linux driver which might well change in future. From mboxrd@z Thu Jan 1 00:00:00 1970 From: broonie@opensource.wolfsonmicro.com (Mark Brown) Date: Tue, 20 Dec 2011 01:59:32 +0000 Subject: [PATCH v3 1/3] mfd: mc13xxx: add device tree probe support In-Reply-To: <20111220020101.GD5683@S2100-06.ap.freescale.net> References: <1323702958-4831-1-git-send-email-shawn.guo@linaro.org> <1323702958-4831-2-git-send-email-shawn.guo@linaro.org> <20111220005708.GM2860@opensource.wolfsonmicro.com> <20111220020101.GD5683@S2100-06.ap.freescale.net> Message-ID: <20111220015931.GX2860@opensource.wolfsonmicro.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Dec 20, 2011 at 10:01:02AM +0800, Shawn Guo wrote: > On Tue, Dec 20, 2011 at 12:57:09AM +0000, Mark Brown wrote: > > On Mon, Dec 12, 2011 at 11:15:56PM +0800, Shawn Guo wrote: > > > +Sub-nodes: > > > +- regulators : Contain the regulator nodes. The name of regulator node > > > + is being used by mc13xxx regulator driver to find the correct relator > > > + device. > > Reading this I'm not clear what the name of the node is, or what the > > valid node names are. > In the example below, the name would be 'mc13892__sw1'. You're missing the point - someone reading the documentation needs to be able to figure out what strings they need to use for all the different regulators on the chip are without groveling through the driver code. > > > + sw1_reg: mc13892__sw1 { > > The examples don't really elucidate this either (and the __ is rather > > odd). > Yes, that's because the name defined by mc13892 regulator driver is odd. That's *not* something that we should be exposing in the device tree bindings. This is an implementation detail of the Linux driver which might well change in future.