From: Chen-Yu Tsai <wens@csie.org>
To: Michael Haas <haas@computerlinguist.org>
Cc: "Rob Herring" <robh+dt@kernel.org>,
"Pawel Moll" <pawel.moll@arm.com>,
"Mark Rutland" <mark.rutland@arm.com>,
"Ian Campbell" <ijc+devicetree@hellion.org.uk>,
"Kumar Gala" <galak@codeaurora.org>,
"Maxime Ripard" <maxime.ripard@free-electrons.com>,
"Chen-Yu Tsai" <wens@csie.org>,
"Lee Jones" <lee.jones@linaro.org>,
"Sebastian Reichel" <sre@kernel.org>,
"Dmitry Eremin-Solenikov" <dbaryshkov@gmail.com>,
"David Woodhouse" <dwmw2@infradead.org>,
"Hans De Goede" <hdegoede@redhat.com>,
"Bruno Prémont" <bonbons@linux-vserver.org>,
devicetree <devicetree@vger.kernel.org>,
linux-pm@vger.kernel.org,
"Russell King - ARM Linux" <linux@arm.linux.org.uk>,
linux-sunxi <linux-sunxi@googlegroups.com>
Subject: Re: [PATCH v3 2/5] mfd: axp20x: Add a cell for the ac power_supply part of the axp20x PMICs
Date: Fri, 6 May 2016 10:48:06 +0800 [thread overview]
Message-ID: <CAGb2v67R6SX=_WDeE9cBvaiA=tTW9=tuhSC3rjOgs44hHAcTdg@mail.gmail.com> (raw)
In-Reply-To: <1462444508-9363-3-git-send-email-haas@computerlinguist.org>
On Thu, May 5, 2016 at 6:35 PM, Michael Haas <haas@computerlinguist.org> wrote:
> As a counterpart to the usb power_supply cell, this commit adds an AC
> power_supply cell to the axp20x driver.
>
> Still missing are the RTC backup battery and the main battery charger
> cells.
>
> Signed-off-by: Michael Haas <haas@computerlinguist.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
> ---
> drivers/mfd/axp20x.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
> index a57d6e9..aa6ef08 100644
> --- a/drivers/mfd/axp20x.c
> +++ b/drivers/mfd/axp20x.c
> @@ -128,6 +128,12 @@ static struct resource axp152_pek_resources[] = {
> DEFINE_RES_IRQ_NAMED(AXP152_IRQ_PEK_FAL_EDGE, "PEK_DBF"),
> };
>
> +static struct resource axp20x_ac_power_supply_resources[] = {
> + DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_ACIN_PLUGIN, "ACIN_PLUGIN"),
> + DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_ACIN_REMOVAL, "ACIN_REMOVAL"),
> + DEFINE_RES_IRQ_NAMED(AXP20X_IRQ_ACIN_OVER_V, "ACIN_OVER_V"),
> +};
> +
> static struct resource axp20x_pek_resources[] = {
> {
> .name = "PEK_DBR",
> @@ -436,6 +442,11 @@ static struct mfd_cell axp20x_cells[] = {
> }, {
> .name = "axp20x-regulator",
> }, {
> + .name = "axp20x-ac-power-supply",
> + .of_compatible = "x-powers,axp202-ac-power-supply",
> + .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources),
> + .resources = axp20x_ac_power_supply_resources,
> + }, {
> .name = "axp20x-usb-power-supply",
> .of_compatible = "x-powers,axp202-usb-power-supply",
> .num_resources = ARRAY_SIZE(axp20x_usb_power_supply_resources),
> --
> 2.8.2
>
next prev parent reply other threads:[~2016-05-06 2:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-05 10:35 [PATCH v3 0/6] Add axp20x-ac power driver Michael Haas
2016-05-05 10:35 ` [PATCH v3 2/5] mfd: axp20x: Add a cell for the ac power_supply part of the axp20x PMICs Michael Haas
2016-05-06 2:48 ` Chen-Yu Tsai [this message]
2016-05-05 10:35 ` [PATCH v3 3/5] ARM: dts: Add binding documentation for AXP20x pmic ac power supply Michael Haas
2016-05-05 22:30 ` Rob Herring
2016-05-06 2:33 ` Chen-Yu Tsai
[not found] ` <1462444508-9363-1-git-send-email-haas-bdq14YP6qtSV9CzYT+GlPGD2FQJk+8+b@public.gmane.org>
2016-05-05 10:35 ` [PATCH v3 1/5] power: Add an axp20x-ac-power driver Michael Haas
2016-05-05 10:35 ` [PATCH v3 4/5] ARM: dts: axp209: Add ac_power_supply child node to the ax209 node Michael Haas
[not found] ` <1462444508-9363-5-git-send-email-haas-bdq14YP6qtSV9CzYT+GlPGD2FQJk+8+b@public.gmane.org>
2016-05-05 10:41 ` Hans de Goede
2016-05-05 10:35 ` [PATCH v3 5/5] ARM: dts: axp209: Enable usb_power_supply by default Michael Haas
2016-05-05 10:39 ` Hans de Goede
[not found] ` <f672f0c7-495c-de63-6115-68d57500d874-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-05-05 10:46 ` Michael Haas
[not found] ` <3512867a-a82c-6be7-35ff-a4f6fb48a259-bdq14YP6qtSV9CzYT+GlPGD2FQJk+8+b@public.gmane.org>
2016-05-05 17:24 ` [linux-sunxi] " Hans de Goede
2016-05-06 2:48 ` Chen-Yu Tsai
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='CAGb2v67R6SX=_WDeE9cBvaiA=tTW9=tuhSC3rjOgs44hHAcTdg@mail.gmail.com' \
--to=wens@csie.org \
--cc=bonbons@linux-vserver.org \
--cc=dbaryshkov@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dwmw2@infradead.org \
--cc=galak@codeaurora.org \
--cc=haas@computerlinguist.org \
--cc=hdegoede@redhat.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=lee.jones@linaro.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@free-electrons.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=sre@kernel.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).