All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Drake <drake@endlessm.com>
To: Javier Martinez Canillas <javier@dowhile0.org>
Cc: Chanwoo Choi <cw00.choi@samsung.com>,
	Alessandro Zummo <a.zummo@towertech.it>,
	Kukjin Kim <kgene.kim@samsung.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	rtc-linux@googlegroups.com,
	Linux Kernel <linux-kernel@vger.kernel.org>,
	"linux-samsung-soc@vger.kernel.org" 
	<linux-samsung-soc@vger.kernel.org>
Subject: Re: [PATCHv3 4/5] rtc: s3c: Add support for RTC of Exynos3250 SoC
Date: Tue, 16 Sep 2014 09:03:39 -0600	[thread overview]
Message-ID: <CAD8Lp47M8jHLrQAdYUn6NZn2Ety_02E6HPzPDUX3uGLVqf1riw@mail.gmail.com> (raw)
In-Reply-To: <CABxcv=ku9fjFfzyXZEnCGpTrWQ0pN+5mLWay90jXBhkFeWb7sg@mail.gmail.com>

On Tue, Sep 16, 2014 at 7:48 AM, Javier Martinez Canillas
<javier@dowhile0.org> wrote:
>> Clock list for s3c-rtc device:
>> - rtc : CLK_RTC of CLK_GATE_IP_PERIR is gate clock for RTC.
>> - rtc_src : XrtcXTI is 32.768.kHz source clock for RTC.
>
> Is this RTC source clock needed for all Exynos SoCs?

It is at least needed on Exynos4412, which has the XrtcXTI thing
exactly as you describe. However the very standard setup there is to
hook it up to the CP clock output of the MAX76686 PMIC. This CP clock
is on by default, so you can potentially live without that detail
being present in the DT.

However... one small issue with this setup is that when you enable
CONFIG_COMMON_CLK_MAX77686, the CP clock gets exposed in Linux's
common clock framework, and Linux then turns it off because it
believes it is unused. Then the RTC stops ticking.

So the rtc_src idea would also be good for Exynos4412. Maybe it would
make sense to drop the needs_src_clk flag, and simply require/enable
the src clock whenever it is present in the DT.

Also, are you sure about the way you are treating this clock, all
those enable/disable calls? You only seem to enable it when doing some
particular driver operations e.g. reading the time, leaving it
disabled at all other times. However I believe on Exynos4412 that if
you disable this clock then the RTC will not tick.

Daniel

  reply	other threads:[~2014-09-16 15:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-28  9:02 [PATCHv3 0/5] rtc: s3c: Refactoring s3c-rtc driver and support Exynos3250 RTC Chanwoo Choi
2014-08-28  9:02 ` [PATCHv3 1/5] rtc: s3c: Define s3c_rtc structure to remove global variables Chanwoo Choi
2014-08-28  9:02 ` [PATCHv3 2/5] rtc: s3c: Remove warning message when checking coding style with checkpatch script Chanwoo Choi
2014-08-28  9:02 ` [PATCHv3 3/5] rtc: s3c: Add s3c_rtc_data structure to use variant data instead of s3c_cpu_type Chanwoo Choi
2014-08-28  9:02 ` [PATCHv3 4/5] rtc: s3c: Add support for RTC of Exynos3250 SoC Chanwoo Choi
2014-09-16 13:48   ` Javier Martinez Canillas
2014-09-16 13:48     ` Javier Martinez Canillas
2014-09-16 15:03     ` Daniel Drake [this message]
2014-09-16 15:03       ` Daniel Drake
2014-09-16 15:20       ` Javier Martinez Canillas
2014-09-16 15:20         ` Javier Martinez Canillas
2014-09-16 22:15         ` Doug Anderson
2014-09-16 22:15           ` Doug Anderson
2014-09-17  8:39           ` Javier Martinez Canillas
2014-09-17  8:39             ` Javier Martinez Canillas
2014-09-17 16:49           ` Daniel Drake
2014-09-17 16:49             ` Daniel Drake
2014-09-17 16:51             ` Doug Anderson
2014-09-17 16:51               ` Doug Anderson
2014-09-16 15:04     ` Javier Martinez Canillas
2014-09-16 15:04       ` Javier Martinez Canillas
2014-08-28  9:02 ` [PATCHv3 5/5] ARM: dts: Fix wrong compatible string of Exynos3250 RTC dt node Chanwoo Choi

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=CAD8Lp47M8jHLrQAdYUn6NZn2Ety_02E6HPzPDUX3uGLVqf1riw@mail.gmail.com \
    --to=drake@endlessm.com \
    --cc=a.zummo@towertech.it \
    --cc=akpm@linux-foundation.org \
    --cc=cw00.choi@samsung.com \
    --cc=javier@dowhile0.org \
    --cc=kgene.kim@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=rtc-linux@googlegroups.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.