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: 318707ba05SNeil Armstrong - qcom,sm8450-dp 3276015b9eSNeil Armstrong - qcom,sm8550-dp 338707ba05SNeil Armstrong - const: qcom,sm8350-dp 34665a6961SKrishna Manikandan 35665a6961SKrishna Manikandan reg: 36122b17f3SDmitry Baryshkov minItems: 4 37687825c4SBjorn Andersson items: 38687825c4SBjorn Andersson - description: ahb register block 39687825c4SBjorn Andersson - description: aux register block 40687825c4SBjorn Andersson - description: link register block 41687825c4SBjorn Andersson - description: p0 register block 42687825c4SBjorn Andersson - description: p1 register block 43665a6961SKrishna Manikandan 44665a6961SKrishna Manikandan interrupts: 45665a6961SKrishna Manikandan maxItems: 1 46665a6961SKrishna Manikandan 47665a6961SKrishna Manikandan clocks: 48665a6961SKrishna Manikandan items: 49665a6961SKrishna Manikandan - description: AHB clock to enable register access 50665a6961SKrishna Manikandan - description: Display Port AUX clock 51665a6961SKrishna Manikandan - description: Display Port Link clock 52665a6961SKrishna Manikandan - description: Link interface clock between DP and PHY 53665a6961SKrishna Manikandan - description: Display Port Pixel clock 54665a6961SKrishna Manikandan 55665a6961SKrishna Manikandan clock-names: 56665a6961SKrishna Manikandan items: 57665a6961SKrishna Manikandan - const: core_iface 58665a6961SKrishna Manikandan - const: core_aux 59665a6961SKrishna Manikandan - const: ctrl_link 60665a6961SKrishna Manikandan - const: ctrl_link_iface 61665a6961SKrishna Manikandan - const: stream_pixel 62665a6961SKrishna Manikandan 63665a6961SKrishna Manikandan assigned-clocks: 64665a6961SKrishna Manikandan items: 65665a6961SKrishna Manikandan - description: link clock source 66665a6961SKrishna Manikandan - description: pixel clock source 67665a6961SKrishna Manikandan 68665a6961SKrishna Manikandan assigned-clock-parents: 69665a6961SKrishna Manikandan items: 70665a6961SKrishna Manikandan - description: phy 0 parent 71665a6961SKrishna Manikandan - description: phy 1 parent 72665a6961SKrishna Manikandan 73665a6961SKrishna Manikandan phys: 74665a6961SKrishna Manikandan maxItems: 1 75665a6961SKrishna Manikandan 76665a6961SKrishna Manikandan phy-names: 77665a6961SKrishna Manikandan items: 78665a6961SKrishna Manikandan - const: dp 79665a6961SKrishna Manikandan 8021fd06dcSKrzysztof Kozlowski operating-points-v2: true 81665a6961SKrishna Manikandan 82*ae23f141SKrzysztof Kozlowski opp-table: 83*ae23f141SKrzysztof Kozlowski type: object 8433468f4dSDmitry Baryshkov 85665a6961SKrishna Manikandan power-domains: 86665a6961SKrishna Manikandan maxItems: 1 87665a6961SKrishna Manikandan 8833468f4dSDmitry Baryshkov aux-bus: 8933468f4dSDmitry Baryshkov $ref: /schemas/display/dp-aux-bus.yaml# 9033468f4dSDmitry Baryshkov 9133468f4dSDmitry Baryshkov data-lanes: 9233468f4dSDmitry Baryshkov $ref: /schemas/types.yaml#/definitions/uint32-array 93123f1255SKuogee Hsieh deprecated: true 9433468f4dSDmitry Baryshkov minItems: 1 9533468f4dSDmitry Baryshkov maxItems: 4 9633468f4dSDmitry Baryshkov items: 9733468f4dSDmitry Baryshkov maximum: 3 9833468f4dSDmitry Baryshkov 99665a6961SKrishna Manikandan "#sound-dai-cells": 100665a6961SKrishna Manikandan const: 0 101665a6961SKrishna Manikandan 102fd713be0SDmitry Baryshkov vdda-0p9-supply: 103fd713be0SDmitry Baryshkov deprecated: true 104fd713be0SDmitry Baryshkov vdda-1p2-supply: 105fd713be0SDmitry Baryshkov deprecated: true 106ce557eafSDouglas Anderson 107665a6961SKrishna Manikandan ports: 108665a6961SKrishna Manikandan $ref: /schemas/graph.yaml#/properties/ports 109665a6961SKrishna Manikandan properties: 110665a6961SKrishna Manikandan port@0: 111665a6961SKrishna Manikandan $ref: /schemas/graph.yaml#/properties/port 112665a6961SKrishna Manikandan description: Input endpoint of the controller 113665a6961SKrishna Manikandan 114665a6961SKrishna Manikandan port@1: 115123f1255SKuogee Hsieh $ref: /schemas/graph.yaml#/$defs/port-base 116665a6961SKrishna Manikandan description: Output endpoint of the controller 117123f1255SKuogee Hsieh properties: 118123f1255SKuogee Hsieh endpoint: 119123f1255SKuogee Hsieh $ref: /schemas/media/video-interfaces.yaml# 120123f1255SKuogee Hsieh unevaluatedProperties: false 121123f1255SKuogee Hsieh properties: 122123f1255SKuogee Hsieh data-lanes: 123123f1255SKuogee Hsieh minItems: 1 124123f1255SKuogee Hsieh maxItems: 4 125123f1255SKuogee Hsieh items: 126123f1255SKuogee Hsieh enum: [ 0, 1, 2, 3 ] 127123f1255SKuogee Hsieh 128123f1255SKuogee Hsieh link-frequencies: 129123f1255SKuogee Hsieh minItems: 1 130123f1255SKuogee Hsieh maxItems: 4 131123f1255SKuogee Hsieh items: 132123f1255SKuogee Hsieh enum: [ 1620000000, 2700000000, 5400000000, 8100000000 ] 133123f1255SKuogee Hsieh 134123f1255SKuogee Hsieh required: 135123f1255SKuogee Hsieh - port@0 136123f1255SKuogee Hsieh - port@1 137665a6961SKrishna Manikandan 138665a6961SKrishna Manikandanrequired: 139665a6961SKrishna Manikandan - compatible 140665a6961SKrishna Manikandan - reg 141665a6961SKrishna Manikandan - interrupts 142665a6961SKrishna Manikandan - clocks 143665a6961SKrishna Manikandan - clock-names 144665a6961SKrishna Manikandan - phys 145665a6961SKrishna Manikandan - phy-names 146665a6961SKrishna Manikandan - power-domains 147665a6961SKrishna Manikandan - ports 148665a6961SKrishna Manikandan 149122b17f3SDmitry BaryshkovallOf: 150122b17f3SDmitry Baryshkov # AUX BUS does not exist on DP controllers 151122b17f3SDmitry Baryshkov # Audio output also is present only on DP output 152122b17f3SDmitry Baryshkov # p1 regions is present on DP, but not on eDP 153122b17f3SDmitry Baryshkov - if: 154122b17f3SDmitry Baryshkov properties: 155122b17f3SDmitry Baryshkov compatible: 156122b17f3SDmitry Baryshkov contains: 157122b17f3SDmitry Baryshkov enum: 158122b17f3SDmitry Baryshkov - qcom,sc7280-edp 159122b17f3SDmitry Baryshkov - qcom,sc8180x-edp 1607617aba0SDmitry Baryshkov - qcom,sc8280xp-edp 161122b17f3SDmitry Baryshkov then: 162122b17f3SDmitry Baryshkov properties: 163122b17f3SDmitry Baryshkov "#sound-dai-cells": false 164122b17f3SDmitry Baryshkov else: 165122b17f3SDmitry Baryshkov properties: 166122b17f3SDmitry Baryshkov aux-bus: false 167122b17f3SDmitry Baryshkov reg: 168122b17f3SDmitry Baryshkov minItems: 5 169122b17f3SDmitry Baryshkov required: 170122b17f3SDmitry Baryshkov - "#sound-dai-cells" 171122b17f3SDmitry Baryshkov 172665a6961SKrishna ManikandanadditionalProperties: false 173665a6961SKrishna Manikandan 174665a6961SKrishna Manikandanexamples: 175665a6961SKrishna Manikandan - | 176665a6961SKrishna Manikandan #include <dt-bindings/interrupt-controller/arm-gic.h> 177665a6961SKrishna Manikandan #include <dt-bindings/clock/qcom,dispcc-sc7180.h> 178665a6961SKrishna Manikandan #include <dt-bindings/power/qcom-rpmpd.h> 179665a6961SKrishna Manikandan 180665a6961SKrishna Manikandan displayport-controller@ae90000 { 181665a6961SKrishna Manikandan compatible = "qcom,sc7180-dp"; 182687825c4SBjorn Andersson reg = <0xae90000 0x200>, 183687825c4SBjorn Andersson <0xae90200 0x200>, 184687825c4SBjorn Andersson <0xae90400 0xc00>, 185687825c4SBjorn Andersson <0xae91000 0x400>, 186687825c4SBjorn Andersson <0xae91400 0x400>; 187665a6961SKrishna Manikandan interrupt-parent = <&mdss>; 188665a6961SKrishna Manikandan interrupts = <12>; 189665a6961SKrishna Manikandan clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, 190665a6961SKrishna Manikandan <&dispcc DISP_CC_MDSS_DP_AUX_CLK>, 191665a6961SKrishna Manikandan <&dispcc DISP_CC_MDSS_DP_LINK_CLK>, 192665a6961SKrishna Manikandan <&dispcc DISP_CC_MDSS_DP_LINK_INTF_CLK>, 193665a6961SKrishna Manikandan <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK>; 194665a6961SKrishna Manikandan clock-names = "core_iface", "core_aux", 195665a6961SKrishna Manikandan "ctrl_link", 196665a6961SKrishna Manikandan "ctrl_link_iface", "stream_pixel"; 197665a6961SKrishna Manikandan 198665a6961SKrishna Manikandan assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>, 199665a6961SKrishna Manikandan <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>; 200665a6961SKrishna Manikandan 201665a6961SKrishna Manikandan assigned-clock-parents = <&dp_phy 0>, <&dp_phy 1>; 202665a6961SKrishna Manikandan 203665a6961SKrishna Manikandan phys = <&dp_phy>; 204665a6961SKrishna Manikandan phy-names = "dp"; 205665a6961SKrishna Manikandan 206665a6961SKrishna Manikandan #sound-dai-cells = <0>; 207665a6961SKrishna Manikandan 208665a6961SKrishna Manikandan power-domains = <&rpmhpd SC7180_CX>; 209665a6961SKrishna Manikandan 210665a6961SKrishna Manikandan ports { 211665a6961SKrishna Manikandan #address-cells = <1>; 212665a6961SKrishna Manikandan #size-cells = <0>; 213665a6961SKrishna Manikandan 214665a6961SKrishna Manikandan port@0 { 215665a6961SKrishna Manikandan reg = <0>; 216665a6961SKrishna Manikandan endpoint { 217665a6961SKrishna Manikandan remote-endpoint = <&dpu_intf0_out>; 218665a6961SKrishna Manikandan }; 219665a6961SKrishna Manikandan }; 220665a6961SKrishna Manikandan 221665a6961SKrishna Manikandan port@1 { 222665a6961SKrishna Manikandan reg = <1>; 223665a6961SKrishna Manikandan endpoint { 224665a6961SKrishna Manikandan remote-endpoint = <&typec>; 225123f1255SKuogee Hsieh data-lanes = <0 1>; 226123f1255SKuogee Hsieh link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; 227665a6961SKrishna Manikandan }; 228665a6961SKrishna Manikandan }; 229665a6961SKrishna Manikandan }; 230665a6961SKrishna Manikandan }; 231665a6961SKrishna Manikandan... 232