Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1568565
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Quentin Schulz <quentin.schulz@free-electrons.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 21/25] mfd: axp20x: add MFD cells for AXP20X and AXP22X battery driver |
| Date | Fri, 27 Jan 2017 18:50:02 +0100 |
| Message-ID | <t4iOS-78e-11@gated-at.bofh.it> (permalink) |
| References | <t4aHE-2dV-25@gated-at.bofh.it> |
| X-Mailer | git-send-email 2.9.3 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 47 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Quentin Schulz <quentin.schulz@free-electrons.com>, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, thomas.petazzoni@free-electrons.com, icenowy@aosc.xyz, bonbons@linux-vserver.org |
| X-Original-Date | Fri, 27 Jan 2017 09:54:54 +0100 |
| X-Original-Message-ID | <20170127085458.18270-22-quentin.schulz@free-electrons.com> |
| X-Original-References | <20170127085458.18270-1-quentin.schulz@free-electrons.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1568565 |
Show key headers only | View raw
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply.
This patch adds the AXP20X/AXP22X battery driver to the MFD cells of the
AXP209, AXP221 and AXP223 MFD.
Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org>
---
drivers/mfd/axp20x.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index 223dffe..e79ff98 100644
--- a/drivers/mfd/axp20x.c
+++ b/drivers/mfd/axp20x.c
@@ -586,6 +586,9 @@ static struct mfd_cell axp20x_cells[] = {
.name = "axp20x-adc",
.of_compatible = "x-powers,axp209-adc",
}, {
+ .name = "axp20x-battery-power-supply",
+ .of_compatible = "x-powers,axp209-battery-power-supply",
+ }, {
.name = "axp20x-ac-power-supply",
.of_compatible = "x-powers,axp202-ac-power-supply",
.num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources),
@@ -614,6 +617,9 @@ static struct mfd_cell axp221_cells[] = {
.num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources),
.resources = axp20x_ac_power_supply_resources,
}, {
+ .name = "axp20x-battery-power-supply",
+ .of_compatible = "x-powers,axp221-battery-power-supply",
+ }, {
.name = "axp20x-usb-power-supply",
.of_compatible = "x-powers,axp221-usb-power-supply",
.num_resources = ARRAY_SIZE(axp22x_usb_power_supply_resources),
@@ -630,6 +636,9 @@ static struct mfd_cell axp223_cells[] = {
.name = "axp20x-adc",
.of_compatible = "x-powers,axp221-adc"
}, {
+ .name = "axp20x-battery-power-supply",
+ .of_compatible = "x-powers,axp221-battery-power-supply",
+ }, {
.name = "axp20x-regulator",
}, {
.name = "axp20x-ac-power-supply",
--
2.9.3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 00/25] add support for AXP20X and AXP22X power supply drivers Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 15:40 +0100
[PATCH v2 03/25] power: supply: axp20x_usb_power: use IIO channels when available Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 16:00 +0100
Re: [PATCH v2 03/25] power: supply: axp20x_usb_power: use IIO channels when available Jonathan Cameron <jic23@kernel.org> - 2017-01-28 16:00 +0100
Re: [PATCH v2 03/25] power: supply: axp20x_usb_power: use IIO channels when available Sebastian Reichel <sre@kernel.org> - 2017-01-29 17:30 +0100
[PATCH v2 04/25] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 16:10 +0100
Re: [PATCH v2 04/25] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs Jonathan Cameron <jic23@kernel.org> - 2017-01-28 16:00 +0100
Re: [PATCH v2 04/25] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-28 16:30 +0100
Re: [PATCH v2 04/25] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs Jonathan Cameron <jic23@kernel.org> - 2017-01-28 16:40 +0100
[PATCH v2 16/25] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 16:50 +0100
Re: [PATCH v2 16/25] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding Sebastian Reichel <sre@kernel.org> - 2017-01-29 18:00 +0100
[PATCH v2 21/25] mfd: axp20x: add MFD cells for AXP20X and AXP22X battery driver Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 18:50 +0100
[PATCH v2 23/25] ARM: dtsi: axp22x: add battery power supply subnode Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 19:10 +0100
[PATCH v2 19/25] iio: adc: axp20x_adc: map battery IIO channels Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 19:20 +0100
Re: [PATCH v2 19/25] iio: adc: axp20x_adc: map battery IIO channels Jonathan Cameron <jic23@kernel.org> - 2017-01-28 16:10 +0100
[PATCH v2 25/25] ARM: sun5i: chip: enable battery power supply subnode Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 19:40 +0100
[PATCH v2 18/25] mfd: axp20x: add V_OFF to writeable regs for AXP20X and AXP22X Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 19:50 +0100
[PATCH v2 22/25] ARM: dtsi: axp209: add battery power supply subnode Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 20:10 +0100
[PATCH v2 24/25] ARM: dts: sun8i: sina33: enable battery power supply subnode Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 20:20 +0100
[PATCH v2 15/25] ARM: sun5i: chip: enable ACIN power supply subnode Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 20:30 +0100
[PATCH v2 20/25] power: supply: add battery driver for AXP20X and AXP22X PMICs Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-01-27 20:50 +0100
Re: [PATCH v2 20/25] power: supply: add battery driver for AXP20X and AXP22X PMICs Jonathan Cameron <jic23@kernel.org> - 2017-01-28 16:30 +0100
csiph-web