xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,gpucc.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/qcom,gpucc.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Qualcomm Graphics Clock & Reset Controller Binding
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Taniya Das <tdas@codeaurora.org>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  Qualcomm graphics clock control module which supports the clocks, resets and
14354d7675SEmmanuel Vadot  power domains on Qualcomm SoCs.
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadot  See also:
17c66ec88fSEmmanuel Vadot    dt-bindings/clock/qcom,gpucc-sdm845.h
18c66ec88fSEmmanuel Vadot    dt-bindings/clock/qcom,gpucc-sc7180.h
19354d7675SEmmanuel Vadot    dt-bindings/clock/qcom,gpucc-sc7280.h
20*c9ccf3a3SEmmanuel Vadot    dt-bindings/clock/qcom,gpucc-sm6350.h
21c66ec88fSEmmanuel Vadot    dt-bindings/clock/qcom,gpucc-sm8150.h
22c66ec88fSEmmanuel Vadot    dt-bindings/clock/qcom,gpucc-sm8250.h
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadotproperties:
25c66ec88fSEmmanuel Vadot  compatible:
26c66ec88fSEmmanuel Vadot    enum:
27c66ec88fSEmmanuel Vadot      - qcom,sdm845-gpucc
28c66ec88fSEmmanuel Vadot      - qcom,sc7180-gpucc
29354d7675SEmmanuel Vadot      - qcom,sc7280-gpucc
30354d7675SEmmanuel Vadot      - qcom,sc8180x-gpucc
31*c9ccf3a3SEmmanuel Vadot      - qcom,sm6350-gpucc
32c66ec88fSEmmanuel Vadot      - qcom,sm8150-gpucc
33c66ec88fSEmmanuel Vadot      - qcom,sm8250-gpucc
34c66ec88fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadot  clocks:
36c66ec88fSEmmanuel Vadot    items:
37c66ec88fSEmmanuel Vadot      - description: Board XO source
38c66ec88fSEmmanuel Vadot      - description: GPLL0 main branch source
39c66ec88fSEmmanuel Vadot      - description: GPLL0 div branch source
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot  clock-names:
42c66ec88fSEmmanuel Vadot    items:
43c66ec88fSEmmanuel Vadot      - const: bi_tcxo
44c66ec88fSEmmanuel Vadot      - const: gcc_gpu_gpll0_clk_src
45c66ec88fSEmmanuel Vadot      - const: gcc_gpu_gpll0_div_clk_src
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  '#clock-cells':
48c66ec88fSEmmanuel Vadot    const: 1
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot  '#reset-cells':
51c66ec88fSEmmanuel Vadot    const: 1
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot  '#power-domain-cells':
54c66ec88fSEmmanuel Vadot    const: 1
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot  reg:
57c66ec88fSEmmanuel Vadot    maxItems: 1
58c66ec88fSEmmanuel Vadot
59c66ec88fSEmmanuel Vadotrequired:
60c66ec88fSEmmanuel Vadot  - compatible
61c66ec88fSEmmanuel Vadot  - reg
62c66ec88fSEmmanuel Vadot  - clocks
63c66ec88fSEmmanuel Vadot  - clock-names
64c66ec88fSEmmanuel Vadot  - '#clock-cells'
65c66ec88fSEmmanuel Vadot  - '#reset-cells'
66c66ec88fSEmmanuel Vadot  - '#power-domain-cells'
67c66ec88fSEmmanuel Vadot
68c66ec88fSEmmanuel VadotadditionalProperties: false
69c66ec88fSEmmanuel Vadot
70c66ec88fSEmmanuel Vadotexamples:
71c66ec88fSEmmanuel Vadot  - |
72c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/qcom,gcc-sdm845.h>
73c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
74c66ec88fSEmmanuel Vadot    clock-controller@5090000 {
75c66ec88fSEmmanuel Vadot      compatible = "qcom,sdm845-gpucc";
76c66ec88fSEmmanuel Vadot      reg = <0x05090000 0x9000>;
77c66ec88fSEmmanuel Vadot      clocks = <&rpmhcc RPMH_CXO_CLK>,
78c66ec88fSEmmanuel Vadot               <&gcc GCC_GPU_GPLL0_CLK_SRC>,
79c66ec88fSEmmanuel Vadot               <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>;
80c66ec88fSEmmanuel Vadot      clock-names = "bi_tcxo",
81c66ec88fSEmmanuel Vadot                    "gcc_gpu_gpll0_clk_src",
82c66ec88fSEmmanuel Vadot                    "gcc_gpu_gpll0_div_clk_src";
83c66ec88fSEmmanuel Vadot      #clock-cells = <1>;
84c66ec88fSEmmanuel Vadot      #reset-cells = <1>;
85c66ec88fSEmmanuel Vadot      #power-domain-cells = <1>;
86c66ec88fSEmmanuel Vadot    };
87c66ec88fSEmmanuel Vadot...
88