Debian Codegraph @

Documentation/devicetree/bindings/display/panel/jdi,lpm102a188a.yaml

raw
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/jdi,lpm102a188a.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: JDI LPM102A188A 2560x1800 10.2" DSI Panel
8
9 maintainers:
10 - Diogo Ivo <[email protected]>
11
12 description: |
13 This panel requires a dual-channel DSI host to operate. It supports two modes:
14 - left-right: each channel drives the left or right half of the screen
15 - even-odd: each channel drives the even or odd lines of the screen
16
17 Each of the DSI channels controls a separate DSI peripheral. The peripheral
18 driven by the first link (DSI-LINK1) is considered the primary peripheral
19 and controls the device. The 'link2' property contains a phandle to the
20 peripheral driven by the second link (DSI-LINK2).
21
22 allOf:
23 - $ref: panel-common.yaml#
24
25 properties:
26 compatible:
27 const: jdi,lpm102a188a
28
29 reg:
30 maxItems: 1
31
32 enable-gpios: true
33 reset-gpios: true
34 power-supply: true
35 backlight: true
36
37 ddi-supply:
38 description: The regulator that provides IOVCC (1.8V).
39
40 link2:
41 $ref: /schemas/types.yaml#/definitions/phandle
42 description: |
43 phandle to the DSI peripheral on the secondary link. Note that the
44 presence of this property marks the containing node as DSI-LINK1.
45
46 required:
47 - compatible
48 - reg
49
50 if:
51 required:
52 - link2
53 then:
54 required:
55 - power-supply
56 - ddi-supply
57 - enable-gpios
58 - reset-gpios
59
60 additionalProperties: false
61
62 examples:
63 - |
64 #include <dt-bindings/gpio/gpio.h>
65 #include <dt-bindings/gpio/tegra-gpio.h>
66
67 dsia: dsi@54300000 {
68 #address-cells = <1>;
69 #size-cells = <0>;
70 reg = <0x0 0x54300000 0x0 0x00040000>;
71
72 link2: panel@0 {
73 compatible = "jdi,lpm102a188a";
74 reg = <0>;
75 };
76 };
77
78 dsib: dsi@54400000{
79 #address-cells = <1>;
80 #size-cells = <0>;
81 reg = <0x0 0x54400000 0x0 0x00040000>;
82 nvidia,ganged-mode = <&dsia>;
83
84 link1: panel@0 {
85 compatible = "jdi,lpm102a188a";
86 reg = <0>;
87 power-supply = <&pplcd_vdd>;
88 ddi-supply = <&pp1800_lcdio>;
89 enable-gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_HIGH>;
90 reset-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
91 link2 = <&link2>;
92 backlight = <&backlight>;
93 };
94 };
95
96 ...