From: jamesjj.liao@mediatek.com (James Liao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: dts: mt8173: add clock_null
Date: Mon, 22 Jun 2015 11:38:37 +0800 [thread overview]
Message-ID: <1434944317.25948.8.camel@mtksdaap41> (raw)
In-Reply-To: <8371528.SNAmOgosfF@phil>
Hi Heiko,
On Fri, 2015-06-19 at 13:36 +0200, Heiko Stuebner wrote:
> Am Donnerstag, 18. Juni 2015, 18:15:03 schrieb Heiko Stuebner:
> > 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.
>
> After looking a bit more into this, I'm feel that the clk_null approach is
> wrong.
>
> For one, even if the clk_null stuff would be ok, the binding doc of the clock
> controller does not describe the need of this specific clock at all.
>
>
> The other more important point, looking at clk-mt8173 I see at least these
> clocks being set as children of "clk_null":
>
> static const struct mtk_fixed_factor root_clk_alias[] __initconst = {
> FACTOR(CLK_TOP_CLKPH_MCK_O, "clkph_mck_o", "clk_null", 1, 1),
> FACTOR(CLK_TOP_DPI, "dpi_ck", "clk_null", 1, 1),
> FACTOR(CLK_TOP_USB_SYSPLL_125M, "usb_syspll_125m", "clk_null", 1, 1),
> FACTOR(CLK_TOP_HDMITX_DIG_CTS, "hdmitx_dig_cts", "clk_null", 1, 1),
> };
>
>
> These look more like they are fed from some external source to the clock
> controller? I did ask Matthias but he also couldn't find anything describing
> where these clocks actually come from.
Some clocks such as clkph_mck_o, we don't really care where they come
from and what frequencies are. We model these clocks just because they
or their derived clocks can be the source of topckgen muxes. Is there a
better way to model "don't care" clocks?
Best regards,
James
next prev parent reply other threads:[~2015-06-22 3:38 UTC|newest]
Thread overview: 24+ 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 16:15 ` Heiko Stuebner
2015-06-19 11:36 ` Heiko Stuebner
2015-06-22 3:38 ` James Liao [this message]
2015-06-22 12:53 ` Heiko Stübner
2015-06-24 7:54 ` James Liao
2015-06-24 10:24 ` Heiko Stübner
2015-06-30 9:07 ` James Liao
2015-07-01 6:49 ` Sascha Hauer
2015-07-01 11:54 ` Daniel Kurtz
2015-07-02 3:06 ` James Liao
2015-07-02 4:23 ` Daniel Kurtz
2015-07-03 7:45 ` James Liao
2015-07-03 8:38 ` Heiko Stübner
2015-07-02 2:05 ` James Liao
2015-07-07 13:07 ` Sascha Hauer
2015-07-07 14:15 ` Daniel Kurtz
2015-07-07 14:36 ` Sascha Hauer
2015-07-07 15:10 ` Daniel Kurtz
2015-07-08 2:37 ` Eddie Huang
2015-07-08 5:44 ` Sascha Hauer
2015-07-10 7:27 ` Eddie Huang
2015-07-10 8:11 ` Daniel Kurtz
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=1434944317.25948.8.camel@mtksdaap41 \
--to=jamesjj.liao@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.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 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).