Hi all,
Thanks to all for the suggestions.
But whatever driver for ADC i am getting is through I2C connected only.Like any other spi slave driver,i added for my spi device also and the device is opening also.But now i am trying how to read the data which i am not getting.
Send spi-devel-general mailing list submissions to
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/spi-devel-general
or, via email, send a message with subject or body 'help' to
spi-devel-general-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
You can reach the person managing the list at
spi-devel-general-owner-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of spi-devel-general digest..."
Today's Topics:
1. SPI-ADC (arjun rath)
2. Re: SPI-ADC (Ben Gamari)
3. Re: SPI-ADC (Linus Walleij)
4. [SPAM] ???????????????? ??????????? ?????
( ??????????????? ???????? )
5. Re: SPI-ADC (Jonathan Cameron)
6. Re: SPI-ADC (Mike Frysinger)
7. [SPAM] Offert : notre guide pour mieux gerer votre epargne et
developper votre patrimoine (Immo-web)
----------------------------------------------------------------------
Message: 1
Date: Sat, 13 Feb 2010 11:18:40 +0530
From: arjun rath <rath.arjun@gmail.com>
Subject: [spi-devel-general] SPI-ADC
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Message-ID:
<dc6d3181002122148v6451ebffka164de288738485d-JsoAwUIsXos@public.gmane.orgil.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi everybody,
can anybody share how to start a spi based ADC linux driver.I am having a
MAXIM 1242 ADC chip.
Can anybody share some reference driver for the same chip
Thanks in advance
Arjun
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Sat, 13 Feb 2010 01:38:16 -0500
From: Ben Gamari <bgamari-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [spi-devel-general] SPI-ADC
To: spi-devel-general <spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Message-ID: <1266042736-sup-3579@ben-laptop>
Content-Type: text/plain; charset=UTF-8
Excerpts from arjun rath's message of Sat Feb 13 00:48:40 -0500 2010:
> Hi everybody,
>
> can anybody share how to start a spi based ADC linux driver.I am having a
> MAXIM 1242 ADC chip.
>
> Can anybody share some reference driver for the same chip
>
I've recently been working on a design for a data acquisition
board to interface with the Beagle Board using the Maxim 5134 and 1270.
I'm using the spidev driver to interface with the devices from
user-space. Documentation on this driver can be found in the
Documentation/spi/spidev file of the Linux kernel tree. My code can be
found at [1]. Hope things are going well,
- Ben
[1] http://goldnerlab.physics.umass.edu/git?p=tracker.git;a=tree
------------------------------
Message: 3
Date: Sat, 13 Feb 2010 14:48:22 +0100
From: Linus Walleij <linus.ml.walleij-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [spi-devel-general] SPI-ADC
To: arjun rath <rath.arjun@gmail.com>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux kernel
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Message-ID:
<63386a3d1002130548y7c839072y85097a9bcdf66cad@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
2010/2/13 arjun rath <rath.arjun@gmail.com>:
> can anybody share how to start a spi based ADC linux driver.I am having a
> MAXIM 1242 ADC chip.
The ?ernel does not contain any generic ADC subsystem abstraction (I
think it would be good if it did), instead most drivers using ADC have
their ADC portions stored inside a driver for something else, e.g.
drivers/hwmon for ADCs used in temperature monitoring, or
drivers/power for ADCs used in monitoring of currents and voltages
for power supplies/batteries.
This is a bit bad for driving a generic ADC like this using spidev and,
even if it was to be accessed from userspace only, having it under
drivers/spi is rather counterintuitive, what happens when the next ADC
using I2C turns up? drivers/i2c/chips?
I would suggest creating subsystem drivers/adc if you have time and
energy, other ideas?
Linus Walleij
------------------------------
Message: 4
Date: Sat, 13 Feb 2010 18:18:04 +0300
From: " ??????????????? ???????? " <debywepocehugaly-oe7qfRrRQfd4OK5fxMSSsQ@public.gmane.org>
Subject: [spi-devel-general] [SPAM] ???????????????? ??????????? ?????
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Message-ID: <1162144242.20100213181804-oe7qfRrRQfd4OK5fxMSSsQ@public.gmane.org>
Content-Type: text/plain; charset="utf-8"
Underqzi
6ED
aqqnzYofJmhldeH
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 5
Date: Sat, 13 Feb 2010 16:51:58 +0000
From: Jonathan Cameron <kernel-tko9wxEg+fIOOJlXag/Snyp2UmYkHbXO@public.gmane.org>
Subject: Re: [spi-devel-general] SPI-ADC
To: Linus Walleij <linus.ml.walleij-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux kernel
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>, arjun rath <rath.arjun-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Message-ID: <4B76D8AE.7040102-tko9wxEg+fIOOJlXag/Snyp2UmYkHbXO@public.gmane.org>
Content-Type: text/plain; charset=UTF-8
Hi Arjun and Linus,
>
>> can anybody share how to start a spi based ADC linux driver.I am having a
>> MAXIM 1242 ADC chip.
>
> The ?ernel does not contain any generic ADC subsystem abstraction (I
> think it would be good if it did), instead most drivers using ADC have
> their ADC portions stored inside a driver for something else, e.g.
> drivers/hwmon for ADCs used in temperature monitoring, or
> drivers/power for ADCs used in monitoring of currents and voltages
> for power supplies/batteries.
That's not entirely true. These are covered by the IIO subsystem which
is admittedly currently in staging as some elements still need cleaning up.
As a quick summary of IIO. Except for a few bits of management code, basic
drivers look pretty much like hwmon. An example in tree is the tsl2563 driver
(under drivers/staging/iio/light) though that one is moving out to ALS when
Amit has a chance to sort out the relevant patch.
For more advanced drivers (only add support if you have a use as it is a fair
bit more complex) we have support for hardware and software ring buffers, an
events interface which is more or less the equivalent of input without cross
device aggregation.
ADC drivers are under drivers/staging/iio/adc.
I think in mainline we still only have a max1363 driver which covers a lot
of the i2c maxim parts (more to add after testing). There are a couple
more iio using adc drivers in a blackfin tree at:
http://blackfin.uclinux.org/gf/project/linux-kernel/scmsvn/
(Note these are very much under development!) Though from a quick look
all of them are i2c based. For an spi equivalent, take a look at
drivers/staging/iio/accel/ where we have the kxsd9 driver (which is another
simple example of an IIO driver) + lis3l02dq and sca3000 which are on the
heavy side (probably not a good place to start).
For a general list of devices people are working on, or at least have and
intend to work on, take a look at:
https://sourceforge.net/apps/mediawiki/iioutils/index.php?title=Device_List
Just for reference, the big up coming change in IIO is a new userspace ABI
to clean things up before we get too many drivers using the somewhat messy
old version.
It will still be a little while before we have cleaned up the more controversial
issues in the core (none of which touch on the simpler drivers) but with a
steady increase in active developers things are speeding up.
So in conclusion, if your use of the driver doesn't fall neatly under hwmon
or elsewhere, and you don't mind writing for a subsystem which isn't entirely
polished and may change, then IIO might be what you are looking for.
Currently all discussions take place on LKML, but we are working on a more
focused alternative list which I'll announce once it is sorted out.
Just taking a quick and dirty look at the datasheet for the MAX1242:
* You might have fun getting the required conversion delay before a read.
(Chip select must be enabled for 7.5 microsecs before the clock starts)
* Otherwise it is a nice simple chip with no actual control of anything.
Perhaps you can supply some information on your application to guide
an continuation of this discussion?
Thanks,
Jonathan Cameron
>
> This is a bit bad for driving a generic ADC like this using spidev and,
> even if it was to be accessed from userspace only, having it under
> drivers/spi is rather counterintuitive, what happens when the next ADC
> using I2C turns up? drivers/i2c/chips?
>
> I would suggest creating subsystem drivers/adc if you have time and
> energy, other ideas?
>
> Linus Walleij
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
------------------------------
Message: 6
Date: Sat, 13 Feb 2010 12:03:17 -0500
From: Mike Frysinger <vapier.adi@gmail.com>
Subject: Re: [spi-devel-general] SPI-ADC
To: Jonathan Cameron <kernel-tko9wxEg+fIOOJlXag/Snyp2UmYkHbXO@public.gmane.org>
Cc: linux kernel <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>, arjun rath
<rath.arjun@gmail.com>, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Message-ID:
<8bd0f97a1002130903h698c8d4ax4b3b9bfff02157b7@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Sat, Feb 13, 2010 at 11:51, Jonathan Cameron wrote:
> http://blackfin.uclinux.org/gf/project/linux-kernel/scmsvn/
people who like git can always use:
http://blackfin.uclinux.org/git/?p=readonly-mirrors/linux-kernel.git;a=summary
-mike
------------------------------
Message: 7
Date: Sat, 13 Feb 2010 19:32:10 +0100 (CET)
From: "Immo-web" <privileges-BQzCAz/s1vZLBLenUCvkVg@public.gmane.org>
Subject: [spi-devel-general] [SPAM] Offert : notre guide pour mieux
gerer votre epargne et developper votre patrimoine
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Message-ID: <kxsm5l.me49qn-4StZXCDRhwPgrAmjdVbZJQ@public.gmane.org>
Content-Type: text/plain; charset="iso-8859-1"
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
------------------------------
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general
End of spi-devel-general Digest, Vol 45, Issue 15
*************************************************