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 3/6] dt-bindings: clock: Add Amlogic S7 PLL clock controller
Date: Fri, 20 Nov 2026 14:11:06 +0100 [thread overview]
Message-ID: <20261120-upstream-s7-clk-v2-3-856cece3b9f2@baylibre.com> (raw)
In-Reply-To: <20261120-upstream-s7-clk-v2-0-856cece3b9f2@baylibre.com>
The S7 PLL controller supplies clock sources for the peripheral clock
tree and receives its reference clocks through firmware-controlled
oscillator gates.
Add the binding and clock identifiers needed to describe this
controller and its connections.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
---
.../bindings/clock/amlogic,s7-pll-clkc.yaml | 71 ++++++++++++++++++++++
include/dt-bindings/clock/amlogic,s7-pll-clkc.h | 42 +++++++++++++
2 files changed, 113 insertions(+)
diff --git a/Documentation/devicetree/bindings/clock/amlogic,s7-pll-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,s7-pll-clkc.yaml
new file mode 100644
index 000000000000..1984cd42fda9
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/amlogic,s7-pll-clkc.yaml
@@ -0,0 +1,71 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright (c) 2026 BayLibre, SAS.
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/amlogic,s7-pll-clkc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Amlogic S7 Series PLL Clock Controller
+
+maintainers:
+ - Neil Armstrong <neil.armstrong@linaro.org>
+ - Jerome Brunet <jbrunet@baylibre.com>
+ - Carlo Caione <ccaione@baylibre.com>
+
+properties:
+ compatible:
+ const: amlogic,s7-pll-clkc
+
+ reg:
+ maxItems: 1
+
+ '#clock-cells':
+ const: 1
+
+ clocks:
+ items:
+ - description: input fixed pll
+ - description: input gp0 pll
+ - description: input hifi0 pll
+ - description: input hifi1 pll
+ - description: input hdmi pll
+
+ clock-names:
+ items:
+ - const: fix
+ - const: gp0
+ - const: hifi0
+ - const: hifi1
+ - const: hdmi
+
+required:
+ - compatible
+ - reg
+ - '#clock-cells'
+ - clocks
+ - clock-names
+
+additionalProperties: false
+
+examples:
+ - |
+ soc {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ clock-controller@fe008000 {
+ compatible = "amlogic,s7-pll-clkc";
+ reg = <0x0 0xfe008000 0x0 0x1e8>;
+ #clock-cells = <1>;
+ clocks = <&scmi_clk 2>,
+ <&scmi_clk 2>,
+ <&scmi_clk 2>,
+ <&scmi_clk 2>,
+ <&scmi_clk 3>;
+ clock-names = "fix",
+ "gp0",
+ "hifi0",
+ "hifi1",
+ "hdmi";
+ };
+ };
diff --git a/include/dt-bindings/clock/amlogic,s7-pll-clkc.h b/include/dt-bindings/clock/amlogic,s7-pll-clkc.h
new file mode 100644
index 000000000000..6bea314deb31
--- /dev/null
+++ b/include/dt-bindings/clock/amlogic,s7-pll-clkc.h
@@ -0,0 +1,42 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Copyright (c) 2026 BayLibre, SAS.
+ */
+
+#ifndef _DT_BINDINGS_CLOCK_AMLOGIC_S7_PLL_CLKC_H
+#define _DT_BINDINGS_CLOCK_AMLOGIC_S7_PLL_CLKC_H
+
+#define CLKID_FIXED_PLL_VCO 0
+#define CLKID_FIXED_PLL 1
+#define CLKID_FCLK_DIV2_DIV 2
+#define CLKID_FCLK_DIV2 3
+#define CLKID_FCLK_DIV3_DIV 4
+#define CLKID_FCLK_DIV3 5
+#define CLKID_FCLK_DIV4_DIV 6
+#define CLKID_FCLK_DIV4 7
+#define CLKID_FCLK_DIV5_DIV 8
+#define CLKID_FCLK_DIV5 9
+#define CLKID_FCLK_DIV7_DIV 10
+#define CLKID_FCLK_DIV7 11
+#define CLKID_FCLK_DIV2P5_DIV 12
+#define CLKID_FCLK_DIV2P5 13
+#define CLKID_GP0_PLL_VCO 14
+#define CLKID_GP0_PLL_DIV0P5 15
+#define CLKID_GP0_PLL 16
+#define CLKID_HIFI0_PLL_VCO 17
+#define CLKID_HIFI0_PLL_DIV0P5 18
+#define CLKID_HIFI0_PLL 19
+#define CLKID_HIFI1_PLL_VCO 20
+#define CLKID_HIFI1_PLL_DIV0P5 21
+#define CLKID_HIFI1_PLL 22
+#define CLKID_HDMI_PLL_VCO 23
+#define CLKID_HDMI_PLL_DIV0P5 24
+#define CLKID_HDMI_PLL_OD0 25
+#define CLKID_HDMI_PLL_OD1 26
+#define CLKID_HDMI_PLL 27
+#define CLKID_HDMI_PLL_PIX_DIV5 28
+#define CLKID_HDMI_PLL_PIX_DIV6P25 29
+#define CLKID_HDMI_PLL_PIX_DIV7P5 30
+#define CLKID_HDMI_PLL_PIX 31
+
+#endif /* _DT_BINDINGS_CLOCK_AMLOGIC_S7_PLL_CLKC_H */
--
2.56.1
next prev parent 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 [PATCH v2 0/6] Add Amlogic S7 clock controllers Carlo Caione
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 ` Carlo Caione [this message]
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-3-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®