LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] dt-bindings: auxdisplay: arm-charlcd: Convert to json-schema
@ 2021-07-27 16:11 Geert Uytterhoeven
  2021-08-02 20:53 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2021-07-27 16:11 UTC (permalink / raw)
  To: Rob Herring, Linus Walleij, Miguel Ojeda
  Cc: linux-arm-kernel, devicetree, linux-kernel, Geert Uytterhoeven

Convert the ARM Versatile Character LCD Device Tree binding documentation
to json-schema.

Correct compatible value.
Document missing properties.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 .../auxdisplay/arm,versatile-lcd.yaml         | 44 +++++++++++++++++++
 .../bindings/auxdisplay/arm-charlcd.txt       | 18 --------
 MAINTAINERS                                   |  2 +-
 3 files changed, 45 insertions(+), 19 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml
 delete mode 100644 Documentation/devicetree/bindings/auxdisplay/arm-charlcd.txt

diff --git a/Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml b/Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml
new file mode 100644
index 0000000000000000..5d02bd032a85fe61
--- /dev/null
+++ b/Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/auxdisplay/arm,versatile-lcd.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARM Versatile Character LCD
+
+maintainers:
+  - Linus Walleij <linus.walleij@linaro.org>
+  - Rob Herring <robh@kernel.org>
+
+description:
+  This binding defines the character LCD interface found on ARM Versatile AB
+  and PB reference platforms.
+
+properties:
+  compatible:
+    const: arm,versatile-lcd
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  clock-names:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    lcd@10008000 {
+            compatible = "arm,versatile-lcd";
+            reg = <0x10008000 0x1000>;
+    };
diff --git a/Documentation/devicetree/bindings/auxdisplay/arm-charlcd.txt b/Documentation/devicetree/bindings/auxdisplay/arm-charlcd.txt
deleted file mode 100644
index e28e2aac47f156c6..0000000000000000
--- a/Documentation/devicetree/bindings/auxdisplay/arm-charlcd.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-ARM Versatile Character LCD
------------------------------------------------------
-This binding defines the character LCD interface found on ARM Versatile AB
-and PB reference platforms.
-
-Required properties:
-- compatible : "arm,versatile-clcd"
-- reg : Location and size of character LCD registers
-
-Optional properties:
-- interrupts - single interrupt for character LCD. The character LCD can
-  operate in polled mode without an interrupt.
-
-Example:
-	lcd@10008000 {
-		compatible = "arm,versatile-lcd";
-		reg = <0x10008000 0x1000>;
-	};
diff --git a/MAINTAINERS b/MAINTAINERS
index a8afc9238fd8e164..25901ecab560e3bf 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1382,7 +1382,7 @@ F:	Documentation/devicetree/bindings/arm/arm,integrator.yaml
 F:	Documentation/devicetree/bindings/arm/arm,realview.yaml
 F:	Documentation/devicetree/bindings/arm/arm,versatile.yaml
 F:	Documentation/devicetree/bindings/arm/arm,vexpress-juno.yaml
-F:	Documentation/devicetree/bindings/auxdisplay/arm-charlcd.txt
+F:	Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml
 F:	Documentation/devicetree/bindings/clock/arm,syscon-icst.yaml
 F:	Documentation/devicetree/bindings/i2c/i2c-versatile.txt
 F:	Documentation/devicetree/bindings/interrupt-controller/arm,versatile-fpga-irq.txt
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] dt-bindings: auxdisplay: arm-charlcd: Convert to json-schema
  2021-07-27 16:11 [PATCH] dt-bindings: auxdisplay: arm-charlcd: Convert to json-schema Geert Uytterhoeven
@ 2021-08-02 20:53 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2021-08-02 20:53 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: linux-kernel, Miguel Ojeda, Rob Herring, linux-arm-kernel,
	Linus Walleij, devicetree

On Tue, 27 Jul 2021 18:11:41 +0200, Geert Uytterhoeven wrote:
> Convert the ARM Versatile Character LCD Device Tree binding documentation
> to json-schema.
> 
> Correct compatible value.
> Document missing properties.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
>  .../auxdisplay/arm,versatile-lcd.yaml         | 44 +++++++++++++++++++
>  .../bindings/auxdisplay/arm-charlcd.txt       | 18 --------
>  MAINTAINERS                                   |  2 +-
>  3 files changed, 45 insertions(+), 19 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml
>  delete mode 100644 Documentation/devicetree/bindings/auxdisplay/arm-charlcd.txt
> 

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-02 20:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 16:11 [PATCH] dt-bindings: auxdisplay: arm-charlcd: Convert to json-schema Geert Uytterhoeven
2021-08-02 20:53 ` 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).