From: Andre Przywara <andre.przywara@arm.com>
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
Subject: Re: [PATCH] dt-bindings: serial: Convert arm,sbsa-uart to DT schema
Date: Wed, 7 May 2025 16:54:47 +0100 [thread overview]
Message-ID: <20250507165447.7e340d47@donnerap.manchester.arm.com> (raw)
In-Reply-To: <20250506220016.2545637-1-robh@kernel.org>
On Tue, 6 May 2025 17:00:15 -0500
"Rob Herring (Arm)" <robh@kernel.org> wrote:
> Convert the Arm SBSA UART binding to DT schema. It is a straight-forward
> conversion.
>
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
>
> ---
> .../bindings/serial/arm,sbsa-uart.yaml | 38 +++++++++++++++++++
> .../bindings/serial/arm_sbsa_uart.txt | 10 -----
> 2 files changed, 38 insertions(+), 10 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml
> delete mode 100644 Documentation/devicetree/bindings/serial/arm_sbsa_uart.txt
>
> diff --git a/Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml b/Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml
> new file mode 100644
> index 000000000000..68e3fd64b1d8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml
> @@ -0,0 +1,38 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +---
> +$id: http://devicetree.org/schemas/serial/arm,sbsa-uart.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ARM SBSA UART
> +
> +maintainers:
> + - Andre Przywara <andre.przywara@arm.com>
> +
> +description:
> + This UART uses a subset of the PL011 registers and consequently lives in the
> + PL011 driver. It's baudrate and other communication parameters cannot be
He said "driver" in a binding document!! ;-) I think you can remove that
part, or maybe rephrase it to say it could be supported by the same driver
that supports a PL011.
Other than that it looks alright, thanks for the conversion!
With that fixed:
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Cheers,
Andre
> + adjusted at runtime, so it lacks a clock specifier here.
> +
> +allOf:
> + - $ref: /schemas/serial/serial.yaml#
> +
> +properties:
> + compatible:
> + const: arm,sbsa-uart
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + current-speed:
> + description: fixed baud rate set by the firmware
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - current-speed
> +
> +unevaluatedProperties: false
> diff --git a/Documentation/devicetree/bindings/serial/arm_sbsa_uart.txt b/Documentation/devicetree/bindings/serial/arm_sbsa_uart.txt
> deleted file mode 100644
> index 4163e7eb7763..000000000000
> --- a/Documentation/devicetree/bindings/serial/arm_sbsa_uart.txt
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -* ARM SBSA defined generic UART
> -This UART uses a subset of the PL011 registers and consequently lives
> -in the PL011 driver. It's baudrate and other communication parameters
> -cannot be adjusted at runtime, so it lacks a clock specifier here.
> -
> -Required properties:
> -- compatible: must be "arm,sbsa-uart"
> -- reg: exactly one register range
> -- interrupts: exactly one interrupt specifier
> -- current-speed: the (fixed) baud rate set by the firmware
next prev parent reply other threads:[~2025-05-07 15:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-06 22:00 Rob Herring (Arm)
2025-05-07 13:51 ` Thierry Reding
2025-05-07 15:54 ` Andre Przywara [this message]
2025-05-07 16:33 ` 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=20250507165447.7e340d47@donnerap.manchester.arm.com \
--to=andre.przywara@arm.com \
--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 \
/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
all inboxes | Powered by JetHome®