Skip to contentSkip to conversation

dt-bindings: serial: Convert arm,sbsa-uart to DT schema

PATCH In review Rob Herring (Arm) 3 participants 4 messages May 6, 2025 – May 7, 2025

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: serial: Convert arm,sbsa-uart to DT schema

Convert the Arm SBSA UART binding to DT schema. It is a straight-forward conversion.

---
 .../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
Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml new file +38 -0
new file mode 100644
index 000000000000..68e3fd64b1d8
@@ -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 <[email protected]>
+
+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
+  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
Documentation/devicetree/bindings/serial/arm_sbsa_uart.txt deleted +0 -10
deleted file mode 100644
index 4163e7eb7763..000000000000
@@ -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
Signature · 1 line
2.47.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Rob Herring (Arm)

Convert the Arm SBSA UART binding to DT schema. It is a straight-forward conversion.

---
 .../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
Reviewed-by on v1 1/1
#2 lore raw
In reply to Rob Herring (Arm)
Quoted 21 lines · On Tue, 6 May 2025 17:00:15 -0500 "Rob Herring (Arm)" <[email protected]> wrote:

Convert the Arm SBSA UART binding to DT schema. It is a straight-forward conversion.

---
 .../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
Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml new file +3 -0
new file mode 100644
index 000000000000..68e3fd64b1d8
@@ -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#

Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml line 13

Quoted 10 lines
Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml new file +10 -0
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARM SBSA UART
+
+maintainers:
+  - Andre Przywara <[email protected]>
+
+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:

Cheers,
Andre

Quoted 41 lines
Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml new file +25 -0
+  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
Documentation/devicetree/bindings/serial/arm_sbsa_uart.txt deleted +0 -10
deleted file mode 100644
index 4163e7eb7763..000000000000
@@ -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
author maintainer
#3 lore raw
Quoted 31 lines · Andre Przywara
Quoted 27 lines · On Tue, 6 May 2025 17:00:15 -0500 "Rob Herring (Arm)" <[email protected]> wrote:

Convert the Arm SBSA UART binding to DT schema. It is a straight-forward conversion.

---
 .../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
Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml new file +9 -0
new file mode 100644
index 000000000000..68e3fd64b1d8
@@ -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 <[email protected]>
Quoted 8 lines

Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml line 13

Quoted 4 lines
Documentation/devicetree/bindings/serial/arm,sbsa-uart.yaml new file +4 -0
+
+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.

I know that's 'the rule', but I kind of think that's relevant in this case. If we're looking for improvements, defining SBSA here might be the place to start... But I'm not really as this is 1 of 1100 remaining I've had chatgpt to convert and then I fix all the issues.

Rob