From: Mike Turquette <mturquette@linaro.org>
To: "Heiko Stübner" <heiko@sntech.de>,
"Alessandro Zummo" <a.zummo@towertech.it>,
"Andrew Morton" <akpm@linux-foundation.org>
Cc: Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Stephen Warren <swarren@wwwdotorg.org>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
rtc-linux@googlegroups.com, Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCH] rtc: hym8563: add optional clock-output-names property
Date: Mon, 02 Jun 2014 14:33:58 -0700 [thread overview]
Message-ID: <20140602213358.10062.55182@quantum> (raw)
In-Reply-To: <5506235.fsodQ5dNGb@phil>
Quoting Heiko Stübner (2014-05-18 15:40:07)
> This enables the setting of a custom clock name for the clock provided by
> the hym8563 rtc.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Annoying nitpick: would be nice to see the example updated to use
clock-output-names. But it's not a deal breaker.
Reviewed-by: Mike Turquette <mturquette@linaro.org>
Regards,
Mike
> ---
> Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt | 3 +++
> drivers/rtc/rtc-hym8563.c | 3 +++
> 2 files changed, 6 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt b/Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt
> index 31406fd..5c199ee 100644
> --- a/Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt
> +++ b/Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt
> @@ -9,6 +9,9 @@ Required properties:
> - interrupts: rtc alarm/event interrupt
> - #clock-cells: the value should be 0
>
> +Optional properties:
> +- clock-output-names: From common clock binding
> +
> Example:
>
> hym8563: hym8563@51 {
> diff --git a/drivers/rtc/rtc-hym8563.c b/drivers/rtc/rtc-hym8563.c
> index e5f13c4..6442b5b 100644
> --- a/drivers/rtc/rtc-hym8563.c
> +++ b/drivers/rtc/rtc-hym8563.c
> @@ -418,6 +418,9 @@ static struct clk *hym8563_clkout_register_clk(struct hym8563 *hym8563)
> init.num_parents = 0;
> hym8563->clkout_hw.init = &init;
>
> + /* optional override of the clockname */
> + of_property_read_string(node, "clock-output-names", &init.name);
> +
> /* register the clock */
> clk = clk_register(&client->dev, &hym8563->clkout_hw);
>
> --
> 1.9.0
>
>
prev parent reply other threads:[~2014-06-02 21:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-18 22:40 [PATCH] rtc: hym8563: add optional clock-output-names property Heiko Stübner
2014-06-02 21:33 ` Mike Turquette [this message]
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=20140602213358.10062.55182@quantum \
--to=mturquette@linaro.org \
--cc=a.zummo@towertech.it \
--cc=akpm@linux-foundation.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=rtc-linux@googlegroups.com \
--cc=swarren@wwwdotorg.org \
/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.