Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | |
| 7 | title: Qualcomm Global Clock & Reset Controller on APQ8064/MSM8960 |
| 8 | |
| 9 | maintainers: |
| 10 | - Stephen Boyd <sboyd@kernel.org> |
| 11 | - Taniya Das <quic_tdas@quicinc.com> |
| 12 | |
| 13 | description: | |
| 14 | Qualcomm global clock control module provides the clocks, resets and power |
| 15 | domains on APQ8064. |
| 16 | |
| 17 | See also:: |
| 18 | include/dt-bindings/clock/qcom,gcc-msm8960.h |
| 19 | include/dt-bindings/reset/qcom,gcc-msm8960.h |
| 20 | |
| 21 | allOf: |
| 22 | - $ref: qcom,gcc.yaml# |
| 23 | |
| 24 | properties: |
| 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 | |
| 72 | required: |
| 73 | - compatible |
| 74 | |
| 75 | unevaluatedProperties: false |
| 76 | |
| 77 | examples: |
| 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 | ... |