From: Carlo Caione <carlo@caione.org>
To: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Carlo Caione <carlo@caione.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
Hans De Goede <hdegoede@redhat.com>,
Emilio Lopez <emilio@elopez.com.ar>, wens Tsai <wens@csie.org>,
sameo@linux.intel.com,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
linux-input@vger.kernel.org, linux-doc@vger.kernel.org,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Lee Jones <lee.jones@linaro.org>,
boris.brezillon@free-electrons.com, linux-sunxi@googlegroups.com
Subject: Re: [linux-sunxi] Re: [PATCH v5 8/8] ARM: sun7i/sun4i: dt: Add AXP209 support to various boards
Date: Tue, 6 May 2014 09:38:23 +0200 [thread overview]
Message-ID: <CAOQ7t2bg5jkeruVnO+9cXMxxh+SL+ANGz3R0ssSMwrHewRKyYQ@mail.gmail.com> (raw)
In-Reply-To: <20140505225139.GD9464@lukather>
On Tue, May 6, 2014 at 12:51 AM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> On Sat, May 03, 2014 at 02:21:06PM +0200, Carlo Caione wrote:
>> On Sat, May 3, 2014 at 3:09 AM, Maxime Ripard
>> <maxime.ripard@free-electrons.com> wrote:
>> > Hi,
>> >
>> > On Thu, May 01, 2014 at 02:29:34PM +0200, Carlo Caione wrote:
>> >> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>> >> Signed-off-by: Carlo Caione <carlo@caione.org>
>> >> ---
>> >> arch/arm/boot/dts/sun4i-a10-a1000.dts | 58 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 58 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-hackberry.dts | 64 ++++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-inet97fv2.dts | 58 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-mini-xplus.dts | 65 +++++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 64 ++++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-pcduino.dts | 58 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 59 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 59 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 59 ++++++++++++++++++++++
>> >> 10 files changed, 602 insertions(+)
>> >>
>> >> diff --git a/arch/arm/boot/dts/sun4i-a10-a1000.dts b/arch/arm/boot/dts/sun4i-a10-a1000.dts
>> >> index fa746aea..57d3fb4 100644
>> >> --- a/arch/arm/boot/dts/sun4i-a10-a1000.dts
>> >> +++ b/arch/arm/boot/dts/sun4i-a10-a1000.dts
>> >> @@ -88,6 +88,56 @@
>> >> pinctrl-names = "default";
>> >> pinctrl-0 = <&i2c0_pins_a>;
>> >> status = "okay";
>> >> +
>> >> + axp209: pmic@34 {
>> >> + compatible = "x-powers,axp209";
>> >> + reg = <0x34>;
>> >> + interrupts = <0>;
>> >> +
>> >> + interrupt-controller;
>> >> + #interrupt-cells = <1>;
>> >> +
>> >> + acin-supply = <®_axp_ipsout>;
>> >> + vin2-supply = <®_axp_ipsout>;
>> >> + vin3-supply = <®_axp_ipsout>;
>> >> + ldo24in-supply = <®_axp_ipsout>;
>> >> + ldo3in-supply = <®_axp_ipsout>;
>> >> + ldo5in-supply = <®_axp_ipsout>;
>> >> +
>> >> + regulators {
>> >> + x-powers,dcdc-freq = <1500>;
>> >> +
>> >> + axp_vcore_reg: dcdc2 {
>> >> + regulator-min-microvolt = <700000>;
>> >> + regulator-max-microvolt = <2275000>;
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_ddr_reg: dcdc3 {
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_rtc_reg: ldo1 {
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_analog_reg: ldo2 {
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_pll_reg: ldo3 {
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_hdmi_reg: ldo4 {
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_mic_reg: ldo5 {
>> >> + regulator-always-on;
>> >
>> > Do all these regulators need to be always on? It makes sense for the
>> > pll and vcore, but I don't get why the mic and hdmi regulators need
>> > this.
>>
>> I did this way because I don't have the schematics for all the board
>> so I thought it was safer to leave all the regulators enabled
>
> Well, we have the schematics for most of these boards (at least all
> the cubie and olinuxinos).
>
> As far as the other boards are concerned, if we don't have that
> information, I'd say leave them alone until someone has access to
> these informations.
What do you mean exactly with "leave them alone". The problem is that
if the regulator is not explicitly marked as always-on, it is disabled
at boot time, so I think that the most safe thing to do is leave them
on to avoid turning off something at boot time that could be
important.
--
Carlo Caione
WARNING: multiple messages have this Message-ID (diff)
From: carlo@caione.org (Carlo Caione)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] Re: [PATCH v5 8/8] ARM: sun7i/sun4i: dt: Add AXP209 support to various boards
Date: Tue, 6 May 2014 09:38:23 +0200 [thread overview]
Message-ID: <CAOQ7t2bg5jkeruVnO+9cXMxxh+SL+ANGz3R0ssSMwrHewRKyYQ@mail.gmail.com> (raw)
In-Reply-To: <20140505225139.GD9464@lukather>
On Tue, May 6, 2014 at 12:51 AM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> On Sat, May 03, 2014 at 02:21:06PM +0200, Carlo Caione wrote:
>> On Sat, May 3, 2014 at 3:09 AM, Maxime Ripard
>> <maxime.ripard@free-electrons.com> wrote:
>> > Hi,
>> >
>> > On Thu, May 01, 2014 at 02:29:34PM +0200, Carlo Caione wrote:
>> >> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>> >> Signed-off-by: Carlo Caione <carlo@caione.org>
>> >> ---
>> >> arch/arm/boot/dts/sun4i-a10-a1000.dts | 58 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 58 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-hackberry.dts | 64 ++++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-inet97fv2.dts | 58 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-mini-xplus.dts | 65 +++++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 64 ++++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun4i-a10-pcduino.dts | 58 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 59 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 59 ++++++++++++++++++++++
>> >> arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 59 ++++++++++++++++++++++
>> >> 10 files changed, 602 insertions(+)
>> >>
>> >> diff --git a/arch/arm/boot/dts/sun4i-a10-a1000.dts b/arch/arm/boot/dts/sun4i-a10-a1000.dts
>> >> index fa746aea..57d3fb4 100644
>> >> --- a/arch/arm/boot/dts/sun4i-a10-a1000.dts
>> >> +++ b/arch/arm/boot/dts/sun4i-a10-a1000.dts
>> >> @@ -88,6 +88,56 @@
>> >> pinctrl-names = "default";
>> >> pinctrl-0 = <&i2c0_pins_a>;
>> >> status = "okay";
>> >> +
>> >> + axp209: pmic at 34 {
>> >> + compatible = "x-powers,axp209";
>> >> + reg = <0x34>;
>> >> + interrupts = <0>;
>> >> +
>> >> + interrupt-controller;
>> >> + #interrupt-cells = <1>;
>> >> +
>> >> + acin-supply = <®_axp_ipsout>;
>> >> + vin2-supply = <®_axp_ipsout>;
>> >> + vin3-supply = <®_axp_ipsout>;
>> >> + ldo24in-supply = <®_axp_ipsout>;
>> >> + ldo3in-supply = <®_axp_ipsout>;
>> >> + ldo5in-supply = <®_axp_ipsout>;
>> >> +
>> >> + regulators {
>> >> + x-powers,dcdc-freq = <1500>;
>> >> +
>> >> + axp_vcore_reg: dcdc2 {
>> >> + regulator-min-microvolt = <700000>;
>> >> + regulator-max-microvolt = <2275000>;
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_ddr_reg: dcdc3 {
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_rtc_reg: ldo1 {
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_analog_reg: ldo2 {
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_pll_reg: ldo3 {
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_hdmi_reg: ldo4 {
>> >> + regulator-always-on;
>> >> + };
>> >> +
>> >> + axp_mic_reg: ldo5 {
>> >> + regulator-always-on;
>> >
>> > Do all these regulators need to be always on? It makes sense for the
>> > pll and vcore, but I don't get why the mic and hdmi regulators need
>> > this.
>>
>> I did this way because I don't have the schematics for all the board
>> so I thought it was safer to leave all the regulators enabled
>
> Well, we have the schematics for most of these boards (at least all
> the cubie and olinuxinos).
>
> As far as the other boards are concerned, if we don't have that
> information, I'd say leave them alone until someone has access to
> these informations.
What do you mean exactly with "leave them alone". The problem is that
if the regulator is not explicitly marked as always-on, it is disabled
at boot time, so I think that the most safe thing to do is leave them
on to avoid turning off something at boot time that could be
important.
--
Carlo Caione
next prev parent reply other threads:[~2014-05-06 7:38 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-01 12:29 [PATCH v5 0/8] mfd: AXP20x: Add support for AXP202 and AXP209 Carlo Caione
2014-05-01 12:29 ` Carlo Caione
[not found] ` <1398947374-3115-1-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2014-05-01 12:29 ` [PATCH v5 1/8] mfd: AXP20x: Add mfd driver for AXP20x PMIC Carlo Caione
2014-05-01 12:29 ` Carlo Caione
[not found] ` <1398947374-3115-2-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2014-05-02 8:15 ` Lee Jones
2014-05-02 8:15 ` Lee Jones
2014-05-02 8:27 ` Carlo Caione
2014-05-02 8:27 ` [linux-sunxi] " Carlo Caione
2014-05-06 7:14 ` Lee Jones
2014-05-06 7:14 ` Lee Jones
2014-05-03 1:03 ` Maxime Ripard
2014-05-03 1:03 ` Maxime Ripard
2014-05-01 12:29 ` [PATCH v5 2/8] dt-bindings: add vendor-prefix for X-Powers Carlo Caione
2014-05-01 12:29 ` Carlo Caione
2014-05-02 5:24 ` Michal Simek
2014-05-02 5:24 ` Michal Simek
[not found] ` <53632C16.6070105-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
2014-05-02 7:24 ` Carlo Caione
2014-05-01 12:29 ` [PATCH v5 3/8] mfd: AXP20x: Add bindings documentation Carlo Caione
2014-05-01 12:29 ` Carlo Caione
[not found] ` <1398947374-3115-4-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2014-05-03 1:02 ` Maxime Ripard
2014-05-03 1:02 ` Maxime Ripard
2014-05-01 12:29 ` [PATCH v5 4/8] input: misc: Add driver for AXP20x Power Enable Key Carlo Caione
2014-05-01 12:29 ` Carlo Caione
[not found] ` <1398947374-3115-5-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2014-05-03 1:06 ` Maxime Ripard
2014-05-03 1:06 ` Maxime Ripard
2014-05-19 5:57 ` Dmitry Torokhov
2014-05-19 5:57 ` Dmitry Torokhov
[not found] ` <20140519055745.GL29386-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2014-05-19 7:18 ` Carlo Caione
2014-05-19 7:18 ` [linux-sunxi] " Carlo Caione
[not found] ` <CAOQ7t2bPHnjfpeqQjMsYJs--qpd1_1RvBEFXztTDgnf5yW=Yxg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-19 9:15 ` Lee Jones
2014-05-19 9:15 ` [linux-sunxi] " Lee Jones
2014-05-19 9:39 ` Carlo Caione
2014-05-19 9:39 ` [linux-sunxi] " Carlo Caione
2014-05-19 13:28 ` Lee Jones
2014-05-19 13:28 ` Lee Jones
2014-05-19 7:23 ` Lee Jones
2014-05-19 7:23 ` Lee Jones
2014-05-01 12:29 ` [PATCH v5 5/8] input: misc: Add ABI docs for AXP20x PEK Carlo Caione
2014-05-01 12:29 ` Carlo Caione
2014-05-01 12:29 ` [PATCH v5 6/8] ARM: sunxi: Add AXP20x support in defconfig Carlo Caione
2014-05-01 12:29 ` Carlo Caione
2014-05-01 12:29 ` [PATCH v5 7/8] ARM: sunxi: Add AXP20x support multi_v7_defconfig Carlo Caione
2014-05-01 12:29 ` Carlo Caione
2014-05-01 12:29 ` [PATCH v5 8/8] ARM: sun7i/sun4i: dt: Add AXP209 support to various boards Carlo Caione
2014-05-01 12:29 ` Carlo Caione
[not found] ` <1398947374-3115-9-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2014-05-03 1:09 ` Maxime Ripard
2014-05-03 1:09 ` Maxime Ripard
2014-05-03 12:21 ` Carlo Caione
2014-05-03 12:21 ` [linux-sunxi] " Carlo Caione
2014-05-05 22:51 ` Maxime Ripard
2014-05-05 22:51 ` Maxime Ripard
2014-05-06 7:38 ` Carlo Caione [this message]
2014-05-06 7:38 ` Carlo Caione
[not found] ` <CAOQ7t2bg5jkeruVnO+9cXMxxh+SL+ANGz3R0ssSMwrHewRKyYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-08 2:53 ` Maxime Ripard
2014-05-08 2:53 ` [linux-sunxi] " Maxime Ripard
2014-05-08 8:17 ` Carlo Caione
2014-05-08 8:17 ` [linux-sunxi] " Carlo Caione
[not found] ` <CAOQ7t2ay7UNiCZyUw4RrQ+4O1CYUht32U_OSYkbVWRLUq8_hZw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-10 1:06 ` Maxime Ripard
2014-05-10 1:06 ` [linux-sunxi] " 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=CAOQ7t2bg5jkeruVnO+9cXMxxh+SL+ANGz3R0ssSMwrHewRKyYQ@mail.gmail.com \
--to=carlo@caione.org \
--cc=boris.brezillon@free-electrons.com \
--cc=broonie@kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=emilio@elopez.com.ar \
--cc=hdegoede@redhat.com \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=maxime.ripard@free-electrons.com \
--cc=sameo@linux.intel.com \
--cc=wens@csie.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.