From: 董绪洋 <dongxuyang@eswincomputing.com>
To: "Krzysztof Kozlowski" <krzk@kernel.org>,
mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, paul.walmsley@sifive.com,
palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr,
linux-riscv@lists.infradead.org
Cc: ningyu@eswincomputing.com, linmin@eswincomputing.com,
huangyifeng@eswincomputing.com, pinkesh.vaghela@einfochips.com
Subject: Re: Re: [PATCH v4 3/3] riscv: dts: eswin: Add clock driver support
Date: Thu, 21 Aug 2025 16:45:26 +0800 (GMT+08:00) [thread overview]
Message-ID: <27984d9.51f.198cbcde8d7.Coremail.dongxuyang@eswincomputing.com> (raw)
In-Reply-To: <bfa23779-9861-4ae4-9ced-9f347394f033@kernel.org>
Hi Krzysztof,
Thanks for your constructive suggestions.
> >>>
> >>> Add clock device tree support for eic7700 SoC.
> >>>
> >>> Signed-off-by: Yifeng Huang <huangyifeng@eswincomputing.com>
> >>> Signed-off-by: Xuyang Dong <dongxuyang@eswincomputing.com>
> >>> ---
> >>> arch/riscv/boot/dts/eswin/eic7700-clocks.dtsi | 2283 +++++++++++++++++
> >>> 1 file changed, 2283 insertions(+)
> >>> create mode 100644 arch/riscv/boot/dts/eswin/eic7700-clocks.dtsi
> >>>
> >>> diff --git a/arch/riscv/boot/dts/eswin/eic7700-clocks.dtsi b/arch/riscv/boot/dts/eswin/eic7700-clocks.dtsi
> >>> new file mode 100644
> >>> index 000000000000..405d06f9190e
> >>> --- /dev/null
> >>> +++ b/arch/riscv/boot/dts/eswin/eic7700-clocks.dtsi
> >>> @@ -0,0 +1,2283 @@
> >>> +// SPDX-License-Identifier: (GPL-2.0 OR MIT)
> >>> +/*
> >>> + * Copyright (c) 2025, Beijing ESWIN Computing Technology Co., Ltd.
> >>> + */
> >>> +
> >>> +/ {
> >>> + clock-controller@51828000 {
> >>> + compatible = "eswin,eic7700-clock";
> >>> + reg = <0x000000 0x51828000 0x000000 0x80000>;
> >>> + #clock-cells = <0>;
> >>> + #address-cells = <1>;
> >>> + #size-cells = <0>;
> >>> +
> >>> + /* fixed clock */
> >>> + fixed_rate_clk_apll_fout2: fixed-rate-apll-fout2 {
> >>
> >> Such pattern was years ago NAKed.
> >>
> >> No, don't ever bring nodes per clock.
> >>
> > We have defined a large number of clock devices.
> > The comment of v3 is "Driver is also way too big for simple clock driver and I
> > am surprised to see so many redundancies.". Therefore, we modified the clock
> > driver code and moved the description of clock device from the driver to the DTS.
> >
> > But, this comment is that don't ever bring nodes per clock. We’ve run into some
>
> And? What is unclear in that comment?
>
> > trouble and aren’t sure which approach aligns better with community guidelines.
> > Could you share your advice or suggestions on the best way forward?
>
> Look at any other recent clock drivers.
I found out that the recent clock drivers, such as sophgo/clk-sg2044.c
and rockchip/clk-rk3562.c, the clock tree information of them was placed
in the C code.
So, for EIC7700 SoC, should the clock tree information be placed in
clk-eic7700.c just as clk-sg2044.c? Is this understanding correct?
I would be grateful for your reply.
Regards,
Xuyang Dong
next prev parent reply other threads:[~2025-08-21 8:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-15 9:35 [PATCH v4 0/3] Add driver support for ESWIN eic700 SoC clock controller dongxuyang
2025-08-15 9:36 ` [PATCH v4 1/3] clock: eswin: Documentation for eic7700 SoC dongxuyang
2025-08-17 6:01 ` Krzysztof Kozlowski
2025-08-15 9:37 ` [PATCH v4 2/3] clock: eswin: Add eic7700 clock driver dongxuyang
2025-08-17 6:07 ` Krzysztof Kozlowski
2025-08-19 4:46 ` Troy Mitchell
2025-08-21 18:32 ` Brian Masney
2025-08-15 9:37 ` [PATCH v4 3/3] riscv: dts: eswin: Add clock driver support dongxuyang
2025-08-17 6:07 ` Krzysztof Kozlowski
2025-08-19 8:34 ` 董绪洋
2025-08-19 9:10 ` Krzysztof Kozlowski
2025-08-21 8:45 ` 董绪洋 [this message]
2025-08-21 9:02 ` Krzysztof Kozlowski
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=27984d9.51f.198cbcde8d7.Coremail.dongxuyang@eswincomputing.com \
--to=dongxuyang@eswincomputing.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=huangyifeng@eswincomputing.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linmin@eswincomputing.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=ningyu@eswincomputing.com \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=pinkesh.vaghela@einfochips.com \
--cc=robh@kernel.org \
--cc=sboyd@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®