xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/panel-simple-lvds-dual-ports.yaml (revision 357378bbdedf24ce2b90e9bd831af4a9db3ec70a)
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/panel-simple-lvds-dual-ports.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Simple LVDS panels with one power supply and dual LVDS ports
8
9maintainers:
10  - Liu Ying <victor.liu@nxp.com>
11  - Thierry Reding <thierry.reding@gmail.com>
12  - Sam Ravnborg <sam@ravnborg.org>
13
14description: |
15  This binding file is a collection of the LVDS panels that
16  has dual LVDS ports and requires only a single power-supply.
17  The first port receives odd pixels, and the second port receives even pixels.
18  There are optionally a backlight and an enable GPIO.
19  The panel may use an OF graph binding for the association to the display,
20  or it may be a direct child node of the display.
21
22  If the panel is more advanced a dedicated binding file is required.
23
24allOf:
25  - $ref: panel-common.yaml#
26
27properties:
28
29  compatible:
30    enum:
31    # compatible must be listed in alphabetical order, ordered by compatible.
32    # The description in the comment is mandatory for each compatible.
33
34        # AU Optronics Corporation 13.3" FHD (1920x1080) TFT LCD panel
35      - auo,g133han01
36        # AU Optronics Corporation 15.6" FHD (1920x1080) TFT LCD panel
37      - auo,g156han04
38        # AU Optronics Corporation 18.5" FHD (1920x1080) TFT LCD panel
39      - auo,g185han01
40        # AU Optronics Corporation 19.0" (1280x1024) TFT LCD panel
41      - auo,g190ean01
42        # Kaohsiung Opto-Electronics Inc. 10.1" WUXGA (1920 x 1200) LVDS TFT LCD panel
43      - koe,tx26d202vm0bwa
44        # NLT Technologies, Ltd. 15.6" FHD (1920x1080) LVDS TFT LCD panel
45      - nlt,nl192108ac18-02d
46
47  ports:
48    $ref: /schemas/graph.yaml#/properties/ports
49
50    properties:
51      port@0:
52        $ref: /schemas/graph.yaml#/$defs/port-base
53        unevaluatedProperties: false
54        description: The first sink port.
55
56        properties:
57          dual-lvds-odd-pixels:
58            type: boolean
59            description: The first sink port for odd pixels.
60
61        required:
62          - dual-lvds-odd-pixels
63
64      port@1:
65        $ref: /schemas/graph.yaml#/$defs/port-base
66        unevaluatedProperties: false
67        description: The second sink port.
68
69        properties:
70          dual-lvds-even-pixels:
71            type: boolean
72            description: The second sink port for even pixels.
73
74        required:
75          - dual-lvds-even-pixels
76
77    required:
78      - port@0
79      - port@1
80
81  backlight: true
82  enable-gpios: true
83  power-supply: true
84
85additionalProperties: false
86
87required:
88  - compatible
89  - ports
90  - power-supply
91
92examples:
93  - |
94    panel: panel-lvds {
95      compatible = "koe,tx26d202vm0bwa";
96      power-supply = <&vdd_lcd_reg>;
97
98      ports {
99        #address-cells = <1>;
100        #size-cells = <0>;
101
102        port@0 {
103          dual-lvds-odd-pixels;
104          reg = <0>;
105
106          panel_lvds0_in: endpoint {
107            remote-endpoint = <&lvds0_out>;
108          };
109        };
110
111        port@1 {
112          dual-lvds-even-pixels;
113          reg = <1>;
114
115          panel_lvds1_in: endpoint {
116            remote-endpoint = <&lvds1_out>;
117          };
118        };
119      };
120    };
121