All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregory CLEMENT <gregory.clement@free-electrons.com>
To: Baruch Siach <baruch@tkos.co.il>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	Alexandre Belloni <alexandre.belloni@free-electrons.com>,
	linux-rtc@vger.kernel.org, Rabeeh Khoury <rabeeh@solid-run.com>
Subject: Re: Armada RTC power up reset
Date: Fri, 01 Dec 2017 18:10:34 +0100	[thread overview]
Message-ID: <871skewf05.fsf@free-electrons.com> (raw)
In-Reply-To: <20171130094049.fg3zoxgvhlb7jqw3@tarshish> (Baruch Siach's message of "Thu, 30 Nov 2017 11:40:49 +0200")

Hi Baruch,
 
 On jeu., nov. 30 2017, Baruch Siach <baruch@tkos.co.il> wrote:

> Hi Thomas,
>
> As you know, the Armada 38x/8k RTC needs a reset sequence to be operational 
> when first powered up. This reset code is currently in the vendor provided 
> U-Boot RTC driver. But having to run 'date reset' from the U-Boot prompt every 
> first boot (happens quite a lot when dealing with SOMs) is not nice. An 
> automatic reset in the kernel driver would be much better.
>
> Rabeeh has mentioned to me that you had an idea how to detect at run time that 
> the RTC is in first power up state. Do you recall the details?

Actually it was me who worked on the RTC but I didn't remember having a
way to detect that the RTC is in first power up state. I dig in the
datasheet, errata sheet and alos on varisou branches of the vendor tree
and didn't find anything.

Maybe a solution could be to reset the RTC when we set the time.

Gregory


>
> Thanks,
> baruch
>
> -- 
>      http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2017-12-01 17:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-30  9:40 Armada RTC power up reset Baruch Siach
2017-12-01 17:10 ` Gregory CLEMENT [this message]
2017-12-11 12:46   ` Rabeeh Khoury
2017-12-11 16:08     ` Alexandre Belloni
2017-12-11 18:14       ` Rabeeh Khoury
2017-12-20 17:02         ` Alexandre Belloni

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=871skewf05.fsf@free-electrons.com \
    --to=gregory.clement@free-electrons.com \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=baruch@tkos.co.il \
    --cc=linux-rtc@vger.kernel.org \
    --cc=rabeeh@solid-run.com \
    --cc=thomas.petazzoni@free-electrons.com \
    /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 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.