xref: /linux/Documentation/devicetree/bindings/display/msm/dp-controller.yaml (revision 123f125550741ca69fda8a3a1baa2230fc596616)
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
24b6f8c4deSBjorn Andersson      - qcom,sc8280xp-dp
25b6f8c4deSBjorn Andersson      - qcom,sc8280xp-edp
26b6f8c4deSBjorn 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
87*123f1255SKuogee Hsieh    deprecated: true
8833468f4dSDmitry Baryshkov    minItems: 1
8933468f4dSDmitry Baryshkov    maxItems: 4
9033468f4dSDmitry Baryshkov    items:
9133468f4dSDmitry Baryshkov      maximum: 3
9233468f4dSDmitry Baryshkov
93665a6961SKrishna Manikandan  "#sound-dai-cells":
94665a6961SKrishna Manikandan    const: 0
95665a6961SKrishna Manikandan
96fd713be0SDmitry Baryshkov  vdda-0p9-supply:
97fd713be0SDmitry Baryshkov    deprecated: true
98fd713be0SDmitry Baryshkov  vdda-1p2-supply:
99fd713be0SDmitry Baryshkov    deprecated: true
100ce557eafSDouglas Anderson
101665a6961SKrishna Manikandan  ports:
102665a6961SKrishna Manikandan    $ref: /schemas/graph.yaml#/properties/ports
103665a6961SKrishna Manikandan    properties:
104665a6961SKrishna Manikandan      port@0:
105665a6961SKrishna Manikandan        $ref: /schemas/graph.yaml#/properties/port
106665a6961SKrishna Manikandan        description: Input endpoint of the controller
107665a6961SKrishna Manikandan
108665a6961SKrishna Manikandan      port@1:
109*123f1255SKuogee Hsieh        $ref: /schemas/graph.yaml#/$defs/port-base
110665a6961SKrishna Manikandan        description: Output endpoint of the controller
111*123f1255SKuogee Hsieh        properties:
112*123f1255SKuogee Hsieh          endpoint:
113*123f1255SKuogee Hsieh            $ref: /schemas/media/video-interfaces.yaml#
114*123f1255SKuogee Hsieh            unevaluatedProperties: false
115*123f1255SKuogee Hsieh            properties:
116*123f1255SKuogee Hsieh              data-lanes:
117*123f1255SKuogee Hsieh                minItems: 1
118*123f1255SKuogee Hsieh                maxItems: 4
119*123f1255SKuogee Hsieh                items:
120*123f1255SKuogee Hsieh                  enum: [ 0, 1, 2, 3 ]
121*123f1255SKuogee Hsieh
122*123f1255SKuogee Hsieh              link-frequencies:
123*123f1255SKuogee Hsieh                minItems: 1
124*123f1255SKuogee Hsieh                maxItems: 4
125*123f1255SKuogee Hsieh                items:
126*123f1255SKuogee Hsieh                  enum: [ 1620000000, 2700000000, 5400000000, 8100000000 ]
127*123f1255SKuogee Hsieh
128*123f1255SKuogee Hsieh    required:
129*123f1255SKuogee Hsieh      - port@0
130*123f1255SKuogee Hsieh      - port@1
131665a6961SKrishna Manikandan
132665a6961SKrishna Manikandanrequired:
133665a6961SKrishna Manikandan  - compatible
134665a6961SKrishna Manikandan  - reg
135665a6961SKrishna Manikandan  - interrupts
136665a6961SKrishna Manikandan  - clocks
137665a6961SKrishna Manikandan  - clock-names
138665a6961SKrishna Manikandan  - phys
139665a6961SKrishna Manikandan  - phy-names
140665a6961SKrishna Manikandan  - power-domains
141665a6961SKrishna Manikandan  - ports
142665a6961SKrishna Manikandan
143122b17f3SDmitry BaryshkovallOf:
144122b17f3SDmitry Baryshkov  # AUX BUS does not exist on DP controllers
145122b17f3SDmitry Baryshkov  # Audio output also is present only on DP output
146122b17f3SDmitry Baryshkov  # p1 regions is present on DP, but not on eDP
147122b17f3SDmitry Baryshkov  - if:
148122b17f3SDmitry Baryshkov      properties:
149122b17f3SDmitry Baryshkov        compatible:
150122b17f3SDmitry Baryshkov          contains:
151122b17f3SDmitry Baryshkov            enum:
152122b17f3SDmitry Baryshkov              - qcom,sc7280-edp
153122b17f3SDmitry Baryshkov              - qcom,sc8180x-edp
154122b17f3SDmitry Baryshkov    then:
155122b17f3SDmitry Baryshkov      properties:
156122b17f3SDmitry Baryshkov        "#sound-dai-cells": false
157122b17f3SDmitry Baryshkov        reg:
158122b17f3SDmitry Baryshkov          maxItems: 4
159122b17f3SDmitry Baryshkov    else:
160122b17f3SDmitry Baryshkov      properties:
161122b17f3SDmitry Baryshkov        aux-bus: false
162122b17f3SDmitry Baryshkov        reg:
163122b17f3SDmitry Baryshkov          minItems: 5
164122b17f3SDmitry Baryshkov      required:
165122b17f3SDmitry Baryshkov        - "#sound-dai-cells"
166122b17f3SDmitry Baryshkov
167665a6961SKrishna ManikandanadditionalProperties: false
168665a6961SKrishna Manikandan
169665a6961SKrishna Manikandanexamples:
170665a6961SKrishna Manikandan  - |
171665a6961SKrishna Manikandan    #include <dt-bindings/interrupt-controller/arm-gic.h>
172665a6961SKrishna Manikandan    #include <dt-bindings/clock/qcom,dispcc-sc7180.h>
173665a6961SKrishna Manikandan    #include <dt-bindings/power/qcom-rpmpd.h>
174665a6961SKrishna Manikandan
175665a6961SKrishna Manikandan    displayport-controller@ae90000 {
176665a6961SKrishna Manikandan        compatible = "qcom,sc7180-dp";
177687825c4SBjorn Andersson        reg = <0xae90000 0x200>,
178687825c4SBjorn Andersson              <0xae90200 0x200>,
179687825c4SBjorn Andersson              <0xae90400 0xc00>,
180687825c4SBjorn Andersson              <0xae91000 0x400>,
181687825c4SBjorn Andersson              <0xae91400 0x400>;
182665a6961SKrishna Manikandan        interrupt-parent = <&mdss>;
183665a6961SKrishna Manikandan        interrupts = <12>;
184665a6961SKrishna Manikandan        clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>,
185665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_AUX_CLK>,
186665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_LINK_CLK>,
187665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_LINK_INTF_CLK>,
188665a6961SKrishna Manikandan                 <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK>;
189665a6961SKrishna Manikandan        clock-names = "core_iface", "core_aux",
190665a6961SKrishna Manikandan                      "ctrl_link",
191665a6961SKrishna Manikandan                      "ctrl_link_iface", "stream_pixel";
192665a6961SKrishna Manikandan
193665a6961SKrishna Manikandan        assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>,
194665a6961SKrishna Manikandan                          <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>;
195665a6961SKrishna Manikandan
196665a6961SKrishna Manikandan        assigned-clock-parents = <&dp_phy 0>, <&dp_phy 1>;
197665a6961SKrishna Manikandan
198665a6961SKrishna Manikandan        phys = <&dp_phy>;
199665a6961SKrishna Manikandan        phy-names = "dp";
200665a6961SKrishna Manikandan
201665a6961SKrishna Manikandan        #sound-dai-cells = <0>;
202665a6961SKrishna Manikandan
203665a6961SKrishna Manikandan        power-domains = <&rpmhpd SC7180_CX>;
204665a6961SKrishna Manikandan
205665a6961SKrishna Manikandan        ports {
206665a6961SKrishna Manikandan            #address-cells = <1>;
207665a6961SKrishna Manikandan            #size-cells = <0>;
208665a6961SKrishna Manikandan
209665a6961SKrishna Manikandan            port@0 {
210665a6961SKrishna Manikandan                reg = <0>;
211665a6961SKrishna Manikandan                endpoint {
212665a6961SKrishna Manikandan                    remote-endpoint = <&dpu_intf0_out>;
213665a6961SKrishna Manikandan                };
214665a6961SKrishna Manikandan            };
215665a6961SKrishna Manikandan
216665a6961SKrishna Manikandan            port@1 {
217665a6961SKrishna Manikandan                reg = <1>;
218665a6961SKrishna Manikandan                endpoint {
219665a6961SKrishna Manikandan                    remote-endpoint = <&typec>;
220*123f1255SKuogee Hsieh                    data-lanes = <0 1>;
221*123f1255SKuogee Hsieh                    link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
222665a6961SKrishna Manikandan                };
223665a6961SKrishna Manikandan            };
224665a6961SKrishna Manikandan        };
225665a6961SKrishna Manikandan    };
226665a6961SKrishna Manikandan...
227