From: Leo Liang <ycliang@andestech.com>
To: Conor Dooley <conor@kernel.org>
Cc: <u-boot@lists.denx.de>, Conor Dooley <conor.dooley@microchip.com>,
"Rick Chen" <rick@andestech.com>, Tom Rini <trini@konsulko.com>,
Cyril Jean <cyril.jean@microchip.com>,
Lukasz Majewski <lukma@denx.de>,
Sean Anderson <seanga2@gmail.com>,
Sumit Garg <sumit.garg@linaro.org>
Subject: Re: [PATCH v2 1/3] clk: microchip: mpfs: support new syscon based devicetree configuration
Date: Tue, 29 Oct 2024 19:56:49 +0800 [thread overview]
Message-ID: <ZyDNdHueVzHvcm3K@swlinux02> (raw)
In-Reply-To: <20241023101754.4021948-2-conor@kernel.org>
On Wed, Oct 23, 2024 at 11:17:52AM +0100, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
>
> Why get a devicetree description wrong once when you can get it wrong
> twice? The original mistake, which the driver supports was failing to
> describe the main PLL that the "cfg" and "periph" clocks parented by.
> The second mistake was describing the "cfg" and "periph" clocks a
> reg region within the clock controller, rather as two registers within
> a syscon region that also contains pinctrl, interrupt muxing controls
> and other functions.
>
> Make up for lost time and describe these regions as they should have
> been originally, preserving support for the existing two configurations
> for the sake of existing systems with firmware-provided devicetrees.
>
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> ---
> drivers/clk/microchip/Kconfig | 2 +
> drivers/clk/microchip/mpfs_clk.c | 63 ++++++++++++++++++++-----
> drivers/clk/microchip/mpfs_clk.h | 5 +-
> drivers/clk/microchip/mpfs_clk_cfg.c | 16 +++----
> drivers/clk/microchip/mpfs_clk_periph.c | 37 +++++++--------
> 5 files changed, 81 insertions(+), 42 deletions(-)
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
next prev parent reply other threads:[~2024-10-29 11:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-23 10:17 [PATCH v2 0/3] PolarFire SoC clock devicetree rework Conor Dooley
2024-10-23 10:17 ` [PATCH v2 1/3] clk: microchip: mpfs: support new syscon based devicetree configuration Conor Dooley
2024-10-29 11:56 ` Leo Liang [this message]
2024-10-23 10:17 ` [PATCH v2 2/3] board: mpfs_icicle: imply new clk driver dependencies Conor Dooley
2024-10-29 11:57 ` Leo Liang
2024-10-23 10:17 ` [PATCH v2 3/3] riscv: dts: mpfs: migrate to OF_UPSTREAM Conor Dooley
2024-10-23 12:13 ` Sumit Garg
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=ZyDNdHueVzHvcm3K@swlinux02 \
--to=ycliang@andestech.com \
--cc=conor.dooley@microchip.com \
--cc=conor@kernel.org \
--cc=cyril.jean@microchip.com \
--cc=lukma@denx.de \
--cc=rick@andestech.com \
--cc=seanga2@gmail.com \
--cc=sumit.garg@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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