devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Romain Perier <romain.perier@gmail.com>,
	Alessandro Zummo <a.zummo@towertech.it>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>,
	Daniel Palmer <daniel@0x0f.com>, Rob Herring <robh+dt@kernel.org>
Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/3] dt-bindings: rtc: Add Mstar SSD20xD RTC devicetree bindings documentation
Date: Thu, 18 May 2023 10:24:10 +0200	[thread overview]
Message-ID: <669d7b79-71a6-e1f9-8d7a-71c4b64de28d@kernel.org> (raw)
In-Reply-To: <20230517144144.365631-3-romain.perier@gmail.com>

On 17/05/2023 16:41, Romain Perier wrote:
> This adds the documentation for the devicetree bindings of the Mstar
> SSD20xD RTC driver.
> 

Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC.  It might happen, that command when run on an older
kernel, gives you outdated entries.  Therefore please be sure you base
your patches on recent Linux kernel.

A nit, subject: drop second/last, redundant "devicetree bindings
documentation". The "dt-bindings" prefix is already stating that these
are bindings. You actually repeated everything...

> Signed-off-by: Romain Perier <romain.perier@gmail.com>
> ---
>  .../bindings/rtc/mstar,ssd20xd-rtc.yaml       | 37 +++++++++++++++++++
>  1 file changed, 37 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml
> 
> diff --git a/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml
> new file mode 100644
> index 000000000000..2acd86cce69f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/mstar,ssd20xd-rtc.yaml
> @@ -0,0 +1,37 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/rtc/mstar,ssd20xd-rtc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Mstar SSD20xD RTC
> +
> +allOf:
> +  - $ref: rtc.yaml#

This goes just above properties:

> +
> +maintainers:
> +  - Daniel Palmer <daniel@0x0f.com>
> +  - Romain Perier <romain.perier@gmail.com>
> +
> +properties:
> +  compatible:
> +    enum:
> +      - mstar,ssd20xd-rtc

Why rtc suffix? Can it be anything else?

Missing blank line

> +  reg:
> +    maxItems: 1
> +
> +  start-year: true

Drop

What about interrupt line?

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

instead
unevaluatedProperties: false

> +
> +examples:
> +  - |
> +    rtc@6800 {
> +        compatible = "mstar,ssd20xd-rtc";
> +        reg = <0x6800 0x200>;
> +    };
> +...

Best regards,
Krzysztof


  parent reply	other threads:[~2023-05-18  8:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-17 14:41 [PATCH 0/3] Add RTC for MStar SSD20xD SoCs Romain Perier
2023-05-17 14:41 ` [PATCH 1/3] rtc: Add support for the SSD20xD RTC Romain Perier
2023-05-29 22:40   ` Alexandre Belloni
2023-05-29 23:06     ` Daniel Palmer
2023-05-17 14:41 ` [PATCH 2/3] dt-bindings: rtc: Add Mstar SSD20xD RTC devicetree bindings documentation Romain Perier
2023-05-17 17:44   ` Conor Dooley
2023-05-22  6:47     ` Romain Perier
2023-05-22  7:16       ` Conor Dooley
2023-05-18  8:24   ` Krzysztof Kozlowski [this message]
2023-05-22 11:27     ` Romain Perier
2023-05-30  8:01       ` Krzysztof Kozlowski
2023-05-30 23:12         ` Daniel Palmer
2023-05-31  6:49           ` Krzysztof Kozlowski
2023-05-31 22:26             ` Daniel Palmer
2023-05-17 14:41 ` [PATCH 3/3] ARM: dts: mstar: Enable rtc for SSD20xD Romain Perier

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=669d7b79-71a6-e1f9-8d7a-71c4b64de28d@kernel.org \
    --to=krzk@kernel.org \
    --cc=a.zummo@towertech.it \
    --cc=alexandre.belloni@bootlin.com \
    --cc=daniel@0x0f.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=romain.perier@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;
as well as URLs for NNTP newsgroup(s).