xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/panel/panel-dsi-cm.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/display/panel/panel-dsi-cm.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: DSI command mode panels
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunmaintainers:
10*4882a593Smuzhiyun  - Tomi Valkeinen <tomi.valkeinen@ti.com>
11*4882a593Smuzhiyun  - Sebastian Reichel <sre@kernel.org>
12*4882a593Smuzhiyun
13*4882a593Smuzhiyundescription: |
14*4882a593Smuzhiyun  This binding file is a collection of the DSI panels that
15*4882a593Smuzhiyun  are usually driven in command mode. If no backlight is
16*4882a593Smuzhiyun  referenced via the optional backlight property, the DSI
17*4882a593Smuzhiyun  panel is assumed to have native backlight support.
18*4882a593Smuzhiyun  The panel may use an OF graph binding for the association
19*4882a593Smuzhiyun  to the display, or it may be a direct child node of the
20*4882a593Smuzhiyun  display.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunallOf:
23*4882a593Smuzhiyun  - $ref: panel-common.yaml#
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunproperties:
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun  compatible:
28*4882a593Smuzhiyun    items:
29*4882a593Smuzhiyun      - enum:
30*4882a593Smuzhiyun          - motorola,droid4-panel        # Panel from Motorola Droid4 phone
31*4882a593Smuzhiyun          - nokia,himalaya               # Panel from Nokia N950 phone
32*4882a593Smuzhiyun          - tpo,taal                     # Panel from OMAP4 SDP board
33*4882a593Smuzhiyun      - const: panel-dsi-cm              # Generic DSI command mode panel compatible fallback
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun  reg:
36*4882a593Smuzhiyun    maxItems: 1
37*4882a593Smuzhiyun    description: DSI virtual channel
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun  vddi-supply:
40*4882a593Smuzhiyun    description:
41*4882a593Smuzhiyun      Display panels require power to be supplied. While several panels need
42*4882a593Smuzhiyun      more than one power supply with panel-specific constraints governing the
43*4882a593Smuzhiyun      order and timings of the power supplies, in many cases a single power
44*4882a593Smuzhiyun      supply is sufficient, either because the panel has a single power rail, or
45*4882a593Smuzhiyun      because all its power rails can be driven by the same supply. In that case
46*4882a593Smuzhiyun      the vddi-supply property specifies the supply powering the panel as a
47*4882a593Smuzhiyun      phandle to a regulator.
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun  vpnl-supply:
50*4882a593Smuzhiyun    description:
51*4882a593Smuzhiyun      When the display panel needs a second power supply, this property can be
52*4882a593Smuzhiyun      used in addition to vddi-supply. Both supplies will be enabled at the
53*4882a593Smuzhiyun      same time before the panel is being accessed.
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun  width-mm: true
56*4882a593Smuzhiyun  height-mm: true
57*4882a593Smuzhiyun  label: true
58*4882a593Smuzhiyun  rotation: true
59*4882a593Smuzhiyun  panel-timing: true
60*4882a593Smuzhiyun  port: true
61*4882a593Smuzhiyun  reset-gpios: true
62*4882a593Smuzhiyun  te-gpios: true
63*4882a593Smuzhiyun  backlight: true
64*4882a593Smuzhiyun
65*4882a593SmuzhiyunadditionalProperties: false
66*4882a593Smuzhiyun
67*4882a593Smuzhiyunrequired:
68*4882a593Smuzhiyun  - compatible
69*4882a593Smuzhiyun  - reg
70*4882a593Smuzhiyun
71*4882a593Smuzhiyunexamples:
72*4882a593Smuzhiyun  - |
73*4882a593Smuzhiyun    #include <dt-bindings/gpio/gpio.h>
74*4882a593Smuzhiyun
75*4882a593Smuzhiyun    dsi-controller {
76*4882a593Smuzhiyun        #address-cells = <1>;
77*4882a593Smuzhiyun        #size-cells = <0>;
78*4882a593Smuzhiyun
79*4882a593Smuzhiyun        panel@0 {
80*4882a593Smuzhiyun            compatible = "tpo,taal", "panel-dsi-cm";
81*4882a593Smuzhiyun            reg = <0>;
82*4882a593Smuzhiyun            reset-gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>;
83*4882a593Smuzhiyun        };
84*4882a593Smuzhiyun    };
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun...
87