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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thursday 06 August 2015 03:21 PM, Tony Lindgren wrote:
* Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx> [150806 02:50]:
On 06/08/2015 at 12:36:54 +0300, Grygorii Strashko wrote :
Pls, correct me if I'm not right. Is below what you propose?

Doard dts:
/ {
  rtc_32k_ext_clk: rtc_osc_xi_clkin32_ext {
	#clock-cells = <0>;
	compatible = "fixed-clock";
	clock-frequency = <32000>;
   	clock-output-names = "rtc_osc_xi_clkin32";
   };
}

  &rtc {
  	status = "okay";
	clocks = <&sys_32k_ck>, <&rtc_32k_ext_clk>;
	[optional] clock-names = "int-clk", "ext-clk";
  };

Driver:
1) clk0 is mandatory, internal clock source
2) clk1 is optional, external clock source, so
if present - RTC driver can switch to use ext clock source

Thanks Grygorii. I will implement it this way.



Absolutely!

Sounds good to me too.

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux