linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: Jonathan Cameron <jic23@kernel.org>,
	Hartmut Knaack <knaack.h@gmx.de>,
	linux-iio@vger.kernel.org
Subject: Re: [PATCH 4/4] iio:adc:spear_adc move out of staging
Date: Mon, 31 Mar 2014 09:13:34 +0200	[thread overview]
Message-ID: <5339159E.6000701@denx.de> (raw)
In-Reply-To: <53387391.1000803@kernel.org>

On 30.03.2014 21:42, Jonathan Cameron wrote:
> On 16/03/14 00:25, Hartmut Knaack wrote:
>> Jonathan Cameron schrieb:
>>> This simple driver is ready to move out of staging.
>>>
>>> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
>>> Acked-by: Stefan Roese <sr@denx.de>
> Stefan, there are some 'what is going on?' questions in here you might
> want to answer!

I'll give it a try.

>>> ---
>>>   drivers/iio/adc/Kconfig             |   8 +
>>>   drivers/iio/adc/Makefile            |   1 +
>>>   drivers/iio/adc/spear_adc.c         | 405
>>> ++++++++++++++++++++++++++++++++++++
>>>   drivers/staging/iio/adc/Kconfig     |   8 -
>>>   drivers/staging/iio/adc/Makefile    |   1 -
>>>   drivers/staging/iio/adc/spear_adc.c | 405
>>> ------------------------------------
>>>   6 files changed, 414 insertions(+), 414 deletions(-)
>>>
>>> diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
>>> index 5553206..2e3e1b0 100644
>>> --- a/drivers/iio/adc/Kconfig
>>> +++ b/drivers/iio/adc/Kconfig
>>> @@ -164,6 +164,14 @@ config NAU7802
>>>         To compile this driver as a module, choose M here: the
> s>>         module will be called nau7802.
>>>
>>> +config SPEAR_ADC
>>> +    tristate "ST SPEAr ADC"
>>> +    depends on PLAT_SPEAR || COMPILE_TEST
>>> +    depends on HAS_IOMEM
>>> +    help
>>> +      Say yes here to build support for the integrated ADC inside the
>>> +      ST SPEAr SoC. Provides direct access via sysfs.
>>> +
>>>   config TI_ADC081C
>>>       tristate "Texas Instruments ADC081C021/027"
>>>       depends on I2C
>>> diff --git a/drivers/iio/adc/Makefile b/drivers/iio/adc/Makefile
>>> index 89f1216..8378fb2 100644
>>> --- a/drivers/iio/adc/Makefile
>>> +++ b/drivers/iio/adc/Makefile
>>> @@ -18,6 +18,7 @@ obj-$(CONFIG_MAX1363) += max1363.o
>>>   obj-$(CONFIG_MCP320X) += mcp320x.o
>>>   obj-$(CONFIG_MCP3422) += mcp3422.o
>>>   obj-$(CONFIG_NAU7802) += nau7802.o
>>> +obj-$(CONFIG_SPEAR_ADC) += spear_adc.o
>>>   obj-$(CONFIG_TI_ADC081C) += ti-adc081c.o
>>>   obj-$(CONFIG_TI_AM335X_ADC) += ti_am335x_adc.o
>>>   obj-$(CONFIG_TWL6030_GPADC) += twl6030-gpadc.o
>>> diff --git a/drivers/iio/adc/spear_adc.c b/drivers/iio/adc/spear_adc.c
>>> new file mode 100644
>>> index 0000000..18a0a40
>>> --- /dev/null
>>> +++ b/drivers/iio/adc/spear_adc.c
>>> @@ -0,0 +1,405 @@
>>> +/*
>>> + * ST SPEAr ADC driver
>>> + *
>>> + * Copyright 2012 Stefan Roese <sr@denx.de>
>> I found a datasheet at
>> http://www.st.com/st-web-ui/static/active/en/resource/technical/document/reference_manual/DM00034813.pdf
>>
>
> THis is one of a number I think.. Not sure which parts will work out of
> the box
> with this driver though...  Stefan?  What was it written against?

I wrote and tested this driver for the SPEAr600 in 2011/2012. The manual 
mentioned above didn't exist at that time. I used one called 
"UM510_rev3.0.pdf" from Feb 2011. If interested I can send you the 
manual I used at that time.

I don't have access to the SPEAr600 hardware anymore. I'm afraid but I 
can't be of much help here.

Thanks,
Stefan

  reply	other threads:[~2014-03-31  7:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-15 14:55 [PATCH V2 0/4] iio: Minor cleanups to spear ADC driver followed by staging graduation Jonathan Cameron
2014-03-15 14:55 ` [PATCH 1/4] staging:iio:adc:spear adc - prefix defines to avoid namespace clashes Jonathan Cameron
2014-03-16  0:16   ` Hartmut Knaack
2014-03-30 18:15     ` Jonathan Cameron
2014-03-15 14:55 ` [PATCH 2/4] staging:iio:adc:spear_adc drop initialization of unused scan_type Jonathan Cameron
2014-03-15 14:55 ` [PATCH 3/4] staging:iio:adc:spear_adc use info_mask_shared_by_all for samp freq Jonathan Cameron
2014-03-15 21:26   ` Hartmut Knaack
2014-03-30 18:11     ` Jonathan Cameron
2014-03-15 14:55 ` [PATCH 4/4] iio:adc:spear_adc move out of staging Jonathan Cameron
2014-03-16  0:25   ` Hartmut Knaack
2014-03-30 19:42     ` Jonathan Cameron
2014-03-31  7:13       ` Stefan Roese [this message]
2014-04-05 10:47         ` Jonathan Cameron
2014-04-05 15:17           ` Hartmut Knaack
2014-04-05 16:39             ` Jonathan Cameron
2017-02-05 12:27       ` 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=5339159E.6000701@denx.de \
    --to=sr@denx.de \
    --cc=jic23@kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=linux-iio@vger.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).