xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/advantech,idk-2121wr.yaml (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/panel/advantech,idk-2121wr.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Advantech IDK-2121WR 21.5" Full-HD dual-LVDS panel
8
9maintainers:
10  - Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
11  - Thierry Reding <thierry.reding@gmail.com>
12
13description: |
14  The IDK-2121WR from Advantech is a Full-HD dual-LVDS panel.
15  A dual-LVDS interface is a dual-link connection with even pixels traveling
16  on one link, and with odd pixels traveling on the other link.
17
18  The panel expects odd pixels on the first port, and even pixels on the
19  second port, therefore the ports must be marked accordingly (with either
20  dual-lvds-odd-pixels or dual-lvds-even-pixels).
21
22allOf:
23  - $ref: panel-common.yaml#
24
25properties:
26  compatible:
27    items:
28      - const: advantech,idk-2121wr
29      - {} # panel-lvds, but not listed here to avoid false select
30
31  width-mm:
32    const: 476
33
34  height-mm:
35    const: 268
36
37  data-mapping:
38    const: vesa-24
39
40  panel-timing: true
41
42  ports:
43    $ref: /schemas/graph.yaml#/properties/ports
44
45    properties:
46      port@0:
47        $ref: /schemas/graph.yaml#/$defs/port-base
48        unevaluatedProperties: false
49        description: The sink for odd pixels.
50        properties:
51          dual-lvds-odd-pixels: true
52
53        required:
54          - dual-lvds-odd-pixels
55
56      port@1:
57        $ref: /schemas/graph.yaml#/$defs/port-base
58        unevaluatedProperties: false
59        description: The sink for even pixels.
60        properties:
61          dual-lvds-even-pixels: true
62
63        required:
64          - dual-lvds-even-pixels
65
66    required:
67      - port@0
68      - port@1
69
70additionalProperties: false
71
72required:
73  - compatible
74  - width-mm
75  - height-mm
76  - data-mapping
77  - panel-timing
78  - ports
79
80examples:
81  - |+
82    panel-lvds {
83      compatible = "advantech,idk-2121wr", "panel-lvds";
84
85      width-mm = <476>;
86      height-mm = <268>;
87
88      data-mapping = "vesa-24";
89
90      panel-timing {
91        clock-frequency = <148500000>;
92        hactive = <1920>;
93        vactive = <1080>;
94        hsync-len = <44>;
95        hfront-porch = <88>;
96        hback-porch = <148>;
97        vfront-porch = <4>;
98        vback-porch = <36>;
99        vsync-len = <5>;
100      };
101
102      ports {
103        #address-cells = <1>;
104        #size-cells = <0>;
105
106        port@0 {
107          reg = <0>;
108          dual-lvds-odd-pixels;
109          panel_in0: endpoint {
110            remote-endpoint = <&lvds0_out>;
111          };
112        };
113
114        port@1 {
115          reg = <1>;
116          dual-lvds-even-pixels;
117          panel_in1: endpoint {
118            remote-endpoint = <&lvds1_out>;
119          };
120        };
121      };
122    };
123
124...
125