185e12587SAnsuel Smith# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
285e12587SAnsuel Smith%YAML 1.2
385e12587SAnsuel Smith---
485e12587SAnsuel Smith$id: http://devicetree.org/schemas/clock/qcom,gcc-ipq8064.yaml#
585e12587SAnsuel Smith$schema: http://devicetree.org/meta-schemas/core.yaml#
685e12587SAnsuel Smith
7*ece3c319SKrzysztof Kozlowskititle: Qualcomm Global Clock & Reset Controller on IPQ8064
885e12587SAnsuel Smith
985e12587SAnsuel Smithmaintainers:
1085e12587SAnsuel Smith  - Ansuel Smith <ansuelsmth@gmail.com>
1185e12587SAnsuel Smith
1285e12587SAnsuel Smithdescription: |
13*ece3c319SKrzysztof Kozlowski  Qualcomm global clock control module provides the clocks, resets and power
14*ece3c319SKrzysztof Kozlowski  domains on IPQ8064.
1585e12587SAnsuel Smith
16*ece3c319SKrzysztof Kozlowski  See also::
17*ece3c319SKrzysztof Kozlowski    include/dt-bindings/clock/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064)
18*ece3c319SKrzysztof Kozlowski    include/dt-bindings/reset/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064)
19*ece3c319SKrzysztof Kozlowski
20*ece3c319SKrzysztof KozlowskiallOf:
21*ece3c319SKrzysztof Kozlowski  - $ref: qcom,gcc.yaml#
2285e12587SAnsuel Smith
2385e12587SAnsuel Smithproperties:
2485e12587SAnsuel Smith  compatible:
2585e12587SAnsuel Smith    items:
2685e12587SAnsuel Smith      - const: qcom,gcc-ipq8064
2785e12587SAnsuel Smith      - const: syscon
2885e12587SAnsuel Smith
2985e12587SAnsuel Smith  clocks:
30e3c44712SDmitry Baryshkov    minItems: 2
3185e12587SAnsuel Smith    items:
3285e12587SAnsuel Smith      - description: PXO source
3385e12587SAnsuel Smith      - description: CXO source
34e3c44712SDmitry Baryshkov      - description: PLL4 from LCC
3585e12587SAnsuel Smith
3685e12587SAnsuel Smith  clock-names:
37e3c44712SDmitry Baryshkov    minItems: 2
3885e12587SAnsuel Smith    items:
3985e12587SAnsuel Smith      - const: pxo
4085e12587SAnsuel Smith      - const: cxo
41e3c44712SDmitry Baryshkov      - const: pll4
4285e12587SAnsuel Smith
4385e12587SAnsuel Smith  thermal-sensor:
4485e12587SAnsuel Smith    type: object
4585e12587SAnsuel Smith
4685e12587SAnsuel Smith    allOf:
4785e12587SAnsuel Smith      - $ref: /schemas/thermal/qcom-tsens.yaml#
4885e12587SAnsuel Smith
4985e12587SAnsuel Smithrequired:
5085e12587SAnsuel Smith  - compatible
5185e12587SAnsuel Smith  - clocks
5285e12587SAnsuel Smith  - clock-names
5385e12587SAnsuel Smith
5485e12587SAnsuel SmithunevaluatedProperties: false
5585e12587SAnsuel Smith
5685e12587SAnsuel Smithexamples:
5785e12587SAnsuel Smith  - |
58e3c44712SDmitry Baryshkov    #include <dt-bindings/clock/qcom,lcc-ipq806x.h>
5985e12587SAnsuel Smith    #include <dt-bindings/interrupt-controller/arm-gic.h>
6085e12587SAnsuel Smith
6185e12587SAnsuel Smith    gcc: clock-controller@900000 {
6285e12587SAnsuel Smith      compatible = "qcom,gcc-ipq8064", "syscon";
6385e12587SAnsuel Smith      reg = <0x00900000 0x4000>;
64e3c44712SDmitry Baryshkov      clocks = <&pxo_board>, <&cxo_board>, <&lcc PLL4>;
65e3c44712SDmitry Baryshkov      clock-names = "pxo", "cxo", "pll4";
6685e12587SAnsuel Smith      #clock-cells = <1>;
6785e12587SAnsuel Smith      #reset-cells = <1>;
6885e12587SAnsuel Smith      #power-domain-cells = <1>;
6985e12587SAnsuel Smith
7085e12587SAnsuel Smith      tsens: thermal-sensor {
7185e12587SAnsuel Smith        compatible = "qcom,ipq8064-tsens";
7285e12587SAnsuel Smith
7385e12587SAnsuel Smith        nvmem-cells = <&tsens_calib>, <&tsens_calib_backup>;
7485e12587SAnsuel Smith        nvmem-cell-names = "calib", "calib_backup";
7585e12587SAnsuel Smith        interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
7685e12587SAnsuel Smith        interrupt-names = "uplow";
7785e12587SAnsuel Smith
7885e12587SAnsuel Smith        #qcom,sensors = <11>;
7985e12587SAnsuel Smith        #thermal-sensor-cells = <1>;
8085e12587SAnsuel Smith      };
8185e12587SAnsuel Smith    };
82