Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1451863 > unrolled thread
| Started by | Julian Calaby <julian.calaby@gmail.com> |
|---|---|
| First post | 2016-07-28 12:30 +0200 |
| Last post | 2016-07-28 22:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [linux-sunxi] [PATCH] regulator: axp20x: support AXP813 variant Julian Calaby <julian.calaby@gmail.com> - 2016-07-28 12:30 +0200
Re: [linux-sunxi] [PATCH] regulator: axp20x: support AXP813 variant Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-07-28 22:30 +0200
| From | Julian Calaby <julian.calaby@gmail.com> |
|---|---|
| Date | 2016-07-28 12:30 +0200 |
| Subject | Re: [linux-sunxi] [PATCH] regulator: axp20x: support AXP813 variant |
| Message-ID | <rZQJH-4VL-3@gated-at.bofh.it> |
Hi All,
On Thu, Jul 28, 2016 at 5:28 PM, Jean-Francois Moine <moinejf@free.fr> wrote:
> The X-Powers AXP813 PMIC is close enough to the AXP809 with some
> more outputs.
>
> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
> ---
> Documentation/devicetree/bindings/mfd/axp20x.txt | 32 ++++++++-
> drivers/mfd/axp20x-rsb.c | 1 +
> drivers/mfd/axp20x.c | 3 +
> drivers/regulator/axp20x-regulator.c | 82 +++++++++++++++++++++++-
> include/linux/mfd/axp20x.h | 38 +++++++++++
> 5 files changed, 153 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
> index 6d9ac76..c3287c9 100644
> --- a/drivers/regulator/axp20x-regulator.c
> +++ b/drivers/regulator/axp20x-regulator.c
> @@ -467,7 +543,8 @@ static int axp20x_regulator_probe(struct platform_device *pdev)
> * name.
> */
> if ((regulators == axp22x_regulators && i == AXP22X_DC1SW) ||
> - (regulators == axp809_regulators && i == AXP809_DC1SW)) {
> + (regulators == axp809_regulators && i == AXP809_DC1SW) ||
> + (regulators == axp813_regulators && i == AXP813_DC1SW)) {
Are we getting to the point now where we need some other way to flag
these? Maybe a set of flags per regulator?
> new_desc = devm_kzalloc(&pdev->dev, sizeof(*desc),
> GFP_KERNEL);
> *new_desc = regulators[i];
> @@ -505,7 +582,8 @@ static int axp20x_regulator_probe(struct platform_device *pdev)
> * Save AXP22X DCDC1 / DCDC5 regulator names for later.
> */
> if ((regulators == axp22x_regulators && i == AXP22X_DCDC1) ||
> - (regulators == axp809_regulators && i == AXP809_DCDC1))
> + (regulators == axp809_regulators && i == AXP809_DCDC1) ||
> + (regulators == axp813_regulators && i == AXP813_DCDC1))
Ditto.
> of_property_read_string(rdev->dev.of_node,
> "regulator-name",
> &dcdc1_name);
Thanks,
--
Julian Calaby
Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
[toc] | [next] | [standalone]
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2016-07-28 22:30 +0200 |
| Message-ID | <s006m-2MG-31@gated-at.bofh.it> |
| In reply to | #1451863 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, Jul 28, 2016 at 08:24:41PM +1000, Julian Calaby wrote:
> Hi All,
>
> On Thu, Jul 28, 2016 at 5:28 PM, Jean-Francois Moine <moinejf@free.fr> wrote:
> > The X-Powers AXP813 PMIC is close enough to the AXP809 with some
> > more outputs.
> >
> > Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
> > ---
> > Documentation/devicetree/bindings/mfd/axp20x.txt | 32 ++++++++-
> > drivers/mfd/axp20x-rsb.c | 1 +
> > drivers/mfd/axp20x.c | 3 +
> > drivers/regulator/axp20x-regulator.c | 82 +++++++++++++++++++++++-
> > include/linux/mfd/axp20x.h | 38 +++++++++++
> > 5 files changed, 153 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
> > index 6d9ac76..c3287c9 100644
> > --- a/drivers/regulator/axp20x-regulator.c
> > +++ b/drivers/regulator/axp20x-regulator.c
> > @@ -467,7 +543,8 @@ static int axp20x_regulator_probe(struct platform_device *pdev)
> > * name.
> > */
> > if ((regulators == axp22x_regulators && i == AXP22X_DC1SW) ||
> > - (regulators == axp809_regulators && i == AXP809_DC1SW)) {
> > + (regulators == axp809_regulators && i == AXP809_DC1SW) ||
> > + (regulators == axp813_regulators && i == AXP813_DC1SW)) {
>
> Are we getting to the point now where we need some other way to flag
> these? Maybe a set of flags per regulator?
I'd be inclined to say yes. We can also associate a structure to the
compatible, and store a bunch of infos there (like does it have a
DC1SW regulator in this case).
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web