* [PATCH] dt-bindings: serial: Convert UniPhier UART to json-schema
@ 2020-02-21 2:11 Masahiro Yamada
2020-02-26 16:45 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2020-02-21 2:11 UTC (permalink / raw)
To: devicetree, Rob Herring
Cc: Mark Rutland, Greg Kroah-Hartman, linux-kernel, Masahiro Yamada,
linux-serial, Frank Rowand, linux-arm-kernel
Convert the UniPhier UART binding to DT schema format.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
.../serial/socionext,uniphier-uart.yaml | 46 +++++++++++++++++++
.../bindings/serial/uniphier-uart.txt | 22 ---------
2 files changed, 46 insertions(+), 22 deletions(-)
create mode 100644 Documentation/devicetree/bindings/serial/socionext,uniphier-uart.yaml
delete mode 100644 Documentation/devicetree/bindings/serial/uniphier-uart.txt
diff --git a/Documentation/devicetree/bindings/serial/socionext,uniphier-uart.yaml b/Documentation/devicetree/bindings/serial/socionext,uniphier-uart.yaml
new file mode 100644
index 000000000000..09a30300850c
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/socionext,uniphier-uart.yaml
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/serial/socionext,uniphier-uart.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: UniPhier UART controller
+
+maintainers:
+ - Masahiro Yamada <yamada.masahiro@socionext.com>
+
+properties:
+ compatible:
+ const: socionext,uniphier-uart
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ minItems: 1
+
+ auto-flow-control:
+ description: enable automatic flow control support.
+ $ref: /schemas/types.yaml#/definitions/flag
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+examples:
+ - |
+ aliases {
+ serial0 = &serial0;
+ };
+
+ serial0: serial@54006800 {
+ compatible = "socionext,uniphier-uart";
+ reg = <0x54006800 0x40>;
+ interrupts = <0 33 4>;
+ clocks = <&uart_clk>;
+ };
diff --git a/Documentation/devicetree/bindings/serial/uniphier-uart.txt b/Documentation/devicetree/bindings/serial/uniphier-uart.txt
deleted file mode 100644
index 7a1bf02bb869..000000000000
--- a/Documentation/devicetree/bindings/serial/uniphier-uart.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-UniPhier UART controller
-
-Required properties:
-- compatible: should be "socionext,uniphier-uart".
-- reg: offset and length of the register set for the device.
-- interrupts: a single interrupt specifier.
-- clocks: phandle to the input clock.
-
-Optional properties:
--auto-flow-control: enable automatic flow control support.
-
-Example:
- aliases {
- serial0 = &serial0;
- };
-
- serial0: serial@54006800 {
- compatible = "socionext,uniphier-uart";
- reg = <0x54006800 0x40>;
- interrupts = <0 33 4>;
- clocks = <&uart_clk>;
- };
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] dt-bindings: serial: Convert UniPhier UART to json-schema
2020-02-21 2:11 [PATCH] dt-bindings: serial: Convert UniPhier UART to json-schema Masahiro Yamada
@ 2020-02-26 16:45 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2020-02-26 16:45 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Mark Rutland, devicetree, Greg Kroah-Hartman, linux-kernel,
Masahiro Yamada, linux-serial, Frank Rowand, linux-arm-kernel
On Fri, 21 Feb 2020 11:11:36 +0900, Masahiro Yamada wrote:
> Convert the UniPhier UART binding to DT schema format.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
> .../serial/socionext,uniphier-uart.yaml | 46 +++++++++++++++++++
> .../bindings/serial/uniphier-uart.txt | 22 ---------
> 2 files changed, 46 insertions(+), 22 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/serial/socionext,uniphier-uart.yaml
> delete mode 100644 Documentation/devicetree/bindings/serial/uniphier-uart.txt
>
Applied, thanks.
Rob
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-26 16:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-21 2:11 [PATCH] dt-bindings: serial: Convert UniPhier UART to json-schema Masahiro Yamada
2020-02-26 16:45 ` Rob Herring
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).