All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oskari Lemmela <oskari@lemmela.net>
To: Chen-Yu Tsai <wens@csie.org>, Lee Jones <lee.jones@linaro.org>
Cc: Quentin Schulz <quentin.schulz@bootlin.com>,
	linux-kernel@vger.kernel.org, Oskari Lemmela <oskari@lemmela.net>
Subject: [PATCH v8 2/2] mfd: axp20x: Add supported cells for AXP803
Date: Sat,  8 Dec 2018 19:58:47 +0200	[thread overview]
Message-ID: <20181208175847.32068-3-oskari@lemmela.net> (raw)
In-Reply-To: <20181208175847.32068-1-oskari@lemmela.net>

Parts of the AXP803 are compatible with their counterparts on the AXP813.
These include the GPIO, ADC, AC and battery power supplies.

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 drivers/mfd/axp20x.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index 8037b4e01ed6..f8e0fa97bb31 100644
--- a/drivers/mfd/axp20x.c
+++ b/drivers/mfd/axp20x.c
@@ -726,6 +726,20 @@ static const struct mfd_cell axp803_cells[] = {
 		.name		= "axp221-pek",
 		.num_resources	= ARRAY_SIZE(axp803_pek_resources),
 		.resources	= axp803_pek_resources,
+	}, {
+		.name		= "axp20x-gpio",
+		.of_compatible	= "x-powers,axp813-gpio",
+	}, {
+		.name		= "axp813-adc",
+		.of_compatible	= "x-powers,axp813-adc",
+	}, {
+		.name		= "axp20x-battery-power-supply",
+		.of_compatible	= "x-powers,axp813-battery-power-supply",
+	}, {
+		.name		= "axp20x-ac-power-supply",
+		.of_compatible	= "x-powers,axp813-ac-power-supply",
+		.num_resources	= ARRAY_SIZE(axp20x_ac_power_supply_resources),
+		.resources	= axp20x_ac_power_supply_resources,
 	},
 	{	.name		= "axp20x-regulator" },
 };
-- 
2.17.1


  parent reply	other threads:[~2018-12-08 17:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-08 17:58 [PATCH v8 0/2] AXP8x3 AC and battery power supply support Oskari Lemmela
2018-12-08 17:58 ` [PATCH v8 1/2] mfd: axp20x: Re-align mfd cell entries Oskari Lemmela
2018-12-10  6:32   ` Lee Jones
2018-12-10  6:36   ` Lee Jones
2018-12-10  6:55     ` Oskari Lemmelä
2018-12-10  7:05       ` Lee Jones
2018-12-08 17:58 ` Oskari Lemmela [this message]
2018-12-10  6:32   ` [PATCH v8 2/2] mfd: axp20x: Add supported cells for AXP803 Lee Jones
2018-12-10  6:35   ` Lee Jones
2018-12-10  6:41     ` Chen-Yu Tsai
2018-12-10  7:04       ` 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=20181208175847.32068-3-oskari@lemmela.net \
    --to=oskari@lemmela.net \
    --cc=lee.jones@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quentin.schulz@bootlin.com \
    --cc=wens@csie.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.