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: 188707ba05SNeil Armstrong oneOf: 198707ba05SNeil Armstrong - enum: 20665a6961SKrishna Manikandan - qcom,sc7180-dp 210a697b9cSSankeerth Billakanti - qcom,sc7280-dp 220a697b9cSSankeerth Billakanti - qcom,sc7280-edp 23e60af4f8SBjorn Andersson - qcom,sc8180x-dp 24e60af4f8SBjorn Andersson - qcom,sc8180x-edp 25b6f8c4deSBjorn Andersson - qcom,sc8280xp-dp 26b6f8c4deSBjorn Andersson - qcom,sc8280xp-edp 27b6f8c4deSBjorn Andersson - qcom,sdm845-dp 28f5408b21SBjorn Andersson - qcom,sm8350-dp 298707ba05SNeil Armstrong - items: 308707ba05SNeil Armstrong - enum: 31cc9a7971SDmitry Baryshkov - qcom,sm8250-dp 328707ba05SNeil Armstrong - qcom,sm8450-dp 3376015b9eSNeil Armstrong - qcom,sm8550-dp 348707ba05SNeil Armstrong - const: qcom,sm8350-dp 35665a6961SKrishna Manikandan 36665a6961SKrishna Manikandan reg: 37122b17f3SDmitry Baryshkov minItems: 4 38687825c4SBjorn Andersson items: 39687825c4SBjorn Andersson - description: ahb register block 40687825c4SBjorn Andersson - description: aux register block 41687825c4SBjorn Andersson - description: link register block 42687825c4SBjorn Andersson - description: p0 register block 43687825c4SBjorn Andersson - description: p1 register block 44665a6961SKrishna Manikandan 45665a6961SKrishna Manikandan interrupts: 46665a6961SKrishna Manikandan maxItems: 1 47665a6961SKrishna Manikandan 48665a6961SKrishna Manikandan clocks: 49665a6961SKrishna Manikandan items: 50665a6961SKrishna Manikandan - description: AHB clock to enable register access 51665a6961SKrishna Manikandan - description: Display Port AUX clock 52665a6961SKrishna Manikandan - description: Display Port Link clock 53665a6961SKrishna Manikandan - description: Link interface clock between DP and PHY 54665a6961SKrishna Manikandan - description: Display Port Pixel clock 55665a6961SKrishna Manikandan 56665a6961SKrishna Manikandan clock-names: 57665a6961SKrishna Manikandan items: 58665a6961SKrishna Manikandan - const: core_iface 59665a6961SKrishna Manikandan - const: core_aux 60665a6961SKrishna Manikandan - const: ctrl_link 61665a6961SKrishna Manikandan - const: ctrl_link_iface 62665a6961SKrishna Manikandan - const: stream_pixel 63665a6961SKrishna Manikandan 64665a6961SKrishna Manikandan assigned-clocks: 65665a6961SKrishna Manikandan items: 66665a6961SKrishna Manikandan - description: link clock source 67665a6961SKrishna Manikandan - description: pixel clock source 68665a6961SKrishna Manikandan 69665a6961SKrishna Manikandan assigned-clock-parents: 70665a6961SKrishna Manikandan items: 71665a6961SKrishna Manikandan - description: phy 0 parent 72665a6961SKrishna Manikandan - description: phy 1 parent 73665a6961SKrishna Manikandan 74665a6961SKrishna Manikandan phys: 75665a6961SKrishna Manikandan maxItems: 1 76665a6961SKrishna Manikandan 77665a6961SKrishna Manikandan phy-names: 78665a6961SKrishna Manikandan items: 79665a6961SKrishna Manikandan - const: dp 80665a6961SKrishna Manikandan 8121fd06dcSKrzysztof Kozlowski operating-points-v2: true 82665a6961SKrishna Manikandan 83ae23f141SKrzysztof Kozlowski opp-table: 84ae23f141SKrzysztof Kozlowski type: object 8533468f4dSDmitry Baryshkov 86665a6961SKrishna Manikandan power-domains: 87665a6961SKrishna Manikandan maxItems: 1 88665a6961SKrishna Manikandan 8933468f4dSDmitry Baryshkov aux-bus: 9033468f4dSDmitry Baryshkov $ref: /schemas/display/dp-aux-bus.yaml# 9133468f4dSDmitry Baryshkov 9233468f4dSDmitry Baryshkov data-lanes: 9333468f4dSDmitry Baryshkov $ref: /schemas/types.yaml#/definitions/uint32-array 94123f1255SKuogee Hsieh deprecated: true 9533468f4dSDmitry Baryshkov minItems: 1 9633468f4dSDmitry Baryshkov maxItems: 4 9733468f4dSDmitry Baryshkov items: 9833468f4dSDmitry Baryshkov maximum: 3 9933468f4dSDmitry Baryshkov 100665a6961SKrishna Manikandan "#sound-dai-cells": 101665a6961SKrishna Manikandan const: 0 102665a6961SKrishna Manikandan 103fd713be0SDmitry Baryshkov vdda-0p9-supply: 104fd713be0SDmitry Baryshkov deprecated: true 105fd713be0SDmitry Baryshkov vdda-1p2-supply: 106fd713be0SDmitry Baryshkov deprecated: true 107ce557eafSDouglas Anderson 108665a6961SKrishna Manikandan ports: 109665a6961SKrishna Manikandan $ref: /schemas/graph.yaml#/properties/ports 110665a6961SKrishna Manikandan properties: 111665a6961SKrishna Manikandan port@0: 112665a6961SKrishna Manikandan $ref: /schemas/graph.yaml#/properties/port 113665a6961SKrishna Manikandan description: Input endpoint of the controller 114665a6961SKrishna Manikandan 115665a6961SKrishna Manikandan port@1: 116123f1255SKuogee Hsieh $ref: /schemas/graph.yaml#/$defs/port-base 117*b3eb5bd3SRob Herring unevaluatedProperties: false 118665a6961SKrishna Manikandan description: Output endpoint of the controller 119123f1255SKuogee Hsieh properties: 120123f1255SKuogee Hsieh endpoint: 121123f1255SKuogee Hsieh $ref: /schemas/media/video-interfaces.yaml# 122123f1255SKuogee Hsieh unevaluatedProperties: false 123123f1255SKuogee Hsieh properties: 124123f1255SKuogee Hsieh data-lanes: 125123f1255SKuogee Hsieh minItems: 1 126123f1255SKuogee Hsieh maxItems: 4 127123f1255SKuogee Hsieh items: 128123f1255SKuogee Hsieh enum: [ 0, 1, 2, 3 ] 129123f1255SKuogee Hsieh 130123f1255SKuogee Hsieh link-frequencies: 131123f1255SKuogee Hsieh minItems: 1 132123f1255SKuogee Hsieh maxItems: 4 133123f1255SKuogee Hsieh items: 134123f1255SKuogee Hsieh enum: [ 1620000000, 2700000000, 5400000000, 8100000000 ] 135123f1255SKuogee Hsieh 136123f1255SKuogee Hsieh required: 137123f1255SKuogee Hsieh - port@0 138123f1255SKuogee Hsieh - port@1 139665a6961SKrishna Manikandan 140665a6961SKrishna Manikandanrequired: 141665a6961SKrishna Manikandan - compatible 142665a6961SKrishna Manikandan - reg 143665a6961SKrishna Manikandan - interrupts 144665a6961SKrishna Manikandan - clocks 145665a6961SKrishna Manikandan - clock-names 146665a6961SKrishna Manikandan - phys 147665a6961SKrishna Manikandan - phy-names 148665a6961SKrishna Manikandan - power-domains 149665a6961SKrishna Manikandan - ports 150665a6961SKrishna Manikandan 151122b17f3SDmitry BaryshkovallOf: 152122b17f3SDmitry Baryshkov # AUX BUS does not exist on DP controllers 153122b17f3SDmitry Baryshkov # Audio output also is present only on DP output 154122b17f3SDmitry Baryshkov # p1 regions is present on DP, but not on eDP 155122b17f3SDmitry Baryshkov - if: 156122b17f3SDmitry Baryshkov properties: 157122b17f3SDmitry Baryshkov compatible: 158122b17f3SDmitry Baryshkov contains: 159122b17f3SDmitry Baryshkov enum: 160122b17f3SDmitry Baryshkov - qcom,sc7280-edp 161122b17f3SDmitry Baryshkov - qcom,sc8180x-edp 1627617aba0SDmitry Baryshkov - qcom,sc8280xp-edp 163122b17f3SDmitry Baryshkov then: 164122b17f3SDmitry Baryshkov properties: 165122b17f3SDmitry Baryshkov "#sound-dai-cells": false 166122b17f3SDmitry Baryshkov else: 167122b17f3SDmitry Baryshkov properties: 168122b17f3SDmitry Baryshkov aux-bus: false 169122b17f3SDmitry Baryshkov reg: 170122b17f3SDmitry Baryshkov minItems: 5 171122b17f3SDmitry Baryshkov required: 172122b17f3SDmitry Baryshkov - "#sound-dai-cells" 173122b17f3SDmitry Baryshkov 174665a6961SKrishna ManikandanadditionalProperties: false 175665a6961SKrishna Manikandan 176665a6961SKrishna Manikandanexamples: 177665a6961SKrishna Manikandan - | 178665a6961SKrishna Manikandan #include <dt-bindings/interrupt-controller/arm-gic.h> 179665a6961SKrishna Manikandan #include <dt-bindings/clock/qcom,dispcc-sc7180.h> 180665a6961SKrishna Manikandan #include <dt-bindings/power/qcom-rpmpd.h> 181665a6961SKrishna Manikandan 182665a6961SKrishna Manikandan displayport-controller@ae90000 { 183665a6961SKrishna Manikandan compatible = "qcom,sc7180-dp"; 184687825c4SBjorn Andersson reg = <0xae90000 0x200>, 185687825c4SBjorn Andersson <0xae90200 0x200>, 186687825c4SBjorn Andersson <0xae90400 0xc00>, 187687825c4SBjorn Andersson <0xae91000 0x400>, 188687825c4SBjorn Andersson <0xae91400 0x400>; 189665a6961SKrishna Manikandan interrupt-parent = <&mdss>; 190665a6961SKrishna Manikandan interrupts = <12>; 191665a6961SKrishna Manikandan clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, 192665a6961SKrishna Manikandan <&dispcc DISP_CC_MDSS_DP_AUX_CLK>, 193665a6961SKrishna Manikandan <&dispcc DISP_CC_MDSS_DP_LINK_CLK>, 194665a6961SKrishna Manikandan <&dispcc DISP_CC_MDSS_DP_LINK_INTF_CLK>, 195665a6961SKrishna Manikandan <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK>; 196665a6961SKrishna Manikandan clock-names = "core_iface", "core_aux", 197665a6961SKrishna Manikandan "ctrl_link", 198665a6961SKrishna Manikandan "ctrl_link_iface", "stream_pixel"; 199665a6961SKrishna Manikandan 200665a6961SKrishna Manikandan assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>, 201665a6961SKrishna Manikandan <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>; 202665a6961SKrishna Manikandan 203665a6961SKrishna Manikandan assigned-clock-parents = <&dp_phy 0>, <&dp_phy 1>; 204665a6961SKrishna Manikandan 205665a6961SKrishna Manikandan phys = <&dp_phy>; 206665a6961SKrishna Manikandan phy-names = "dp"; 207665a6961SKrishna Manikandan 208665a6961SKrishna Manikandan #sound-dai-cells = <0>; 209665a6961SKrishna Manikandan 210665a6961SKrishna Manikandan power-domains = <&rpmhpd SC7180_CX>; 211665a6961SKrishna Manikandan 212665a6961SKrishna Manikandan ports { 213665a6961SKrishna Manikandan #address-cells = <1>; 214665a6961SKrishna Manikandan #size-cells = <0>; 215665a6961SKrishna Manikandan 216665a6961SKrishna Manikandan port@0 { 217665a6961SKrishna Manikandan reg = <0>; 218665a6961SKrishna Manikandan endpoint { 219665a6961SKrishna Manikandan remote-endpoint = <&dpu_intf0_out>; 220665a6961SKrishna Manikandan }; 221665a6961SKrishna Manikandan }; 222665a6961SKrishna Manikandan 223665a6961SKrishna Manikandan port@1 { 224665a6961SKrishna Manikandan reg = <1>; 225665a6961SKrishna Manikandan endpoint { 226665a6961SKrishna Manikandan remote-endpoint = <&typec>; 227123f1255SKuogee Hsieh data-lanes = <0 1>; 228123f1255SKuogee Hsieh link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; 229665a6961SKrishna Manikandan }; 230665a6961SKrishna Manikandan }; 231665a6961SKrishna Manikandan }; 232665a6961SKrishna Manikandan }; 233665a6961SKrishna Manikandan... 234