linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: gsi@denx.de (Gerhard Sittig)
To: linux-arm-kernel@lists.infradead.org
Subject: Stuck getting DTS working for a new kirkwood board
Date: Sat, 22 Feb 2014 19:44:14 +0100	[thread overview]
Message-ID: <20140222184414.GG3327@book.gsilab.sittig.org> (raw)
In-Reply-To: <530865C9.6000704@sigpipe.me>

On Sat, Feb 22, 2014 at 09:54 +0100, Dashie wrote:
> 
> On 02/21/2014 11:12 PM, Andrew Lunn wrote:
> > This suggests there is a different RTC on the board than the built in
> > one. It is probably on i2c. You can probably get the address using the
> > i2cdetect program. If you have boot logs from the vendor kernel it
> > will probably tell you what device it is.
> >
> >      Andrew
> I looked at my photos of the PCB and found a M41T80 "Serial access
> real-time clock with alarm", it seems to be at 0x0c, then added :
>         i2c at 11000 {
> [snip]
>                         rtc: rtc at 0c {
>                                 compatible = "stm,m41t80";
>                                 reg = <0x0c>;
>                         };
>         };

Aren't these M41T80 usually at I2C address 0x68 (fixed in the
chip, and not adjustable, not even partly)? 0x0c looks very
unexpected to me.

> And got:
> root at debian:~# dmesg|grep -i rtc
> rtc-mv f1010300.rtc: internal RTC not ticking
> rtc-m41t80 0-000c: chip found, driver version 0.05
> rtc-m41t80 0-000c: rtc core: registered m41t80 as rtc0
> rtc-m41t80 0-000c: hctosys: unable to read the hardware clock
> 
> The chip seems to register but nothing else.

Well, the driver blindly follows your input, and cannot detect
nor verify the chip's being present or being of the correct type.
So an address mismatch explains what you see.


virtually yours
Gerhard Sittig
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de

  parent reply	other threads:[~2014-02-22 18:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20 21:22 Stuck getting DTS working for a new kirkwood board Dashie
2014-02-21  1:34 ` Jason Cooper
2014-02-21  7:39   ` Dashie
2014-02-21 15:15     ` Jason Cooper
2014-02-21 19:21       ` Dashie
2014-02-21 20:08         ` Jason Cooper
2014-02-21 22:01           ` Dashie
2014-02-21 22:12             ` Andrew Lunn
2014-02-22  8:54               ` Dashie
2014-02-22 18:41                 ` Andrew Lunn
2014-02-22 18:50                   ` Dashie
2014-02-22 19:30                     ` Andrew Lunn
2014-02-22 19:44                       ` Dashie
2014-02-22 22:25                         ` Sebastian Hesselbarth
2014-02-22 18:44                 ` Gerhard Sittig [this message]
2014-02-22 19:00           ` Dashie
2014-02-22 19:30             ` Jason Cooper
2014-03-26  1:01               ` Jason Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140222184414.GG3327@book.gsilab.sittig.org \
    --to=gsi@denx.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).