From: Rob Herring <robh@kernel.org>
To: Xianwei Zhao <xianwei.zhao@amlogic.com>
Cc: linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Neil Armstrong <neil.armstrong@linaro.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Kevin Hilman <khilman@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Chuan Liu <chuan.liu@amlogic.com>
Subject: Re: [PATCH V2 1/4] dt-bindings: clock: add Amlogic C3 PLL clock controller bindings
Date: Tue, 10 Oct 2023 08:21:51 -0500 [thread overview]
Message-ID: <20231010132151.GA557938-robh@kernel.org> (raw)
In-Reply-To: <20231010062917.3624223-2-xianwei.zhao@amlogic.com>
On Tue, Oct 10, 2023 at 02:29:14PM +0800, Xianwei Zhao wrote:
> Add the C3 PLL clock controller dt-bindings for Amlogic C3 SoC family
>
> Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
> ---
> V1 -> V2: Fix errors when check dtbinding use "make dt_binding_check"
Your patches aren't bisectable. It's fine if you want to combine patch 1
and 2 into 1 patch. Or just use the raw numbers here instead of the
header.
> ---
> .../bindings/clock/amlogic,c3-pll-clkc.yaml | 59 +++++++++++++++++++
> .../dt-bindings/clock/amlogic,c3-pll-clkc.h | 42 +++++++++++++
> 2 files changed, 101 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml
> create mode 100644 include/dt-bindings/clock/amlogic,c3-pll-clkc.h
>
> diff --git a/Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml
> new file mode 100644
> index 000000000000..a646992917b7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml
> @@ -0,0 +1,59 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +# Copyright (C) 2022-2023 Amlogic, Inc. All rights reserved
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/amlogic,c3-pll-clkc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Amlogic C3 serials PLL Clock Controller
s/serials/Serials/
> +
> +maintainers:
> + - Chuan Liu <chuan.liu@amlogic.com>
> +
> +properties:
> + compatible:
> + const: amlogic,c3-pll-clkc
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + minItems: 1
> + items:
> + - description: input pll_in
> + - description: input mclk_pll_in
> +
> + clock-names:
> + minItems: 1
> + items:
> + - const: pll_in
> + - const: mclk_pll_in
> +
> + "#clock-cells":
> + const: 1
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - clock-names
> + - "#clock-cells"
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/amlogic,c3-peripherals-clkc.h>
> + apb {
> + #address-cells = <2>;
> + #size-cells = <2>;
> +
> + clkc_pll: clock-controller@8000 {
Drop unused labels.
> + compatible = "amlogic,c3-pll-clkc";
Your indentation is not consistent.
> + reg = <0x0 0x8000 0x0 0x1a4>;
> + clocks = <&clkc_periphs CLKID_PLL_IN>,
> + <&clkc_periphs CLKID_MCLK_PLL_IN>;
> + clock-names = "pll_in", "mclk_pll_in";
> + #clock-cells = <1>;
> + };
> + };
> diff --git a/include/dt-bindings/clock/amlogic,c3-pll-clkc.h b/include/dt-bindings/clock/amlogic,c3-pll-clkc.h
> new file mode 100644
> index 000000000000..aa731e8fae29
> --- /dev/null
> +++ b/include/dt-bindings/clock/amlogic,c3-pll-clkc.h
> @@ -0,0 +1,42 @@
> +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
> +/*
> + * Copyright (c) 2023 Amlogic, Inc. All rights reserved.
> + * Author: Chuan Liu <chuan.liu@amlogic.com>
> + */
> +
> +#ifndef _DT_BINDINGS_CLOCK_AMLOGIC_C3_PLL_CLKC_H
> +#define _DT_BINDINGS_CLOCK_AMLOGIC_C3_PLL_CLKC_H
> +
> +#define CLKID_FIXED_PLL_DCO 0
> +#define CLKID_FIXED_PLL 1
> +#define CLKID_FCLK_DIV40_DIV 2
> +#define CLKID_FCLK_DIV40 3
> +#define CLKID_FCLK_DIV2_DIV 4
> +#define CLKID_FCLK_DIV2 5
> +#define CLKID_FCLK_DIV2P5_DIV 6
> +#define CLKID_FCLK_DIV2P5 7
> +#define CLKID_FCLK_DIV3_DIV 8
> +#define CLKID_FCLK_DIV3 9
> +#define CLKID_FCLK_DIV4_DIV 10
> +#define CLKID_FCLK_DIV4 11
> +#define CLKID_FCLK_DIV5_DIV 12
> +#define CLKID_FCLK_DIV5 13
> +#define CLKID_FCLK_DIV7_DIV 14
> +#define CLKID_FCLK_DIV7 15
> +#define CLKID_GP0_PLL_DCO 16
> +#define CLKID_GP0_PLL 17
> +#define CLKID_HIFI_PLL_DCO 18
> +#define CLKID_HIFI_PLL 19
> +#define CLKID_MCLK_PLL_DCO 20
> +#define CLKID_MCLK_PLL 21
> +#define CLKID_MCLK_PLL_CLK 22
> +#define CLKID_MCLK0_SEL 23
> +#define CLKID_MCLK0_SEL_OUT 24
> +#define CLKID_MCLK0_DIV 25
> +#define CLKID_MCLK0 26
> +#define CLKID_MCLK1_SEL 27
> +#define CLKID_MCLK1_SEL_OUT 28
> +#define CLKID_MCLK1_DIV 29
> +#define CLKID_MCLK1 30
> +
> +#endif /* _DT_BINDINGS_CLOCK_AMLOGIC_C3_PLL_CLKC_H */
>
> base-commit: 57b55c76aaf1ba50ecc6dcee5cd6843dc4d85239
> --
> 2.37.1
>
next prev parent reply other threads:[~2023-10-10 13:21 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-10 6:29 [PATCH V2 0/4] Add C3 SoC PLLs and Peripheral clock Xianwei Zhao
2023-10-10 6:29 ` [PATCH V2 1/4] dt-bindings: clock: add Amlogic C3 PLL clock controller bindings Xianwei Zhao
2023-10-10 7:22 ` Rob Herring
2023-10-10 13:21 ` Rob Herring [this message]
2023-10-11 2:50 ` Xianwei Zhao
2023-10-13 7:35 ` Jerome Brunet
2023-10-16 6:41 ` Xianwei Zhao
2023-10-10 6:29 ` [PATCH V2 2/4] dt-bindings: clock: add Amlogic C3 peripherals " Xianwei Zhao
2023-10-10 7:22 ` Rob Herring
2023-10-10 13:25 ` Rob Herring
2023-10-11 2:54 ` Xianwei Zhao
2023-10-10 6:29 ` [PATCH V2 3/4] clk: meson: c3: add support for the C3 SoC PLL clock Xianwei Zhao
2023-10-13 7:49 ` Jerome Brunet
2023-10-17 6:15 ` Xianwei Zhao
2023-10-17 13:06 ` Jerome Brunet
2023-10-17 14:39 ` Chuan Liu
2023-10-17 14:42 ` Jerome Brunet
2023-10-10 6:29 ` [PATCH V2 4/4] clk: meson: c3: add c3 clock peripherals controller driver Xianwei Zhao
2023-10-12 23:51 ` Stephen Boyd
2023-10-13 7:38 ` Jerome Brunet
2023-10-13 22:01 ` Stephen Boyd
2023-10-16 6:49 ` Xianwei Zhao
2023-10-13 8:46 ` Jerome Brunet
[not found] ` <376968a3-a0f0-3045-96fe-881c2e36be7e@amlogic.com>
[not found] ` <1jbkcxv02x.fsf@starbuckisacylon.baylibre.com>
[not found] ` <ce3b4fa4-5823-4784-b41f-397ad07df3c6@amlogic.com>
2023-10-17 15:21 ` 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=20231010132151.GA557938-robh@kernel.org \
--to=robh@kernel.org \
--cc=chuan.liu@amlogic.com \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=krzysztof.kozlowski+dt@linaro.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=mturquette@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=sboyd@kernel.org \
--cc=xianwei.zhao@amlogic.com \
/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;
as well as URLs for NNTP newsgroup(s).