xref: /linux/Documentation/devicetree/bindings/display/msm/dp-controller.yaml (revision b6f8c4debc0035a1a9096cf016bbd04c31dd78b0)
1665a6961SKrishna Manikandan# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2665a6961SKrishna Manikandan%YAML 1.2
3665a6961SKrishna Manikandan---
4665a6961SKrishna Manikandan$id: http://devicetree.org/schemas/display/msm/dp-controller.yaml#
5665a6961SKrishna Manikandan$schema: http://devicetree.org/meta-schemas/core.yaml#
6665a6961SKrishna Manikandan
7665a6961SKrishna Manikandantitle: MSM Display Port Controller
8665a6961SKrishna Manikandan
9665a6961SKrishna Manikandanmaintainers:
1001161a5cSKuogee Hsieh  - Kuogee Hsieh <quic_khsieh@quicinc.com>
11665a6961SKrishna Manikandan
12665a6961SKrishna Manikandandescription: |
13665a6961SKrishna Manikandan  Device tree bindings for DisplayPort host controller for MSM targets
14665a6961SKrishna Manikandan  that are compatible with VESA DisplayPort interface specification.
15665a6961SKrishna Manikandan
16665a6961SKrishna Manikandanproperties:
17665a6961SKrishna Manikandan  compatible:
18665a6961SKrishna Manikandan    enum:
19665a6961SKrishna Manikandan      - qcom,sc7180-dp
200a697b9cSSankeerth Billakanti      - qcom,sc7280-dp
210a697b9cSSankeerth Billakanti      - qcom,sc7280-edp
22e60af4f8SBjorn Andersson      - qcom,sc8180x-dp
23e60af4f8SBjorn Andersson      - qcom,sc8180x-edp
24*b6f8c4deSBjorn Andersson      - qcom,sc8280xp-dp
25*b6f8c4deSBjorn Andersson      - qcom,sc8280xp-edp
26*b6f8c4deSBjorn Andersson      - qcom,sdm845-dp
27f5408b21SBjorn Andersson      - qcom,sm8350-dp
28665a6961SKrishna Manikandan
29665a6961SKrishna Manikandan  reg:
30122b17f3SDmitry Baryshkov    minItems: 4
31687825c4SBjorn Andersson    items:
32687825c4SBjorn Andersson      - description: ahb register block
33687825c4SBjorn Andersson      - description: aux register block
34687825c4SBjorn Andersson      - description: link register block
35687825c4SBjorn Andersson      - description: p0 register block
36687825c4SBjorn Andersson      - description: p1 register block
37665a6961SKrishna Manikandan
38665a6961SKrishna Manikandan  interrupts:
39665a6961SKrishna Manikandan    maxItems: 1
40665a6961SKrishna Manikandan
41665a6961SKrishna Manikandan  clocks:
42665a6961SKrishna Manikandan    items:
43665a6961SKrishna Manikandan      - description: AHB clock to enable register access
44665a6961SKrishna Manikandan      - description: Display Port AUX clock
45665a6961SKrishna Manikandan      - description: Display Port Link clock
46665a6961SKrishna Manikandan      - description: Link interface clock between DP and PHY
47665a6961SKrishna Manikandan      - description: Display Port Pixel clock
48665a6961SKrishna Manikandan
49665a6961SKrishna Manikandan  clock-names:
50665a6961SKrishna Manikandan    items:
51665a6961SKrishna Manikandan      - const: core_iface
52665a6961SKrishna Manikandan      - const: core_aux
53665a6961SKrishna Manikandan      - const: ctrl_link
54665a6961SKrishna Manikandan      - const: ctrl_link_iface
55665a6961SKrishna Manikandan      - const: stream_pixel
56665a6961SKrishna Manikandan
57665a6961SKrishna Manikandan  assigned-clocks:
58665a6961SKrishna Manikandan    items:
59665a6961SKrishna Manikandan      - description: link clock source
60665a6961SKrishna Manikandan      - description: pixel clock source
61665a6961SKrishna Manikandan
62665a6961SKrishna Manikandan  assigned-clock-parents:
63665a6961SKrishna Manikandan    items:
64665a6961SKrishna Manikandan      - description: phy 0 parent
65665a6961SKrishna Manikandan      - description: phy 1 parent
66665a6961SKrishna Manikandan
67665a6961SKrishna Manikandan  phys:
68665a6961SKrishna Manikandan    maxItems: 1
69665a6961SKrishna Manikandan
70665a6961SKrishna Manikandan  phy-names:
71665a6961SKrishna Manikandan    items:
72665a6961SKrishna Manikandan      - const: dp
73665a6961SKrishna Manikandan
74665a6961SKrishna Manikandan  operating-points-v2:
75665a6961SKrishna Manikandan    maxItems: 1
76665a6961SKrishna Manikandan
7733468f4dSDmitry Baryshkov  opp-table: true
7833468f4dSDmitry Baryshkov
79665a6961SKrishna Manikandan  power-domains:
80665a6961SKrishna Manikandan    maxItems: 1
81665a6961SKrishna Manikandan
8233468f4dSDmitry Baryshkov  aux-bus:
8333468f4dSDmitry Baryshkov    $ref: /schemas/display/dp-aux-bus.yaml#
8433468f4dSDmitry Baryshkov
8533468f4dSDmitry Baryshkov  data-lanes:
8633468f4dSDmitry Baryshkov    $ref: /schemas/types.yaml#/definitions/uint32-array
8733468f4dSDmitry Baryshkov    minItems: 1
8833468f4dSDmitry Baryshkov    maxItems: 4
8933468f4dSDmitry Baryshkov    items:
9033468f4dSDmitry Baryshkov      maximum: 3
9133468f4dSDmitry Baryshkov
92665a6961SKrishna Manikandan  "#sound-dai-cells":
93665a6961SKrishna Manikandan    const: 0
94665a6961SKrishna Manikandan
95fd713be0SDmitry Baryshkov  vdda-0p9-supply:
96fd713be0SDmitry Baryshkov    deprecated: true
97fd713be0SDmitry Baryshkov  vdda-1p2-supply:
98fd713be0SDmitry Baryshkov    deprecated: true
99ce557eafSDouglas Anderson
100665a6961SKrishna Manikandan  ports:
101665a6961SKrishna Manikandan    $ref: /schemas/graph.yaml#/properties/ports
102665a6961SKrishna Manikandan    properties:
103665a6961SKrishna Manikandan      port@0:
104665a6961SKrishna Manikandan        $ref: /schemas/graph.yaml#/properties/port
105665a6961SKrishna Manikandan        description: Input endpoint of the controller
106665a6961SKrishna Manikandan
107665a6961SKrishna Manikandan      port@1:
108665a6961SKrishna Manikandan        $ref: /schemas/graph.yaml#/properties/port
109665a6961SKrishna Manikandan        description: Output endpoint of the controller
110665a6961SKrishna Manikandan
111665a6961SKrishna Manikandanrequired:
112665a6961SKrishna Manikandan  - compatible
113665a6961SKrishna Manikandan  - reg
114665a6961SKrishna Manikandan  - interrupts
115665a6961SKrishna Manikandan  - clocks
116665a6961SKrishna Manikandan  - clock-names
117665a6961SKrishna Manikandan  - phys
118665a6961SKrishna Manikandan  - phy-names
119665a6961SKrishna Manikandan  - power-domains
120665a6961SKrishna Manikandan  - ports
121665a6961SKrishna Manikandan
122122b17f3SDmitry BaryshkovallOf:
123122b17f3SDmitry Baryshkov  # AUX BUS does not exist on DP controllers
124122b17f3SDmitry Baryshkov  # Audio output also is present only on DP output
125122b17f3SDmitry Baryshkov  # p1 regions is present on DP, but not on eDP
126122b17f3SDmitry Baryshkov  - if:
127122b17f3SDmitry Baryshkov      properties:
128122b17f3SDmitry Baryshkov        compatible:
129122b17f3SDmitry Baryshkov          contains:
130122b17f3SDmitry Baryshkov            enum:
131122b17f3SDmitry Baryshkov              - qcom,sc7280-edp
132122b17f3SDmitry Baryshkov              - qcom,sc8180x-edp
133122b17f3SDmitry Baryshkov    then:
134122b17f3SDmitry Baryshkov      properties:
135122b17f3SDmitry Baryshkov        "#sound-dai-cells": false
136122b17f3SDmitry Baryshkov        reg:
137122b17f3SDmitry Baryshkov          maxItems: 4
138122b17f3SDmitry Baryshkov    else:
139122b17f3SDmitry Baryshkov      properties:
140122b17f3SDmitry Baryshkov        aux-bus: false
141122b17f3SDmitry Baryshkov        reg:
142122b17f3SDmitry Baryshkov          minItems: 5
143122b17f3SDmitry Baryshkov      required:
144122b17f3SDmitry Baryshkov        - "#sound-dai-cells"
145122b17f3SDmitry Baryshkov
146665a6961SKrishna ManikandanadditionalProperties: false
147665a6961SKrishna Manikandan
148665a6961SKrishna Manikandanexamples:
149665a6961SKrishna Manikandan  - |
150665a6961SKrishna Manikandan    #include <dt-bindings/interrupt-controller/arm-gic.h>
151665a6961SKrishna Manikandan    #include <dt-bindings/clock/qcom,dispcc-sc7180.h>
152665a6961SKrishna Manikandan    #include <dt-bindings/power/qcom-rpmpd.h>
153665a6961SKrishna Manikandan
154665a6961SKrishna Manikandan    displayport-controller@ae90000 {
155665a6961SKrishna Manikandan        compatible = "qcom,sc7180-dp";
156687825c4SBjorn Andersson        reg = <0xae90000 0x200>,
157687825c4SBjorn Andersson              <0xae90200 0x200>,
158687825c4SBjorn Andersson              <0xae90400 0xc00>,
159687825c4SBjorn Andersson              <0xae91000 0x400>,
160687825c4SBjorn Andersson              <0xae91400 0x400>;
161665a6961SKrishna Manikandan        interrupt-parent = <&mdss>;
162665a6961SKrishna Manikandan        interrupts = <12>;
163665a6961SKrishna Manikandan        clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>,
164665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_AUX_CLK>,
165665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_LINK_CLK>,
166665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_LINK_INTF_CLK>,
167665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK>;
168665a6961SKrishna Manikandan        clock-names = "core_iface", "core_aux",
169665a6961SKrishna Manikandan                      "ctrl_link",
170665a6961SKrishna Manikandan                      "ctrl_link_iface", "stream_pixel";
171665a6961SKrishna Manikandan
172665a6961SKrishna Manikandan        assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>,
173665a6961SKrishna Manikandan                          <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>;
174665a6961SKrishna Manikandan
175665a6961SKrishna Manikandan        assigned-clock-parents = <&dp_phy 0>, <&dp_phy 1>;
176665a6961SKrishna Manikandan
177665a6961SKrishna Manikandan        phys = <&dp_phy>;
178665a6961SKrishna Manikandan        phy-names = "dp";
179665a6961SKrishna Manikandan
180665a6961SKrishna Manikandan        #sound-dai-cells = <0>;
181665a6961SKrishna Manikandan
182665a6961SKrishna Manikandan        power-domains = <&rpmhpd SC7180_CX>;
183665a6961SKrishna Manikandan
184665a6961SKrishna Manikandan        ports {
185665a6961SKrishna Manikandan            #address-cells = <1>;
186665a6961SKrishna Manikandan            #size-cells = <0>;
187665a6961SKrishna Manikandan
188665a6961SKrishna Manikandan            port@0 {
189665a6961SKrishna Manikandan                reg = <0>;
190665a6961SKrishna Manikandan                endpoint {
191665a6961SKrishna Manikandan                    remote-endpoint = <&dpu_intf0_out>;
192665a6961SKrishna Manikandan                };
193665a6961SKrishna Manikandan            };
194665a6961SKrishna Manikandan
195665a6961SKrishna Manikandan            port@1 {
196665a6961SKrishna Manikandan                reg = <1>;
197665a6961SKrishna Manikandan                endpoint {
198665a6961SKrishna Manikandan                    remote-endpoint = <&typec>;
199665a6961SKrishna Manikandan                };
200665a6961SKrishna Manikandan            };
201665a6961SKrishna Manikandan        };
202665a6961SKrishna Manikandan    };
203665a6961SKrishna Manikandan...
204