From: Stephen Boyd <sboyd@codeaurora.org>
To: Mike Looijmans <mike.looijmans@topic.nl>
Cc: mturquette@baylibre.com, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] Add driver for the si514 clock generator chip
Date: Fri, 2 Oct 2015 11:10:42 -0700 [thread overview]
Message-ID: <20151002181042.GL12338@codeaurora.org> (raw)
In-Reply-To: <560E1DF6.9010901@topic.nl>
On 10/02, Mike Looijmans wrote:
> On 02-10-15 01:34, Stephen Boyd wrote:
> >>+ - clock-output-names: From common clock bindings. Recommended to be "si514".
> >>+ - clock-frequency: Output frequency to generate. This defines the output
> >>+ frequency set during boot. It can be reprogrammed during
> >>+ runtime through the common clock framework.
> >
> >Can we use assigned clock rates instead of this property?
>
> I'll first need to learn what 'assigned clock rates' means. But I
> suspect the answer will be yes.
See the "Assigned clock parents and rates" section of
Documentation/devicetree/bindings/clock/clock-bindings.txt and
commit 86be408bfbd8 (clk: Support for clock parents and rates
assigned from device tree, 2014-06-18).
>
> >>+
> >>+Example:
> >>+ si514: clock-generator@55 {
> >>+ reg = <0x55>;
> >>+ #clock-cells = <0>;
> >>+ compatible = "silabs,si514";
> >>+ };
> >>diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
> >>index 42f7120..6ac7deb5 100644
> >>--- a/drivers/clk/Kconfig
> >>+++ b/drivers/clk/Kconfig
> >>@@ -68,6 +68,16 @@ config COMMON_CLK_SI5351
> >> This driver supports Silicon Labs 5351A/B/C programmable clock
> >> generators.
> >>
> >>+config COMMON_CLK_SI514
> >>+ tristate "Clock driver for SiLabs 514 devices"
> >>+ depends on I2C
> >>+ depends on OF
> >
> >It actually depends on this to build?
>
> It calls various 'of_' methods unconditionally, so I'd think so.
Aren't there stubs for those if CONFIG_OF=n?
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2015-10-02 18:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-17 8:28 [PATCH] Add driver for the si514 clock generator chip Mike Looijmans
2015-09-17 11:04 ` [PATCH v2] " Mike Looijmans
2015-09-17 11:04 ` Mike Looijmans
2015-10-01 23:34 ` Stephen Boyd
2015-10-02 6:02 ` Mike Looijmans
2015-10-02 6:02 ` Mike Looijmans
2015-10-02 6:02 ` Mike Looijmans
2015-10-02 18:10 ` Stephen Boyd [this message]
2015-10-02 7:15 ` [PATCH v3] " Mike Looijmans
2015-10-02 19:18 ` Stephen Boyd
2015-10-05 6:06 ` Mike Looijmans
2015-10-05 18:10 ` Stephen Boyd
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=20151002181042.GL12338@codeaurora.org \
--to=sboyd@codeaurora.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mike.looijmans@topic.nl \
--cc=mturquette@baylibre.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.