From: Alexandre Belloni <alexandre.belloni@free-electrons.com> To: Nicolas Ferre <nicolas.ferre@atmel.com>, Jonathan Cameron <jic23@kernel.org>, Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org, Maxime Ripard <maxime.ripard@free-electrons.com>, Gregory Clement <gregory.clement@free-electrons.com>, Alexandre Belloni <alexandre.belloni@free-electrons.com> Subject: [PATCH 07/15] iio: adc: at91: add sam9rl support Date: Wed, 5 Mar 2014 18:35:32 +0100 [thread overview] Message-ID: <1394040940-18246-8-git-send-email-alexandre.belloni@free-electrons.com> (raw) In-Reply-To: <1394040940-18246-1-git-send-email-alexandre.belloni@free-electrons.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> --- drivers/iio/adc/at91_adc.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index c3ea34025749..c47dcbaa56ef 100644 --- a/drivers/iio/adc/at91_adc.c +++ b/drivers/iio/adc/at91_adc.c @@ -1343,6 +1343,20 @@ static struct at91_adc_caps at91sam9260_caps = { }, }; +static struct at91_adc_caps at91sam9rl_caps = { + .has_ts = true, + .calc_startup_ticks = calc_startup_ticks_9260, /* same as 9260 */ + .num_channels = 6, + .registers = { + .channel_base = AT91_ADC_CHR(0), + .drdy_mask = AT91_ADC_DRDY, + .status_register = AT91_ADC_SR, + .trigger_register = AT91_ADC_TRGR_9G45, + .mr_prescal_mask = AT91_ADC_PRESCAL_9260, + .mr_startup_mask = AT91_ADC_STARTUP_9G45, + }, +}; + static struct at91_adc_caps at91sam9g45_caps = { .has_ts = true, .calc_startup_ticks = calc_startup_ticks_9260, /* same as 9260 */ @@ -1377,6 +1391,7 @@ static struct at91_adc_caps at91sam9x5_caps = { static const struct of_device_id at91_adc_dt_ids[] = { { .compatible = "atmel,at91sam9260-adc", .data = &at91sam9260_caps }, + { .compatible = "atmel,at91sam9rl-adc", .data = &at91sam9rl_caps }, { .compatible = "atmel,at91sam9g45-adc", .data = &at91sam9g45_caps }, { .compatible = "atmel,at91sam9x5-adc", .data = &at91sam9x5_caps }, {}, @@ -1388,6 +1403,9 @@ static const struct platform_device_id at91_adc_ids[] = { .name = "at91sam9260-adc", .driver_data = (unsigned long)&at91sam9260_caps, }, { + .name = "at91sam9rl-adc", + .driver_data = (unsigned long)&at91sam9rl_caps, + }, { .name = "at91sam9g45-adc", .driver_data = (unsigned long)&at91sam9g45_caps, }, { -- 1.8.3.2
WARNING: multiple messages have this Message-ID (diff)
From: alexandre.belloni@free-electrons.com (Alexandre Belloni) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 07/15] iio: adc: at91: add sam9rl support Date: Wed, 5 Mar 2014 18:35:32 +0100 [thread overview] Message-ID: <1394040940-18246-8-git-send-email-alexandre.belloni@free-electrons.com> (raw) In-Reply-To: <1394040940-18246-1-git-send-email-alexandre.belloni@free-electrons.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> --- drivers/iio/adc/at91_adc.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index c3ea34025749..c47dcbaa56ef 100644 --- a/drivers/iio/adc/at91_adc.c +++ b/drivers/iio/adc/at91_adc.c @@ -1343,6 +1343,20 @@ static struct at91_adc_caps at91sam9260_caps = { }, }; +static struct at91_adc_caps at91sam9rl_caps = { + .has_ts = true, + .calc_startup_ticks = calc_startup_ticks_9260, /* same as 9260 */ + .num_channels = 6, + .registers = { + .channel_base = AT91_ADC_CHR(0), + .drdy_mask = AT91_ADC_DRDY, + .status_register = AT91_ADC_SR, + .trigger_register = AT91_ADC_TRGR_9G45, + .mr_prescal_mask = AT91_ADC_PRESCAL_9260, + .mr_startup_mask = AT91_ADC_STARTUP_9G45, + }, +}; + static struct at91_adc_caps at91sam9g45_caps = { .has_ts = true, .calc_startup_ticks = calc_startup_ticks_9260, /* same as 9260 */ @@ -1377,6 +1391,7 @@ static struct at91_adc_caps at91sam9x5_caps = { static const struct of_device_id at91_adc_dt_ids[] = { { .compatible = "atmel,at91sam9260-adc", .data = &at91sam9260_caps }, + { .compatible = "atmel,at91sam9rl-adc", .data = &at91sam9rl_caps }, { .compatible = "atmel,at91sam9g45-adc", .data = &at91sam9g45_caps }, { .compatible = "atmel,at91sam9x5-adc", .data = &at91sam9x5_caps }, {}, @@ -1388,6 +1403,9 @@ static const struct platform_device_id at91_adc_ids[] = { .name = "at91sam9260-adc", .driver_data = (unsigned long)&at91sam9260_caps, }, { + .name = "at91sam9rl-adc", + .driver_data = (unsigned long)&at91sam9rl_caps, + }, { .name = "at91sam9g45-adc", .driver_data = (unsigned long)&at91sam9g45_caps, }, { -- 1.8.3.2
next prev parent reply other threads:[~2014-03-05 17:39 UTC|newest] Thread overview: 82+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-03-05 17:35 [PATCH 00/15] iio: adc: at91 cleanups and atmel_tsadcc removal Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` [PATCH 01/15] ARM: at91: sam9g45: remove unused platform_data Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-16 17:49 ` Jonathan Cameron 2014-03-16 17:49 ` Jonathan Cameron 2014-03-16 17:49 ` Jonathan Cameron 2014-03-05 17:35 ` [PATCH 02/15] ARM: at91: sam9260: " Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-16 17:49 ` Jonathan Cameron 2014-03-16 17:49 ` Jonathan Cameron 2014-03-16 17:49 ` Jonathan Cameron 2014-03-05 17:35 ` [PATCH 03/15] iio: adc: at91: cleanup platform_data Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-16 17:55 ` Jonathan Cameron 2014-03-16 17:55 ` Jonathan Cameron 2014-03-05 17:35 ` [PATCH 04/15] iio: adc: at91_adc: Add support for touchscreens without TSMR Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 18:27 ` Thomas Petazzoni 2014-03-05 18:27 ` Thomas Petazzoni 2014-03-05 18:50 ` Dmitry Torokhov 2014-03-05 18:50 ` Dmitry Torokhov 2014-03-16 18:16 ` Jonathan Cameron 2014-03-16 18:16 ` Jonathan Cameron 2014-03-16 19:16 ` Alexandre Belloni 2014-03-16 19:16 ` Alexandre Belloni 2014-03-16 19:16 ` Alexandre Belloni 2014-03-16 20:28 ` Jonathan Cameron 2014-03-16 20:28 ` Jonathan Cameron 2014-03-16 20:28 ` Jonathan Cameron 2014-03-05 17:35 ` [PATCH 05/15] ARM: at91: sam9m10g45ek: Add touchscreen support through at91_adc Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-16 18:18 ` Jonathan Cameron 2014-03-16 18:18 ` Jonathan Cameron 2014-03-16 20:00 ` Alexandre Belloni 2014-03-16 20:00 ` Alexandre Belloni 2014-03-16 20:00 ` Alexandre Belloni 2014-03-05 17:35 ` [PATCH 06/15] iio: adc: at91: remove unused include from include/mach Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni [this message] 2014-03-05 17:35 ` [PATCH 07/15] iio: adc: at91: add sam9rl support Alexandre Belloni 2014-03-05 17:35 ` [PATCH 08/15] ARM: at91: sam9rl: add at91_adc to support adc and touchscreen Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` [PATCH 09/15] ARM: at91: sam9rlek add touchscreen support through at91_adc Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` [PATCH 10/15] ARM: at91: sam9g45: switch from atmel_tsadcc to at91_adc Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` [PATCH 11/15] ARM: at91: sam9rl: " Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` [PATCH 12/15] ARM: at91: remove atmel_tsadcc platform_data Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` [PATCH 13/15] ARM: at91: remove atmel_tsadcc from sama5_defconfig Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 17:35 ` [PATCH 14/15] Input: atmel_tsadcc: remove driver Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-05 18:46 ` Dmitry Torokhov 2014-03-05 18:46 ` Dmitry Torokhov 2014-03-16 18:26 ` Jonathan Cameron 2014-03-16 18:26 ` Jonathan Cameron 2014-03-16 19:26 ` Dmitry Torokhov 2014-03-16 19:26 ` Dmitry Torokhov 2014-03-16 19:26 ` Dmitry Torokhov 2014-03-05 17:35 ` [PATCH 15/15] ARM: at91/dt: at91-cosino_mega2560 remove useless tsadcc node Alexandre Belloni 2014-03-05 17:35 ` Alexandre Belloni 2014-03-16 18:30 ` [PATCH 00/15] iio: adc: at91 cleanups and atmel_tsadcc removal Jonathan Cameron 2014-03-16 18:30 ` Jonathan Cameron 2014-03-16 18:30 ` Jonathan Cameron 2014-03-16 19:29 ` Alexandre Belloni 2014-03-16 19:29 ` Alexandre Belloni 2014-03-19 10:19 ` Nicolas Ferre 2014-03-19 10:19 ` Nicolas Ferre 2014-03-19 10:19 ` Nicolas Ferre 2014-03-22 12:31 ` Jonathan Cameron 2014-03-22 12:31 ` Jonathan Cameron 2014-03-24 9:00 ` Nicolas Ferre 2014-03-24 9:00 ` Nicolas Ferre 2014-03-24 9:00 ` Nicolas Ferre
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=1394040940-18246-8-git-send-email-alexandre.belloni@free-electrons.com \ --to=alexandre.belloni@free-electrons.com \ --cc=dmitry.torokhov@gmail.com \ --cc=gregory.clement@free-electrons.com \ --cc=jic23@kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-iio@vger.kernel.org \ --cc=linux-input@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=maxime.ripard@free-electrons.com \ --cc=nicolas.ferre@atmel.com \ --cc=plagnioj@jcrosoft.com \ /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: linkBe 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.