From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Mark Brown <broonie@kernel.org>,
Boris BREZILLON <boris.brezillon@free-electrons.com>
Cc: Lee Jones <lee.jones@linaro.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Samuel Ortiz <sameo@linux.intel.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, dev@linux-sunxi.org,
Carlo Caione <carlo@caione.org>, Shuge <shuge@allwinnertech.com>,
kevin@allwinnertech.com, Hans de Goede <hdegoede@redhat.com>
Subject: Re: [RFC PATCH 0/3] mfd: AXP22x: add support for APX221 PMIC
Date: Mon, 19 May 2014 16:03:19 +0200 [thread overview]
Message-ID: <20140519140319.GI29466@lukather> (raw)
In-Reply-To: <1400176305-22737-1-git-send-email-boris.brezillon@free-electrons.com>
[-- Attachment #1: Type: text/plain, Size: 3171 bytes --]
Hi Mark,
On Thu, May 15, 2014 at 07:51:42PM +0200, Boris BREZILLON wrote:
> Hello,
>
> This patch series adds basic support for the X-Powers' AXP221 PMIC.
> It's mainly based on Carlo's series [1], which is almost merged (at least
> the mfd and regulator drivers are merged).
>
> At the moment I only added support for the AXP221 regulators but other
> subdevices will be added later.
>
> But, before going any further in my developement I'd like to get feedback
> on some points:
>
> 1) I'm pretty sure we can share some code between the axp20x and axp22x
> drivers, but I'm not sure how it should be done:
> a) defining an axp2xx-core.c driver and make the axp20x and axp22x driver
> use this core implementation.
> b) just share some macros (like the AXP_DESC one) and the keep drivers
> separated
> c) keep only one generic driver that support all PMICs revisions (axp2xx-
> drivers).
>
> 2) The ipsout regulator is currently represented as a fixed regulator
> providing a 5v output, and this is not exactly the case.
> AFAIU (here's is the datasheet traduction if you want to check [2]), the
> ipsout output is a multiplexer that choose among vbus (5V), acin (12V
> which is then converted to 5V) and the battery power supply (3,5 -> 4,2 V).
> This means the output voltage of ipsout vary between 3,5V and 5V.
> How can we express this kind of muxer in the regulator framework (is there
> already something available ?) ?
One thing I'd like to add to this, is that even though the IPSOUT
voltage itself is between the 3.5 / 5V boundaries, there is an
external regulator that boost the voltage to 5V, before being actually
used by any other device on the boards, including the other regulators
that the PMIC can output.
It basically looks like something like this:
+---------------------------------+
| ACIN (12V) -------+ | (3.5 - 5v)
| USB VBUS (5V) ----+----- IPSOUT +-----------------+--------------+
| BAT (3.5 - 4.2V)--+ | | +---------+----------+
| | | | External Boost |
| | | | Regulator |
| PMIC | | +---------+----------+
| | | +--------------+--- VCC 5V
| +-------------+ (3.5V - 5V) | (5V) +--- USB
| | VIN -+-----------------+ +--- HDMI
| | Random |
| | Regulator |
| | | (Random V)
| | VOUT -+------------------------
| +-------------+
+---------------------------------+
For the some moment, the IPSOUT regulator is decribed as a fixed
regulator, but that seems a bit inaccurate.
Do you have a suggestion?
Thanks,
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2014-05-19 14:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-15 17:51 [RFC PATCH 0/3] mfd: AXP22x: add support for APX221 PMIC Boris BREZILLON
2014-05-15 17:51 ` [RFC PATCH 1/3] " Boris BREZILLON
2014-05-19 17:28 ` Lee Jones
2014-05-19 17:45 ` Boris BREZILLON
2014-05-20 7:39 ` Hans de Goede
2014-05-20 7:48 ` Lee Jones
2014-05-23 7:11 ` Boris BREZILLON
2014-05-23 10:03 ` Lee Jones
2014-05-15 17:51 ` [RFC PATCH 2/3] regulator: AXP22x: add support for AXP221 regulators Boris BREZILLON
2014-05-15 17:51 ` [RFC PATCH 3/3] ARM: sunxi: dt: define AXP221 pmic node available on the APP4-EVB1 board Boris BREZILLON
2014-05-19 14:03 ` Maxime Ripard [this message]
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=20140519140319.GI29466@lukather \
--to=maxime.ripard@free-electrons.com \
--cc=boris.brezillon@free-electrons.com \
--cc=broonie@kernel.org \
--cc=carlo@caione.org \
--cc=dev@linux-sunxi.org \
--cc=hdegoede@redhat.com \
--cc=kevin@allwinnertech.com \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.com \
--cc=shuge@allwinnertech.com \
/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