xref: /linux/Documentation/devicetree/bindings/display/panel/boe,th101mb31ig002-28a.yaml (revision 903a7d37d9ea03cfed21040467d3d345d1e6fc76)
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/boe,th101mb31ig002-28a.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: BOE TH101MB31IG002-28A WXGA DSI Display Panel
8
9maintainers:
10  - Manuel Traut <manut@mecka.net>
11
12properties:
13  compatible:
14    enum:
15        # BOE TH101MB31IG002-28A 10.1" WXGA TFT LCD panel
16      - boe,th101mb31ig002-28a
17        # The Starry-er88577 is a 10.1" WXGA TFT-LCD panel
18      - starry,er88577
19
20  reg:
21    maxItems: 1
22
23  backlight: true
24  enable-gpios: true
25  reset-gpios: true
26  power-supply: true
27  port: true
28  rotation: true
29
30required:
31  - compatible
32  - reg
33  - enable-gpios
34  - power-supply
35
36allOf:
37  - $ref: panel-common.yaml#
38  - if:
39      properties:
40        compatible:
41          # The Starry-er88577 is a 10.1" WXGA TFT-LCD panel
42          const: starry,er88577
43    then:
44      properties:
45        reset-gpios: false
46    else:
47      required:
48        - reset-gpios
49
50additionalProperties: false
51
52examples:
53  - |
54    #include <dt-bindings/gpio/gpio.h>
55
56    dsi {
57        #address-cells = <1>;
58        #size-cells = <0>;
59        panel@0 {
60            compatible = "boe,th101mb31ig002-28a";
61            reg = <0>;
62            backlight = <&backlight_lcd0>;
63            enable-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
64            reset-gpios = <&gpio 55 GPIO_ACTIVE_LOW>;
65            rotation = <90>;
66            power-supply = <&vcc_3v3>;
67            port {
68                panel_in_dsi: endpoint {
69                    remote-endpoint = <&dsi_out_con>;
70                };
71            };
72        };
73    };
74
75...
76