xref: /freebsd-src/sys/contrib/device-tree/Bindings/display/msm/dp-controller.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/msm/dp-controller.yaml#
55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
75956d97fSEmmanuel Vadottitle: MSM Display Port Controller
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotmaintainers:
105956d97fSEmmanuel Vadot  - Kuogee Hsieh <khsieh@codeaurora.org>
115956d97fSEmmanuel Vadot
125956d97fSEmmanuel Vadotdescription: |
135956d97fSEmmanuel Vadot  Device tree bindings for DisplayPort host controller for MSM targets
145956d97fSEmmanuel Vadot  that are compatible with VESA DisplayPort interface specification.
155956d97fSEmmanuel Vadot
165956d97fSEmmanuel Vadotproperties:
175956d97fSEmmanuel Vadot  compatible:
185956d97fSEmmanuel Vadot    enum:
195956d97fSEmmanuel Vadot      - qcom,sc7180-dp
20e67e8565SEmmanuel Vadot      - qcom,sc7280-dp
21e67e8565SEmmanuel Vadot      - qcom,sc7280-edp
228cc087a1SEmmanuel Vadot      - qcom,sc8180x-dp
238cc087a1SEmmanuel Vadot      - qcom,sc8180x-edp
24*c9ccf3a3SEmmanuel Vadot      - qcom,sm8350-dp
255956d97fSEmmanuel Vadot
265956d97fSEmmanuel Vadot  reg:
278cc087a1SEmmanuel Vadot    items:
288cc087a1SEmmanuel Vadot      - description: ahb register block
298cc087a1SEmmanuel Vadot      - description: aux register block
308cc087a1SEmmanuel Vadot      - description: link register block
318cc087a1SEmmanuel Vadot      - description: p0 register block
328cc087a1SEmmanuel Vadot      - description: p1 register block
335956d97fSEmmanuel Vadot
345956d97fSEmmanuel Vadot  interrupts:
355956d97fSEmmanuel Vadot    maxItems: 1
365956d97fSEmmanuel Vadot
375956d97fSEmmanuel Vadot  clocks:
385956d97fSEmmanuel Vadot    items:
395956d97fSEmmanuel Vadot      - description: AHB clock to enable register access
405956d97fSEmmanuel Vadot      - description: Display Port AUX clock
415956d97fSEmmanuel Vadot      - description: Display Port Link clock
425956d97fSEmmanuel Vadot      - description: Link interface clock between DP and PHY
435956d97fSEmmanuel Vadot      - description: Display Port Pixel clock
445956d97fSEmmanuel Vadot
455956d97fSEmmanuel Vadot  clock-names:
465956d97fSEmmanuel Vadot    items:
475956d97fSEmmanuel Vadot      - const: core_iface
485956d97fSEmmanuel Vadot      - const: core_aux
495956d97fSEmmanuel Vadot      - const: ctrl_link
505956d97fSEmmanuel Vadot      - const: ctrl_link_iface
515956d97fSEmmanuel Vadot      - const: stream_pixel
525956d97fSEmmanuel Vadot
535956d97fSEmmanuel Vadot  assigned-clocks:
545956d97fSEmmanuel Vadot    items:
555956d97fSEmmanuel Vadot      - description: link clock source
565956d97fSEmmanuel Vadot      - description: pixel clock source
575956d97fSEmmanuel Vadot
585956d97fSEmmanuel Vadot  assigned-clock-parents:
595956d97fSEmmanuel Vadot    items:
605956d97fSEmmanuel Vadot      - description: phy 0 parent
615956d97fSEmmanuel Vadot      - description: phy 1 parent
625956d97fSEmmanuel Vadot
635956d97fSEmmanuel Vadot  phys:
645956d97fSEmmanuel Vadot    maxItems: 1
655956d97fSEmmanuel Vadot
665956d97fSEmmanuel Vadot  phy-names:
675956d97fSEmmanuel Vadot    items:
685956d97fSEmmanuel Vadot      - const: dp
695956d97fSEmmanuel Vadot
705956d97fSEmmanuel Vadot  operating-points-v2:
715956d97fSEmmanuel Vadot    maxItems: 1
725956d97fSEmmanuel Vadot
735956d97fSEmmanuel Vadot  power-domains:
745956d97fSEmmanuel Vadot    maxItems: 1
755956d97fSEmmanuel Vadot
765956d97fSEmmanuel Vadot  "#sound-dai-cells":
775956d97fSEmmanuel Vadot    const: 0
785956d97fSEmmanuel Vadot
795956d97fSEmmanuel Vadot  ports:
805956d97fSEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
815956d97fSEmmanuel Vadot    properties:
825956d97fSEmmanuel Vadot      port@0:
835956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
845956d97fSEmmanuel Vadot        description: Input endpoint of the controller
855956d97fSEmmanuel Vadot
865956d97fSEmmanuel Vadot      port@1:
875956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
885956d97fSEmmanuel Vadot        description: Output endpoint of the controller
895956d97fSEmmanuel Vadot
905956d97fSEmmanuel Vadotrequired:
915956d97fSEmmanuel Vadot  - compatible
925956d97fSEmmanuel Vadot  - reg
935956d97fSEmmanuel Vadot  - interrupts
945956d97fSEmmanuel Vadot  - clocks
955956d97fSEmmanuel Vadot  - clock-names
965956d97fSEmmanuel Vadot  - phys
975956d97fSEmmanuel Vadot  - phy-names
985956d97fSEmmanuel Vadot  - "#sound-dai-cells"
995956d97fSEmmanuel Vadot  - power-domains
1005956d97fSEmmanuel Vadot  - ports
1015956d97fSEmmanuel Vadot
1025956d97fSEmmanuel VadotadditionalProperties: false
1035956d97fSEmmanuel Vadot
1045956d97fSEmmanuel Vadotexamples:
1055956d97fSEmmanuel Vadot  - |
1065956d97fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
1075956d97fSEmmanuel Vadot    #include <dt-bindings/clock/qcom,dispcc-sc7180.h>
1085956d97fSEmmanuel Vadot    #include <dt-bindings/power/qcom-rpmpd.h>
1095956d97fSEmmanuel Vadot
1105956d97fSEmmanuel Vadot    displayport-controller@ae90000 {
1115956d97fSEmmanuel Vadot        compatible = "qcom,sc7180-dp";
1128cc087a1SEmmanuel Vadot        reg = <0xae90000 0x200>,
1138cc087a1SEmmanuel Vadot              <0xae90200 0x200>,
1148cc087a1SEmmanuel Vadot              <0xae90400 0xc00>,
1158cc087a1SEmmanuel Vadot              <0xae91000 0x400>,
1168cc087a1SEmmanuel Vadot              <0xae91400 0x400>;
1175956d97fSEmmanuel Vadot        interrupt-parent = <&mdss>;
1185956d97fSEmmanuel Vadot        interrupts = <12>;
1195956d97fSEmmanuel Vadot        clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>,
1205956d97fSEmmanuel Vadot                 <&dispcc DISP_CC_MDSS_DP_AUX_CLK>,
1215956d97fSEmmanuel Vadot                 <&dispcc DISP_CC_MDSS_DP_LINK_CLK>,
1225956d97fSEmmanuel Vadot                 <&dispcc DISP_CC_MDSS_DP_LINK_INTF_CLK>,
1235956d97fSEmmanuel Vadot                 <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK>;
1245956d97fSEmmanuel Vadot        clock-names = "core_iface", "core_aux",
1255956d97fSEmmanuel Vadot                      "ctrl_link",
1265956d97fSEmmanuel Vadot                      "ctrl_link_iface", "stream_pixel";
1275956d97fSEmmanuel Vadot
1285956d97fSEmmanuel Vadot        assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>,
1295956d97fSEmmanuel Vadot                          <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>;
1305956d97fSEmmanuel Vadot
1315956d97fSEmmanuel Vadot        assigned-clock-parents = <&dp_phy 0>, <&dp_phy 1>;
1325956d97fSEmmanuel Vadot
1335956d97fSEmmanuel Vadot        phys = <&dp_phy>;
1345956d97fSEmmanuel Vadot        phy-names = "dp";
1355956d97fSEmmanuel Vadot
1365956d97fSEmmanuel Vadot        #sound-dai-cells = <0>;
1375956d97fSEmmanuel Vadot
1385956d97fSEmmanuel Vadot        power-domains = <&rpmhpd SC7180_CX>;
1395956d97fSEmmanuel Vadot
1405956d97fSEmmanuel Vadot        ports {
1415956d97fSEmmanuel Vadot            #address-cells = <1>;
1425956d97fSEmmanuel Vadot            #size-cells = <0>;
1435956d97fSEmmanuel Vadot
1445956d97fSEmmanuel Vadot            port@0 {
1455956d97fSEmmanuel Vadot                reg = <0>;
1465956d97fSEmmanuel Vadot                endpoint {
1475956d97fSEmmanuel Vadot                    remote-endpoint = <&dpu_intf0_out>;
1485956d97fSEmmanuel Vadot                };
1495956d97fSEmmanuel Vadot            };
1505956d97fSEmmanuel Vadot
1515956d97fSEmmanuel Vadot            port@1 {
1525956d97fSEmmanuel Vadot                reg = <1>;
1535956d97fSEmmanuel Vadot                endpoint {
1545956d97fSEmmanuel Vadot                    remote-endpoint = <&typec>;
1555956d97fSEmmanuel Vadot                };
1565956d97fSEmmanuel Vadot            };
1575956d97fSEmmanuel Vadot        };
1585956d97fSEmmanuel Vadot    };
1595956d97fSEmmanuel Vadot...
160