All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: CL Wang <cl634@andestech.com>,
	alexandre.belloni@bootlin.com, linux-rtc@vger.kernel.org
Cc: tim609@andestech.com
Subject: Re: [PATCH V2 1/2] dt-bindings: rtc: atcrtc100: Add atcrtc100 bindings
Date: Mon, 17 Jun 2024 10:52:11 +0200	[thread overview]
Message-ID: <32002a2f-cb2c-44ac-b1ed-69325fbd1632@kernel.org> (raw)
In-Reply-To: <20240617082507.3968910-2-cl634@andestech.com>

On 17/06/2024 10:25, CL Wang wrote:
> Add YAML bindings for Andes atcrtc100 RTC.

A nit, subject: drop second/last, redundant "bindings". The
"dt-bindings" prefix is already stating that these are bindings.
See also:
https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18

> 
> Signed-off-by: CL Wang <cl634@andestech.com>
> ---
>  .../bindings/rtc/andes,atcrtc100-rtc.yaml     | 39 +++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/rtc/andes,atcrtc100-rtc.yaml
> 
> diff --git a/Documentation/devicetree/bindings/rtc/andes,atcrtc100-rtc.yaml b/Documentation/devicetree/bindings/rtc/andes,atcrtc100-rtc.yaml
> new file mode 100644
> index 000000000000..86cecb30c889
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/andes,atcrtc100-rtc.yaml

Use compatible as filename.

> @@ -0,0 +1,39 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/rtc/andes,atcrtc100-rtc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Andes, ATCRTC100 on-SoC RTC
> +
> +allOf:
> +  - $ref: rtc.yaml#

allOf goes after maintainers.

> +
> +maintainers:
> +  - CL Wang <cl634@andestech.com>
> +
> +properties:
> +  compatible:
> +    enum:
> +      - andestech,atcrtc100
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    minItems: 2

This must be specific. Describe the items instead (items: with -
description: for each).

> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +
> +additionalProperties: false

Instead:
unevaluatedProperties: false



Best regards,
Krzysztof


  reply	other threads:[~2024-06-17  8:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-17  8:25 [PATCH V2 0/2] Add andes atcrtc100 RTC driver CL Wang
2024-06-17  8:25 ` [PATCH V2 1/2] dt-bindings: rtc: atcrtc100: Add atcrtc100 bindings CL Wang
2024-06-17  8:52   ` Krzysztof Kozlowski [this message]
2024-06-17  8:55   ` Krzysztof Kozlowski
2024-06-17  8:25 ` [PATCH V2 2/2] rtc: atcrtc100: Add andes atcrtc100 RTC driver CL Wang
2024-06-17  8:54   ` 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=32002a2f-cb2c-44ac-b1ed-69325fbd1632@kernel.org \
    --to=krzk@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=cl634@andestech.com \
    --cc=linux-rtc@vger.kernel.org \
    --cc=tim609@andestech.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.