From: carlo@caione.org (Carlo Caione)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 07/10] ARM: sunxi: dt: Add x-powers-axp209.dtsi file
Date: Sat, 29 Mar 2014 17:14:17 +0100 [thread overview]
Message-ID: <20140329161417.GC3952@localhost.fastwebnet.it> (raw)
In-Reply-To: <20140328133438.GA19846@sirena.org.uk>
On Fri, Mar 28, 2014 at 01:34:38PM +0000, Mark Brown wrote:
> On Thu, Mar 27, 2014 at 10:29:21PM +0100, Carlo Caione wrote:
> > This dtsi describes the axp209 PMIC, and is to be included from inside
> > the i2c controller node to which the axp209 is connected.
>
> > arch/arm/boot/dts/x-powers-axp209.dtsi | 54 ++++++++++++++++++++++++++++++++++
>
> Something is wrong here. Either the changelog is inaccurate or this is
> broken, either way this should be cleaned up because this looks like
> very bad practice. If this is a common include file for boards derived
> from some reference design then the changelog is misleading and the DT
> should be clearer about the board tie ins. Otherwise the .dtsi is
> defining what should be board specific parameters.
>
> The fact that the DT names everything after the regulator on the PMIC
> and not after the supply names on the board is especially suspicious and
> glancing at a couple of the regulators it looks like the constraints
> here are the maximum ranges the PMIC supports rather than anything to do
> with any board.
>
> Please take a step back and think about what the regulator constraints
> are intended to do - they're about matching the regulator capabilities
> to the board since it is rare for boards to be able to do everything the
> regulator can support. Duplicating the basic device capabilities into
> the DT would be a pointless waste of time.
>
> > + axp_dcdc2: dcdc2 {
> > + regulator-min-microvolt = <700000>;
> > + regulator-max-microvolt = <2275000>;
> > + regulator-always-on;
> > + };
>
> What is this configuration actually for - what guarantee do we have that
> the above is safe for a given board using this regulator?
>
> In general I'd expect to see anything specifying variability for a
> regulator to also include the relevant consumer node.
Ok, you are completely right. These values in the DTSI are wrongly the
maximum and minimum ranges for the PMIC. Even worst I didn't specify the
board specific parameters for the regulators.
Thank you for reviewing and noticing it,
--
Carlo Caione
next prev parent reply other threads:[~2014-03-29 16:14 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-27 21:29 [PATCH v3 00/10] mfd: AXP20x: Add support for AXP202 and AXP209 Carlo Caione
2014-03-27 21:29 ` [PATCH v3 01/10] mfd: AXP20x: Add mfd driver for AXP20x PMIC Carlo Caione
2014-03-28 9:21 ` Lee Jones
2014-03-29 15:53 ` [linux-sunxi] " Carlo Caione
2014-04-11 9:26 ` Carlo Caione
2014-03-27 21:29 ` [PATCH v3 02/10] dt-bindings: add vendor-prefix for X-Powers Carlo Caione
2014-03-27 21:29 ` [PATCH v3 03/10] mfd: AXP20x: Add bindings documentation Carlo Caione
2014-03-27 21:29 ` [PATCH v3 04/10] input: misc: Add driver for AXP20x Power Enable Key Carlo Caione
2014-03-28 7:38 ` Dmitry Torokhov
2014-03-29 15:36 ` [linux-sunxi] " Carlo Caione
2014-03-29 19:05 ` Dmitry Torokhov
2014-03-27 21:29 ` [PATCH v3 05/10] input: misc: Add ABI docs for AXP20x PEK Carlo Caione
2014-03-27 21:29 ` [PATCH v3 06/10] regulator: AXP20x: Add support for regulators subsystem Carlo Caione
2014-03-28 13:39 ` Mark Brown
2014-03-29 17:52 ` [linux-sunxi] " Carlo Caione
2014-03-30 0:47 ` Mark Brown
2014-03-27 21:29 ` [PATCH v3 07/10] ARM: sunxi: dt: Add x-powers-axp209.dtsi file Carlo Caione
2014-03-28 13:34 ` Mark Brown
2014-03-29 16:14 ` Carlo Caione [this message]
2014-03-27 21:29 ` [PATCH v3 08/10] ARM: sun7i/sun4i: dt: Add AXP209 support to various boards Carlo Caione
2014-03-28 3:12 ` Chen-Yu Tsai
2014-03-28 7:37 ` [linux-sunxi] " Carlo Caione
2014-03-28 10:11 ` Maxime Ripard
2014-03-28 11:38 ` Mark Brown
2014-03-28 12:54 ` Maxime Ripard
2014-03-28 13:12 ` Mark Brown
2014-03-27 21:29 ` [PATCH v3 09/10] ARM: sunxi: Add AXP20x support in defconfig Carlo Caione
2014-03-27 21:29 ` [PATCH v3 10/10] ARM: sunxi: Add AXP20x support multi_v7_defconfig Carlo Caione
2014-03-28 8:01 ` [PATCH v3 00/10] mfd: AXP20x: Add support for AXP202 and AXP209 Lee Jones
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=20140329161417.GC3952@localhost.fastwebnet.it \
--to=carlo@caione.org \
--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).