From: Rob Herring <robh@kernel.org>
To: Sean Anderson <sean.anderson@seco.com>
Cc: Peter Korsgaard <peter.korsgaard@barco.com>,
Peter Korsgaard <peter@korsgaard.com>,
linux-serial@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Michal Simek <michal.simek@xilinx.com>,
Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>,
Alexander Sverdlin <alexander.sverdlin@nokia.com>,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 1/4] dt-bindings: serial: uartlite: Convert to json-schema
Date: Mon, 2 Aug 2021 14:57:50 -0600 [thread overview]
Message-ID: <YQhcTmq9NIiOkaMS@robh.at.kernel.org> (raw)
In-Reply-To: <20210727221740.1997731-2-sean.anderson@seco.com>
On Tue, Jul 27, 2021 at 06:17:37PM -0400, Sean Anderson wrote:
> This converts the existing documentation for the uartlite binding to
> json-schema.
>
> Signed-off-by: Sean Anderson <sean.anderson@seco.com>
> ---
>
> (no changes since v1)
>
> .../bindings/serial/xlnx,opb-uartlite.txt | 23 --------
> .../bindings/serial/xlnx,opb-uartlite.yaml | 53 +++++++++++++++++++
> 2 files changed, 53 insertions(+), 23 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.txt
> create mode 100644 Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.yaml
>
> diff --git a/Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.txt b/Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.txt
> deleted file mode 100644
> index c37deb44dead..000000000000
> --- a/Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.txt
> +++ /dev/null
> @@ -1,23 +0,0 @@
> -Xilinx Axi Uartlite controller Device Tree Bindings
> ----------------------------------------------------------
> -
> -Required properties:
> -- compatible : Can be either of
> - "xlnx,xps-uartlite-1.00.a"
> - "xlnx,opb-uartlite-1.00.b"
> -- reg : Physical base address and size of the Axi Uartlite
> - registers map.
> -- interrupts : Should contain the UART controller interrupt.
> -
> -Optional properties:
> -- port-number : Set Uart port number
> -- clock-names : Should be "s_axi_aclk"
> -- clocks : Input clock specifier. Refer to common clock bindings.
> -
> -Example:
> -serial@800c0000 {
> - compatible = "xlnx,xps-uartlite-1.00.a";
> - reg = <0x0 0x800c0000 0x10000>;
> - interrupts = <0x0 0x6e 0x1>;
> - port-number = <0>;
> -};
> diff --git a/Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.yaml b/Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.yaml
> new file mode 100644
> index 000000000000..4ef29784ae97
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.yaml
> @@ -0,0 +1,53 @@
> +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/serial/xlnx,opb-uartlite.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Xilinx Axi Uartlite
> +
> +maintainers:
> + - Peter Korsgaard <jacmet@sunsite.dk>
> +
> +properties:
> + compatible:
> + contains:
> + enum:
> + - xlnx,xps-uartlite-1.00.a
> + - xlnx,opb-uartlite-1.00.b
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + port-number:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Set Uart port number
> +
> + clocks:
> + maxItems: 1
> +
> + clock-names:
> + const: s_axi_aclk
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +allOf:
> + - $ref: /schemas/serial.yaml#
> +
> +additionalProperties: true
unevaluatedProperties: false
With that,
Reviewed-by: Rob Herring <robh@kernel.org>
> +
> +examples:
> + - |
> + serial@800c0000 {
> + compatible = "xlnx,xps-uartlite-1.00.a";
> + reg = <0x800c0000 0x10000>;
> + interrupts = <0x0 0x6e 0x1>;
> + port-number = <0>;
> + };
> +...
> --
> 2.25.1
>
>
next prev parent reply other threads:[~2021-08-02 20:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-27 22:17 [PATCH v2 0/4] tty: serial: uartlite: Disable changing fixed parameters Sean Anderson
2021-07-27 22:17 ` [PATCH v2 1/4] dt-bindings: serial: uartlite: Convert to json-schema Sean Anderson
2021-08-02 20:57 ` Rob Herring [this message]
2021-07-27 22:17 ` [PATCH v2 2/4] dt-bindings: serial: uartlite: Add properties for synthesis-time parameters Sean Anderson
2021-08-02 21:24 ` Rob Herring
2021-08-02 21:50 ` Sean Anderson
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=YQhcTmq9NIiOkaMS@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=alexander.sverdlin@nokia.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-serial@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=peter.korsgaard@barco.com \
--cc=peter@korsgaard.com \
--cc=sean.anderson@seco.com \
--cc=shubhrajyoti.datta@xilinx.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).