From: Chuan Liu via B4 Relay <devnull+chuan.liu.amlogic.com@kernel.org>
To: Neil Armstrong <neil.armstrong@linaro.org>,
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>
Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Chuan Liu <chuan.liu@amlogic.com>
Subject: [PATCH 02/13] dt-bindings: clock: Add Amlogic A9 PLL controllers
Date: Mon, 09 Feb 2026 13:48:48 +0800 [thread overview]
Message-ID: <20260209-a9_clock_driver-v1-2-a9198dc03d2a@amlogic.com> (raw)
In-Reply-To: <20260209-a9_clock_driver-v1-0-a9198dc03d2a@amlogic.com>
From: Chuan Liu <chuan.liu@amlogic.com>
Add dt-binding documentation for PLL controllers used in A9 SoC family.
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
---
.../devicetree/bindings/clock/amlogic,a9-pll.yaml | 134 +++++++++++++++++++++
1 file changed, 134 insertions(+)
diff --git a/Documentation/devicetree/bindings/clock/amlogic,a9-pll.yaml b/Documentation/devicetree/bindings/clock/amlogic,a9-pll.yaml
new file mode 100644
index 000000000000..26655716f040
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/amlogic,a9-pll.yaml
@@ -0,0 +1,134 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright (C) 2026 Amlogic, Inc. All rights reserved
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/amlogic,a9-pll.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Amlogic A9 Family PLL Controllers
+
+maintainers:
+ - Chuan Liu <chuan.liu@amlogic.com>
+
+description: |
+ PLLs generate high-frequency clocks by frequency multiplication, feeding them
+ into the clock tree where they can be configured as operational clocks for
+ various system modules.
+
+ A diagram of the A9 PLL is as follows:
+ +------------------------------------------------------+
+ | +-------+ +-----+ |
+ osc-------->| div N |----->| | +-----+ |
+ | +-------+ | | | | |
+ | | | | VCO | +--------+ |
+ | | |-->| / |-->| div OD |------>pll_out
+ | | | | DCO | +--------+ |
+ | +----------+ | | | | |
+ | +-->| M & frac |-->| | +-----+ |
+ | | +----------+ +-----+ | |
+ | | | |
+ | +-------------------------------+ |
+ +------------------------------------------------------+
+
+properties:
+ compatible:
+ oneOf:
+ - items:
+ - const: amlogic,a9-int-pll
+ description: Integer multiplier PLL
+ - items:
+ - const: amlogic,a9-frac-pll
+ description: Fractional multiplier PLL
+ - items:
+ - const: amlogic,a9-frac-step-pll
+ description: Fractional PLL with integer step granularity
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+ description: input clock of pll
+
+ clock-output-names:
+ maxItems: 1
+
+ '#clock-cells':
+ const: 0
+
+ amlogic,clock-max-frequency:
+ description: |
+ Each clock's maximum output frequency is constrained during hardware
+ design to ensure proper timing requirements for the clock network. If the
+ clock frequency configured exceeds this design limit, it can lead to
+ abnormal behavior in modules relying on that clock and may even cause
+ cross-talk that affects other modules.
+
+ In the driver, this property is parsed, and interface functions from the
+ CCF are called to enforce the clock's maximum frequency, preventing
+ potential issues caused by excessive clock frequency configurations.
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+
+ amlogic,clock-init-regs:
+ description:
+ Certain CCUs and PLLs require initialization through dedicated registers
+ before becoming operational. This initialization configures internal clock
+ drive characteristics, divider parameters, and PLL internal circuitry.
+ $ref: /schemas/types.yaml#/definitions/uint32-matrix
+ items:
+ items:
+ - description: The register offset address
+ - description: The value to be written to the register
+ - description: The delay after the register write (unit is us)
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-output-names
+ - "#clock-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ apb {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ clock-mclk_pll@8330 {
+ compatible = "amlogic,a9-int-pll";
+ reg = <0x0 0x8330 0x0 0xc>;
+ #clock-cells = <0>;
+ amlogic,clock-init-regs = <0x4 0x00402000 0>,
+ <0x8 0x60000100 0>;
+ amlogic,clock-max-frequency = <2800000000>;
+ clock-output-names = "mclk_pll";
+ clocks = <&xtal_24m>;
+ };
+
+ clock-gp0_pll@8200 {
+ compatible = "amlogic,a9-frac-pll";
+ reg = <0x0 0x8200 0x0 0x10>;
+ #clock-cells = <0>;
+ amlogic,clock-init-regs = <0x0 0x08010000 0>,
+ <0x4 0x11480000 0>,
+ <0x8 0x1219b010 0>,
+ <0xc 0x00008010 0>;
+ amlogic,clock-max-frequency = <2800000000>;
+ clock-output-names = "gp0_pll";
+ clocks = <&xtal_24m>;
+ };
+
+ clock-hifi_pll@8280 {
+ compatible = "amlogic,a9-frac-step-pll";
+ reg = <0x0 0x8280 0x0 0x10>;
+ #clock-cells = <0>;
+ amlogic,clock-init-regs = <0x0 0x08010000 0>,
+ <0x4 0x11480000 0>,
+ <0x8 0x1219b010 0>,
+ <0xc 0x00008010 0>;
+ amlogic,clock-max-frequency = <2800000000>;
+ clock-output-names = "hifi_pll";
+ clocks = <&xtal_24m>;
+ };
+ };
--
2.42.0
next prev parent reply other threads:[~2026-02-09 5:49 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 5:48 [PATCH 00/13] clk: amlogic: Introduce A9 PLL and CCU driver support Chuan Liu via B4 Relay
2026-02-09 5:48 ` [PATCH 01/13] dt-bindings: clock: Add Amlogic A9 standardized model clock control units Chuan Liu via B4 Relay
2026-02-09 13:14 ` Krzysztof Kozlowski
2026-04-08 14:37 ` Chuan Liu
2026-02-09 13:18 ` Krzysztof Kozlowski
2026-02-09 5:48 ` Chuan Liu via B4 Relay [this message]
2026-02-09 5:48 ` [PATCH 03/13] dt-bindings: clock: Add Amlogic A9 misc " Chuan Liu via B4 Relay
2026-02-09 13:15 ` Krzysztof Kozlowski
2026-02-09 5:48 ` [PATCH 04/13] clk: amlogic: Add basic clock driver Chuan Liu via B4 Relay
2026-02-09 13:17 ` Krzysztof Kozlowski
2026-04-08 14:32 ` Chuan Liu
2026-04-08 17:34 ` Jerome Brunet
2026-04-09 6:12 ` Krzysztof Kozlowski
2026-02-09 5:48 ` [PATCH 05/13] clk: amlogic: Add composite " Chuan Liu via B4 Relay
2026-02-09 13:18 ` Krzysztof Kozlowski
2026-02-09 5:48 ` [PATCH 06/13] clk: amlogic: Add noglitch " Chuan Liu via B4 Relay
2026-02-09 21:51 ` Martin Blumenstingl
2026-04-08 14:44 ` Chuan Liu
2026-02-09 5:48 ` [PATCH 07/13] clk: amlogic: Add duandiv " Chuan Liu via B4 Relay
2026-02-09 5:48 ` [PATCH 08/13] clk: amlogic: Add PLL driver Chuan Liu via B4 Relay
2026-02-09 15:37 ` kernel test robot
2026-02-09 17:35 ` kernel test robot
2026-02-09 5:48 ` [PATCH 09/13] clk: amlogic: Add DT-based clock registration functions Chuan Liu via B4 Relay
2026-02-09 5:48 ` [PATCH 10/13] clk: amlogic: Add A9 standardized model clock control units driver Chuan Liu via B4 Relay
2026-02-09 5:48 ` [PATCH 11/13] clk: amlogic: Add A9 PLL controllers driver Chuan Liu via B4 Relay
2026-02-09 5:48 ` [PATCH 12/13] clk: amlogic: Add A9 misc clock control units driver Chuan Liu via B4 Relay
2026-02-09 5:48 ` [PATCH 13/13] clk: amlogic: Add support for building as combined kernel module Chuan Liu via B4 Relay
2026-02-11 8:34 ` [PATCH 00/13] clk: amlogic: Introduce A9 PLL and CCU driver support Jerome Brunet
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=20260209-a9_clock_driver-v1-2-a9198dc03d2a@amlogic.com \
--to=devnull+chuan.liu.amlogic.com@kernel.org \
--cc=chuan.liu@amlogic.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.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