All of lore.kernel.org
 help / color / mirror / Atom feed
* MPC8245 and PCF8563 RTC
@ 2003-07-24 22:07 Matthew S. McClintock
  2003-07-24 22:26 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew S. McClintock @ 2003-07-24 22:07 UTC (permalink / raw)
  To: linuxppc-embedded


Has anyone had any success using an MPC8245 and a Philips PCF8563 real
time clock in linux? Everything works in U-Boot but I can not get
everything working in linux.

I am using the MPC8245 I2C drivers from:
http://www.humboldt.co.uk/mpc10xi2c.html
and I am using the PCF8563 drivers from the CVS DENX Linux kernel.

I know I2C works in linux because the two LM75 temperature sensors on
the board work. However the PCF8563 driver does not work. I have
debugging turned on for both the i2c-adap-mpc10x and pcf8563 kernel
modules and I get output that looks like this:

rtc_rd(): i2c transfer error
i2c-adap-mpc10x.c: Doing write 1 bytes to 0x51 - 1 of 2 messages
i2c-adap-mpc10x.c: Doing read 1 bytes to 0x51 - 2 of 2 messages
rtc_rd(): i2c transfer error
Alarms: wday: ff day: ff hour: ff min: ff
PCF8563 RTC Low Voltage - date/time not reliable
get rtc [dec] year=2165 mon=25 day=45 hour=45 min=85 sec=85
Set System Time from RTC Time: 1925913489
RTC installed, minor 135
i2c-adap-mpc10x.c: Doing write 1 bytes to 0x51 - 1 of 2 messages
i2c-adap-mpc10x.c: Doing read 1 bytes to 0x51 - 2 of 2 messages
rtc_rd(): i2c transfer error
PCF8563 RTC Low Voltage - date/time not reliable
i2c-adap-mpc10x.c: Doing write 2 bytes to 0x51 - 1 of 1 messages
rtc_wr(): i2c transfer error
i2c-adap-mpc10x.c: Doing write 2 bytes to 0x51 - 1 of 1 messages
rtc_wr(): i2c transfer error
i2c-adap-mpc10x.c: Doing write 2 bytes to 0x51 - 1 of 1 messages
rtc_wr(): i2c transfer error
i2c-adap-mpc10x.c: Doing write 1 bytes to 0x51 - 1 of 2 messages
i2c-adap-mpc10x.c: Doing read 1 bytes to 0x51 - 2 of 2 messages
rtc_rd(): i2c transfer error

Obviously it has a transfer error, but I am curious if anyone has any
experiences with the same situation. Anyone have any ideas?

Thanks,
Matthew


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MPC8245 and PCF8563 RTC
  2003-07-24 22:07 MPC8245 and PCF8563 RTC Matthew S. McClintock
@ 2003-07-24 22:26 ` Wolfgang Denk
  2003-07-25 14:24   ` Matthew S. McClintock
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2003-07-24 22:26 UTC (permalink / raw)
  To: Matthew S. McClintock; +Cc: linuxppc-embedded


Dear Matthew,

in message <1059084423.4969.11.camel@triffo.arlut.utexas.edu> you wrote:
>
> Has anyone had any success using an MPC8245 and a Philips PCF8563 real
> time clock in linux? Everything works in U-Boot but I can not get
> everything working in linux.

Not with a MPC8245, but with MPC8240 (on CU824  board),  MPC8250  (on
PM825 board), and MPC8260 CPUs (on PM826 and CPU86 boards).

> Obviously it has a transfer error, but I am curious if anyone has any
> experiences with the same situation. Anyone have any ideas?

Works fine here.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
I read part of it all the way through.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MPC8245 and PCF8563 RTC
  2003-07-24 22:26 ` Wolfgang Denk
@ 2003-07-25 14:24   ` Matthew S. McClintock
  2003-07-25 16:15     ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew S. McClintock @ 2003-07-25 14:24 UTC (permalink / raw)
  To: linuxppc-embedded


Do any of the boards you mentioned use the same i2c-adap driver that I
mentioned I was using for my board? Is there a better i2c-adap driver
for an MPC8245 board? I think the i2c driver for my board is the
culprit, not the driver for the real time clock. As always all help is
appreciated.

Thanks,
Matthew

On Thu, 2003-07-24 at 17:26, Wolfgang Denk wrote:
> Dear Matthew,
>
> in message <1059084423.4969.11.camel@triffo.arlut.utexas.edu> you wrote:
> >
> > Has anyone had any success using an MPC8245 and a Philips PCF8563 real
> > time clock in linux? Everything works in U-Boot but I can not get
> > everything working in linux.
>
> Not with a MPC8245, but with MPC8240 (on CU824  board),  MPC8250  (on
> PM825 board), and MPC8260 CPUs (on PM826 and CPU86 boards).
>
> > Obviously it has a transfer error, but I am curious if anyone has any
> > experiences with the same situation. Anyone have any ideas?
>
> Works fine here.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
> I read part of it all the way through.
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MPC8245 and PCF8563 RTC
  2003-07-25 14:24   ` Matthew S. McClintock
@ 2003-07-25 16:15     ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2003-07-25 16:15 UTC (permalink / raw)
  To: Matthew S. McClintock; +Cc: linuxppc-embedded


In message <1059143087.4969.21.camel@triffo.arlut.utexas.edu> you wrote:
>
> Do any of the boards you mentioned use the same i2c-adap driver that I
> mentioned I was using for my board? Is there a better i2c-adap driver

No, they don't.

> for an MPC8245 board? I think the i2c driver for my board is the
> culprit, not the driver for the real time clock. As always all help is
> appreciated.
...
> > Not with a MPC8245, but with MPC8240 (on CU824  board),  MPC8250  (on
> > PM825 board), and MPC8260 CPUs (on PM826 and CPU86 boards).

CU824 uses i2c-algo-8240 + i2c-cu824
PM825 and PM826 use i2c-algo-8260 + i2c-pm826
CPU86 uses i2c-algo-8260 + i2c-cpu86


Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Administration: An ingenious abstraction  in  politics,  designed  to
receive the kicks and cuffs due to the premier or president.
- Ambrose Bierce

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-07-25 16:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-24 22:07 MPC8245 and PCF8563 RTC Matthew S. McClintock
2003-07-24 22:26 ` Wolfgang Denk
2003-07-25 14:24   ` Matthew S. McClintock
2003-07-25 16:15     ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.