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/novatek,nt36523.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Novatek NT36523 based DSI display Panels
8
9maintainers:
10  - Jianhua Lu <lujianhua000@gmail.com>
11
12description: |
13  The Novatek NT36523 is a generic DSI Panel IC used to drive dsi
14  panels. Support video mode panels from China Star Optoelectronics
15  Technology (CSOT) and BOE Technology.
16
17allOf:
18  - $ref: panel-common.yaml#
19
20properties:
21  compatible:
22    oneOf:
23      - items:
24          - enum:
25              - xiaomi,elish-boe-nt36523
26              - xiaomi,elish-csot-nt36523
27          - const: novatek,nt36523
28      - items:
29          - enum:
30              - lenovo,j606f-boe-nt36523w
31          - const: novatek,nt36523w
32
33  reset-gpios:
34    maxItems: 1
35    description: phandle of gpio for reset line - This should be 8mA
36
37  vddio-supply:
38    description: regulator that supplies the I/O voltage
39
40  reg: true
41  ports: true
42  rotation: true
43  backlight: true
44
45required:
46  - compatible
47  - reg
48  - vddio-supply
49  - reset-gpios
50  - ports
51
52unevaluatedProperties: false
53
54examples:
55  - |
56    #include <dt-bindings/gpio/gpio.h>
57
58    dsi {
59        #address-cells = <1>;
60        #size-cells = <0>;
61
62        panel@0 {
63            compatible = "xiaomi,elish-csot-nt36523", "novatek,nt36523";
64            reg = <0>;
65
66            vddio-supply = <&vreg_l14a_1p88>;
67            reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
68            backlight = <&backlight>;
69
70            ports {
71                #address-cells = <1>;
72                #size-cells = <0>;
73
74                port@0 {
75                    reg = <0>;
76                    panel_in_0: endpoint {
77                        remote-endpoint = <&dsi0_out>;
78                    };
79                };
80
81                port@1{
82                    reg = <1>;
83                    panel_in_1: endpoint {
84                        remote-endpoint = <&dsi1_out>;
85                    };
86                };
87            };
88        };
89    };
90
91...
92