From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Chunyan Zhang <chunyan.zhang@unisoc.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Orson Zhai <orsonzhai@gmail.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
Chunyan Zhang <zhang.lyra@gmail.com>
Subject: Re: [PATCH 2/3] clk: sprd: Add dt-bindings include file for UMS9620
Date: Thu, 4 Jan 2024 09:48:04 +0100 [thread overview]
Message-ID: <71cf6e71-6273-4305-8fc4-44df6ce35eda@linaro.org> (raw)
In-Reply-To: <20231229085156.1490233-3-chunyan.zhang@unisoc.com>
On 29/12/2023 09:51, Chunyan Zhang wrote:
> This file defines all UMS9620 clock indexes. It should be included in
> the DTS file(s) in which there're devices using these clocks.
>
Please use subject prefixes matching the subsystem. You can get them for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching.
A nit, subject: drop second/last, redundant "bindings". The
"dt-bindings" prefix is already stating that these are bindings.
> Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
> ---
> include/dt-bindings/clock/sprd,ums9620-clk.h | 515 +++++++++++++++++++
This is part of previous patch.
> 1 file changed, 515 insertions(+)
> create mode 100644 include/dt-bindings/clock/sprd,ums9620-clk.h
>
> diff --git a/include/dt-bindings/clock/sprd,ums9620-clk.h b/include/dt-bindings/clock/sprd,ums9620-clk.h
> new file mode 100644
> index 000000000000..ed566e1208d7
> --- /dev/null
> +++ b/include/dt-bindings/clock/sprd,ums9620-clk.h
> @@ -0,0 +1,515 @@
> +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
> +/*
> + * Unisoc UMS9620 platform clocks
> + *
> + * Copyright (C) 2020-2023, Unisoc Inc.
> + */
> +
> +#ifndef _DT_BINDINGS_CLK_UMS9620_H_
> +#define _DT_BINDINGS_CLK_UMS9620_H_
> +
> +#define CLK_26M_AUD 0
> +#define CLK_13M 1
> +#define CLK_6M5 2
> +#define CLK_4M3 3
> +#define CLK_4M 4
> +#define CLK_2M 5
> +#define CLK_1M 6
> +#define CLK_250K 7
> +#define CLK_16K 8
> +#define CLK_RCO_100M_25M 9
> +#define CLK_RCO_100m_20M 10
> +#define CLK_RCO_100m_4M 11
> +#define CLK_RCO_100m_2M 12
> +#define CLK_RCO_60m_20M 13
> +#define CLK_RCO_60m_4M 14
> +#define CLK_RCO_60m_2M 15
> +#define CLK_PHYR8PLL_GATE 16
> +#define CLK_PSR8PLL_GATE 17
> +#define CLK_CPLL_GATE 18
> +#define CLK_V4NRPLL_GATE 19
> +#define CLK_TGPLL_GATE 20
> +#define CLK_MPLLL_GATE 21
> +#define CLK_MPLLM_GATE 22
> +#define CLK_MPLLB_GATE 23
> +#define CLK_MPLLS_GATE 24
> +#define CLK_DPLL0_GATE 25
> +#define CLK_DPLL1_GATE 26
> +#define CLK_DPLL2_GATE 27
> +#define CLK_GPLL_GATE 28
> +#define CLK_AIPLL_GATE 29
> +#define CLK_VDSPPLL_GATE 30
> +#define CLK_AUDPLL_GATE 31
> +#define CLK_PIXELPLL_GATE 32
> +#define CLK_PMU_GATE_NUM (CLK_PIXELPLL_GATE + 1)
Drop this and all other numbers. Not a binding and you cannot change it,
if you ever want to add missing clock.
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-01-04 8:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-29 8:51 [PATCH 0/3] Add UMS9620 clocks driver and bindings Chunyan Zhang
2023-12-29 8:51 ` [PATCH 1/3] dt-bindings: clk: sprd: Add UMS9620 support Chunyan Zhang
2024-01-04 8:46 ` Krzysztof Kozlowski
2024-01-04 9:09 ` Chunyan Zhang
2024-01-04 9:21 ` Krzysztof Kozlowski
2024-01-04 9:26 ` Chunyan Zhang
2024-01-04 9:31 ` Krzysztof Kozlowski
2023-12-29 8:51 ` [PATCH 2/3] clk: sprd: Add dt-bindings include file for UMS9620 Chunyan Zhang
2024-01-04 8:48 ` Krzysztof Kozlowski [this message]
2023-12-29 8:51 ` [PATCH 3/3] clk: sprd: add support " Chunyan Zhang
2023-12-29 20:02 ` kernel test robot
2023-12-29 20:22 ` kernel test robot
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=71cf6e71-6273-4305-8fc4-44df6ce35eda@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=chunyan.zhang@unisoc.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=orsonzhai@gmail.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=zhang.lyra@gmail.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
all inboxes | Powered by JetHome®