]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: display: imx: convert fsl,dcu.txt to yaml format
authorFrank Li <Frank.Li@nxp.com>
Mon, 16 Jun 2025 18:24:38 +0000 (14:24 -0400)
committerRob Herring (Arm) <robh@kernel.org>
Wed, 23 Jul 2025 04:12:28 +0000 (23:12 -0500)
Convert fsl,dcu.txt to yaml format.

Additional changes:
- remove label in example.
- change node to display-controller in example.
- use 32bit address in example.
- add interrupts property.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Link: https://lore.kernel.org/r/20250616182439.1989840-1-Frank.Li@nxp.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/bindings/display/fsl,dcu.txt [deleted file]
Documentation/devicetree/bindings/display/fsl,ls1021a-dcu.yaml [new file with mode: 0644]
MAINTAINERS

diff --git a/Documentation/devicetree/bindings/display/fsl,dcu.txt b/Documentation/devicetree/bindings/display/fsl,dcu.txt
deleted file mode 100644 (file)
index 63ec2a6..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-Device Tree bindings for Freescale DCU DRM Driver
-
-Required properties:
-- compatible:          Should be one of
-       * "fsl,ls1021a-dcu".
-       * "fsl,vf610-dcu".
-
-- reg:                 Address and length of the register set for dcu.
-- clocks:              Handle to "dcu" and "pix" clock (in the order below)
-                       This can be the same clock (e.g. LS1021a)
-                       See ../clocks/clock-bindings.txt for details.
-- clock-names:         Should be "dcu" and "pix"
-                       See ../clocks/clock-bindings.txt for details.
-- big-endian           Boolean property, LS1021A DCU registers are big-endian.
-- port                 Video port for the panel output
-
-Optional properties:
-- fsl,tcon:            The phandle to the timing controller node.
-
-Examples:
-dcu: dcu@2ce0000 {
-       compatible = "fsl,ls1021a-dcu";
-       reg = <0x0 0x2ce0000 0x0 0x10000>;
-       clocks = <&platform_clk 0>, <&platform_clk 0>;
-       clock-names = "dcu", "pix";
-       big-endian;
-       fsl,tcon = <&tcon>;
-
-       port {
-               dcu_out: endpoint {
-                       remote-endpoint = <&panel_out>;
-            };
-       };
-};
diff --git a/Documentation/devicetree/bindings/display/fsl,ls1021a-dcu.yaml b/Documentation/devicetree/bindings/display/fsl,ls1021a-dcu.yaml
new file mode 100644 (file)
index 0000000..72d14ba
--- /dev/null
@@ -0,0 +1,71 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/fsl,ls1021a-dcu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Freescale DCU DRM Driver
+
+maintainers:
+  - Frank Li <Frank.Li@nxp.com>
+
+properties:
+  compatible:
+    enum:
+      - fsl,ls1021a-dcu
+      - fsl,vf610-dcu
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 2
+
+  clock-names:
+    items:
+      - const: dcu
+      - const: pix
+
+  big-endian: true
+
+  port:
+    $ref: /schemas/graph.yaml#/$defs/port-base
+    unevaluatedProperties: false
+    description: Video port for the panel output
+
+    properties:
+      endpoint:
+        $ref: /schemas/media/video-interfaces.yaml#
+        unevaluatedProperties: false
+
+  fsl,tcon:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description: The phandle to the timing controller node.
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - clock-names
+
+additionalProperties: false
+
+examples:
+  - |
+    display-controller@2ce0000 {
+        compatible = "fsl,ls1021a-dcu";
+        reg = <0x2ce0000 0x10000>;
+        clocks = <&platform_clk 0>, <&platform_clk 0>;
+        clock-names = "dcu", "pix";
+        big-endian;
+        fsl,tcon = <&tcon>;
+
+        port {
+            endpoint {
+                remote-endpoint = <&panel_out>;
+            };
+        };
+    };
index 98229b793161e1cb384e3eb05351804f2fc3aa89..1040202b00e377d31e466af685f28d0dcaea1821 100644 (file)
@@ -8049,7 +8049,7 @@ M:        Alison Wang <alison.wang@nxp.com>
 L:     dri-devel@lists.freedesktop.org
 S:     Supported
 T:     git https://gitlab.freedesktop.org/drm/misc/kernel.git
-F:     Documentation/devicetree/bindings/display/fsl,dcu.txt
+F:     Documentation/devicetree/bindings/display/fsl,ls1021a-dcu.yaml
 F:     Documentation/devicetree/bindings/display/fsl,vf610-tcon.yaml
 F:     drivers/gpu/drm/fsl-dcu/