From: Yao Zi <ziyao@disroot.org>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Yinbo Zhu <zhuyinbo@loongson.cn>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Huacai Chen <chenhuacai@kernel.org>,
WANG Xuerui <kernel@xen0n.name>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, loongarch@lists.linux.dev,
Mingcong Bai <jeffbai@aosc.io>,
Kexy Biscuit <kexybiscuit@aosc.io>
Subject: Re: [PATCH v2 1/8] dt-bindings: clock: loongson2: Add Loongson 2K0300 compatible
Date: Fri, 27 Jun 2025 11:52:41 +0000 [thread overview]
Message-ID: <aF6FtaNB6XgkvUX7@pie> (raw)
In-Reply-To: <20250627-gay-sepia-reindeer-2fde2a@krzk-bin>
On Fri, Jun 27, 2025 at 10:03:53AM +0200, Krzysztof Kozlowski wrote:
> On Tue, Jun 17, 2025 at 04:24:19PM +0000, Yao Zi wrote:
> > Document the clock controller shipped in Loongson 2K0300 SoC, which
> > generates various clock signals for SoC peripherals.
> >
> > Differing from previous generations of SoCs, 2K0300 requires a 120MHz
> > external clock input, and a separate dt-binding header is used for
> > cleanness.
> >
> > Signed-off-by: Yao Zi <ziyao@disroot.org>
> > ---
> > .../bindings/clock/loongson,ls2k-clk.yaml | 26 ++++++---
> > MAINTAINERS | 1 +
> > .../dt-bindings/clock/loongson,ls2k0300-clk.h | 54 +++++++++++++++++++
> > 3 files changed, 75 insertions(+), 6 deletions(-)
> > create mode 100644 include/dt-bindings/clock/loongson,ls2k0300-clk.h
> >
> > diff --git a/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml b/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml
> > index 4f79cdb417ab..3e0a894cfb2f 100644
> > --- a/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml
> > +++ b/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml
> > @@ -16,6 +16,7 @@ description: |
> > properties:
> > compatible:
> > enum:
> > + - loongson,ls2k0300-clk
> > - loongson,ls2k0500-clk
> > - loongson,ls2k-clk # This is for Loongson-2K1000
> > - loongson,ls2k2000-clk
> > @@ -24,19 +25,32 @@ properties:
> > maxItems: 1
> >
> > clocks:
> > - items:
> > - - description: 100m ref
> > + maxItems: 1
> >
> > - clock-names:
> > - items:
> > - - const: ref_100m
> > + clock-names: true
>
> No. How does this implement my comment?
I'm sorry that I forgot about the suggestion of dropping clock-names for
the new compatible.
Is it acceptable to remove the description of clocks property, keep
clock-names property as-is, and use an allOf block to disallow
clocks-names for the new 2K0300 compatible? Thanks for your explanation.
> It makes no sense, why 100m even appeared here. I already objected last
> time!
>
>
> >
> > '#clock-cells':
> > const: 1
> > description:
> > The clock consumer should specify the desired clock by having the clock
> > ID in its "clocks" phandle cell. See include/dt-bindings/clock/loongson,ls2k-clk.h
> > - for the full list of Loongson-2 SoC clock IDs.
> > + and include/dt-bindings/clock/loongson,ls2k0300-clk.h for the full list of
> > + Loongson-2 SoC clock IDs.
> > +
> > +allOf:
> > + - if:
> > + properties:
> > + compatible:
> > + contains:
> > + const: loongson,ls2k0300-clk
> > + then:
> > + properties:
> > + clock-names:
> > + const: ref_120m
>
> NAK, stop doing this pattern. You already got comment on this.
Oops, I missed the comment about dropping the frequency (or the full
clock-names property) from clock-names when writing v2, and I've decided
to drop the clock-names property completely for the 2K0300 compatible.
Sorry again for my mistake.
> Best regards,
> Krzysztof
>
>
Best regards,
Yao Zi
next prev parent reply other threads:[~2025-06-27 11:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-17 16:24 [PATCH v2 0/8] Add clock support for Loongson 2K0300 SoC Yao Zi
2025-06-17 16:24 ` [PATCH v2 1/8] dt-bindings: clock: loongson2: Add Loongson 2K0300 compatible Yao Zi
2025-06-27 8:03 ` Krzysztof Kozlowski
2025-06-27 11:52 ` Yao Zi [this message]
2025-07-11 2:31 ` Yao Zi
2025-06-17 16:24 ` [PATCH v2 2/8] clk: loongson2: Allow specifying clock flags for gate clock Yao Zi
2025-06-17 16:24 ` [PATCH v2 3/8] clk: loongson2: Support scale clocks with an alternative mode Yao Zi
2025-06-17 16:24 ` [PATCH v2 4/8] clk: loongson2: Allow zero divisors for dividers Yao Zi
2025-06-17 16:24 ` [PATCH v2 5/8] clk: loongson2: Avoid hardcoding firmware name of the reference clock Yao Zi
2025-06-17 16:24 ` [PATCH v2 6/8] clk: loongson2: Add clock definitions for Loongson 2K0300 SoC Yao Zi
2025-06-17 16:24 ` [PATCH v2 7/8] LoongArch: dts: Add clock tree for Loongson 2K0300 Yao Zi
2025-06-17 16:24 ` [PATCH v2 8/8] LoongArch: dts: Remove clock-frquency from UART0 of CTCISZ Forever Pi Yao Zi
2025-06-19 9:02 ` [PATCH v2 0/8] Add clock support for Loongson 2K0300 SoC Huacai Chen
2025-06-19 13:17 ` Yao Zi
2025-06-19 15:23 ` Huacai Chen
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=aF6FtaNB6XgkvUX7@pie \
--to=ziyao@disroot.org \
--cc=chenhuacai@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jeffbai@aosc.io \
--cc=kernel@xen0n.name \
--cc=kexybiscuit@aosc.io \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=mturquette@baylibre.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=zhuyinbo@loongson.cn \
/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).