From: Conor Dooley <conor@kernel.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Akinobu Mita <akinobu.mita@gmail.com>,
Jose Vasconcellos <jvasco@verizon.net>,
linux-rtc@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] rtc: rtc7301: Rewrite bindings in schema
Date: Fri, 22 Sep 2023 11:45:49 +0100 [thread overview]
Message-ID: <20230922-magenta-impending-f5ade19286ae@spud> (raw)
In-Reply-To: <20230921-rtc-7301-regwidth-v1-1-1900556181bf@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 3086 bytes --]
On Thu, Sep 21, 2023 at 10:27:42PM +0200, Linus Walleij wrote:
> This rewrites the Epson RTC7301 bindings to use YAML schema,
> and adds a property for "reg-io-width" as used in several
> other bindings to account for different register strides.
It'd probably be good to mention that there is hardware that needs this,
rather that saying "other bindings use this".
>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> .../devicetree/bindings/rtc/epson,rtc7301.txt | 16 -------
> .../devicetree/bindings/rtc/epson,rtc7301.yaml | 49 ++++++++++++++++++++++
> 2 files changed, 49 insertions(+), 16 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/rtc/epson,rtc7301.txt b/Documentation/devicetree/bindings/rtc/epson,rtc7301.txt
> deleted file mode 100644
> index 5f9df3f1467c..000000000000
> --- a/Documentation/devicetree/bindings/rtc/epson,rtc7301.txt
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -EPSON TOYOCOM RTC-7301SF/DG
> -
> -Required properties:
> -
> -- compatible: Should be "epson,rtc7301sf" or "epson,rtc7301dg"
> -- reg: Specifies base physical address and size of the registers.
> -- interrupts: A single interrupt specifier.
> -
> -Example:
> -
> -rtc: rtc@44a00000 {
> - compatible = "epson,rtc7301dg";
> - reg = <0x44a00000 0x10000>;
> - interrupt-parent = <&axi_intc_0>;
> - interrupts = <3 2>;
> -};
> diff --git a/Documentation/devicetree/bindings/rtc/epson,rtc7301.yaml b/Documentation/devicetree/bindings/rtc/epson,rtc7301.yaml
> new file mode 100644
> index 000000000000..4bcf1716cab6
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/epson,rtc7301.yaml
> @@ -0,0 +1,49 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/rtc/epson,rtc7301.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Epson Toyocom RTC-7301SF/DG
> +
> +description: The only difference between the two variants is the
> + packaging. The DG variant is a DIL package, and the SF variant
> + is a flat package.
The lack of a \n after "description:" looks odd, and my OCD would like
to have it.
Otherwise, SGTM!
Thanks,
Conor.
> +
> +maintainers:
> + - Akinobu Mita <akinobu.mita@gmail.com>
> +
> +properties:
> + compatible:
> + enum:
> + - epson,rtc7301dg
> + - epson,rtc7301sf
> +
> + reg:
> + maxItems: 1
> +
> + reg-io-width:
> + description:
> + The size (in bytes) of the IO accesses that should be performed
> + on the device.
> + enum: [1, 4]
> +
> + interrupts:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> + rtc: rtc@44a00000 {
> + compatible = "epson,rtc7301dg";
> + reg = <0x44a00000 0x10000>;
> + reg-io-width = <4>;
> + interrupt-parent = <&axi_intc_0>;
> + interrupts = <3 2>;
> + };
>
> --
> 2.41.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-09-22 10:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-21 20:27 [PATCH 0/2] Support byte access in the RTC7301 driver Linus Walleij
2023-09-21 20:27 ` [PATCH 1/2] rtc: rtc7301: Rewrite bindings in schema Linus Walleij
2023-09-22 10:45 ` Conor Dooley [this message]
2023-09-26 10:56 ` Linus Walleij
2023-09-22 21:19 ` Rob Herring
2023-09-21 20:27 ` [PATCH 2/2] rtc: rtc7301: Support byte-addressed IO Linus Walleij
2023-09-22 22:07 ` Alexandre Belloni
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=20230922-magenta-impending-f5ade19286ae@spud \
--to=conor@kernel.org \
--cc=a.zummo@towertech.it \
--cc=akinobu.mita@gmail.com \
--cc=alexandre.belloni@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jvasco@verizon.net \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-rtc@vger.kernel.org \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).