1# SPDX-License-Identifier: GPL-2.0-only
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/qcom,gcc-apq8064.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Global Clock & Reset Controller Binding for APQ8064/MSM8960
8
9allOf:
10  - $ref: qcom,gcc.yaml#
11
12maintainers:
13  - Stephen Boyd <sboyd@kernel.org>
14  - Taniya Das <tdas@codeaurora.org>
15
16description: |
17  Qualcomm global clock control module which supports the clocks, resets and
18  power domains on APQ8064.
19
20  See also:
21  - dt-bindings/clock/qcom,gcc-msm8960.h
22  - dt-bindings/reset/qcom,gcc-msm8960.h
23
24properties:
25  compatible:
26    oneOf:
27      - items:
28          - enum:
29              - qcom,gcc-apq8064
30              - qcom,gcc-msm8960
31          - const: syscon
32      - enum:
33          - qcom,gcc-apq8064
34          - qcom,gcc-msm8960
35        deprecated: true
36
37  thermal-sensor:
38    description: child tsens device
39    $ref: /schemas/thermal/qcom-tsens.yaml#
40
41  clocks:
42    maxItems: 3
43
44  clock-names:
45    items:
46      - const: cxo
47      - const: pxo
48      - const: pll4
49
50  nvmem-cells:
51    minItems: 1
52    maxItems: 2
53    deprecated: true
54    description:
55      Qualcomm TSENS (thermal sensor device) on some devices can
56      be part of GCC and hence the TSENS properties can also be part
57      of the GCC/clock-controller node.
58      For more details on the TSENS properties please refer
59      Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
60
61  nvmem-cell-names:
62    minItems: 1
63    deprecated: true
64    items:
65      - const: calib
66      - const: calib_backup
67
68  '#thermal-sensor-cells':
69    const: 1
70    deprecated: true
71
72required:
73  - compatible
74
75unevaluatedProperties: false
76
77examples:
78  - |
79    clock-controller@900000 {
80      compatible = "qcom,gcc-apq8064", "syscon";
81      reg = <0x00900000 0x4000>;
82      #clock-cells = <1>;
83      #reset-cells = <1>;
84      #power-domain-cells = <1>;
85
86      thermal-sensor {
87        compatible = "qcom,msm8960-tsens";
88
89        nvmem-cells = <&tsens_calib>, <&tsens_backup>;
90        nvmem-cell-names = "calib", "calib_backup";
91        interrupts = <0 178 4>;
92        interrupt-names = "uplow";
93
94        #qcom,sensors = <11>;
95        #thermal-sensor-cells = <1>;
96      };
97    };
98...
99