Thread (1 message) 1 message, 1 author, 2015-08-05

Re: [PATCH 3/8] rtc: omap: Add external clock enabling support

From: Keerthy <hidden>
Date: 2015-08-05 12:01:22
Also in: linux-omap


On Wednesday 05 August 2015 05:13 PM, Alexandre Belloni wrote:
On 05/08/2015 at 13:41:19 +0200, Alexandre Belloni wrote :
quoted
Hi,

On 05/08/2015 at 04:13:17 -0700, Tony Lindgren wrote :
quoted
* Keerthy [off-list ref] [150805 03:53]:
quoted
Based on the board property switch the source from internal
to external clock. Switching to external source is needed for
rtcwake to work in low power modes.
I think this is better handled based on the compatible string
in the device driver rather than introducing a custom dts
property for it. You can just set the quirk flag in the driver
probe based on the compatible.
Why not use the clocks property? Then you can pass an external clock. If
it is present you can even get its rate if this is needed at some point
in the future. You could also disable it when going to suspend.
Actually, that was already my suggestion back in april:
http://patchwork.ozlabs.org/patch/445631/

(Please Cc: the rtc mailing list for RTC related patches so that they
get picked up by patchwork).
Hi Alexandre,

This is a special one where in the enable bit is present in the rtc 
register space and not in the prcm register space. Since there was a 
concern on the external clock not being present i added a board dts flag.

Regards,
Keerthy
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help