xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,sm6375-gpucc.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1fac71e4eSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2fac71e4eSEmmanuel Vadot%YAML 1.2
3fac71e4eSEmmanuel Vadot---
4fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/qcom,sm6375-gpucc.yaml#
5fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6fac71e4eSEmmanuel Vadot
7fac71e4eSEmmanuel Vadottitle: Qualcomm Graphics Clock & Reset Controller on SM6375
8fac71e4eSEmmanuel Vadot
9fac71e4eSEmmanuel Vadotmaintainers:
10*0e8011faSEmmanuel Vadot  - Konrad Dybcio <konradybcio@kernel.org>
11fac71e4eSEmmanuel Vadot
12fac71e4eSEmmanuel Vadotdescription: |
13fac71e4eSEmmanuel Vadot  Qualcomm graphics clock control module provides clocks, resets and power
14fac71e4eSEmmanuel Vadot  domains on Qualcomm SoCs.
15fac71e4eSEmmanuel Vadot
16fac71e4eSEmmanuel Vadot  See also:: include/dt-bindings/clock/qcom,sm6375-gpucc.h
17fac71e4eSEmmanuel Vadot
18fac71e4eSEmmanuel Vadotproperties:
19fac71e4eSEmmanuel Vadot  compatible:
20fac71e4eSEmmanuel Vadot    enum:
21fac71e4eSEmmanuel Vadot      - qcom,sm6375-gpucc
22fac71e4eSEmmanuel Vadot
23fac71e4eSEmmanuel Vadot  clocks:
24fac71e4eSEmmanuel Vadot    items:
25fac71e4eSEmmanuel Vadot      - description: Board XO source
26fac71e4eSEmmanuel Vadot      - description: GPLL0 main branch source
27fac71e4eSEmmanuel Vadot      - description: GPLL0 div branch source
28fac71e4eSEmmanuel Vadot      - description: SNoC DVM GFX source
29fac71e4eSEmmanuel Vadot
30f126890aSEmmanuel Vadot  power-domains:
31f126890aSEmmanuel Vadot    description:
32f126890aSEmmanuel Vadot      A phandle and PM domain specifier for the VDD_GX power rail
33f126890aSEmmanuel Vadot    maxItems: 1
34f126890aSEmmanuel Vadot
35f126890aSEmmanuel Vadot  required-opps:
36f126890aSEmmanuel Vadot    description:
37f126890aSEmmanuel Vadot      A phandle to an OPP node describing required VDD_GX performance point.
38f126890aSEmmanuel Vadot    maxItems: 1
39f126890aSEmmanuel Vadot
40fac71e4eSEmmanuel Vadotrequired:
41fac71e4eSEmmanuel Vadot  - compatible
42fac71e4eSEmmanuel Vadot  - clocks
43f126890aSEmmanuel Vadot  - power-domains
44f126890aSEmmanuel Vadot  - required-opps
45fac71e4eSEmmanuel Vadot
46fac71e4eSEmmanuel VadotallOf:
47fac71e4eSEmmanuel Vadot  - $ref: qcom,gcc.yaml#
48fac71e4eSEmmanuel Vadot
49fac71e4eSEmmanuel VadotunevaluatedProperties: false
50fac71e4eSEmmanuel Vadot
51fac71e4eSEmmanuel Vadotexamples:
52fac71e4eSEmmanuel Vadot  - |
53fac71e4eSEmmanuel Vadot    #include <dt-bindings/clock/qcom,sm6375-gcc.h>
54fac71e4eSEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmcc.h>
55f126890aSEmmanuel Vadot    #include <dt-bindings/power/qcom-rpmpd.h>
56fac71e4eSEmmanuel Vadot
57fac71e4eSEmmanuel Vadot    soc {
58fac71e4eSEmmanuel Vadot        #address-cells = <2>;
59fac71e4eSEmmanuel Vadot        #size-cells = <2>;
60fac71e4eSEmmanuel Vadot
61fac71e4eSEmmanuel Vadot        clock-controller@5990000 {
62fac71e4eSEmmanuel Vadot            compatible = "qcom,sm6375-gpucc";
63fac71e4eSEmmanuel Vadot            reg = <0 0x05990000 0 0x9000>;
64fac71e4eSEmmanuel Vadot            clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>,
65fac71e4eSEmmanuel Vadot                     <&gcc GCC_GPU_GPLL0_CLK_SRC>,
66fac71e4eSEmmanuel Vadot                     <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>,
67fac71e4eSEmmanuel Vadot                     <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>;
68f126890aSEmmanuel Vadot            power-domains = <&rpmpd SM6375_VDDGX>;
69f126890aSEmmanuel Vadot            required-opps = <&rpmpd_opp_low_svs>;
70fac71e4eSEmmanuel Vadot            #clock-cells = <1>;
71fac71e4eSEmmanuel Vadot            #reset-cells = <1>;
72fac71e4eSEmmanuel Vadot            #power-domain-cells = <1>;
73fac71e4eSEmmanuel Vadot        };
74fac71e4eSEmmanuel Vadot    };
75fac71e4eSEmmanuel Vadot...
76