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  nvmem-cells:
42    minItems: 1
43    maxItems: 2
44    deprecated: true
45    description:
46      Qualcomm TSENS (thermal sensor device) on some devices can
47      be part of GCC and hence the TSENS properties can also be part
48      of the GCC/clock-controller node.
49      For more details on the TSENS properties please refer
50      Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
51
52  nvmem-cell-names:
53    minItems: 1
54    deprecated: true
55    items:
56      - const: calib
57      - const: calib_backup
58
59  '#thermal-sensor-cells':
60    const: 1
61    deprecated: true
62
63required:
64  - compatible
65
66unevaluatedProperties: false
67
68examples:
69  - |
70    clock-controller@900000 {
71      compatible = "qcom,gcc-apq8064", "syscon";
72      reg = <0x00900000 0x4000>;
73      #clock-cells = <1>;
74      #reset-cells = <1>;
75      #power-domain-cells = <1>;
76
77      thermal-sensor {
78        compatible = "qcom,msm8960-tsens";
79
80        nvmem-cells = <&tsens_calib>, <&tsens_backup>;
81        nvmem-cell-names = "calib", "calib_backup";
82        interrupts = <0 178 4>;
83        interrupt-names = "uplow";
84
85        #qcom,sensors = <11>;
86        #thermal-sensor-cells = <1>;
87      };
88    };
89...
90