Re: [PATCH v2 05/36] dt-bindings: display: convert arm,versatile-tft-panel to DT Schema

2020-04-16 Thread Linus Walleij
On Wed, Apr 8, 2020 at 9:51 PM Sam Ravnborg  wrote:

> v2:
>   - Fix entry in MAINTAINERS
>
> Signed-off-by: Sam Ravnborg 
> Cc: Linus Walleij 
> Cc: Thierry Reding 
> Cc: Sam Ravnborg 

Reviewed-by: Linus Walleij 

Yours,
Linus Walleij
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2 05/36] dt-bindings: display: convert arm,versatile-tft-panel to DT Schema

2020-04-14 Thread Rob Herring
On Wed,  8 Apr 2020 21:50:38 +0200, Sam Ravnborg wrote:
> v2:
>   - Fix entry in MAINTAINERS
> 
> Signed-off-by: Sam Ravnborg 
> Cc: Linus Walleij 
> Cc: Thierry Reding 
> Cc: Sam Ravnborg 
> ---
>  .../display/panel/arm,versatile-tft-panel.txt | 31 ---
>  .../panel/arm,versatile-tft-panel.yaml| 51 +++
>  MAINTAINERS   |  2 +-
>  3 files changed, 52 insertions(+), 32 deletions(-)
>  delete mode 100644 
> Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt
>  create mode 100644 
> Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml
> 

Reviewed-by: Rob Herring 
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH v2 05/36] dt-bindings: display: convert arm, versatile-tft-panel to DT Schema

2020-04-08 Thread Sam Ravnborg
v2:
  - Fix entry in MAINTAINERS

Signed-off-by: Sam Ravnborg 
Cc: Linus Walleij 
Cc: Thierry Reding 
Cc: Sam Ravnborg 
---
 .../display/panel/arm,versatile-tft-panel.txt | 31 ---
 .../panel/arm,versatile-tft-panel.yaml| 51 +++
 MAINTAINERS   |  2 +-
 3 files changed, 52 insertions(+), 32 deletions(-)
 delete mode 100644 
Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt
 create mode 100644 
Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml

diff --git 
a/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt 
b/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt
deleted file mode 100644
index 0601a9e34703..
--- 
a/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-ARM Versatile TFT Panels
-
-These panels are connected to the daughterboards found on the
-ARM Versatile reference designs.
-
-This device node must appear as a child to a "syscon"-compatible
-node.
-
-Required properties:
-- compatible: should be "arm,versatile-tft-panel"
-
-Required subnodes:
-- port: see display/panel/panel-common.yaml, graph.txt
-
-
-Example:
-
-sysreg@0 {
-   compatible = "arm,versatile-sysreg", "syscon", "simple-mfd";
-   reg = <0x0 0x1000>;
-
-   panel: display@0 {
-   compatible = "arm,versatile-tft-panel";
-
-   port {
-   panel_in: endpoint {
-   remote-endpoint = <&foo>;
-   };
-   };
-   };
-};
diff --git 
a/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml 
b/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml
new file mode 100644
index ..68cfdb90f54b
--- /dev/null
+++ 
b/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/arm,versatile-tft-panel.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARM Versatile TFT Panels
+
+maintainers:
+  - Linus Walleij 
+
+description: |
+  These panels are connected to the daughterboards found on the
+  ARM Versatile reference designs.
+
+  This device node must appear as a child to a "syscon"-compatible
+  node.
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+const: arm,versatile-tft-panel
+
+  port: true
+
+required:
+  - compatible
+  - port
+
+additionalProperties: false
+
+examples:
+  - |
+sysreg {
+compatible = "arm,versatile-sysreg", "syscon", "simple-mfd";
+reg = <0x0 0x1000>;
+
+panel {
+compatible = "arm,versatile-tft-panel";
+
+port {
+panel_in: endpoint {
+remote-endpoint = <&foo>;
+};
+};
+};
+};
+
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index 50b068f3580a..2b99fa16ba08 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -5229,7 +5229,7 @@ M:Linus Walleij 
 T: git git://anongit.freedesktop.org/drm/drm-misc
 S: Maintained
 F: drivers/gpu/drm/panel/panel-arm-versatile.c
-F: 
Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt
+F: 
Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml
 
 DRM DRIVER FOR AST SERVER GRAPHICS CHIPS
 M: Dave Airlie 
-- 
2.20.1

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel