ts-7000
[Top] [All Lists]

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

To:
Subject: Re: [ts-7000] Re: DS1685/1687 RTC driver for TS7800
From: Steve Longerbeam <>
Date: Tue, 2 Sep 2008 09:52:23 -0700 (PDT)
Hi Alexander,

Looking at this schematic for the TS7800:

http://www.embeddedarm.com/documentation/ts-7800-schematic.pdf

shows the RTC chip as a DS1687. That's all I'm going on, and I wouldn't be surprised if it is an outdated schematic, and that in fact it is actually a M48T86PC as you claim.

How did you find out your board has a M48T86PC? Do you have updated schematics, or did you look over the board with a magnifying glass and read-off the chip part numbers? I'll see if I can read the part #'s on my board.

Steve


----- Original Message ----
From: Alexander Clouter <>
To:
Sent: Monday, September 1, 2008 4:10:33 PM
Subject: [ts-7000] Re: DS1685/1687 RTC driver for TS7800

Steve Longerbeam <steve.longerbeam@ yahoo.com> [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-independen t 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=7171d8672bb0b cb744935bd2c6108 378b5c6c6ad; hp=530c854aa351b 2c7b3b3b6bedae81 43310875206

> 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 |
|| ||


__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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