dt-bindings: display: Convert sharp, ld-d5116z01b panel to DT schema
authorJeffrey Hugo <jeffrey.l.hugo@gmail.com>
Thu, 10 Oct 2019 21:06:54 +0000 (14:06 -0700)
committerRob Herring <robh@kernel.org>
Tue, 15 Oct 2019 17:29:36 +0000 (12:29 -0500)
Convert the sharp,ld-d5116z01b panel binding to DT schema.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/display/panel/sharp,ld-d5116z01b.txt [deleted file]
Documentation/devicetree/bindings/display/panel/sharp,ld-d5116z01b.yaml [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/display/panel/sharp,ld-d5116z01b.txt b/Documentation/devicetree/bindings/display/panel/sharp,ld-d5116z01b.txt
deleted file mode 100644 (file)
index fd9cf39..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-Sharp LD-D5116Z01B 12.3" WUXGA+ eDP panel
-
-Required properties:
-- compatible: should be "sharp,ld-d5116z01b"
-- power-supply: regulator to provide the VCC supply voltage (3.3 volts)
-
-This binding is compatible with the simple-panel binding.
-
-The device node can contain one 'port' child node with one child
-'endpoint' node, according to the bindings defined in [1]. This
-node should describe panel's video bus.
-
-[1]: Documentation/devicetree/bindings/media/video-interfaces.txt
-
-Example:
-
-       panel: panel {
-               compatible = "sharp,ld-d5116z01b";
-               power-supply = <&vlcd_3v3>;
-
-               port {
-                       panel_ep: endpoint {
-                               remote-endpoint = <&bridge_out_ep>;
-                       };
-               };
-       };
diff --git a/Documentation/devicetree/bindings/display/panel/sharp,ld-d5116z01b.yaml b/Documentation/devicetree/bindings/display/panel/sharp,ld-d5116z01b.yaml
new file mode 100644 (file)
index 0000000..fbb647e
--- /dev/null
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/sharp,ld-d5116z01b.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sharp LD-D5116Z01B 12.3" WUXGA+ eDP panel
+
+maintainers:
+  - Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: sharp,ld-d5116z01b
+
+  power-supply: true
+  backlight: true
+  port: true
+  no-hpd: true
+
+additionalProperties: false
+
+required:
+  - compatible
+  - power-supply
+
+...