devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Hogan <james.hogan-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
To: Jude Abraham
	<Jude.Abraham-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>,
	Andrew Bresticker
	<abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
	Naidu Tellapati
	<Naidu.Tellapati-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
Cc: "wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org"
	<wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>,
	"linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org"
	<linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>,
	James Hartley
	<James.Hartley-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>,
	Ezequiel Garcia
	<Ezequiel.Garcia-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>,
	"linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 1/2] watchdog: ImgTec PDC Watchdog Timer Driver
Date: Thu, 13 Nov 2014 13:26:41 +0000	[thread overview]
Message-ID: <5464B191.9020401@imgtec.com> (raw)
In-Reply-To: <89F3BC60EA3A0141B1F6C2A661D95E5E3F192BB4-C8yLA94LPOy3snIXRfWIHVBRoQTxkR7k@public.gmane.org>

On 13/11/14 12:58, Jude Abraham wrote:
>>>  +/* timeout in seconds */
>>>  +#define PDC_WD_MIN_TIMEOUT             1
>>>  +#define PDC_WD_MAX_TIMEOUT             131072
>>> +#define PDC_WD_DEFAULT_TIMEOUT         64
>>>  +#define PDC_WD_DEFAULT_PRETIMEOUT      PDC_WD_MAX_TIMEOUT
>>>  +#define MIN_TIMEOUT_SHIFT              14  /* Clock rate 32768Hz=2^(14+1)*/
> 
>> The input clock is not fixed at 32kHz.  I believe it can be configured to run at a different rate.
> 
> I think it is  a 32 Khz fixed clock to the block. We are speaking to my hardware team for confirmation.
> We will address the review comment after receive feedback from  my hardware team.

It should ideally be 32KHz, but that doesn't mean it will be guaranteed
to be. The input clock rate is still dependent on the SoC clock setup to
provide the clock, and that can usually be reconfigured i.e. from a
dedicated external oscillator on the board if provided (hopefully
providing the right frequency), or derived from a shared oscillator of
some other frequency.

For TZ1090 SoC with this IP block, powering down the rest of the SoC
happened to reset the low power clock configuration and it would switch
clock source to the main oscillator with a fixed divide, which certainly
wasn't 32khz most of the time. Each of the low power drivers had to then
take this into account in their configuration (img-ir for IR timings,
wdt to a lesser extent, and most importantly rtc so as not to lose time
or wake up at the wrong time!).

Cheers
James
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-11-13 13:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1415805483-26268-1-git-send-email-Naidu.Tellapati@imgtec.com>
     [not found] ` <1415805483-26268-3-git-send-email-Naidu.Tellapati@imgtec.com>
     [not found]   ` <1415805483-26268-3-git-send-email-Naidu.Tellapati-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2014-11-13  4:09     ` [PATCH 2/2] DT: watchdog: Add ImgTec PDC Watchdog Timer binding documentation Andrew Bresticker
     [not found]       ` <CAL1qeaHrjccd4KYAUMvWEKqhM9DFNyKWE=-2k0ux+76XR+Q5tQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-13 12:58         ` Jude Abraham
     [not found]           ` <89F3BC60EA3A0141B1F6C2A661D95E5E3F192BAA-C8yLA94LPOy3snIXRfWIHVBRoQTxkR7k@public.gmane.org>
2014-11-13 13:08             ` James Hogan
     [not found]               ` <5464AD4B.1000509-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2014-11-13 19:07                 ` Andrew Bresticker
     [not found]                   ` <CAL1qeaHEGZWs8PPrX5cNpUWXDL3D_5Y2w772eKBEO0G+5q_p-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-14  3:18                     ` Naidu Tellapati
     [not found] ` <1415805483-26268-2-git-send-email-Naidu.Tellapati@imgtec.com>
     [not found]   ` <1415805483-26268-2-git-send-email-Naidu.Tellapati-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2014-11-13  4:56     ` [PATCH 1/2] watchdog: ImgTec PDC Watchdog Timer Driver Andrew Bresticker
2014-11-13 12:58       ` Jude Abraham
     [not found]         ` <89F3BC60EA3A0141B1F6C2A661D95E5E3F192BB4-C8yLA94LPOy3snIXRfWIHVBRoQTxkR7k@public.gmane.org>
2014-11-13 13:26           ` James Hogan [this message]
     [not found]             ` <5464B191.9020401-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2014-11-14 13:08               ` Naidu Tellapati
     [not found]                 ` <27E62D98F903554192E3C13AFCC91C3C2F505E3E-C8yLA94LPOy3snIXRfWIHVBRoQTxkR7k@public.gmane.org>
2014-11-14 14:08                   ` James Hartley
2014-11-13 13:05     ` Ezequiel Garcia

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=5464B191.9020401@imgtec.com \
    --to=james.hogan-1axoqhu6uovqt0dzr+alfa@public.gmane.org \
    --cc=Ezequiel.Garcia-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org \
    --cc=James.Hartley-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org \
    --cc=Jude.Abraham-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org \
    --cc=Naidu.Tellapati-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org \
    --cc=abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org \
    --cc=linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.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).