linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@the-dreams.de>
To: linux-sh@vger.kernel.org
Subject: Re: [RFC 0/5] r8a7790: lager: add support for RCLK watchdog
Date: Mon, 02 Feb 2015 11:24:42 +0000	[thread overview]
Message-ID: <20150202112442.GC3311@katana> (raw)
In-Reply-To: <1422802074-1921-1-git-send-email-wsa@the-dreams.de>

[-- Attachment #1: Type: text/plain, Size: 1670 bytes --]

Geert,

> Thanks for your series!

And thanks for your input!

> no avail. Hence I went with the DA9063 instead. Note that I plan to look into
> the DA9063 interrupt storm issue soon.

Cool.

> I've just tried your series on Koelsch, and it suffers from the same problem.
> Does it work on Lager for both CONFIG_SMP=y and CONFIG_SMP=n?

I didn't. And what a surprise, it fails with SMP=y :( I'll having a
look...

> From the limited information available about the SWDT, it may be compatible
> with the RWDT. Or not. U-Boot disables both the RWDT and the SWDT on startup,
> using identical operations.

Well, the block diagram looks the same, the register layout in U-Boot
looks the same. And the bits I use are easy to be verified once I know
the IP core is there. Good enough, I'd say. And maybe we get
confirmation from the HW team via Morimoto-san.

> The RWDT exists on various shmobile SoCs.
> From digging into the datasheets, I had discovered two variants:
>   1. 32-bit registers
>        a. R-Car Gen2: using RST for restarting
>        b. R-Mobile APE6: using SYSC for restarting

Those should be handled with this driver.

>   2. 8-bit registers (SH-Mobile AP4/AG5, R-Mobile A1)
> 
> The differences are small: the variant with 8-bit registers has a smaller
> maximum timeout, and no magic value to be stored in the upper bits.

Do they also have 32kHz as input clock? Then they do need a ping every
8ms! Those should use the shwdt driver then which pings the device
frequently and runs a software watchdog on top to cope with the usual
watchdog granularity which is in the second range.

Thanks,

   Wolfram


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  parent reply	other threads:[~2015-02-02 11:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-01 14:47 [RFC 0/5] r8a7790: lager: add support for RCLK watchdog Wolfram Sang
2015-02-02  9:32 ` Geert Uytterhoeven
2015-02-02 11:24 ` Wolfram Sang [this message]
2015-02-02 11:50 ` Geert Uytterhoeven
2015-02-03 19:04 ` Wolfram Sang
2015-02-03 19:49 ` Geert Uytterhoeven
2015-02-03 20:11 ` Wolfram Sang

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=20150202112442.GC3311@katana \
    --to=wsa@the-dreams.de \
    --cc=linux-sh@vger.kernel.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).