]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dt-bindings: display: imx: convert fsl,tcon.txt to yaml format
authorFrank Li <Frank.Li@nxp.com>
Thu, 17 Apr 2025 15:11:33 +0000 (11:11 -0400)
committerRob Herring (Arm) <robh@kernel.org>
Tue, 22 Apr 2025 14:40:08 +0000 (09:40 -0500)
Convert fsl,tcon.txt to yaml format.

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

diff --git a/Documentation/devicetree/bindings/display/fsl,tcon.txt b/Documentation/devicetree/bindings/display/fsl,tcon.txt
deleted file mode 100644 (file)
index 4750087..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-Device Tree bindings for Freescale TCON Driver
-
-Required properties:
-- compatible:          Should be one of
-       * "fsl,vf610-tcon".
-
-- reg:                 Address and length of the register set for tcon.
-- clocks:              From common clock binding: handle to tcon ipg clock.
-- clock-names:         From common clock binding: Shall be "ipg".
-
-Examples:
-timing-controller@4003d000 {
-       compatible = "fsl,vf610-tcon";
-       reg = <0x4003d000 0x1000>;
-       clocks = <&clks VF610_CLK_TCON0>;
-       clock-names = "ipg";
-};
diff --git a/Documentation/devicetree/bindings/display/fsl,vf610-tcon.yaml b/Documentation/devicetree/bindings/display/fsl,vf610-tcon.yaml
new file mode 100644 (file)
index 0000000..06bd680
--- /dev/null
@@ -0,0 +1,43 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/fsl,vf610-tcon.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Freescale TCON
+
+maintainers:
+  - Frank Li <Frank.Li@nxp.com>
+
+properties:
+  compatible:
+    const: fsl,vf610-tcon
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  clock-names:
+    items:
+      - const: ipg
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - clock-names
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/vf610-clock.h>
+
+    timing-controller@4003d000 {
+        compatible = "fsl,vf610-tcon";
+        reg = <0x4003d000 0x1000>;
+        clocks = <&clks VF610_CLK_TCON0>;
+        clock-names = "ipg";
+    };
index 18f881c9edf383e09df8e72a9dc9f415c6fdb47f..f3e88dac73d678ab89cf5f488471da99a899a6d0 100644 (file)
@@ -7895,7 +7895,7 @@ 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,tcon.txt
+F:     Documentation/devicetree/bindings/display/fsl,vf610-tcon.yaml
 F:     drivers/gpu/drm/fsl-dcu/
 
 DRM DRIVERS FOR FREESCALE IMX 5/6