devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: "Rob Herring (Arm)" <robh@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	 Jiri Slaby <jirislaby@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	 linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
	 devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] dt-bindings: serial: Convert cnxt,cx92755-usart to DT schema
Date: Wed, 07 May 2025 06:43:30 +0300	[thread overview]
Message-ID: <878qn9ytjx.fsf@tarshish> (raw)
In-Reply-To: <20250506220025.2545995-1-robh@kernel.org> (Rob Herring's message of "Tue, 6 May 2025 17:00:24 -0500")

Hi Rob,

On Tue, May 06 2025, Rob Herring (Arm) wrote:

> Convert the Conexant Digicolor USART binding to DT schema. It is a
> straight-forward conversion.
>
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

Acked-by: Baruch Siach <baruch@tkos.co.il>

Thanks,
baruch

> ---
>  .../bindings/serial/cnxt,cx92755-usart.yaml   | 48 +++++++++++++++++++
>  .../bindings/serial/digicolor-usart.txt       | 27 -----------
>  2 files changed, 48 insertions(+), 27 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/serial/cnxt,cx92755-usart.yaml
>  delete mode 100644 Documentation/devicetree/bindings/serial/digicolor-usart.txt
>
> diff --git a/Documentation/devicetree/bindings/serial/cnxt,cx92755-usart.yaml
> b/Documentation/devicetree/bindings/serial/cnxt,cx92755-usart.yaml
> new file mode 100644
> index 000000000000..720229455330
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/serial/cnxt,cx92755-usart.yaml
> @@ -0,0 +1,48 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/serial/cnxt,cx92755-usart.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Conexant Digicolor USART
> +
> +maintainers:
> +  - Baruch Siach <baruch@tkos.co.il>
> +
> +description: >
> +  Note: this binding is only applicable for using the USART peripheral as UART.
> +  USART also support synchronous serial protocols like SPI and I2S.
> +  Use the binding that matches the wiring of your system.
> +
> +allOf:
> +  - $ref: /schemas/serial/serial.yaml#
> +
> +properties:
> +  compatible:
> +    const: cnxt,cx92755-usart
> +
> +  reg:
> +    maxItems: 1
> +
> +  clocks:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +required:
> +  - compatible
> +  - reg
> +  - clocks
> +  - interrupts
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    serial@f0000740 {
> +        compatible = "cnxt,cx92755-usart";
> +        reg = <0xf0000740 0x20>;
> +        clocks = <&main_clk>;
> +        interrupts = <44>;
> +    };
> diff --git a/Documentation/devicetree/bindings/serial/digicolor-usart.txt
> b/Documentation/devicetree/bindings/serial/digicolor-usart.txt
> deleted file mode 100644
> index 2d3ede66889d..000000000000
> --- a/Documentation/devicetree/bindings/serial/digicolor-usart.txt
> +++ /dev/null
> @@ -1,27 +0,0 @@
> -Binding for Conexant Digicolor USART
> -
> -Note: this binding is only applicable for using the USART peripheral as
> -UART. USART also support synchronous serial protocols like SPI and I2S. Use
> -the binding that matches the wiring of your system.
> -
> -Required properties:
> -- compatible : should be "cnxt,cx92755-usart".
> -- reg: Should contain USART controller registers location and length.
> -- interrupts: Should contain a single USART controller interrupt.
> -- clocks: Must contain phandles to the USART clock
> -  See ../clocks/clock-bindings.txt for details.
> -
> -Note: Each UART port should have an alias correctly numbered
> -in "aliases" node.
> -
> -Example:
> -	aliases {
> -		serial0 = &uart0;
> -	};
> -
> -	uart0: uart@f0000740 {
> -		compatible = "cnxt,cx92755-usart";
> -		reg = <0xf0000740 0x20>;
> -		clocks = <&main_clk>;
> -		interrupts = <44>;
> -	};

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

      reply	other threads:[~2025-05-07  3:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-06 22:00 [PATCH] dt-bindings: serial: Convert cnxt,cx92755-usart to DT schema Rob Herring (Arm)
2025-05-07  3:43 ` Baruch Siach [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=878qn9ytjx.fsf@tarshish \
    --to=baruch@tkos.co.il \
    --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-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=robh@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).