[PATCH v3 10/15] dt-bindings: display: advantech,idk-2121wr: Reference lvds-dual-ports.yaml

From: Liu Ying
Date: Mon Oct 21 2024 - 02:48:43 EST


"advantech,idk-2121wr" panel is a dual-link LVDS display device.
lvds-dual-ports.yaml documents dual-link LVDS display common properties.
Reference the ports property defined in lvds-dual-ports.yaml to save lines.

Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
Signed-off-by: Liu Ying <victor.liu@xxxxxxx>
---
v3:
* New patch. (Dmitry)

.../display/panel/advantech,idk-2121wr.yaml | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml b/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml
index 2e8dbdb5a3d5..05ca3b2385f8 100644
--- a/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml
+++ b/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml
@@ -20,6 +20,7 @@ description: |
dual-lvds-odd-pixels or dual-lvds-even-pixels).

allOf:
+ - $ref: /schemas/display/lvds-dual-ports.yaml#
- $ref: panel-common.yaml#

properties:
@@ -44,22 +45,10 @@ properties:

properties:
port@0:
- $ref: /schemas/graph.yaml#/$defs/port-base
- unevaluatedProperties: false
- description: The sink for odd pixels.
- properties:
- dual-lvds-odd-pixels: true
-
required:
- dual-lvds-odd-pixels

port@1:
- $ref: /schemas/graph.yaml#/$defs/port-base
- unevaluatedProperties: false
- description: The sink for even pixels.
- properties:
- dual-lvds-even-pixels: true
-
required:
- dual-lvds-even-pixels

@@ -75,7 +64,6 @@ required:
- height-mm
- data-mapping
- panel-timing
- - ports

examples:
- |+
--
2.34.1