xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,gcc-sc7180.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/qcom,gcc-sc7180.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Qualcomm Global Clock & Reset Controller on SC7180
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Stephen Boyd <sboyd@kernel.org>
11aa1a8ff2SEmmanuel Vadot  - Taniya Das <quic_tdas@quicinc.com>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotdescription: |
148bab661aSEmmanuel Vadot  Qualcomm global clock control module provides the clocks, resets and power
158bab661aSEmmanuel Vadot  domains on SC7180.
16c66ec88fSEmmanuel Vadot
178bab661aSEmmanuel Vadot  See also:: include/dt-bindings/clock/qcom,gcc-sc7180.h
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadotproperties:
20c66ec88fSEmmanuel Vadot  compatible:
21c66ec88fSEmmanuel Vadot    const: qcom,gcc-sc7180
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel Vadot  clocks:
24c66ec88fSEmmanuel Vadot    items:
25c66ec88fSEmmanuel Vadot      - description: Board XO source
26c66ec88fSEmmanuel Vadot      - description: Board active XO source
27c66ec88fSEmmanuel Vadot      - description: Sleep clock source
28c66ec88fSEmmanuel Vadot
29c66ec88fSEmmanuel Vadot  clock-names:
30c66ec88fSEmmanuel Vadot    items:
31c66ec88fSEmmanuel Vadot      - const: bi_tcxo
32c66ec88fSEmmanuel Vadot      - const: bi_tcxo_ao
33c66ec88fSEmmanuel Vadot      - const: sleep_clk
34c66ec88fSEmmanuel Vadot
35f126890aSEmmanuel Vadot  power-domains:
36f126890aSEmmanuel Vadot    items:
37f126890aSEmmanuel Vadot      - description: CX domain
38f126890aSEmmanuel Vadot
39c66ec88fSEmmanuel Vadotrequired:
40c66ec88fSEmmanuel Vadot  - compatible
41c66ec88fSEmmanuel Vadot  - clocks
42c66ec88fSEmmanuel Vadot  - clock-names
43*0e8011faSEmmanuel Vadot  - '#power-domain-cells'
44c66ec88fSEmmanuel Vadot
457ef62cebSEmmanuel VadotallOf:
467ef62cebSEmmanuel Vadot  - $ref: qcom,gcc.yaml#
477ef62cebSEmmanuel Vadot
487ef62cebSEmmanuel VadotunevaluatedProperties: false
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadotexamples:
51c66ec88fSEmmanuel Vadot  - |
52c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
53f126890aSEmmanuel Vadot    #include <dt-bindings/power/qcom-rpmpd.h>
54f126890aSEmmanuel Vadot
55c66ec88fSEmmanuel Vadot    clock-controller@100000 {
56c66ec88fSEmmanuel Vadot      compatible = "qcom,gcc-sc7180";
57c66ec88fSEmmanuel Vadot      reg = <0x00100000 0x1f0000>;
58c66ec88fSEmmanuel Vadot      clocks = <&rpmhcc RPMH_CXO_CLK>,
59c66ec88fSEmmanuel Vadot               <&rpmhcc RPMH_CXO_CLK_A>,
60c66ec88fSEmmanuel Vadot               <&sleep_clk>;
61c66ec88fSEmmanuel Vadot      clock-names = "bi_tcxo", "bi_tcxo_ao", "sleep_clk";
62f126890aSEmmanuel Vadot      power-domains = <&rpmhpd SC7180_CX>;
63c66ec88fSEmmanuel Vadot      #clock-cells = <1>;
64c66ec88fSEmmanuel Vadot      #reset-cells = <1>;
65c66ec88fSEmmanuel Vadot      #power-domain-cells = <1>;
66c66ec88fSEmmanuel Vadot    };
67c66ec88fSEmmanuel Vadot...
68