xref: /freebsd-src/sys/contrib/device-tree/Bindings/clock/qcom,sm8450-gpucc.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1f126890aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2f126890aSEmmanuel Vadot%YAML 1.2
3f126890aSEmmanuel Vadot---
4f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/qcom,sm8450-gpucc.yaml#
5f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadottitle: Qualcomm Graphics Clock & Reset Controller on SM8450
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadotmaintainers:
100e8011faSEmmanuel Vadot  - Konrad Dybcio <konradybcio@kernel.org>
11f126890aSEmmanuel Vadot
12f126890aSEmmanuel Vadotdescription: |
13f126890aSEmmanuel Vadot  Qualcomm graphics clock control module provides the clocks, resets and power
14f126890aSEmmanuel Vadot  domains on Qualcomm SoCs.
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadot  See also::
17*b2d2a78aSEmmanuel Vadot    include/dt-bindings/clock/qcom,sm4450-gpucc.h
18f126890aSEmmanuel Vadot    include/dt-bindings/clock/qcom,sm8450-gpucc.h
19f126890aSEmmanuel Vadot    include/dt-bindings/clock/qcom,sm8550-gpucc.h
20f126890aSEmmanuel Vadot    include/dt-bindings/reset/qcom,sm8450-gpucc.h
218d13bc63SEmmanuel Vadot    include/dt-bindings/reset/qcom,sm8650-gpucc.h
2201950c46SEmmanuel Vadot    include/dt-bindings/reset/qcom,x1e80100-gpucc.h
23f126890aSEmmanuel Vadot
24f126890aSEmmanuel Vadotproperties:
25f126890aSEmmanuel Vadot  compatible:
26f126890aSEmmanuel Vadot    enum:
27*b2d2a78aSEmmanuel Vadot      - qcom,sm4450-gpucc
28f126890aSEmmanuel Vadot      - qcom,sm8450-gpucc
29f126890aSEmmanuel Vadot      - qcom,sm8550-gpucc
308d13bc63SEmmanuel Vadot      - qcom,sm8650-gpucc
3101950c46SEmmanuel Vadot      - qcom,x1e80100-gpucc
32f126890aSEmmanuel Vadot
33f126890aSEmmanuel Vadot  clocks:
34f126890aSEmmanuel Vadot    items:
35f126890aSEmmanuel Vadot      - description: Board XO source
36f126890aSEmmanuel Vadot      - description: GPLL0 main branch source
37f126890aSEmmanuel Vadot      - description: GPLL0 div branch source
38f126890aSEmmanuel Vadot
39f126890aSEmmanuel Vadotrequired:
40f126890aSEmmanuel Vadot  - compatible
41f126890aSEmmanuel Vadot  - clocks
42f126890aSEmmanuel Vadot  - '#power-domain-cells'
43f126890aSEmmanuel Vadot
440e8011faSEmmanuel VadotallOf:
450e8011faSEmmanuel Vadot  - $ref: qcom,gcc.yaml#
460e8011faSEmmanuel Vadot
470e8011faSEmmanuel VadotunevaluatedProperties: false
48f126890aSEmmanuel Vadot
49f126890aSEmmanuel Vadotexamples:
50f126890aSEmmanuel Vadot  - |
51f126890aSEmmanuel Vadot    #include <dt-bindings/clock/qcom,gcc-sm8450.h>
52f126890aSEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel Vadot    soc {
55f126890aSEmmanuel Vadot        #address-cells = <2>;
56f126890aSEmmanuel Vadot        #size-cells = <2>;
57f126890aSEmmanuel Vadot
58f126890aSEmmanuel Vadot        clock-controller@3d90000 {
59f126890aSEmmanuel Vadot            compatible = "qcom,sm8450-gpucc";
60f126890aSEmmanuel Vadot            reg = <0 0x03d90000 0 0xa000>;
61f126890aSEmmanuel Vadot            clocks = <&rpmhcc RPMH_CXO_CLK>,
62f126890aSEmmanuel Vadot                     <&gcc GCC_GPU_GPLL0_CLK_SRC>,
63f126890aSEmmanuel Vadot                     <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>;
64f126890aSEmmanuel Vadot            #clock-cells = <1>;
65f126890aSEmmanuel Vadot            #reset-cells = <1>;
66f126890aSEmmanuel Vadot            #power-domain-cells = <1>;
67f126890aSEmmanuel Vadot        };
68f126890aSEmmanuel Vadot    };
69f126890aSEmmanuel Vadot...
70