public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: Vineet Gupta <vgupta@kernel.org>
To: "Rob Herring (Arm)" <robh@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jirislaby@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Vineet Gupta <vgupta@kernel.org>
Cc: Thierry Reding <treding@nvidia.com>,
	linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH v2] dt-bindings: serial: Convert snps,arc-uart to DT schema
Date: Sat, 24 May 2025 19:46:06 -0700	[thread overview]
Message-ID: <68eeeb84-5df1-4647-b247-6fdf87658c5a@kernel.org> (raw)
In-Reply-To: <20250507154909.1602497-1-robh@kernel.org>

On 5/7/25 08:49, Rob Herring (Arm) wrote:
> Convert the Synopsys ARC UART binding to DT schema. Drop the "aliases"
> portion which is not relevant to this schema.
>
> Reviewed-by: Thierry Reding <treding@nvidia.com>
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

Acked-by: Vineet Gupta <vgupta@kernel.org>

Thx,
-Vineet

> ---
> v2:
>  - Fix $id path
> ---
>  .../devicetree/bindings/serial/arc-uart.txt   | 25 ---------
>  .../bindings/serial/snps,arc-uart.yaml        | 51 +++++++++++++++++++
>  2 files changed, 51 insertions(+), 25 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/serial/arc-uart.txt
>  create mode 100644 Documentation/devicetree/bindings/serial/snps,arc-uart.yaml
>
> diff --git a/Documentation/devicetree/bindings/serial/arc-uart.txt b/Documentation/devicetree/bindings/serial/arc-uart.txt
> deleted file mode 100644
> index 256cc150ca7e..000000000000
> --- a/Documentation/devicetree/bindings/serial/arc-uart.txt
> +++ /dev/null
> @@ -1,25 +0,0 @@
> -* Synopsys ARC UART : Non standard UART used in some of the ARC FPGA boards
> -
> -Required properties:
> -- compatible		: "snps,arc-uart"
> -- reg			: offset and length of the register set for the device.
> -- interrupts		: device interrupt
> -- clock-frequency	: the input clock frequency for the UART
> -- current-speed		: baud rate for UART
> -
> -e.g.
> -
> -arcuart0: serial@c0fc1000 {
> -	compatible = "snps,arc-uart";
> -	reg = <0xc0fc1000 0x100>;
> -	interrupts = <5>;
> -	clock-frequency = <80000000>;
> -	current-speed = <115200>;
> -};
> -
> -Note: Each port should have an alias correctly numbered in "aliases" node.
> -
> -e.g.
> -aliases {
> -	serial0 = &arcuart0;
> -};
> diff --git a/Documentation/devicetree/bindings/serial/snps,arc-uart.yaml b/Documentation/devicetree/bindings/serial/snps,arc-uart.yaml
> new file mode 100644
> index 000000000000..dd3096fbfb6a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/serial/snps,arc-uart.yaml
> @@ -0,0 +1,51 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/serial/snps,arc-uart.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Synopsys ARC UART
> +
> +maintainers:
> +  - Vineet Gupta <vgupta@kernel.org>
> +
> +description:
> +  Synopsys ARC UART is a non-standard UART used in some of the ARC FPGA boards.
> +
> +allOf:
> +  - $ref: /schemas/serial/serial.yaml#
> +
> +properties:
> +  compatible:
> +    const: snps,arc-uart
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  clock-frequency:
> +    description: the input clock frequency for the UART
> +
> +  current-speed:
> +    description: baud rate for UART
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - clock-frequency
> +  - current-speed
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    serial@c0fc1000 {
> +        compatible = "snps,arc-uart";
> +        reg = <0xc0fc1000 0x100>;
> +        interrupts = <5>;
> +        clock-frequency = <80000000>;
> +        current-speed = <115200>;
> +    };


      reply	other threads:[~2025-05-25  2:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-07 15:49 [PATCH v2] dt-bindings: serial: Convert snps,arc-uart to DT schema Rob Herring (Arm)
2025-05-25  2:46 ` Vineet Gupta [this message]

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=68eeeb84-5df1-4647-b247-6fdf87658c5a@kernel.org \
    --to=vgupta@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=treding@nvidia.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