Skip to contentSkip to conversation

dt-bindings: serial: Convert socionext,milbeaut-usio-uart to DT schema

PATCH Superseded Rob Herring (Arm) 2 participants 3 messages May 6, 2025 – May 7, 2025

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: serial: Convert socionext,milbeaut-usio-uart to DT schema

Convert the Socionext Milbeaut UART binding to DT schema. It is a straight-forward conversion.

---
 .../bindings/serial/milbeaut-uart.txt         | 21 -------
 .../serial/socionext,milbeaut-usio-uart.yaml  | 56 +++++++++++++++++++
 2 files changed, 56 insertions(+), 21 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/serial/milbeaut-uart.txt
 create mode 100644 Documentation/devicetree/bindings/serial/socionext,milbeaut-usio-uart.yaml
Documentation/devicetree/bindings/serial/milbeaut-uart.txt deleted +0 -21
deleted file mode 100644
index 3d2fb1a7ba94..000000000000
@@ -1,21 +0,0 @@
-Socionext Milbeaut UART controller
-
-Required properties:
-- compatible: should be "socionext,milbeaut-usio-uart".
-- reg: offset and length of the register set for the device.
-- interrupts: two interrupts specifier.
-- interrupt-names: should be "rx", "tx".
-- clocks: phandle to the input clock.
-
-Optional properties:
-- auto-flow-control: flow control enable.
-
-Example:
-	usio1: usio_uart@1e700010 {
-		compatible = "socionext,milbeaut-usio-uart";
-		reg = <0x1e700010 0x10>;
-		interrupts = <0 141 0x4>, <0 149 0x4>;
-		interrupt-names = "rx", "tx";
-		clocks = <&clk 2>;
-		auto-flow-control;
-	};
Documentation/devicetree/bindings/serial/socionext,milbeaut-usio-uart.yaml new file +56 -0

56 lines not on this page · raw message

Signature · 1 line
2.47.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Rob Herring (Arm)

Convert the Socionext Milbeaut UART binding to DT schema. It is a straight-forward conversion.

---
 .../bindings/serial/milbeaut-uart.txt         | 21 -------
 .../serial/socionext,milbeaut-usio-uart.yaml  | 56 +++++++++++++++++++
 2 files changed, 56 insertions(+), 21 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/serial/milbeaut-uart.txt
 create mode 100644 Documentation/devicetree/bindings/serial/socionext,milbeaut-usio-uart.yaml
author maintainer
#2 lore raw
In reply to Rob Herring (Arm)
Quoted 45 lines · Rob Herring (Arm)

Convert the Socionext Milbeaut UART binding to DT schema. It is a straight-forward conversion.

---
 .../bindings/serial/milbeaut-uart.txt         | 21 -------
 .../serial/socionext,milbeaut-usio-uart.yaml  | 56 +++++++++++++++++++
 2 files changed, 56 insertions(+), 21 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/serial/milbeaut-uart.txt
 create mode 100644 Documentation/devicetree/bindings/serial/socionext,milbeaut-usio-uart.yaml
Documentation/devicetree/bindings/serial/milbeaut-uart.txt deleted +0 -21
deleted file mode 100644
index 3d2fb1a7ba94..000000000000
@@ -1,21 +0,0 @@
-Socionext Milbeaut UART controller
-
-Required properties:
-- compatible: should be "socionext,milbeaut-usio-uart".
-- reg: offset and length of the register set for the device.
-- interrupts: two interrupts specifier.
-- interrupt-names: should be "rx", "tx".
-- clocks: phandle to the input clock.
-
-Optional properties:
-- auto-flow-control: flow control enable.
-
-Example:
-       usio1: usio_uart@1e700010 {
-               compatible = "socionext,milbeaut-usio-uart";
-               reg = <0x1e700010 0x10>;
-               interrupts = <0 141 0x4>, <0 149 0x4>;
-               interrupt-names = "rx", "tx";
-               clocks = <&clk 2>;
-               auto-flow-control;
-       };
Documentation/devicetree/bindings/serial/socionext,milbeaut-usio-uart.yaml new file +0 -0
new file mode 100644
index 000000000000..37db6459b67a

Documentation/devicetree/bindings/serial/socionext,milbeaut-usio-uart.yaml line 4

Quoted 4 lines
Documentation/devicetree/bindings/serial/socionext,milbeaut-usio-uart.yaml new file +4 -0
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/socionext,milbeaut-usio-uart.yaml#

This is missing 'serial' in the path, so a v2 is coming.

The tooling didn't catch this as it doesn't know what the root directory (bindings) is until a reference is used and the reference checking happened to miss this case. I've now fixed that.

Rob