ts-7000
[Top] [All Lists]

[ts-7000] Re: platform driver for MAX197

To:
Subject: [ts-7000] Re: platform driver for MAX197
From: "j.chitte" <>
Date: Wed, 28 Apr 2010 08:21:50 -0000

--- In  "Charles" <> wrote:
>
> 
> Hi --
> --- In  "j.chitte" <j.chitte@> wrote:
> >
> > Hi, 
> > 
> > I'm working on using the lastest matt patchset linux-2.6.32.3-ts7200_matt-4
> > http://mcrapet.free.fr/
> > 
> > The doc states that the max197 is now mainline and he has dropped this 197 
> > patch. But I can't find it when doing menuconfig.
> 
> It is not in mainline, AFAIK.  (In menuconfig, type '/', and enter text to 
> search for.... I found that very useful when I discovered it).  Nor did I 
> find any mention of it on the linux arm kernel ML.
> 
> Matt dropped the max197 patch from his patchset, but it should be a simple 
> matter to add it back in again if you need it.  Not sure why he dropped it.
> 
> There is also a device driver for the max197 in the files section of this 
> group, if you need more speed.
> 
> regards, ...... Charlie
> 
> > 
> > Maybe I need to enable something else first to see it. 
> > 
> > Anyone point me in the right direction>
> > 
> > TIA/
> >
>

Thanks,

He says he dropped it because it is now in mainline. The change log documents 
the feature but I can't find out how to enable it.


http://mcrapet.free.fr/linux-2.6.32.3-ts7200_matt-4.txt

  - Max197 option (platform driver)

# MAX197 option. 8 (12-bit) ADC channels (module named ts72xx_max197)
    $ cd /sys/devices/platform/ts72xx-max197
    $ cat ch1
    0.000

    For configuring range input:
    $ echo 5  >ch2                // range 0..5V (this is the default)
    $ echo 10 >ch3                // range 0..10V
    $ echo -5 >ch4                // range -5..5V
    $ echo -10 >ch5               // range -10..10V

    If average option is compiled:
    $ cd /sys/module/ts72xx_max197/parameters
    $ cat average 
    1
    $ echo 2 >average             // two samples are acquired foa one request

The old config option (still in his example configs) gets filtered out my make 
menuconfig and grepping .config for TS or MAX does not show anything relevant.

The search feature is very useful, thanks for the cheat code ;)
But similarly nothing relevant shows up for 197.

Maybe matt pre-empted it getting into mainline. I'll see if his older patch 
still works.

I'm already getting about 24kS/s from userland code now I'm on eabi, which is 
starting to get interesting. I think with the kernel driver I should be able to 
get closer to the MAX spec of 100kS/s

That is starting to get interesting.




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU