1# SPDX-License-Identifier: GPL-2.0-only
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/qcom,sdm845-dispcc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Display Clock & Reset Controller Binding for SDM845
8
9maintainers:
10  - Taniya Das <tdas@codeaurora.org>
11
12description: |
13  Qualcomm display clock control module which supports the clocks, resets and
14  power domains on SDM845.
15
16  See also dt-bindings/clock/qcom,dispcc-sdm845.h.
17
18properties:
19  compatible:
20    const: qcom,sdm845-dispcc
21
22  # NOTE: sdm845.dtsi existed for quite some time and specified no clocks.
23  # The code had to use hardcoded mechanisms to find the input clocks.
24  # New dts files should have these clocks.
25  clocks:
26    items:
27      - description: Board XO source
28      - description: GPLL0 source from GCC
29      - description: GPLL0 div source from GCC
30      - description: Byte clock from DSI PHY0
31      - description: Pixel clock from DSI PHY0
32      - description: Byte clock from DSI PHY1
33      - description: Pixel clock from DSI PHY1
34      - description: Link clock from DP PHY
35      - description: VCO DIV clock from DP PHY
36
37  clock-names:
38    items:
39      - const: bi_tcxo
40      - const: gcc_disp_gpll0_clk_src
41      - const: gcc_disp_gpll0_div_clk_src
42      - const: dsi0_phy_pll_out_byteclk
43      - const: dsi0_phy_pll_out_dsiclk
44      - const: dsi1_phy_pll_out_byteclk
45      - const: dsi1_phy_pll_out_dsiclk
46      - const: dp_link_clk_divsel_ten
47      - const: dp_vco_divided_clk_src_mux
48
49  '#clock-cells':
50    const: 1
51
52  '#reset-cells':
53    const: 1
54
55  '#power-domain-cells':
56    const: 1
57
58  reg:
59    maxItems: 1
60
61required:
62  - compatible
63  - reg
64  - clocks
65  - clock-names
66  - '#clock-cells'
67  - '#reset-cells'
68  - '#power-domain-cells'
69
70examples:
71  - |
72    #include <dt-bindings/clock/qcom,gcc-sdm845.h>
73    #include <dt-bindings/clock/qcom,rpmh.h>
74    clock-controller@af00000 {
75      compatible = "qcom,sdm845-dispcc";
76      reg = <0 0x0af00000 0 0x10000>;
77      clocks = <&rpmhcc RPMH_CXO_CLK>,
78               <&gcc GCC_DISP_GPLL0_CLK_SRC>,
79               <&gcc GCC_DISP_GPLL0_DIV_CLK_SRC>,
80               <&dsi0_phy 0>,
81               <&dsi0_phy 1>,
82               <&dsi1_phy 0>,
83               <&dsi1_phy 1>,
84               <&dp_phy 0>,
85               <&dp_phy 1>;
86      clock-names = "bi_tcxo",
87                    "gcc_disp_gpll0_clk_src",
88                    "gcc_disp_gpll0_div_clk_src",
89                    "dsi0_phy_pll_out_byteclk",
90                    "dsi0_phy_pll_out_dsiclk",
91                    "dsi1_phy_pll_out_byteclk",
92                    "dsi1_phy_pll_out_dsiclk",
93                    "dp_link_clk_divsel_ten",
94                    "dp_vco_divided_clk_src_mux";
95      #clock-cells = <1>;
96      #reset-cells = <1>;
97      #power-domain-cells = <1>;
98    };
99...
100