Hi,
Steve Longerbeam <> [20080902 09:52:23 -0700]:
>
> 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.
>
I have the same schematic (downloaded months ago) as you and seems
mislabelled. Probably pin compatible and cheaper so they went for the
M48T86PC :) I cannot be bothered to trawl the datasheets and check the
sourcecodes for both rtc drivers do the same...rtc-m48t86.c works for me :)
> 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.
>
Its the *huge* black thing on the board towards the front behind the NIC
port. You can quite clearly, well grey on black, read the model off the top.
Either way, good work on the DS168x driver.
Cheers
Alex
> ----- 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 |
> || ||
>
>
>
>
--
____________________
/ Haste makes waste. \
| |
\ -- John Heywood /
--------------------
\ ^__^
\ (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/
|