From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Thierry Reding <thierry.reding@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
Rob Herring <robh+dt@kernel.org>,
linux-rtc@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/2] dt-bindings: rtc: Add EM Microelectronic EM3027 bindings
Date: Fri, 17 Dec 2021 18:07:35 +0100 [thread overview]
Message-ID: <YbzD199oQobS6ZaD@piout.net> (raw)
In-Reply-To: <20211217170311.2796798-2-thierry.reding@gmail.com>
Hello,
On 17/12/2021 18:03:11+0100, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
>
> Document the bindings for the EM Microelectronic EM3027 RTC.
>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> .../bindings/rtc/emmicro,em3027.yaml | 38 +++++++++++++++++++
> 1 file changed, 38 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/rtc/emmicro,em3027.yaml
>
> diff --git a/Documentation/devicetree/bindings/rtc/emmicro,em3027.yaml b/Documentation/devicetree/bindings/rtc/emmicro,em3027.yaml
> new file mode 100644
> index 000000000000..abed14c4fcd5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/emmicro,em3027.yaml
> @@ -0,0 +1,38 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/rtc/emmicro,em3027.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: EM Microelectronic EM3027 RTC Device Tree Bindings
> +
> +maintainers:
> + - Alexandre Belloni <alexandre.belloni@bootlin.com>
> +
> +properties:
> + compatible:
> + const: emmicro,em3027
> +
> + reg:
> + maxItems: 1
> +
> +allOf:
> + - $ref: "rtc.yaml#"
> +
> +additionalProperties: false
> +
If there are no further properties, maybe trivial-rtc.yaml?
> +required:
> + - compatible
> + - reg
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + rtc@56 {
> + compatible = "emmicro,em3027";
> + reg = <0x56>;
> + };
> + };
> --
> 2.34.1
>
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2021-12-17 17:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-17 17:03 [PATCH 1/2] dt-bindings: rtc: ds1307: Convert to json-schema Thierry Reding
2021-12-17 17:03 ` [PATCH 2/2] dt-bindings: rtc: Add EM Microelectronic EM3027 bindings Thierry Reding
2021-12-17 17:07 ` Alexandre Belloni [this message]
2021-12-18 18:08 ` [PATCH 1/2] dt-bindings: rtc: ds1307: Convert to json-schema Rob Herring
2022-01-04 19:22 ` Rob Herring
2022-06-10 23:09 ` Rob Herring
2022-06-16 15:44 ` Thierry Reding
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=YbzD199oQobS6ZaD@piout.net \
--to=alexandre.belloni@bootlin.com \
--cc=a.zummo@towertech.it \
--cc=devicetree@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=thierry.reding@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 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.