dt-bindings: display: bridge: ldb: Add i.MX93 LDB
authorLiu Ying <victor.liu@nxp.com>
Mon, 23 Jan 2023 02:14:48 +0000 (10:14 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 23 Jan 2023 08:46:37 +0000 (09:46 +0100)
Same to i.MX8mp LDB, i.MX93 LDB is controlled by mediamix blk-ctrl
through 'ldb' register and 'lvds' register.  Also, the 'ldb' clock
is required.  i.MX93 LDB supports only one LVDS channel(channel 0,
a.k.a, LVDS Channel-A in the device tree binding documentation), while
i.MX8mp LDB supports at most two.  Add i.MX93 LDB device tree binding
in the existing i.MX8mp LDB device tree binding documentation.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230123021449.969243-2-victor.liu@nxp.com
Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml

index b19be0804abe59eaf1f5e216ab2d7054e6dcb6fa..6e0e3ba9b49eefd036f838a074ddafab8d96ccad 100644 (file)
@@ -16,7 +16,9 @@ description: |
 
 properties:
   compatible:
-    const: fsl,imx8mp-ldb
+    enum:
+      - fsl,imx8mp-ldb
+      - fsl,imx93-ldb
 
   clocks:
     maxItems: 1
@@ -57,6 +59,18 @@ required:
   - clocks
   - ports
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: fsl,imx93-ldb
+    then:
+      properties:
+        ports:
+          properties:
+            port@2: false
+
 additionalProperties: false
 
 examples: