From: Peter Chen <peter.chen@cixtech.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>, Rob Herring <robh@kernel.org>,
krzk+dt@kernel.org, Conor Dooley <conor+dt@kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, cix-kernel-upstream@cixtech.com,
"Fugang . duan" <fugang.duan@cixtech.com>
Subject: Re: [PATCH 6/6] arm64: dts: cix: add initial CIX P1(SKY1) dts support
Date: Tue, 25 Feb 2025 09:24:39 +0800 [thread overview]
Message-ID: <Z70b1x6ephA1FyEy@nchen-desktop> (raw)
In-Reply-To: <24003082-d1ca-43c6-ae96-3705e0f964f0@kernel.org>
On 25-02-24 13:07:45, Krzysztof Kozlowski wrote:
> EXTERNAL EMAIL
>
> On 24/02/2025 11:39, Peter Chen wrote:
> >>>>>>
> >>>>>>> + sky1_fixed_clocks: fixed-clocks {
> >>>>>>> + uartclk: uartclk {
> >>>>>>> + compatible = "fixed-clock";
> >>>>>>> + #clock-cells = <0>;
> >>>>>>> + clock-frequency = <100000000>;
> >>>>>>> + clock-output-names = "uartclk";
> >>>>>>
> >>>>>>> + uart_apb_pclk: uart_apb_pclk {
> >>>>>>> + compatible = "fixed-clock";
> >>>>>>> + #clock-cells = <0>;
> >>>>>>> + clock-frequency = <200000000>;
> >>>>>>> + clock-output-names = "apb_pclk";
> >>>>>>
> >>>>>>
> >>>>>> Clock names don't need "clk" in them, and there should
> >>>>>> be no underscore -- use '-' instead of '_' when separating
> >>>>>> strings in DT.
> >>>>>
> >>>>> Will change to:
> >>>>> uart_apb: clock-uart-apb {
> >>>>
> >>>> No, instead explain why this is part of SoC - or what are you missing
> >>>> here - and use preferred naming.
> >>>
> >>> It is in SoC part, APB clock uses to visit register, and the function
> >>> amba_get_enable_pclk at file drivers/amba/bus.c needs it during uart
> >>> device probes. It uses common Arm uart pl011 IP, the binding doc
> >>> described at: Documentation/devicetree/bindings/serial/pl011.yaml
> >>
> >> So you added fake clock? Everything you wrote is not the reason to add
> >> such clock.
> >
> > Not a fake clock, it is the real clocks, but depends on firmware open
> > their parents and configure their rate. It could let others do their
>
> In one place you speak about UART, which is the consumer and not
> relevant. Here you mention it is real clock. That's all confusing, so to
> clarify:
>
> We talk about clock which is generated/output by something. Something
> which controls way it is generated is clock controller. Either you have
> here crystal or have here clock controller. If first, fixed clock is for
> that. If second, you need proper clock controller binding. You can add
> stubs for missing pieces, but this requires explanation and TODO/FIXME
> comment.
>
Thanks for clarify, it is the second case, we have clock controller for
that, but now it is not ready to upstream due to some dependency, like
mailbox device driver, I will drop UART node at v2 patch set.
--
Best regards,
Peter
next prev parent reply other threads:[~2025-02-25 1:26 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-20 8:40 [PATCH 0/6] arm64: Introduce CIX P1 (SKY1) SoC Peter Chen
2025-02-20 8:40 ` [PATCH 1/6] dt-bindings: arm: add " Peter Chen
2025-02-20 12:18 ` Krzysztof Kozlowski
2025-02-20 8:40 ` [PATCH 2/6] dt-bindings: vendor-prefixes: Add CIX Technology Group Co., Ltd Peter Chen
2025-02-20 12:18 ` Krzysztof Kozlowski
2025-02-20 13:04 ` Peter Chen
2025-02-20 8:40 ` [PATCH 3/6] MAINTAINERS: Add CIX SoC maintainer entry Peter Chen
2025-02-20 8:40 ` [PATCH 4/6] arm64: Kconfig: add ARCH_CIX for cix silicons Peter Chen
2025-02-20 12:18 ` Krzysztof Kozlowski
2025-02-20 13:03 ` Peter Chen
2025-02-20 8:40 ` [PATCH 5/6] arm64: defconfig: Enable CIX SoC Peter Chen
2025-02-20 12:19 ` Krzysztof Kozlowski
2025-02-20 13:02 ` Peter Chen
2025-02-20 8:40 ` [PATCH 6/6] arm64: dts: cix: add initial CIX P1(SKY1) dts support Peter Chen
2025-02-20 10:58 ` Arnd Bergmann
2025-02-20 12:30 ` Peter Chen
2025-02-21 11:42 ` Krzysztof Kozlowski
2025-02-24 2:26 ` Peter Chen
2025-02-24 8:06 ` Krzysztof Kozlowski
2025-02-24 10:39 ` Peter Chen
2025-02-24 12:07 ` Krzysztof Kozlowski
2025-02-25 1:24 ` Peter Chen [this message]
2025-02-20 12:23 ` Krzysztof Kozlowski
2025-02-21 22:46 ` Rob Herring
2025-02-24 6:09 ` Peter Chen
2025-02-22 20:05 ` Marcin Juszkiewicz
2025-02-24 11:36 ` Peter Chen
2025-02-24 14:06 ` Marcin Juszkiewicz
2025-02-25 3:21 ` Peter Chen
2025-02-20 21:29 ` [PATCH 0/6] arm64: Introduce CIX P1 (SKY1) SoC Rob Herring (Arm)
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=Z70b1x6ephA1FyEy@nchen-desktop \
--to=peter.chen@cixtech.com \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=cix-kernel-upstream@cixtech.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fugang.duan@cixtech.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=will@kernel.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.