xref: /linux/Documentation/devicetree/bindings/clock/qcom,dispcc-sm6125.yaml (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
18397c9c0SMartin Botka# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28397c9c0SMartin Botka%YAML 1.2
38397c9c0SMartin Botka---
48397c9c0SMartin Botka$id: http://devicetree.org/schemas/clock/qcom,dispcc-sm6125.yaml#
58397c9c0SMartin Botka$schema: http://devicetree.org/meta-schemas/core.yaml#
68397c9c0SMartin Botka
7ece3c319SKrzysztof Kozlowskititle: Qualcomm Display Clock Controller on SM6125
88397c9c0SMartin Botka
98397c9c0SMartin Botkamaintainers:
108397c9c0SMartin Botka  - Martin Botka <martin.botka@somainline.org>
118397c9c0SMartin Botka
128397c9c0SMartin Botkadescription: |
13ece3c319SKrzysztof Kozlowski  Qualcomm display clock control module provides the clocks and power domains
14ece3c319SKrzysztof Kozlowski  on SM6125.
158397c9c0SMartin Botka
16ece3c319SKrzysztof Kozlowski  See also:: include/dt-bindings/clock/qcom,dispcc-sm6125.h
178397c9c0SMartin Botka
188397c9c0SMartin Botkaproperties:
198397c9c0SMartin Botka  compatible:
208397c9c0SMartin Botka    enum:
218397c9c0SMartin Botka      - qcom,sm6125-dispcc
228397c9c0SMartin Botka
238397c9c0SMartin Botka  clocks:
248397c9c0SMartin Botka    items:
258397c9c0SMartin Botka      - description: Board XO source
268397c9c0SMartin Botka      - description: Byte clock from DSI PHY0
278397c9c0SMartin Botka      - description: Pixel clock from DSI PHY0
288397c9c0SMartin Botka      - description: Pixel clock from DSI PHY1
298397c9c0SMartin Botka      - description: Link clock from DP PHY
308397c9c0SMartin Botka      - description: VCO DIV clock from DP PHY
318397c9c0SMartin Botka      - description: AHB config clock from GCC
323b3e71f0SMarijn Suijten      - description: GPLL0 div source from GCC
338397c9c0SMartin Botka
348397c9c0SMartin Botka  clock-names:
358397c9c0SMartin Botka    items:
368397c9c0SMartin Botka      - const: bi_tcxo
378397c9c0SMartin Botka      - const: dsi0_phy_pll_out_byteclk
388397c9c0SMartin Botka      - const: dsi0_phy_pll_out_dsiclk
398397c9c0SMartin Botka      - const: dsi1_phy_pll_out_dsiclk
408397c9c0SMartin Botka      - const: dp_phy_pll_link_clk
418397c9c0SMartin Botka      - const: dp_phy_pll_vco_div_clk
428397c9c0SMartin Botka      - const: cfg_ahb_clk
433b3e71f0SMarijn Suijten      - const: gcc_disp_gpll0_div_clk_src
448397c9c0SMartin Botka
458397c9c0SMartin Botka  '#clock-cells':
468397c9c0SMartin Botka    const: 1
478397c9c0SMartin Botka
488397c9c0SMartin Botka  '#power-domain-cells':
498397c9c0SMartin Botka    const: 1
508397c9c0SMartin Botka
51*3a06fa8eSMarijn Suijten  power-domains:
52*3a06fa8eSMarijn Suijten    description:
53*3a06fa8eSMarijn Suijten      A phandle and PM domain specifier for the CX power domain.
54*3a06fa8eSMarijn Suijten    maxItems: 1
55*3a06fa8eSMarijn Suijten
56*3a06fa8eSMarijn Suijten  required-opps:
57*3a06fa8eSMarijn Suijten    description:
58*3a06fa8eSMarijn Suijten      A phandle to an OPP node describing the power domain's performance point.
59*3a06fa8eSMarijn Suijten    maxItems: 1
60*3a06fa8eSMarijn Suijten
618397c9c0SMartin Botka  reg:
628397c9c0SMartin Botka    maxItems: 1
638397c9c0SMartin Botka
648397c9c0SMartin Botkarequired:
658397c9c0SMartin Botka  - compatible
668397c9c0SMartin Botka  - reg
678397c9c0SMartin Botka  - clocks
688397c9c0SMartin Botka  - clock-names
698397c9c0SMartin Botka  - '#clock-cells'
708397c9c0SMartin Botka  - '#power-domain-cells'
718397c9c0SMartin Botka
728397c9c0SMartin BotkaadditionalProperties: false
738397c9c0SMartin Botka
748397c9c0SMartin Botkaexamples:
758397c9c0SMartin Botka  - |
768397c9c0SMartin Botka    #include <dt-bindings/clock/qcom,rpmcc.h>
778397c9c0SMartin Botka    #include <dt-bindings/clock/qcom,gcc-sm6125.h>
78*3a06fa8eSMarijn Suijten    #include <dt-bindings/power/qcom-rpmpd.h>
798397c9c0SMartin Botka    clock-controller@5f00000 {
808397c9c0SMartin Botka      compatible = "qcom,sm6125-dispcc";
818397c9c0SMartin Botka      reg = <0x5f00000 0x20000>;
82*3a06fa8eSMarijn Suijten
838397c9c0SMartin Botka      clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>,
848397c9c0SMartin Botka               <&dsi0_phy 0>,
858397c9c0SMartin Botka               <&dsi0_phy 1>,
868397c9c0SMartin Botka               <&dsi1_phy 1>,
878397c9c0SMartin Botka               <&dp_phy 0>,
888397c9c0SMartin Botka               <&dp_phy 1>,
893b3e71f0SMarijn Suijten               <&gcc GCC_DISP_AHB_CLK>,
903b3e71f0SMarijn Suijten               <&gcc GCC_DISP_GPLL0_DIV_CLK_SRC>;
918397c9c0SMartin Botka      clock-names = "bi_tcxo",
928397c9c0SMartin Botka                    "dsi0_phy_pll_out_byteclk",
938397c9c0SMartin Botka                    "dsi0_phy_pll_out_dsiclk",
948397c9c0SMartin Botka                    "dsi1_phy_pll_out_dsiclk",
958397c9c0SMartin Botka                    "dp_phy_pll_link_clk",
968397c9c0SMartin Botka                    "dp_phy_pll_vco_div_clk",
973b3e71f0SMarijn Suijten                    "cfg_ahb_clk",
983b3e71f0SMarijn Suijten                    "gcc_disp_gpll0_div_clk_src";
99*3a06fa8eSMarijn Suijten
100*3a06fa8eSMarijn Suijten      required-opps = <&rpmhpd_opp_ret>;
101*3a06fa8eSMarijn Suijten      power-domains = <&rpmpd SM6125_VDDCX>;
102*3a06fa8eSMarijn Suijten
1038397c9c0SMartin Botka      #clock-cells = <1>;
1048397c9c0SMartin Botka      #power-domain-cells = <1>;
1058397c9c0SMartin Botka    };
1068397c9c0SMartin Botka...
107