Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/clock/qcom,gcc-sc8180x.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Qualcomm Global Clock & Reset Controller on SC8180x |
| 8 | |
| 9 | maintainers: |
| 10 | - Bjorn Andersson <bjorn.andersson@linaro.org> |
| 11 | |
| 12 | description: | |
| 13 | Qualcomm global clock control module provides the clocks, resets and power |
| 14 | domains on SC8180x. |
| 15 | |
| 16 | See also:: include/dt-bindings/clock/qcom,gcc-sc8180x.h |
| 17 | |
| 18 | properties: |
| 19 | compatible: |
| 20 | const: qcom,gcc-sc8180x |
| 21 | |
| 22 | clocks: |
| 23 | items: |
| 24 | - description: Board XO source |
| 25 | - description: Board active XO source |
| 26 | - description: Sleep clock source |
| 27 | |
| 28 | clock-names: |
| 29 | items: |
| 30 | - const: bi_tcxo |
| 31 | - const: bi_tcxo_ao |
| 32 | - const: sleep_clk |
| 33 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 34 | power-domains: |
| 35 | items: |
| 36 | - description: CX domain |
| 37 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 38 | required: |
| 39 | - compatible |
| 40 | - clocks |
| 41 | - clock-names |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 42 | - power-domains |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 43 | |
| 44 | allOf: |
| 45 | - $ref: qcom,gcc.yaml# |
| 46 | |
| 47 | unevaluatedProperties: false |
| 48 | |
| 49 | examples: |
| 50 | - | |
| 51 | #include <dt-bindings/clock/qcom,rpmh.h> |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 52 | #include <dt-bindings/power/qcom-rpmpd.h> |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 53 | clock-controller@100000 { |
| 54 | compatible = "qcom,gcc-sc8180x"; |
| 55 | reg = <0x00100000 0x1f0000>; |
| 56 | clocks = <&rpmhcc RPMH_CXO_CLK>, |
| 57 | <&rpmhcc RPMH_CXO_CLK_A>, |
| 58 | <&sleep_clk>; |
| 59 | clock-names = "bi_tcxo", "bi_tcxo_ao", "sleep_clk"; |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 60 | power-domains = <&rpmhpd SC8180X_CX>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 61 | #clock-cells = <1>; |
| 62 | #reset-cells = <1>; |
| 63 | #power-domain-cells = <1>; |
| 64 | }; |
| 65 | ... |