devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Gregory Clement <gregory.clement@bootlin.com>,
	arm-soc <arm@kernel.org>,
	Device Tree <devicetree@vger.kernel.org>
Subject: Re: [PATCH 01/11] DT: RTC: orion-rtc: Convert to YAML
Date: Mon, 22 Aug 2022 15:49:45 -0500	[thread overview]
Message-ID: <20220822204945.GA808626-robh@kernel.org> (raw)
In-Reply-To: <20220820194804.3352415-2-andrew@lunn.ch>

On Sat, Aug 20, 2022 at 09:47:54PM +0200, Andrew Lunn wrote:
> Covert the text description to YAML. The clock is optional, Orion5x
> based boards don't have it, but kirkwood should.
> 
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> ---
>  .../bindings/rtc/marvell,orion-rtc.yaml       | 48 +++++++++++++++++++
>  .../devicetree/bindings/rtc/orion-rtc.txt     | 18 -------
>  2 files changed, 48 insertions(+), 18 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/rtc/marvell,orion-rtc.yaml
>  delete mode 100644 Documentation/devicetree/bindings/rtc/orion-rtc.txt
> 
> diff --git a/Documentation/devicetree/bindings/rtc/marvell,orion-rtc.yaml b/Documentation/devicetree/bindings/rtc/marvell,orion-rtc.yaml
> new file mode 100644
> index 000000000000..d240e67a4555
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/marvell,orion-rtc.yaml
> @@ -0,0 +1,48 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/rtc/marvell,orion-rtc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MVEBU Orion RTC Device Tree Bindings

Drop 'Device Tree Bindings'

Same on the rest.

> +
> +allOf:
> +  - $ref: "rtc.yaml#"
> +
> +maintainers:
> +  - Andrew Lunn <andrew@lunn.ch>
> +
> +properties:
> +  compatible:
> +    oneOf:
> +      - enum:
> +          - marvell,orion-rtc
> +      - items:
> +          - enum:
> +              - marvell,kirkwood-rtc
> +          - const: marvell,orion-rtc
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  clocks:
> +    maxItems: 1
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    rtc@10300 {
> +        compatible = "marvell,orion-rtc";
> +        reg = <0xd0010300 0x20>;
> +        interrupts = <50>;
> +    };
> +...
> diff --git a/Documentation/devicetree/bindings/rtc/orion-rtc.txt b/Documentation/devicetree/bindings/rtc/orion-rtc.txt
> deleted file mode 100644
> index 3bf63ffa5160..000000000000
> --- a/Documentation/devicetree/bindings/rtc/orion-rtc.txt
> +++ /dev/null
> @@ -1,18 +0,0 @@
> -* Mvebu Real Time Clock
> -
> -RTC controller for the Kirkwood, the Dove, the Armada 370 and the
> -Armada XP SoCs
> -
> -Required properties:
> -- compatible : Should be "marvell,orion-rtc"
> -- reg: physical base address of the controller and length of memory mapped
> -  region.
> -- interrupts: IRQ line for the RTC.
> -
> -Example:
> -
> -rtc@10300 {
> -        compatible = "marvell,orion-rtc";
> -        reg = <0xd0010300 0x20>;
> -        interrupts = <50>;
> -};
> -- 
> 2.37.2
> 
> 

  reply	other threads:[~2022-08-22 20:49 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-20 19:47 [PATCH 00/11] Start converting MVEBU bindings to YAML Andrew Lunn
2022-08-20 19:47 ` [PATCH 01/11] DT: RTC: orion-rtc: Convert " Andrew Lunn
2022-08-22 20:49   ` Rob Herring [this message]
2022-08-22 20:55   ` Rob Herring
2022-08-20 19:47 ` [PATCH 02/11] DT: thermal: marvell,kirkwood-thermal: " Andrew Lunn
2022-08-20 19:47 ` [PATCH 03/11] DT: pinctrl: Convert marvell,kirkwood-pintctrl " Andrew Lunn
2022-08-22 21:16   ` Rob Herring
2022-08-20 19:47 ` [PATCH 04/11] DT: USB: Convert ehci-orion " Andrew Lunn
2022-08-21 20:21   ` Rob Herring
2022-08-20 19:47 ` [PATCH 05/11] DT: watchdog: Convert marvel.txt " Andrew Lunn
2022-08-21 20:21   ` Rob Herring
2022-08-22  0:20     ` Andrew Lunn
2022-08-22 13:47       ` Rob Herring
2022-08-20 19:47 ` [PATCH 06/11] arm: DT: kirkwood/orion5: Rename watchdog node Andrew Lunn
2022-08-20 19:48 ` [PATCH 07/11] DT: nand-controller: Reflect reality of marvell,orion-nand Andrew Lunn
2022-08-21 20:21   ` Rob Herring
2022-08-20 19:48 ` [PATCH 08/11] DT: mtd: Convert orion-nand to YAML Andrew Lunn
2022-08-21 20:21   ` Rob Herring
2022-08-22  0:48     ` Andrew Lunn
2022-08-22 13:43       ` Rob Herring
2022-08-20 19:48 ` [PATCH 09/11] arm: DT: kirkwood.dtsi: Rename nand to nand-controller Andrew Lunn
2022-08-20 19:48 ` [PATCH 10/11] DT: timer: Convert marvell,orion-timer.txt to YAML Andrew Lunn
2022-08-20 19:48 ` [PATCH 11/11] DT: clock: Convert mvebu-gated-clock.txt " Andrew Lunn
2022-08-22 13:49 ` [PATCH 00/11] Start converting MVEBU bindings " Rob Herring
2022-08-22 13:53 ` Rob Herring
2022-08-22 14:28   ` Andrew Lunn
2022-08-30 18:58     ` Rob Herring

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=20220822204945.GA808626-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=arm@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregory.clement@bootlin.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).