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