From: Carlo Caione <ccaione@baylibre.com>
To: Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Kevin Hilman <khilman@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Carlo Caione <ccaione@baylibre.com>
Cc: Jian Hu <jian.hu@amlogic.com>, Chuan Liu <chuan.liu@amlogic.com>,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
Conor Dooley <conor.dooley@microchip.com>
Subject: [PATCH v2 0/6] Add Amlogic S7 clock controllers
Date: Fri, 20 Nov 2026 14:11:03 +0100 [thread overview]
Message-ID: <20261120-upstream-s7-clk-v2-0-856cece3b9f2@baylibre.com> (raw)
This series adds the clock controllers of the Amlogic S7 SoC family
(S905Y5, S805X3): the PLL clock controller and the peripherals clock
controller.
The peripherals controller is close to the S4 one. Two changes to the
common code come with the PLL controller: clk-pll handles PLLs without
a pre-divider and PLLs with an active-low reset, like the HDMI PLL.
---
Changes in v2:
- Drop the SCMI clock IDs patch: the IDs move to the DT series and the
binding examples use raw SCMI clock cells (Conor, Jerome)
- Use exclusive or for the active-low reset (Jerome)
- Use absolute addresses in the binding examples (Conor)
- Rename the HIFI PLL to HIFI0, as in the datasheet (Jerome)
- Model div0p5 of the GP0, HIFI0 and HIFI1 PLLs as a read-only divider
instead of a fixed /2 (Jerome)
- Swap the VCO and div0p5 clock IDs of each PLL, so the VCO init runs
before the div0p5 divider reads its register (Jerome)
- Drop CLK_MESON_PLL_NOINIT_ENABLED from the HIFI0 and HIFI1 PLLs (Jerome)
- Declare one clock per line in the fclk macros and drop the default
GP0 frac_max (Jerome)
- Clarify the fclk_en and HDMIPLL_CTRL2 comments (Jerome)
- Say why PWM H and J are read-only (Jerome)
- Fold the video and eth_rmii clocks with the composite helpers and
local macros (Jerome)
- Add Conor's Acked-by and Jerome's Reviewed-by
- Link to v1: https://patch.msgid.link/20261106-upstream-s7-clk-v1-0-7d501d62621f@baylibre.com
---
Carlo Caione (6):
clk: meson: pll: Support PLLs without a pre-divider
clk: meson: pll: Support active-low resets
dt-bindings: clock: Add Amlogic S7 PLL clock controller
clk: amlogic: Add S7 PLL clock controller driver
dt-bindings: clock: Add Amlogic S7 peripherals clock controller
clk: amlogic: Add S7 peripherals clock controller driver
.../clock/amlogic,s7-peripherals-clkc.yaml | 125 ++
.../bindings/clock/amlogic,s7-pll-clkc.yaml | 71 +
drivers/clk/meson/Kconfig | 30 +
drivers/clk/meson/Makefile | 2 +
drivers/clk/meson/clk-pll.c | 51 +-
drivers/clk/meson/clk-pll.h | 1 +
drivers/clk/meson/s7-peripherals.c | 1637 ++++++++++++++++++++
drivers/clk/meson/s7-pll.c | 696 +++++++++
.../clock/amlogic,s7-peripherals-clkc.h | 245 +++
include/dt-bindings/clock/amlogic,s7-pll-clkc.h | 42 +
10 files changed, 2885 insertions(+), 15 deletions(-)
---
base-commit: 363f97a1ce635b86be7fd263d56a040fbd87bdbb
change-id: 20261026-upstream-s7-clk-3fbe6f33652d
Best regards,
--
Carlo Caione <ccaione@baylibre.com>
next reply other threads:[~2026-11-20 13:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 13:11 Carlo Caione [this message]
2026-11-20 13:11 ` [PATCH v2 1/6] clk: meson: pll: Support PLLs without a pre-divider Carlo Caione
2026-11-20 13:11 ` [PATCH v2 2/6] clk: meson: pll: Support active-low resets Carlo Caione
2026-11-20 13:11 ` [PATCH v2 3/6] dt-bindings: clock: Add Amlogic S7 PLL clock controller Carlo Caione
2026-11-20 13:11 ` [PATCH v2 4/6] clk: amlogic: Add S7 PLL clock controller driver Carlo Caione
2026-11-20 13:11 ` [PATCH v2 5/6] dt-bindings: clock: Add Amlogic S7 peripherals clock controller Carlo Caione
2026-11-20 13:11 ` [PATCH v2 6/6] clk: amlogic: Add S7 peripherals clock controller driver Carlo Caione
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=20261120-upstream-s7-clk-v2-0-856cece3b9f2@baylibre.com \
--to=ccaione@baylibre.com \
--cc=bmasney+clk@redhat.com \
--cc=chuan.liu@amlogic.com \
--cc=conor+dt@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=jbrunet@baylibre.com \
--cc=jian.hu@amlogic.com \
--cc=khilman@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=neil.armstrong@linaro.org \
--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®