1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/panel/sharp,lq101r1sx01.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Sharp Microelectronics 10.1" WQXGA TFT LCD panel
8
9maintainers:
10  - Thierry Reding <treding@nvidia.com>
11
12description: |
13  This panel requires a dual-channel DSI host to operate. It supports two modes:
14  - left-right: each channel drives the left or right half of the screen
15  - even-odd: each channel drives the even or odd lines of the screen
16
17  Each of the DSI channels controls a separate DSI peripheral. The peripheral
18  driven by the first link (DSI-LINK1), left or even, is considered the primary
19  peripheral and controls the device. The 'link2' property contains a phandle
20  to the peripheral driven by the second link (DSI-LINK2, right or odd).
21
22  Note that in video mode the DSI-LINK1 interface always provides the left/even
23  pixels and DSI-LINK2 always provides the right/odd pixels. In command mode it
24  is possible to program either link to drive the left/even or right/odd pixels
25  but for the sake of consistency this binding assumes that the same assignment
26  is chosen as for video mode.
27
28allOf:
29  - $ref: panel-common.yaml#
30
31properties:
32  compatible:
33    oneOf:
34      - items:
35          - const: sharp,lq101r1sx03
36          - const: sharp,lq101r1sx01
37      - enum:
38          - sharp,lq101r1sx01
39
40  reg:
41    maxItems: 1
42
43  power-supply: true
44  backlight: true
45
46  link2:
47    $ref: /schemas/types.yaml#/definitions/phandle
48    description: |
49      phandle to the DSI peripheral on the secondary link. Note that the
50      presence of this property marks the containing node as DSI-LINK1
51
52required:
53  - compatible
54  - reg
55
56if:
57  required:
58    - link2
59then:
60  required:
61    - power-supply
62
63additionalProperties: false
64
65examples:
66  - |
67    dsi0: dsi@fd922800 {
68        #address-cells = <1>;
69        #size-cells = <0>;
70        reg = <0xfd922800 0x200>;
71
72        panel: panel@0 {
73            compatible = "sharp,lq101r1sx01";
74            reg = <0>;
75
76            link2 = <&secondary>;
77
78            power-supply = <&power>;
79            backlight = <&backlight>;
80        };
81    };
82
83    dsi1: dsi@fd922a00 {
84        #address-cells = <1>;
85        #size-cells = <0>;
86        reg = <0xfd922a00 0x200>;
87
88        secondary: panel@0 {
89            compatible = "sharp,lq101r1sx01";
90            reg = <0>;
91        };
92    };
93
94...
95