From: Tomasz Figa <tomasz.figa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
Rostislav Lisovy <lisovy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"pisa-/N2ztlQkxE7Ub/6JBqosbQ@public.gmane.org"
<pisa-/N2ztlQkxE7Ub/6JBqosbQ@public.gmane.org>
Subject: Re: [PATCH 3/4] ARM: dts: i.MX53: dts for Voipac x53-dmm-668 module
Date: Sun, 03 Nov 2013 16:49:32 +0100 [thread overview]
Message-ID: <1480022.S1RpIyzAeb@flatron> (raw)
In-Reply-To: <20131101225759.GA3224@kartoffel>
Hi Mark, Rostislav,
On Friday 01 of November 2013 15:58:00 Mark Rutland wrote:
> On Tue, Oct 15, 2013 at 11:03:28PM +0100, Rostislav Lisovy wrote:
[snip]
> > +
> > + regulators {
> > + compatible = "simple-bus";
> > +
> > + reg_3p3v: 3p3v {
> > + compatible = "regulator-fixed";
> > + regulator-name = "3P3V";
> > + regulator-min-microvolt = <3300000>;
> > + regulator-max-microvolt = <3300000>;
> > + regulator-always-on;
> > + };
> > + };
> > +};
>
> Is there any reason for placing these under a simple-bus rather than
> under the root?
IMHO readability, if more fixed regulators are likely to be added.
However "coding style" is wrong here. It should be something like:
regulators {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
reg_3p3v: regulator@0 {
compatible = "regulator-fixed";
reg = <0>;
regulator-name = "3P3V";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
};
Note #*-cells and reg properties and child node naming (generic name +
@unit-address suffix).
Best regards,
Tomasz
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-11-03 15:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-15 22:03 [PATCH 0/4] Devicetree support for Voipac i.MX53 module Rostislav Lisovy
[not found] ` <1381874609-14464-1-git-send-email-lisovy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-10-15 22:03 ` [PATCH 1/4] ARM: dts: i.MX53: Add alternate pinmux option for i2c_3 Rostislav Lisovy
2013-10-15 22:03 ` [PATCH 2/4] ARM: dts: i.MX53: Internal keyboard controller Rostislav Lisovy
2013-10-15 22:03 ` [PATCH 3/4] ARM: dts: i.MX53: dts for Voipac x53-dmm-668 module Rostislav Lisovy
[not found] ` <1381874609-14464-4-git-send-email-lisovy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-11-01 22:58 ` Mark Rutland
2013-11-03 15:38 ` Rostislav Lisovy
2013-11-03 15:49 ` Tomasz Figa [this message]
2013-10-15 22:03 ` [PATCH 4/4] ARM: dts: i.MX53: Devicetree for Voipac Baseboard using " Rostislav Lisovy
2013-10-16 7:31 ` [PATCH 0/4] Devicetree support for Voipac i.MX53 module Sascha Hauer
-- strict thread matches above, loose matches on Subject: below --
2013-10-22 17:07 [PATCH 0/4] Devicetree description " Rostislav Lisovy
2013-10-22 17:07 ` [PATCH 3/4] ARM: dts: i.MX53: dts for Voipac x53-dmm-668 module Rostislav Lisovy
2013-10-23 7:27 ` Shawn Guo
2013-10-24 19:12 ` Rostislav Lisovy
2013-10-24 19:49 ` Matt Sealey
[not found] ` <CAHCPf3vB+HYkFoBYcbVM6Ecp+8BSApG2JZi1PRwc7ag6ygszOw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-10-24 19:58 ` Rostislav Lisovy
2013-10-25 1: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=1480022.S1RpIyzAeb@flatron \
--to=tomasz.figa-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lisovy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=pisa-/N2ztlQkxE7Ub/6JBqosbQ@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).