xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/truly,nt35597-2K-display.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1*ae5de77eSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*ae5de77eSEmmanuel Vadot%YAML 1.2
3*ae5de77eSEmmanuel Vadot---
4*ae5de77eSEmmanuel Vadot$id: http://devicetree.org/schemas/display/panel/truly,nt35597-2K-display.yaml#
5*ae5de77eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*ae5de77eSEmmanuel Vadot
7*ae5de77eSEmmanuel Vadottitle: Truly NT35597 DSI 2K display
8*ae5de77eSEmmanuel Vadot
9*ae5de77eSEmmanuel Vadotmaintainers:
10*ae5de77eSEmmanuel Vadot  - Neil Armstrong <neil.armstrong@linaro.org>
11*ae5de77eSEmmanuel Vadot
12*ae5de77eSEmmanuel Vadotdescription: |
13*ae5de77eSEmmanuel Vadot  Truly NT35597 DSI 2K display is used on the Qualcomm SDM845 MTP board.
14*ae5de77eSEmmanuel Vadot
15*ae5de77eSEmmanuel VadotallOf:
16*ae5de77eSEmmanuel Vadot  - $ref: panel-common-dual.yaml#
17*ae5de77eSEmmanuel Vadot
18*ae5de77eSEmmanuel Vadotproperties:
19*ae5de77eSEmmanuel Vadot  compatible:
20*ae5de77eSEmmanuel Vadot    const: truly,nt35597-2K-display
21*ae5de77eSEmmanuel Vadot
22*ae5de77eSEmmanuel Vadot  reg:
23*ae5de77eSEmmanuel Vadot    maxItems: 1
24*ae5de77eSEmmanuel Vadot
25*ae5de77eSEmmanuel Vadot  vdda-supply:
26*ae5de77eSEmmanuel Vadot    description: regulator that provides the supply voltage Power IC supply
27*ae5de77eSEmmanuel Vadot
28*ae5de77eSEmmanuel Vadot  vdispp-supply:
29*ae5de77eSEmmanuel Vadot    description: regulator that provides the supply voltage for positive LCD bias
30*ae5de77eSEmmanuel Vadot
31*ae5de77eSEmmanuel Vadot  vdispn-supply:
32*ae5de77eSEmmanuel Vadot    description: regulator that provides the supply voltage for negative LCD bias
33*ae5de77eSEmmanuel Vadot
34*ae5de77eSEmmanuel Vadot  reset-gpios: true
35*ae5de77eSEmmanuel Vadot
36*ae5de77eSEmmanuel Vadot  mode-gpios:
37*ae5de77eSEmmanuel Vadot    description:
38*ae5de77eSEmmanuel Vadot      Gpio for choosing the mode of the display for single DSI or Dual DSI.
39*ae5de77eSEmmanuel Vadot      This should be low for dual DSI and high for single DSI mode.
40*ae5de77eSEmmanuel Vadot
41*ae5de77eSEmmanuel Vadot  ports:
42*ae5de77eSEmmanuel Vadot    required:
43*ae5de77eSEmmanuel Vadot      - port@0
44*ae5de77eSEmmanuel Vadot      - port@1
45*ae5de77eSEmmanuel Vadot
46*ae5de77eSEmmanuel Vadotrequired:
47*ae5de77eSEmmanuel Vadot  - compatible
48*ae5de77eSEmmanuel Vadot  - reg
49*ae5de77eSEmmanuel Vadot  - vdda-supply
50*ae5de77eSEmmanuel Vadot  - reset-gpios
51*ae5de77eSEmmanuel Vadot  - mode-gpios
52*ae5de77eSEmmanuel Vadot  - ports
53*ae5de77eSEmmanuel Vadot
54*ae5de77eSEmmanuel VadotadditionalProperties: false
55*ae5de77eSEmmanuel Vadot
56*ae5de77eSEmmanuel Vadotexamples:
57*ae5de77eSEmmanuel Vadot  - |
58*ae5de77eSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
59*ae5de77eSEmmanuel Vadot
60*ae5de77eSEmmanuel Vadot    dsi {
61*ae5de77eSEmmanuel Vadot        #address-cells = <1>;
62*ae5de77eSEmmanuel Vadot        #size-cells = <0>;
63*ae5de77eSEmmanuel Vadot
64*ae5de77eSEmmanuel Vadot        panel@0 {
65*ae5de77eSEmmanuel Vadot            compatible = "truly,nt35597-2K-display";
66*ae5de77eSEmmanuel Vadot            reg = <0>;
67*ae5de77eSEmmanuel Vadot
68*ae5de77eSEmmanuel Vadot            vdda-supply = <&pm8998_l14>;
69*ae5de77eSEmmanuel Vadot            vdispp-supply = <&lab_regulator>;
70*ae5de77eSEmmanuel Vadot            vdispn-supply = <&ibb_regulator>;
71*ae5de77eSEmmanuel Vadot
72*ae5de77eSEmmanuel Vadot            reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
73*ae5de77eSEmmanuel Vadot            mode-gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>;
74*ae5de77eSEmmanuel Vadot
75*ae5de77eSEmmanuel Vadot            ports {
76*ae5de77eSEmmanuel Vadot                #address-cells = <1>;
77*ae5de77eSEmmanuel Vadot                #size-cells = <0>;
78*ae5de77eSEmmanuel Vadot
79*ae5de77eSEmmanuel Vadot                port@0 {
80*ae5de77eSEmmanuel Vadot                    reg = <0>;
81*ae5de77eSEmmanuel Vadot
82*ae5de77eSEmmanuel Vadot                    panel0_in: endpoint {
83*ae5de77eSEmmanuel Vadot                        remote-endpoint = <&dsi0_out>;
84*ae5de77eSEmmanuel Vadot                    };
85*ae5de77eSEmmanuel Vadot                };
86*ae5de77eSEmmanuel Vadot
87*ae5de77eSEmmanuel Vadot                port@1 {
88*ae5de77eSEmmanuel Vadot                    reg = <1>;
89*ae5de77eSEmmanuel Vadot
90*ae5de77eSEmmanuel Vadot                    panel1_in: endpoint {
91*ae5de77eSEmmanuel Vadot                        remote-endpoint = <&dsi1_out>;
92*ae5de77eSEmmanuel Vadot                    };
93*ae5de77eSEmmanuel Vadot                };
94*ae5de77eSEmmanuel Vadot            };
95*ae5de77eSEmmanuel Vadot        };
96*ae5de77eSEmmanuel Vadot    };
97*ae5de77eSEmmanuel Vadot...
98