xref: /linux/Documentation/devicetree/bindings/display/msm/dp-controller.yaml (revision 7617aba0687cbafece63b4938b506318f481bac8)
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
24f5408b21SBjorn Andersson      - qcom,sm8350-dp
25665a6961SKrishna Manikandan
26665a6961SKrishna Manikandan  reg:
27122b17f3SDmitry Baryshkov    minItems: 4
28687825c4SBjorn Andersson    items:
29687825c4SBjorn Andersson      - description: ahb register block
30687825c4SBjorn Andersson      - description: aux register block
31687825c4SBjorn Andersson      - description: link register block
32687825c4SBjorn Andersson      - description: p0 register block
33687825c4SBjorn Andersson      - description: p1 register block
34665a6961SKrishna Manikandan
35665a6961SKrishna Manikandan  interrupts:
36665a6961SKrishna Manikandan    maxItems: 1
37665a6961SKrishna Manikandan
38665a6961SKrishna Manikandan  clocks:
39665a6961SKrishna Manikandan    items:
40665a6961SKrishna Manikandan      - description: AHB clock to enable register access
41665a6961SKrishna Manikandan      - description: Display Port AUX clock
42665a6961SKrishna Manikandan      - description: Display Port Link clock
43665a6961SKrishna Manikandan      - description: Link interface clock between DP and PHY
44665a6961SKrishna Manikandan      - description: Display Port Pixel clock
45665a6961SKrishna Manikandan
46665a6961SKrishna Manikandan  clock-names:
47665a6961SKrishna Manikandan    items:
48665a6961SKrishna Manikandan      - const: core_iface
49665a6961SKrishna Manikandan      - const: core_aux
50665a6961SKrishna Manikandan      - const: ctrl_link
51665a6961SKrishna Manikandan      - const: ctrl_link_iface
52665a6961SKrishna Manikandan      - const: stream_pixel
53665a6961SKrishna Manikandan
54665a6961SKrishna Manikandan  assigned-clocks:
55665a6961SKrishna Manikandan    items:
56665a6961SKrishna Manikandan      - description: link clock source
57665a6961SKrishna Manikandan      - description: pixel clock source
58665a6961SKrishna Manikandan
59665a6961SKrishna Manikandan  assigned-clock-parents:
60665a6961SKrishna Manikandan    items:
61665a6961SKrishna Manikandan      - description: phy 0 parent
62665a6961SKrishna Manikandan      - description: phy 1 parent
63665a6961SKrishna Manikandan
64665a6961SKrishna Manikandan  phys:
65665a6961SKrishna Manikandan    maxItems: 1
66665a6961SKrishna Manikandan
67665a6961SKrishna Manikandan  phy-names:
68665a6961SKrishna Manikandan    items:
69665a6961SKrishna Manikandan      - const: dp
70665a6961SKrishna Manikandan
71665a6961SKrishna Manikandan  operating-points-v2:
72665a6961SKrishna Manikandan    maxItems: 1
73665a6961SKrishna Manikandan
7433468f4dSDmitry Baryshkov  opp-table: true
7533468f4dSDmitry Baryshkov
76665a6961SKrishna Manikandan  power-domains:
77665a6961SKrishna Manikandan    maxItems: 1
78665a6961SKrishna Manikandan
7933468f4dSDmitry Baryshkov  aux-bus:
8033468f4dSDmitry Baryshkov    $ref: /schemas/display/dp-aux-bus.yaml#
8133468f4dSDmitry Baryshkov
8233468f4dSDmitry Baryshkov  data-lanes:
8333468f4dSDmitry Baryshkov    $ref: /schemas/types.yaml#/definitions/uint32-array
8433468f4dSDmitry Baryshkov    minItems: 1
8533468f4dSDmitry Baryshkov    maxItems: 4
8633468f4dSDmitry Baryshkov    items:
8733468f4dSDmitry Baryshkov      maximum: 3
8833468f4dSDmitry Baryshkov
89665a6961SKrishna Manikandan  "#sound-dai-cells":
90665a6961SKrishna Manikandan    const: 0
91665a6961SKrishna Manikandan
92fd713be0SDmitry Baryshkov  vdda-0p9-supply:
93fd713be0SDmitry Baryshkov    deprecated: true
94fd713be0SDmitry Baryshkov  vdda-1p2-supply:
95fd713be0SDmitry Baryshkov    deprecated: true
96ce557eafSDouglas Anderson
97665a6961SKrishna Manikandan  ports:
98665a6961SKrishna Manikandan    $ref: /schemas/graph.yaml#/properties/ports
99665a6961SKrishna Manikandan    properties:
100665a6961SKrishna Manikandan      port@0:
101665a6961SKrishna Manikandan        $ref: /schemas/graph.yaml#/properties/port
102665a6961SKrishna Manikandan        description: Input endpoint of the controller
103665a6961SKrishna Manikandan
104665a6961SKrishna Manikandan      port@1:
105665a6961SKrishna Manikandan        $ref: /schemas/graph.yaml#/properties/port
106665a6961SKrishna Manikandan        description: Output endpoint of the controller
107665a6961SKrishna Manikandan
108665a6961SKrishna Manikandanrequired:
109665a6961SKrishna Manikandan  - compatible
110665a6961SKrishna Manikandan  - reg
111665a6961SKrishna Manikandan  - interrupts
112665a6961SKrishna Manikandan  - clocks
113665a6961SKrishna Manikandan  - clock-names
114665a6961SKrishna Manikandan  - phys
115665a6961SKrishna Manikandan  - phy-names
116665a6961SKrishna Manikandan  - power-domains
117665a6961SKrishna Manikandan  - ports
118665a6961SKrishna Manikandan
119122b17f3SDmitry BaryshkovallOf:
120122b17f3SDmitry Baryshkov  # AUX BUS does not exist on DP controllers
121122b17f3SDmitry Baryshkov  # Audio output also is present only on DP output
122122b17f3SDmitry Baryshkov  # p1 regions is present on DP, but not on eDP
123122b17f3SDmitry Baryshkov  - if:
124122b17f3SDmitry Baryshkov      properties:
125122b17f3SDmitry Baryshkov        compatible:
126122b17f3SDmitry Baryshkov          contains:
127122b17f3SDmitry Baryshkov            enum:
128122b17f3SDmitry Baryshkov              - qcom,sc7280-edp
129122b17f3SDmitry Baryshkov              - qcom,sc8180x-edp
130*7617aba0SDmitry Baryshkov              - qcom,sc8280xp-edp
131122b17f3SDmitry Baryshkov    then:
132122b17f3SDmitry Baryshkov      properties:
133122b17f3SDmitry Baryshkov        "#sound-dai-cells": false
134122b17f3SDmitry Baryshkov    else:
135122b17f3SDmitry Baryshkov      properties:
136122b17f3SDmitry Baryshkov        aux-bus: false
137122b17f3SDmitry Baryshkov        reg:
138122b17f3SDmitry Baryshkov          minItems: 5
139122b17f3SDmitry Baryshkov      required:
140122b17f3SDmitry Baryshkov        - "#sound-dai-cells"
141122b17f3SDmitry Baryshkov
142665a6961SKrishna ManikandanadditionalProperties: false
143665a6961SKrishna Manikandan
144665a6961SKrishna Manikandanexamples:
145665a6961SKrishna Manikandan  - |
146665a6961SKrishna Manikandan    #include <dt-bindings/interrupt-controller/arm-gic.h>
147665a6961SKrishna Manikandan    #include <dt-bindings/clock/qcom,dispcc-sc7180.h>
148665a6961SKrishna Manikandan    #include <dt-bindings/power/qcom-rpmpd.h>
149665a6961SKrishna Manikandan
150665a6961SKrishna Manikandan    displayport-controller@ae90000 {
151665a6961SKrishna Manikandan        compatible = "qcom,sc7180-dp";
152687825c4SBjorn Andersson        reg = <0xae90000 0x200>,
153687825c4SBjorn Andersson              <0xae90200 0x200>,
154687825c4SBjorn Andersson              <0xae90400 0xc00>,
155687825c4SBjorn Andersson              <0xae91000 0x400>,
156687825c4SBjorn Andersson              <0xae91400 0x400>;
157665a6961SKrishna Manikandan        interrupt-parent = <&mdss>;
158665a6961SKrishna Manikandan        interrupts = <12>;
159665a6961SKrishna Manikandan        clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>,
160665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_AUX_CLK>,
161665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_LINK_CLK>,
162665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_LINK_INTF_CLK>,
163665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK>;
164665a6961SKrishna Manikandan        clock-names = "core_iface", "core_aux",
165665a6961SKrishna Manikandan                      "ctrl_link",
166665a6961SKrishna Manikandan                      "ctrl_link_iface", "stream_pixel";
167665a6961SKrishna Manikandan
168665a6961SKrishna Manikandan        assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>,
169665a6961SKrishna Manikandan                          <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>;
170665a6961SKrishna Manikandan
171665a6961SKrishna Manikandan        assigned-clock-parents = <&dp_phy 0>, <&dp_phy 1>;
172665a6961SKrishna Manikandan
173665a6961SKrishna Manikandan        phys = <&dp_phy>;
174665a6961SKrishna Manikandan        phy-names = "dp";
175665a6961SKrishna Manikandan
176665a6961SKrishna Manikandan        #sound-dai-cells = <0>;
177665a6961SKrishna Manikandan
178665a6961SKrishna Manikandan        power-domains = <&rpmhpd SC7180_CX>;
179665a6961SKrishna Manikandan
180665a6961SKrishna Manikandan        ports {
181665a6961SKrishna Manikandan            #address-cells = <1>;
182665a6961SKrishna Manikandan            #size-cells = <0>;
183665a6961SKrishna Manikandan
184665a6961SKrishna Manikandan            port@0 {
185665a6961SKrishna Manikandan                reg = <0>;
186665a6961SKrishna Manikandan                endpoint {
187665a6961SKrishna Manikandan                    remote-endpoint = <&dpu_intf0_out>;
188665a6961SKrishna Manikandan                };
189665a6961SKrishna Manikandan            };
190665a6961SKrishna Manikandan
191665a6961SKrishna Manikandan            port@1 {
192665a6961SKrishna Manikandan                reg = <1>;
193665a6961SKrishna Manikandan                endpoint {
194665a6961SKrishna Manikandan                    remote-endpoint = <&typec>;
195665a6961SKrishna Manikandan                };
196665a6961SKrishna Manikandan            };
197665a6961SKrishna Manikandan        };
198665a6961SKrishna Manikandan    };
199665a6961SKrishna Manikandan...
200