Skip to content

Commit 0e7c523

Browse files
committed
dt-bindings: display: panel: convert truly,nt35597.txt to dt-schema
Convert the Truly NT35597 2K display panel bindings to dt-schema. The vdispp-supply & vdispn-supply are not marked as required since in practice they are not defined in sdm845-mtp.dts which is the only used of these bindings. Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/20250507-topic-misc-truly-nt35597-yaml-v1-1-bc719ad8dfff@linaro.org Signed-off-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/20250507-topic-misc-truly-nt35597-yaml-v1-1-bc719ad8dfff@linaro.org
1 parent b3f737a commit 0e7c523

File tree

2 files changed

+97
-59
lines changed

2 files changed

+97
-59
lines changed
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
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/truly,nt35597-2K-display.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Truly NT35597 DSI 2K display
8+
9+
maintainers:
10+
- Neil Armstrong <[email protected]>
11+
12+
description: |
13+
Truly NT35597 DSI 2K display is used on the Qualcomm SDM845 MTP board.
14+
15+
allOf:
16+
- $ref: panel-common-dual.yaml#
17+
18+
properties:
19+
compatible:
20+
const: truly,nt35597-2K-display
21+
22+
reg:
23+
maxItems: 1
24+
25+
vdda-supply:
26+
description: regulator that provides the supply voltage Power IC supply
27+
28+
vdispp-supply:
29+
description: regulator that provides the supply voltage for positive LCD bias
30+
31+
vdispn-supply:
32+
description: regulator that provides the supply voltage for negative LCD bias
33+
34+
reset-gpios: true
35+
36+
mode-gpios:
37+
description:
38+
Gpio for choosing the mode of the display for single DSI or Dual DSI.
39+
This should be low for dual DSI and high for single DSI mode.
40+
41+
ports:
42+
required:
43+
- port@0
44+
- port@1
45+
46+
required:
47+
- compatible
48+
- reg
49+
- vdda-supply
50+
- reset-gpios
51+
- mode-gpios
52+
- ports
53+
54+
additionalProperties: false
55+
56+
examples:
57+
- |
58+
#include <dt-bindings/gpio/gpio.h>
59+
60+
dsi {
61+
#address-cells = <1>;
62+
#size-cells = <0>;
63+
64+
panel@0 {
65+
compatible = "truly,nt35597-2K-display";
66+
reg = <0>;
67+
68+
vdda-supply = <&pm8998_l14>;
69+
vdispp-supply = <&lab_regulator>;
70+
vdispn-supply = <&ibb_regulator>;
71+
72+
reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
73+
mode-gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>;
74+
75+
ports {
76+
#address-cells = <1>;
77+
#size-cells = <0>;
78+
79+
port@0 {
80+
reg = <0>;
81+
82+
panel0_in: endpoint {
83+
remote-endpoint = <&dsi0_out>;
84+
};
85+
};
86+
87+
port@1 {
88+
reg = <1>;
89+
90+
panel1_in: endpoint {
91+
remote-endpoint = <&dsi1_out>;
92+
};
93+
};
94+
};
95+
};
96+
};
97+
...

Documentation/devicetree/bindings/display/truly,nt35597.txt

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)