mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: yixun.lan@amlogic.com (Yixun Lan)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH 3/3] iio: adc: meson-axg: add saradc driver
Date: Mon, 26 Mar 2018 16:46:29 +0800	[thread overview]
Message-ID: <20180326084629.100070-4-yixun.lan@amlogic.com> (raw)
In-Reply-To: <20180326084629.100070-1-yixun.lan@amlogic.com>

From: Xingyu Chen <xingyu.chen@amlogic.com>

Add the SAR ADC driver for the Amlogic Meson-AXG SoC.

Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
---
 drivers/iio/adc/meson_saradc.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c
index 799ed929ab99..a5d481a2b4ef 100644
--- a/drivers/iio/adc/meson_saradc.c
+++ b/drivers/iio/adc/meson_saradc.c
@@ -935,6 +935,11 @@ static const struct meson_sar_adc_data meson_sar_adc_gxm_data = {
 	.name = "meson-gxm-saradc",
 };
 
+static const struct meson_sar_adc_data meson_sar_adc_axg_data = {
+	.param = &meson_sar_adc_gxl_param,
+	.name = "meson-axg-saradc",
+};
+
 static const struct of_device_id meson_sar_adc_of_match[] = {
 	{
 		.compatible = "amlogic,meson8-saradc",
@@ -953,6 +958,9 @@ static const struct of_device_id meson_sar_adc_of_match[] = {
 	}, {
 		.compatible = "amlogic,meson-gxm-saradc",
 		.data = &meson_sar_adc_gxm_data,
+	}, {
+		.compatible = "amlogic,meson-axg-saradc",
+		.data = &meson_sar_adc_axg_data,
 	},
 	{},
 };
-- 
2.15.1

  parent reply	other threads:[~2018-03-26  8:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-26  8:46 [PATCH 0/3] iio: adc: meson-axg: add saradc driver support Yixun Lan
2018-03-26  8:46 ` [PATCH 1/3] iio: adc: meson-saradc: squash and share the common adc platform data Yixun Lan
2018-03-30  9:48   ` Jonathan Cameron
2018-03-30 10:37     ` Yixun Lan
2018-03-30 11:06   ` Martin Blumenstingl
2018-03-26  8:46 ` [PATCH 2/3] dt-bindings: iio: adc: document the Meson AXG support Yixun Lan
2018-03-27 15:07   ` Rob Herring
2018-03-30  9:50     ` Jonathan Cameron
2018-03-30 11:05   ` Martin Blumenstingl
2018-03-26  8:46 ` Yixun Lan [this message]
2018-03-30  9:50   ` [PATCH 3/3] iio: adc: meson-axg: add saradc driver Jonathan Cameron
2018-03-30 11:09   ` Martin Blumenstingl
2018-03-30 12:51     ` Jonathan Cameron

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=20180326084629.100070-4-yixun.lan@amlogic.com \
    --to=yixun.lan@amlogic.com \
    --cc=linus-amlogic@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

all inboxes | Powered by JetHome®