aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/display/panel/truly,nt35597-2K-display.yaml
blob: 36be09c900f2fc4696b47d08e2052b13ba07f77e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/panel/truly,nt35597-2K-display.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Truly NT35597 DSI 2K display

maintainers:
  - Neil Armstrong <neil.armstrong@linaro.org>

description: |
  Truly NT35597 DSI 2K display is used on the Qualcomm SDM845 MTP board.

allOf:
  - $ref: panel-common-dual.yaml#

properties:
  compatible:
    const: truly,nt35597-2K-display

  reg:
    maxItems: 1

  vdda-supply:
    description: regulator that provides the supply voltage Power IC supply

  vdispp-supply:
    description: regulator that provides the supply voltage for positive LCD bias

  vdispn-supply:
    description: regulator that provides the supply voltage for negative LCD bias

  reset-gpios: true

  mode-gpios:
    description:
      Gpio for choosing the mode of the display for single DSI or Dual DSI.
      This should be low for dual DSI and high for single DSI mode.

  ports:
    required:
      - port@0
      - port@1

required:
  - compatible
  - reg
  - vdda-supply
  - reset-gpios
  - mode-gpios
  - ports

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    dsi {
        #address-cells = <1>;
        #size-cells = <0>;

        panel@0 {
            compatible = "truly,nt35597-2K-display";
            reg = <0>;

            vdda-supply = <&pm8998_l14>;
            vdispp-supply = <&lab_regulator>;
            vdispn-supply = <&ibb_regulator>;

            reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
            mode-gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>;

            ports {
                #address-cells = <1>;
                #size-cells = <0>;

                port@0 {
                    reg = <0>;

                    panel0_in: endpoint {
                        remote-endpoint = <&dsi0_out>;
                    };
                };

                port@1 {
                    reg = <1>;

                    panel1_in: endpoint {
                        remote-endpoint = <&dsi1_out>;
                    };
                };
            };
        };
    };
...