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
>
Absolutely!
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html