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      - items:
38          - const: sharp,lq101r1sx01
39
40  reg: true
41  power-supply: true
42  backlight: true
43
44  link2:
45    $ref: /schemas/types.yaml#/definitions/phandle
46    description: |
47      phandle to the DSI peripheral on the secondary link. Note that the
48      presence of this property marks the containing node as DSI-LINK1
49
50required:
51  - compatible
52  - reg
53
54if:
55  required:
56    - link2
57then:
58  required:
59    - power-supply
60
61additionalProperties: false
62
63examples:
64  - |
65    dsi0: dsi@fd922800 {
66        #address-cells = <1>;
67        #size-cells = <0>;
68        reg = <0xfd922800 0x200>;
69
70        panel: panel@0 {
71            compatible = "sharp,lq101r1sx01";
72            reg = <0>;
73
74            link2 = <&secondary>;
75
76            power-supply = <&power>;
77            backlight = <&backlight>;
78        };
79    };
80
81    dsi1: dsi@fd922a00 {
82        #address-cells = <1>;
83        #size-cells = <0>;
84        reg = <0xfd922a00 0x200>;
85
86        secondary: panel@0 {
87            compatible = "sharp,lq101r1sx01";
88            reg = <0>;
89        };
90    };
91
92...
93