linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/6] ARM: dts: sunxi: Add dtsi for AXP221 PMIC
Date: Thu, 3 Sep 2015 22:07:31 +0200	[thread overview]
Message-ID: <20150903200731.GC31584@lukather> (raw)
In-Reply-To: <CAGb2v66BP8UjeqF6DxHHMEsw=vo-OZvnwQavk=EC4OGE4_78MQ@mail.gmail.com>

On Tue, Sep 01, 2015 at 02:40:23PM +0800, Chen-Yu Tsai wrote:
> On Tue, Sep 1, 2015 at 2:29 PM, Maxime Ripard
> <maxime.ripard@free-electrons.com> wrote:
> > On Sat, Aug 29, 2015 at 10:07:12AM +0800, Chen-Yu Tsai wrote:
> >> >> >> +
> >> >> >> +&axp221 {
> >> >> >> +     compatible = "x-powers,axp221";
> >> >> >> +     interrupt-controller;
> >> >> >> +     #interrupt-cells = <1>;
> >> >> >> +
> >> >> >> +     regulators {
> >> >> >> +             /* Default work frequency for buck regulators */
> >> >> >> +             x-powers,dcdc-freq = <3000>;
> >> >> >> +
> >> >> >> +             /* supplies for dc1sw & dc5ldo are connected internally */
> >> >> >> +             dcdc1-supply = <&reg_dcdc1>;
> >> >> >> +             dcdc5-supply = <&reg_dcdc5>;
> >> >> >
> >> >> > so the parent regulator of DCDC1 is DCDC1 ?
> >> >>
> >> >> These probably aren't the best names. These are the supplies for DC1SW and
> >> >> DC5LDO, respectively. They are connected internally, so there aren't named
> >> >> pins for them. The comment above explains it, though probably not clearly
> >> >> enough. Furthermore, the input pins for DCDC1/5 are VIN1/5.
> >> >
> >> > I'm not quite sure I understand. They're connected internally but they
> >> > have pins ?
> >>
> >> Internally, DCDC1's output feeds the input for DC1SW (which is just a switch
> >> BTW) and DCDC5's output feeds DC5LDO (which is an LDO). Both these extra
> >> regulators have separate controls. There are no external pins to name the
> >> supplies after, so I just named them after which regulator supplies them.
> >
> > Well, there is. dc5ldo and dc1sw. And it is also how you called these
> > regulators in your DT, so it would make much more sense to have it
> > listed as such.
> 
> I was under the impression that we name them after the input pins. The names
> are also documented in Documentation/devicetree/bindings/mfd/axp20x.txt

Except that those don't have any input pins, like you said. It makes
much more sense to name them after the regulator they supply.

This property express a parenting relationship, with <child>-supply =
<parent>.

> Do you want to change them?

Yes.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150903/17b66cfc/attachment.sig>

  reply	other threads:[~2015-09-03 20:07 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-28  9:54 [PATCH 0/6] ARM: sunxi: Support MSI Primo81 tablet and Sinlinx SinA31s Chen-Yu Tsai
2015-08-28  9:54 ` [PATCH 1/6] ARM: dts: sun6i: Add lradc node Chen-Yu Tsai
2015-08-28 12:30   ` Maxime Ripard
2015-08-28  9:54 ` [PATCH 2/6] ARM: dts: sunxi: Add dtsi for AXP221 PMIC Chen-Yu Tsai
2015-08-28 12:31   ` Maxime Ripard
2015-08-28 16:09     ` Chen-Yu Tsai
2015-08-28 20:43       ` Maxime Ripard
2015-08-29  2:07         ` Chen-Yu Tsai
2015-09-01  6:29           ` Maxime Ripard
2015-09-01  6:40             ` Chen-Yu Tsai
2015-09-03 20:07               ` Maxime Ripard [this message]
2015-08-28  9:54 ` [PATCH 3/6] ARM: dts: sun6i: hummingbird: Use axp221.dtsi for axp221 regulators Chen-Yu Tsai
2015-08-28 12:32   ` Maxime Ripard
2015-08-28 16:47     ` Chen-Yu Tsai
2015-08-28 20:44       ` Maxime Ripard
2015-08-28  9:54 ` [PATCH 4/6] ARM: dts: sun6i: Add mmc2 pins for 8 bit emmc Chen-Yu Tsai
2015-08-28 12:33   ` Maxime Ripard
2015-08-28  9:54 ` [PATCH 5/6] ARM: dts: sun6i: Add support for Sinlinx A31s SDK board Chen-Yu Tsai
2015-08-28 12:34   ` Maxime Ripard
2015-09-14  7:24     ` Chen-Yu Tsai
2015-09-16  6:20       ` Maxime Ripard
2015-09-18  9:36         ` Chen-Yu Tsai
2015-08-28  9:54 ` [PATCH 6/6] ARM: dts: sun6i: Add dts file for MSI Primo81 tablet Chen-Yu Tsai
2015-08-28 12:38   ` Maxime Ripard
2015-08-28 13:31     ` Siarhei Siamashka
2015-08-28 21:02       ` Maxime Ripard
2015-08-29  4:43         ` Siarhei Siamashka
2015-09-10 13:09           ` Maxime Ripard

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=20150903200731.GC31584@lukather \
    --to=maxime.ripard@free-electrons.com \
    --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 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).