xref: /linux/Documentation/devicetree/bindings/display/lvds-dual-ports.yaml (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/lvds-dual-ports.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Dual-link LVDS Display Common Properties
8
9maintainers:
10  - Liu Ying <victor.liu@nxp.com>
11
12description: |
13  Common properties for LVDS displays with dual LVDS links. Extend LVDS display
14  common properties defined in lvds.yaml.
15
16  Dual-link LVDS displays receive odd pixels and even pixels separately from
17  the dual LVDS links. One link receives odd pixels and the other receives
18  even pixels. Some of those displays may also use only one LVDS link to
19  receive all pixels, being odd and even agnostic.
20
21allOf:
22  - $ref: lvds.yaml#
23
24properties:
25  ports:
26    $ref: /schemas/graph.yaml#/properties/ports
27
28    patternProperties:
29      '^port@[01]$':
30        $ref: /schemas/graph.yaml#/$defs/port-base
31        unevaluatedProperties: false
32        description: |
33          port@0 represents the first LVDS input link.
34          port@1 represents the second LVDS input link.
35
36        properties:
37          dual-lvds-odd-pixels:
38            type: boolean
39            description: LVDS input link for odd pixels
40
41          dual-lvds-even-pixels:
42            type: boolean
43            description: LVDS input link for even pixels
44
45        oneOf:
46          - required: [dual-lvds-odd-pixels]
47          - required: [dual-lvds-even-pixels]
48          - properties:
49              dual-lvds-odd-pixels: false
50              dual-lvds-even-pixels: false
51
52    anyOf:
53      - required:
54          - port@0
55      - required:
56          - port@1
57
58required:
59  - ports
60
61additionalProperties: true
62
63...
64