ts-7000
[Top] [All Lists]

[ts-7000] Re: DS1685/1687 RTC driver for TS7800

To:
Subject: [ts-7000] Re: DS1685/1687 RTC driver for TS7800
From: Alexander Clouter <>
Date: Tue, 2 Sep 2008 00:10:33 +0100
Steve Longerbeam <> [20080901 15:09:05 -0700]:
>
> Hi, maybe someone has already done this, but attached is a RTC driver for 
> the DS1685/1687 RTC chip. The main driver is platform-independent code at 
> drivers/rtc/rtc-ds1685.c and /include/linux/ds1685.h. As usual, it requires 
> a platform_device be registered by platform-specific code. The driver 
> allows the platform to define its own read/write access to the chip via 
> platform_data functions. If those are not implemented, the driver assumes 
> the RTC chip is directly accessible via readb/writeb.
>
It would probably be worth mainlining your rtc-ds1685.c independently.

> Attached is patch against 2.6.21-ts.jun102008. The DS1687 on the TS7800 is 
> accessible indirectly via an indexed addressing mode, so the patch includes 
> platform_data for accessing the chip.
>
What 'TS7800' do you have, the RTC chip on mine is a M48T86PC1 affair that is 
already supported via drivers/rtc/rtc-m48t86.c?

http://git.eu.kernel.org/?p=linux/kernel/git/nico/orion.git;a=commitdiff;h=7171d8672bb0bcb744935bd2c6108378b5c6c6ad;hp=530c854aa351b2c7b3b3b6bedae8143310875206

> I tested this on the TS7800 with hwclock and it works fine, I can set and 
> read the clock, although some of the 242 bytes of NVRAM are not accessible 
> for some reason which I'm looking into.
> 
Looking at the rtc-m48t86.c source I see at the top it is also the driver for 
the "Dallas DS12887", I'm guessing there is some compatibility between the 
lot that is working?

Alternatively you might have a different RTC chip on your board to me :(  
This is going to make things annoying, if this is the case, unless TS have a 
way to detect between the two if they are not effectively the same chip.

Cheers

Alex

-- 
 ______________________________________
/ The only reward of virtue is virtue. \
|                                      |
\ -- Ralph Waldo Emerson               /
 --------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

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

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