* [PATCH] rtc: s3c: Document required clocks in the DT binding @ 2016-02-09 17:23 Javier Martinez Canillas [not found] ` <1455038632-14545-1-git-send-email-javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Javier Martinez Canillas @ 2016-02-09 17:23 UTC (permalink / raw) To: linux-kernel Cc: devicetree, linux-samsung-soc, Krzysztof Kozlowski, rtc-linux, Alexandre Belloni, Rob Herring, Javier Martinez Canillas The S3C Real Time Clock driver requires the clock and source clock to be defined in the device node but that requirement is not documented. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> --- Documentation/devicetree/bindings/rtc/s3c-rtc.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/rtc/s3c-rtc.txt b/Documentation/devicetree/bindings/rtc/s3c-rtc.txt index ac2fcd6ff4b8..1068ffce9f91 100644 --- a/Documentation/devicetree/bindings/rtc/s3c-rtc.txt +++ b/Documentation/devicetree/bindings/rtc/s3c-rtc.txt @@ -14,6 +14,10 @@ Required properties: interrupt number is the rtc alarm interrupt and second interrupt number is the rtc tick interrupt. The number of cells representing a interrupt depends on the parent interrupt controller. +- clocks: Must contain a list of phandle and clock specifier for the rtc + and source clocks. +- clock-names: Must contain "rtc" and "rtc_src" entries sorted in the + same order as the clocks property. Example: @@ -21,4 +25,6 @@ Example: compatible = "samsung,s3c6410-rtc"; reg = <0x10070000 0x100>; interrupts = <44 0 45 0>; + clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>; + clock-names = "rtc", "rtc_src"; }; -- 2.5.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
[parent not found: <1455038632-14545-1-git-send-email-javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>]
* Re: [rtc-linux] [PATCH] rtc: s3c: Document required clocks in the DT binding [not found] ` <1455038632-14545-1-git-send-email-javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> @ 2016-02-14 6:34 ` Krzysztof Kozlowski [not found] ` <56C01FDD.9050204-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Krzysztof Kozlowski @ 2016-02-14 6:34 UTC (permalink / raw) To: rtc-linux-/JYPxA39Uh5TLH3MbocFFw, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Javier Martinez Canillas Cc: k.kozlowski.k-Re5JQEeQqe8AvxtiuMwx3w, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, Alexandre Belloni, Rob Herring, Alessandro Zummo W dniu 10.02.2016 o 02:23, Javier Martinez Canillas pisze: > The S3C Real Time Clock driver requires the clock and source clock to > be defined in the device node but that requirement is not documented. +Cc: Alessandro Zummo No, not entirely. The samsung,s3c6410-rtc needs rtc and rtc_src clocks but rest of compatible devices need only rtc clock. Best regards, Krzysztof > > Signed-off-by: Javier Martinez Canillas <javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> > > --- > > Documentation/devicetree/bindings/rtc/s3c-rtc.txt | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/rtc/s3c-rtc.txt b/Documentation/devicetree/bindings/rtc/s3c-rtc.txt > index ac2fcd6ff4b8..1068ffce9f91 100644 > --- a/Documentation/devicetree/bindings/rtc/s3c-rtc.txt > +++ b/Documentation/devicetree/bindings/rtc/s3c-rtc.txt > @@ -14,6 +14,10 @@ Required properties: > interrupt number is the rtc alarm interrupt and second interrupt number > is the rtc tick interrupt. The number of cells representing a interrupt > depends on the parent interrupt controller. > +- clocks: Must contain a list of phandle and clock specifier for the rtc > + and source clocks. > +- clock-names: Must contain "rtc" and "rtc_src" entries sorted in the > + same order as the clocks property. > > Example: > > @@ -21,4 +25,6 @@ Example: > compatible = "samsung,s3c6410-rtc"; > reg = <0x10070000 0x100>; > interrupts = <44 0 45 0>; > + clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>; > + clock-names = "rtc", "rtc_src"; > }; > -- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <56C01FDD.9050204-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [rtc-linux] [PATCH] rtc: s3c: Document required clocks in the DT binding [not found] ` <56C01FDD.9050204-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2016-02-15 12:49 ` Javier Martinez Canillas 2016-02-15 13:41 ` Alexandre Belloni 0 siblings, 1 reply; 4+ messages in thread From: Javier Martinez Canillas @ 2016-02-15 12:49 UTC (permalink / raw) To: Krzysztof Kozlowski, rtc-linux-/JYPxA39Uh5TLH3MbocFFw, linux-kernel-u79uwXL29TY76Z2rM5mHXA Cc: k.kozlowski.k-Re5JQEeQqe8AvxtiuMwx3w, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, Alexandre Belloni, Rob Herring, Alessandro Zummo Hello Krzysztof, Thanks a lot for your feedback. On 02/14/2016 03:34 AM, Krzysztof Kozlowski wrote: > W dniu 10.02.2016 o 02:23, Javier Martinez Canillas pisze: >> The S3C Real Time Clock driver requires the clock and source clock to >> be defined in the device node but that requirement is not documented. > > +Cc: Alessandro Zummo > I didn't add Alessandro to cc deliberately since Alexandre is the one maintaining the RTC subsystem lately and before that, the RTC patches were picked by Andrew Morton since Alessandro didn't even answer the emails. > No, not entirely. The samsung,s3c6410-rtc needs rtc and rtc_src clocks > but rest of compatible devices need only rtc clock. > Right, sorry for missing that. I noticed that this patch has already been picked by Rob Herring (I thought it would be picked by Alexandre though) so I will post a follow up patch explaining that rtc_src is only for the s3c6410-rtc compatible. > Best regards, > Krzysztof > Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America -- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [rtc-linux] [PATCH] rtc: s3c: Document required clocks in the DT binding 2016-02-15 12:49 ` Javier Martinez Canillas @ 2016-02-15 13:41 ` Alexandre Belloni 0 siblings, 0 replies; 4+ messages in thread From: Alexandre Belloni @ 2016-02-15 13:41 UTC (permalink / raw) To: Javier Martinez Canillas Cc: Krzysztof Kozlowski, rtc-linux, linux-kernel, k.kozlowski.k, devicetree, linux-samsung-soc, Rob Herring, Alessandro Zummo On 15/02/2016 at 09:49:34 -0300, Javier Martinez Canillas wrote : > >No, not entirely. The samsung,s3c6410-rtc needs rtc and rtc_src clocks > >but rest of compatible devices need only rtc clock. > > > > Right, sorry for missing that. I noticed that this patch has already > been picked by Rob Herring (I thought it would be picked by Alexandre > though) so I will post a follow up patch explaining that rtc_src is > only for the s3c6410-rtc compatible. > Yeah, I was going to take it, thanks for pointing out the Rob already has it in his tree. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-15 13:41 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-02-09 17:23 [PATCH] rtc: s3c: Document required clocks in the DT binding Javier Martinez Canillas [not found] ` <1455038632-14545-1-git-send-email-javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> 2016-02-14 6:34 ` [rtc-linux] " Krzysztof Kozlowski [not found] ` <56C01FDD.9050204-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2016-02-15 12:49 ` Javier Martinez Canillas 2016-02-15 13:41 ` Alexandre Belloni
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).