All of lore.kernel.org
 help / color / mirror / Atom feed
From: richard.zhao@linaro.org (Richard Zhao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/6] arm/dts: imx6q-sabrelite: add 2P5V and 3P3V regulators
Date: Sun, 8 Jan 2012 17:14:05 +0800	[thread overview]
Message-ID: <20120108091402.GA2203@richard-laptop> (raw)
In-Reply-To: <20120108090619.GB20216@S2101-09.ap.freescale.net>

On Sun, Jan 08, 2012 at 05:06:21PM +0800, Shawn Guo wrote:
> For subject, I would suggest something like below to keep consistency
> with code patches.
> 
> ARM: dts: imx6q-sabrelite: ...
ok
> 
> On Fri, Jan 06, 2012 at 11:25:40AM +0800, Richard Zhao wrote:
> > Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
> > ---
> >  arch/arm/boot/dts/imx6q-sabrelite.dts |   20 ++++++++++++++++++++
> >  1 files changed, 20 insertions(+), 0 deletions(-)
> > 
> > diff --git a/arch/arm/boot/dts/imx6q-sabrelite.dts b/arch/arm/boot/dts/imx6q-sabrelite.dts
> > index 08d920d..3f4b45e 100644
> > --- a/arch/arm/boot/dts/imx6q-sabrelite.dts
> > +++ b/arch/arm/boot/dts/imx6q-sabrelite.dts
> > @@ -46,4 +46,24 @@
> >  			};
> >  		};
> >  	};
> > +
> > +	regulators {
> 
> Shouldn't this node be under node 'anatop at 020c8000'?
It's LDOs on board. Why do I put it in anatop?
> 
> > +		compatible = "simple-bus";
> > +
> Hmm, do we really need this?
If I don't set it, the regulator devices will not be populated.
> 
> > +		reg_2P5V: regulator-2P5V {
> 
> There is convention that we should try to have all kinds of names in dts
> as lower case, even though hardware document generally names blocks in
> capital letters.  It just looks odd to have mixed cases in the name.
The convention looks weird. The dts is supposed to reflect hw as much
as possible. I'll change it if you insist.
> 
> Since the node is under node 'regulators', we may name the node just
> as simple as '2p5v'.
I was just not sure whether the name can start with digit. If yes, I'm
glad to make it short.
> 
> > +			compatible = "regulator-fixed";
> > +			regulator-name = "2P5V";
> 
> It's fine to use capital letters for such case.
ok

Thanks
Richard
> 
> Regards,
> Shawn
> 
> > +			regulator-min-microvolt = <2500000>;
> > +			regulator-max-microvolt = <2500000>;
> > +			regulator-always-on;
> > +		};
> > +
> > +		reg_3P3V: regulator-3P3V {
> > +			compatible = "regulator-fixed";
> > +			regulator-name = "3P3V";
> > +			regulator-min-microvolt = <3300000>;
> > +			regulator-max-microvolt = <3300000>;
> > +			regulator-always-on;
> > +		};
> > +	};
> >  };
> > -- 
> > 1.7.5.4

  reply	other threads:[~2012-01-08  9:14 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-06  3:25 [PATCH 0/6] imx patches when I enable imx6q sabrelite audio Richard Zhao
2012-01-06  3:25 ` [PATCH 1/6] ARM: mxc: make imx_dma_is_general_purpose more generic for sdma Richard Zhao
2012-01-06  9:07   ` Sascha Hauer
2012-01-06  3:25 ` [PATCH 2/6] ARM: imx6q: add cko1 clock Richard Zhao
2012-01-06  3:25 ` [PATCH 3/6] arm/dts: imx6q-sabrelite: add 2P5V and 3P3V regulators Richard Zhao
2012-01-08  9:06   ` Shawn Guo
2012-01-08  9:14     ` Richard Zhao [this message]
2012-01-08  9:47       ` Shawn Guo
2012-01-06  3:25 ` [PATCH 4/6] arm/dts: imx6q-sabrelite: add sgtl5000 audio codec Richard Zhao
2012-01-08 14:52   ` Shawn Guo
2012-01-08 20:55     ` Mark Brown
2012-01-09  0:56       ` Shawn Guo
2012-01-09  3:38         ` Rob Herring
2012-01-09  5:05           ` Eric Miao
2012-01-09  5:58             ` Richard Zhao
2012-01-09  6:25             ` Mark Brown
2012-01-09  6:52               ` Shawn Guo
2012-01-09  6:43                 ` Mark Brown
2012-01-09  7:17                   ` Shawn Guo
2012-01-09  7:12                     ` Mark Brown
2012-01-11  0:57                       ` Richard Zhao
2012-01-11  0:59                         ` Mark Brown
2012-01-09  6:47           ` Shawn Guo
2012-01-11  1:33   ` Fabio Estevam
2012-01-11  1:40     ` Richard Zhao
2012-01-06  3:25 ` [PATCH 5/6] ARM: mxc: add dt support for audmux-v2 Richard Zhao
2012-01-06  8:56   ` Russell King - ARM Linux
2012-01-06  9:14     ` Richard Zhao
2012-01-06  9:13   ` Sascha Hauer
2012-01-06  9:21     ` Richard Zhao
2012-01-06  9:38       ` Sascha Hauer
2012-01-11  5:26       ` Shawn Guo
2012-01-11 13:02         ` Richard Zhao
2012-01-11 17:38           ` Mark Brown
2012-01-12  8:54             ` Richard Zhao
2012-01-06  3:25 ` [PATCH 6/6] ARM: imx6q-sabrelite: add audmux support Richard Zhao
2012-01-08 15:02   ` Shawn Guo
2012-01-08 14:58     ` Richard Zhao
2012-01-09  1:19       ` Shawn Guo
2012-01-09  5:27         ` Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120108091402.GA2203@richard-laptop \
    --to=richard.zhao@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.