mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: dongxuyang@eswincomputing.com, mturquette@baylibre.com,
	sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, linux-clk@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	paul.walmsley@sifive.com, palmer@dabbelt.com,
	aou@eecs.berkeley.edu, alex@ghiti.fr,
	linux-riscv@lists.infradead.org
Cc: ningyu@eswincomputing.com, linmin@eswincomputing.com,
	huangyifeng@eswincomputing.com, pinkesh.vaghela@einfochips.com
Subject: Re: [PATCH v4 1/3] clock: eswin: Documentation for eic7700 SoC
Date: Sun, 17 Aug 2025 08:01:24 +0200	[thread overview]
Message-ID: <58e3e3ef-1871-45b1-ba2b-be6981d7d3d1@kernel.org> (raw)
In-Reply-To: <20250815093653.1033-1-dongxuyang@eswincomputing.com>

On 15/08/2025 11:36, dongxuyang@eswincomputing.com wrote:
> From: Xuyang Dong <dongxuyang@eswincomputing.com>
> 
> Add device tree binding documentation for the ESWIN eic7700
> clock controller module.
> 
> Signed-off-by: Yifeng Huang <huangyifeng@eswincomputing.com>
> Signed-off-by: Xuyang Dong <dongxuyang@eswincomputing.com>
> ---
>  .../bindings/clock/eswin,eic7700-clock.yaml   | 381 ++++++++++++++++++
>  1 file changed, 381 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml
> 
> diff --git a/Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml b/Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml
> new file mode 100644
> index 000000000000..45e70ebc08e6
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml
> @@ -0,0 +1,381 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/eswin,eic7700-clock.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Eswin EIC7700 SoC clock controller
> +
> +maintainers:
> +  - Yifeng Huang <huangyifeng@eswincomputing.com>
> +  - Xuyang Dong <dongxuyang@eswincomputing.com>
> +
> +description:
> +  The clock controller generates and supplies clock to all the modules
> +  for eic7700 SoC.
> +
> +properties:
> +  compatible:
> +    const: eswin,eic7700-clock
> +
> +  reg:
> +    maxItems: 1
> +
> +  '#clock-cells':
> +    const: 0
> +
> +  '#address-cells':
> +    const: 1
> +
> +  '#size-cells':
> +    const: 0
> +
> +required:

Incorrectly placed. required is after all properties.

> +  - compatible
> +  - reg
> +  - '#clock-cells'
> +  - '#address-cells'
> +  - '#size-cells'
> +
> +patternProperties:
> +  "^fixed-rate.*":
> +    type: object
> +    $ref: /schemas/clock/fixed-clock.yaml#

No, you do not get node per clock.

> +
> +  ".*pll@[a-f0-9]+$":
> +    type: object
> +
> +    properties:
> +      compatible:
> +        const: eswin,pll-clock


Nothing explains in the changelog why this appeared. Drop all these
nodes and fake or redundant compatibles.


> +
> +      reg:
> +        items:
> +          - description: PLL's config 0 register
> +          - description: PLL's config 1 register
> +          - description: PLL's config 2 register
> +          - description: PLL's status register
> +
> +      '#clock-cells':
> +        const: 0
> +
> +      clock-output-names:
> +        maxItems: 1
> +
> +      enable-shift:
> +        description: Bit shift of the enable register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      enable-width:
> +        description: Width of the enable register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      refdiv-shift:
> +        description: Bit shift of the reference divider register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      refdiv-width:
> +        description: Width of the reference divider register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      fbdiv-shift:
> +        description: Bit shift of the feedback divider register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      fbdiv-width:
> +        description: Width of the feedback divider register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      frac-shift:
> +        description: Bit shift of the fractional divider register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      frac-width:
> +        description: Width of the fractional divider register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      postdiv1-shift:
> +        description: Bit shift of the post divider 1 register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      postdiv1-width:
> +        description: Width of the post divider 1 register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      postdiv2-shift:
> +        description: Bit shift of the post divider 2 register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      postdiv2-width:
> +        description: Width of the post divider 2 register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        maximum: 31
> +
> +      lock-shift:
> +        description: Bit shift of the lock register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +      lock-width:
> +        description: Width of the lock register.
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        minimum: 0
> +        maximum: 31
> +
> +    required:
> +      - compatible
> +      - reg
> +      - '#clock-cells'
> +      - clock-output-names
> +      - enable-shift
> +      - enable-width
> +      - refdiv-shift
> +      - refdiv-width
> +      - fbdiv-shift
> +      - fbdiv-width
> +      - frac-shift
> +      - frac-width
> +      - postdiv1-shift
> +      - postdiv1-width
> +      - postdiv2-shift
> +      - postdiv2-width
> +      - lock-shift
> +      - lock-width
> +
> +    additionalProperties: false
> +
> +  ".*mux@[a-f0-9]+$":
> +    type: object

NAK, but anyway explain in the changelog WHY you did this...


Best regards,
Krzysztof

  reply	other threads:[~2025-08-17  6:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-15  9:35 [PATCH v4 0/3] Add driver support for ESWIN eic700 SoC clock controller dongxuyang
2025-08-15  9:36 ` [PATCH v4 1/3] clock: eswin: Documentation for eic7700 SoC dongxuyang
2025-08-17  6:01   ` Krzysztof Kozlowski [this message]
2025-08-15  9:37 ` [PATCH v4 2/3] clock: eswin: Add eic7700 clock driver dongxuyang
2025-08-17  6:07   ` Krzysztof Kozlowski
2025-08-19  4:46   ` Troy Mitchell
2025-08-21 18:32   ` Brian Masney
2025-08-15  9:37 ` [PATCH v4 3/3] riscv: dts: eswin: Add clock driver support dongxuyang
2025-08-17  6:07   ` Krzysztof Kozlowski
2025-08-19  8:34     ` 董绪洋
2025-08-19  9:10       ` Krzysztof Kozlowski
2025-08-21  8:45         ` 董绪洋
2025-08-21  9:02           ` Krzysztof Kozlowski

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=58e3e3ef-1871-45b1-ba2b-be6981d7d3d1@kernel.org \
    --to=krzk@kernel.org \
    --cc=alex@ghiti.fr \
    --cc=aou@eecs.berkeley.edu \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dongxuyang@eswincomputing.com \
    --cc=huangyifeng@eswincomputing.com \
    --cc=krzk+dt@kernel.org \
    --cc=linmin@eswincomputing.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=mturquette@baylibre.com \
    --cc=ningyu@eswincomputing.com \
    --cc=palmer@dabbelt.com \
    --cc=paul.walmsley@sifive.com \
    --cc=pinkesh.vaghela@einfochips.com \
    --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®