xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,gpucc.yaml (revision 01950c46b8155250f64374fb72fc11faa44bf099)
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
78bab661aSEmmanuel Vadottitle: Qualcomm Graphics Clock & Reset Controller
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10aa1a8ff2SEmmanuel Vadot  - Taniya Das <quic_tdas@quicinc.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
138bab661aSEmmanuel Vadot  Qualcomm graphics clock control module provides the clocks, resets and power
148bab661aSEmmanuel Vadot  domains on Qualcomm SoCs.
15c66ec88fSEmmanuel Vadot
168bab661aSEmmanuel Vadot  See also::
178bab661aSEmmanuel Vadot    include/dt-bindings/clock/qcom,gpucc-sdm845.h
18fac71e4eSEmmanuel Vadot    include/dt-bindings/clock/qcom,gpucc-sa8775p.h
198bab661aSEmmanuel Vadot    include/dt-bindings/clock/qcom,gpucc-sc7180.h
208bab661aSEmmanuel Vadot    include/dt-bindings/clock/qcom,gpucc-sc7280.h
218bab661aSEmmanuel Vadot    include/dt-bindings/clock/qcom,gpucc-sc8280xp.h
228bab661aSEmmanuel Vadot    include/dt-bindings/clock/qcom,gpucc-sm6350.h
238bab661aSEmmanuel Vadot    include/dt-bindings/clock/qcom,gpucc-sm8150.h
248bab661aSEmmanuel Vadot    include/dt-bindings/clock/qcom,gpucc-sm8250.h
25cb7aa33aSEmmanuel Vadot    include/dt-bindings/clock/qcom,gpucc-sm8350.h
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadotproperties:
28c66ec88fSEmmanuel Vadot  compatible:
29c66ec88fSEmmanuel Vadot    enum:
30c66ec88fSEmmanuel Vadot      - qcom,sdm845-gpucc
31fac71e4eSEmmanuel Vadot      - qcom,sa8775p-gpucc
32c66ec88fSEmmanuel Vadot      - qcom,sc7180-gpucc
33354d7675SEmmanuel Vadot      - qcom,sc7280-gpucc
34354d7675SEmmanuel Vadot      - qcom,sc8180x-gpucc
357ef62cebSEmmanuel Vadot      - qcom,sc8280xp-gpucc
36c9ccf3a3SEmmanuel Vadot      - qcom,sm6350-gpucc
37c66ec88fSEmmanuel Vadot      - qcom,sm8150-gpucc
38c66ec88fSEmmanuel Vadot      - qcom,sm8250-gpucc
39cb7aa33aSEmmanuel Vadot      - qcom,sm8350-gpucc
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot  clocks:
42c66ec88fSEmmanuel Vadot    items:
43c66ec88fSEmmanuel Vadot      - description: Board XO source
44c66ec88fSEmmanuel Vadot      - description: GPLL0 main branch source
45c66ec88fSEmmanuel Vadot      - description: GPLL0 div branch source
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  clock-names:
48c66ec88fSEmmanuel Vadot    items:
49c66ec88fSEmmanuel Vadot      - const: bi_tcxo
50c66ec88fSEmmanuel Vadot      - const: gcc_gpu_gpll0_clk_src
51c66ec88fSEmmanuel Vadot      - const: gcc_gpu_gpll0_div_clk_src
52c66ec88fSEmmanuel Vadot
53f126890aSEmmanuel Vadot  power-domains:
54f126890aSEmmanuel Vadot    maxItems: 1
55f126890aSEmmanuel Vadot
56*01950c46SEmmanuel Vadot  vdd-gfx-supply:
57*01950c46SEmmanuel Vadot    description: Regulator supply for the VDD_GFX pads
58*01950c46SEmmanuel Vadot
59c66ec88fSEmmanuel Vadot  '#clock-cells':
60c66ec88fSEmmanuel Vadot    const: 1
61c66ec88fSEmmanuel Vadot
62c66ec88fSEmmanuel Vadot  '#reset-cells':
63c66ec88fSEmmanuel Vadot    const: 1
64c66ec88fSEmmanuel Vadot
65c66ec88fSEmmanuel Vadot  '#power-domain-cells':
66c66ec88fSEmmanuel Vadot    const: 1
67c66ec88fSEmmanuel Vadot
68c66ec88fSEmmanuel Vadot  reg:
69c66ec88fSEmmanuel Vadot    maxItems: 1
70c66ec88fSEmmanuel Vadot
71c66ec88fSEmmanuel Vadotrequired:
72c66ec88fSEmmanuel Vadot  - compatible
73c66ec88fSEmmanuel Vadot  - reg
74c66ec88fSEmmanuel Vadot  - clocks
75c66ec88fSEmmanuel Vadot  - clock-names
76c66ec88fSEmmanuel Vadot  - '#clock-cells'
77c66ec88fSEmmanuel Vadot  - '#reset-cells'
78c66ec88fSEmmanuel Vadot  - '#power-domain-cells'
79c66ec88fSEmmanuel Vadot
80*01950c46SEmmanuel Vadot# Require that power-domains and vdd-gfx-supply are not both present
81*01950c46SEmmanuel Vadotnot:
82*01950c46SEmmanuel Vadot  required:
83*01950c46SEmmanuel Vadot    - power-domains
84*01950c46SEmmanuel Vadot    - vdd-gfx-supply
85*01950c46SEmmanuel Vadot
86c66ec88fSEmmanuel VadotadditionalProperties: false
87c66ec88fSEmmanuel Vadot
88c66ec88fSEmmanuel Vadotexamples:
89c66ec88fSEmmanuel Vadot  - |
90c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/qcom,gcc-sdm845.h>
91c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
92c66ec88fSEmmanuel Vadot    clock-controller@5090000 {
93c66ec88fSEmmanuel Vadot      compatible = "qcom,sdm845-gpucc";
94c66ec88fSEmmanuel Vadot      reg = <0x05090000 0x9000>;
95c66ec88fSEmmanuel Vadot      clocks = <&rpmhcc RPMH_CXO_CLK>,
96c66ec88fSEmmanuel Vadot               <&gcc GCC_GPU_GPLL0_CLK_SRC>,
97c66ec88fSEmmanuel Vadot               <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>;
98c66ec88fSEmmanuel Vadot      clock-names = "bi_tcxo",
99c66ec88fSEmmanuel Vadot                    "gcc_gpu_gpll0_clk_src",
100c66ec88fSEmmanuel Vadot                    "gcc_gpu_gpll0_div_clk_src";
101c66ec88fSEmmanuel Vadot      #clock-cells = <1>;
102c66ec88fSEmmanuel Vadot      #reset-cells = <1>;
103c66ec88fSEmmanuel Vadot      #power-domain-cells = <1>;
104c66ec88fSEmmanuel Vadot    };
105c66ec88fSEmmanuel Vadot...
106