From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: sun7i: cubieboard2: Enable the AXP209
Date: Mon, 6 Oct 2014 14:07:17 +0200 [thread overview]
Message-ID: <20141006120717.GI4090@lukather> (raw)
In-Reply-To: <CAGb2v67j6bqY7tU6ky9r1nSx_2ZaqqvNX5CAuoPwfX_1McXS0g@mail.gmail.com>
On Fri, Oct 03, 2014 at 04:49:25PM +0800, Chen-Yu Tsai wrote:
> Hi,
>
> On Sun, Sep 21, 2014 at 4:06 AM, Maxime Ripard
> <maxime.ripard@free-electrons.com> wrote:
> > Add the AXP209 PMIC with the regulators in use on the cubie2.
> >
> > The RTC regulator can be disabled, but since the RTC driver doesn't grab the
> > regulator for now, the driver wouldn't work anymore.
> >
> > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> > ---
> > arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 31 +++++++++++++++++++++++++++++
> > 1 file changed, 31 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
> > index 53680983461a..f0b74a38a800 100644
> > --- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
> > +++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
> > @@ -91,6 +91,29 @@
> >
> > interrupt-controller;
> > #interrupt-cells = <1>;
> > +
> > + regulators {
> > + x-powers,dcdc-freq = <1500>;
> > +
> > + vdd_cpu: dcdc2 {
> > + vin-supply = <®_axp_ipsout>;
>
> The driver ignores the vin-supply properties.
>
> I think the original intended design was to have
>
> acin-supply = <®_axp_ipsout>;
> vin2-supply = <®_axp_ipsout>;
> vin3-supply = <®_axp_ipsout>;
> ldo24in-supply = <®_axp_ipsout>;
> ldo3in-supply = <®_axp_ipsout>;
> ldo5in-supply = <®_axp_ipsout>;
>
> under the axp209 node.
>
> With this change, the kernel does find the supplies:
>
> LDO1: 1300 mV
> LDO1: supplied by axp-ipsout
> LDO2: at 3000 mV
> LDO2: supplied by axp-ipsout
> LDO3: at 2275 mV
> LDO3: supplied by axp-ipsout
> LDO4: at 2800 mV
> LDO4: supplied by axp-ipsout
> LDO5: at 2800 mV
> LDO5: supplied by axp-ipsout
> DCDC2: at 1400 mV
> DCDC2: supplied by axp-ipsout
> DCDC3: at 1250 mV
> DCDC3: supplied by axp-ipsout
Wow. Thanks. I have no idea how I could have send this patch, and how
I could merge it too.
You're obviously right, I'll amend my queued patch.
> P.S. my /sys/kernel/debug/regulator/supply_map is always empty.
> Is that normal?
Yeah, I have seen this too, I honestly have no idea :)
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/20141006/9b6fa4ad/attachment-0001.sig>
next prev parent reply other threads:[~2014-10-06 12:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-20 20:06 [PATCH 0/3] sunxi: Add AXP209 regulator support Maxime Ripard
2014-09-20 20:06 ` [PATCH 1/3] regulator: axp20x: Use parent device as regulator configuration device Maxime Ripard
2014-09-23 1:18 ` Mark Brown
2014-09-20 20:06 ` [PATCH 2/3] mfd: axp209x: Drop the parent supplies field Maxime Ripard
2014-09-24 6:32 ` Maxime Ripard
2014-09-24 7:03 ` Lee Jones
2014-09-20 20:06 ` [PATCH 3/3] ARM: sun7i: cubieboard2: Enable the AXP209 Maxime Ripard
2014-09-25 10:05 ` Maxime Ripard
2014-10-03 8:49 ` Chen-Yu Tsai
2014-10-06 12:07 ` Maxime Ripard [this message]
2014-10-06 12:16 ` Chen-Yu Tsai
2014-10-06 13:25 ` 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=20141006120717.GI4090@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).