From: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
To: linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
James Liao <jamesjj.liao-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>,
Sascha Hauer <s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Matthias Brugger
<matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Eddie Huang <eddie.huang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH] arm64: dts: mt8173: add clock_null
Date: Thu, 18 Jun 2015 18:15:03 +0200 [thread overview]
Message-ID: <2333431.ttvjElY3ps@phil> (raw)
In-Reply-To: <1434605351-64592-1-git-send-email-eddie.huang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
Am Donnerstag, 18. Juni 2015, 13:29:11 schrieb Eddie Huang:
> Add clk_null, which represents clocks that can not / need not
> controlled by software.
> There are many clocks' parent set to clk_null.
Devicetree is supposed to describe hardware, and ideally not what software
does with it. If the clock simply cannot be controlled by software, it will
still have a rate and I think it should probably be modelled - similarly we
sometimes have fixed regulators that also are not software controllable.
While it might be ok to define dummy clocks as a temporary stopgap, these
should definitly be marked as such. This clk_null at least sounds like there is
no plan to replace this with a real solution at some point.
And of course a bit of context would be cool, to know which type of clocks
this actually replaces.
Heiko
> Signed-off-by: James Liao <jamesjj.liao-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
> Signed-off-by: Eddie Huang <eddie.huang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
> ---
> Base on 4.1-rc1
>
> Change-Id: I4db9b40d07e28f54f7bae9b676316cbd6a962124
> ---
> arch/arm64/boot/dts/mediatek/mt8173.dtsi | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 924fdb6..4798f44 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> @@ -81,6 +81,12 @@
> cpu_on = <0x84000003>;
> };
>
> + clk_null: clk_null {
> + compatible = "fixed-clock";
> + clock-frequency = <0>;
> + #clock-cells = <0>;
> + };
> +
> uart_clk: dummy26m {
> compatible = "fixed-clock";
> clock-frequency = <26000000>;
WARNING: multiple messages have this Message-ID (diff)
From: heiko@sntech.de (Heiko Stuebner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: dts: mt8173: add clock_null
Date: Thu, 18 Jun 2015 18:15:03 +0200 [thread overview]
Message-ID: <2333431.ttvjElY3ps@phil> (raw)
In-Reply-To: <1434605351-64592-1-git-send-email-eddie.huang@mediatek.com>
Am Donnerstag, 18. Juni 2015, 13:29:11 schrieb Eddie Huang:
> Add clk_null, which represents clocks that can not / need not
> controlled by software.
> There are many clocks' parent set to clk_null.
Devicetree is supposed to describe hardware, and ideally not what software
does with it. If the clock simply cannot be controlled by software, it will
still have a rate and I think it should probably be modelled - similarly we
sometimes have fixed regulators that also are not software controllable.
While it might be ok to define dummy clocks as a temporary stopgap, these
should definitly be marked as such. This clk_null at least sounds like there is
no plan to replace this with a real solution at some point.
And of course a bit of context would be cool, to know which type of clocks
this actually replaces.
Heiko
> Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
> ---
> Base on 4.1-rc1
>
> Change-Id: I4db9b40d07e28f54f7bae9b676316cbd6a962124
> ---
> arch/arm64/boot/dts/mediatek/mt8173.dtsi | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 924fdb6..4798f44 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> @@ -81,6 +81,12 @@
> cpu_on = <0x84000003>;
> };
>
> + clk_null: clk_null {
> + compatible = "fixed-clock";
> + clock-frequency = <0>;
> + #clock-cells = <0>;
> + };
> +
> uart_clk: dummy26m {
> compatible = "fixed-clock";
> clock-frequency = <26000000>;
WARNING: multiple messages have this Message-ID (diff)
From: Heiko Stuebner <heiko@sntech.de>
To: linux-mediatek@lists.infradead.org
Cc: Eddie Huang <eddie.huang@mediatek.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
devicetree@vger.kernel.org,
James Liao <jamesjj.liao@mediatek.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] arm64: dts: mt8173: add clock_null
Date: Thu, 18 Jun 2015 18:15:03 +0200 [thread overview]
Message-ID: <2333431.ttvjElY3ps@phil> (raw)
In-Reply-To: <1434605351-64592-1-git-send-email-eddie.huang@mediatek.com>
Am Donnerstag, 18. Juni 2015, 13:29:11 schrieb Eddie Huang:
> Add clk_null, which represents clocks that can not / need not
> controlled by software.
> There are many clocks' parent set to clk_null.
Devicetree is supposed to describe hardware, and ideally not what software
does with it. If the clock simply cannot be controlled by software, it will
still have a rate and I think it should probably be modelled - similarly we
sometimes have fixed regulators that also are not software controllable.
While it might be ok to define dummy clocks as a temporary stopgap, these
should definitly be marked as such. This clk_null at least sounds like there is
no plan to replace this with a real solution at some point.
And of course a bit of context would be cool, to know which type of clocks
this actually replaces.
Heiko
> Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
> ---
> Base on 4.1-rc1
>
> Change-Id: I4db9b40d07e28f54f7bae9b676316cbd6a962124
> ---
> arch/arm64/boot/dts/mediatek/mt8173.dtsi | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 924fdb6..4798f44 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> @@ -81,6 +81,12 @@
> cpu_on = <0x84000003>;
> };
>
> + clk_null: clk_null {
> + compatible = "fixed-clock";
> + clock-frequency = <0>;
> + #clock-cells = <0>;
> + };
> +
> uart_clk: dummy26m {
> compatible = "fixed-clock";
> clock-frequency = <26000000>;
next prev parent reply other threads:[~2015-06-18 16:15 UTC|newest]
Thread overview: 67+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-18 5:29 [PATCH] arm64: dts: mt8173: add clock_null Eddie Huang
2015-06-18 5:29 ` Eddie Huang
2015-06-18 5:29 ` Eddie Huang
[not found] ` <1434605351-64592-1-git-send-email-eddie.huang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2015-06-18 16:15 ` Heiko Stuebner [this message]
2015-06-18 16:15 ` Heiko Stuebner
2015-06-18 16:15 ` Heiko Stuebner
2015-06-19 11:36 ` Heiko Stuebner
2015-06-19 11:36 ` Heiko Stuebner
2015-06-19 11:36 ` Heiko Stuebner
2015-06-22 3:38 ` James Liao
2015-06-22 3:38 ` James Liao
2015-06-22 3:38 ` James Liao
2015-06-22 12:53 ` Heiko Stübner
2015-06-22 12:53 ` Heiko Stübner
2015-06-22 12:53 ` Heiko Stübner
2015-06-24 7:54 ` James Liao
2015-06-24 7:54 ` James Liao
2015-06-24 7:54 ` James Liao
2015-06-24 10:24 ` Heiko Stübner
2015-06-24 10:24 ` Heiko Stübner
2015-06-24 10:24 ` Heiko Stübner
2015-06-30 9:07 ` James Liao
2015-06-30 9:07 ` James Liao
2015-06-30 9:07 ` James Liao
2015-07-01 6:49 ` Sascha Hauer
2015-07-01 6:49 ` Sascha Hauer
2015-07-01 6:49 ` Sascha Hauer
2015-07-01 11:54 ` Daniel Kurtz
2015-07-01 11:54 ` Daniel Kurtz
[not found] ` <CAGS+omBdz2df7ykYpx5Gh1B2Ym+XhpOPOOUu0a_qg7tJKqOy6A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-02 3:06 ` James Liao
2015-07-02 3:06 ` James Liao
2015-07-02 3:06 ` James Liao
2015-07-02 4:23 ` Daniel Kurtz
2015-07-02 4:23 ` Daniel Kurtz
2015-07-02 4:23 ` Daniel Kurtz
[not found] ` <CAGS+omCk50Q5b=ey5v1z2gha5Ybc+Fus0Ls+S=5n08xu7Svacw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-03 7:45 ` James Liao
2015-07-03 7:45 ` James Liao
2015-07-03 7:45 ` James Liao
2015-07-03 8:38 ` Heiko Stübner
2015-07-03 8:38 ` Heiko Stübner
2015-07-03 8:38 ` Heiko Stübner
[not found] ` <20150701064935.GC18611-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2015-07-02 2:05 ` James Liao
2015-07-02 2:05 ` James Liao
2015-07-02 2:05 ` James Liao
2015-07-07 13:07 ` Sascha Hauer
2015-07-07 13:07 ` Sascha Hauer
2015-07-07 13:07 ` Sascha Hauer
[not found] ` <20150707130732.GD18561-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2015-07-07 14:15 ` Daniel Kurtz
2015-07-07 14:15 ` Daniel Kurtz
2015-07-07 14:15 ` Daniel Kurtz
[not found] ` <CAGS+omCgSjLZ2Ae5DqfmEm-2BrxQqw2ztxUCxBSngNSXxabtbg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-07 14:36 ` Sascha Hauer
2015-07-07 14:36 ` Sascha Hauer
2015-07-07 14:36 ` Sascha Hauer
2015-07-07 15:10 ` Daniel Kurtz
2015-07-07 15:10 ` Daniel Kurtz
[not found] ` <CAGS+omChOC-EYsmA5ytT+ho0UXvcL1-mjK4Z8=EgboKzwWmtyw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-08 2:37 ` Eddie Huang
2015-07-08 2:37 ` Eddie Huang
2015-07-08 2:37 ` Eddie Huang
2015-07-08 5:44 ` Sascha Hauer
2015-07-08 5:44 ` Sascha Hauer
2015-07-10 7:27 ` Eddie Huang
2015-07-10 7:27 ` Eddie Huang
2015-07-10 8:11 ` Daniel Kurtz
2015-07-10 8:11 ` Daniel Kurtz
[not found] ` <CAGS+omB2CsiYVXSGXo=Y_6xMDNRVC6AsFdv=SxOVh5t-fT7E_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-10 10:29 ` Eddie Huang
2015-07-10 10:29 ` Eddie Huang
2015-07-10 10:29 ` Eddie Huang
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=2333431.ttvjElY3ps@phil \
--to=heiko-4mtyjxux2i+zqb+pc5nmwq@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=eddie.huang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org \
--cc=jamesjj.liao-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.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.