Skip to content

Commit 85e1258

Browse files
Ansuelandersson
authored andcommitted
dt-bindings: clock: document qcom,gcc-ipq8064 binding
Document qcom,gcc-ipq8064 binding needed to declare pxo and cxo source clocks. The gcc node is also used by the tsens driver, already documented, to get the calib nvmem cells and the base reg from gcc. Use qcom,gcc.yaml as a template and remove the compatible from generic qcom,gcc-other.yaml Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Tested-by: Jonathan McDowell <noodles@earth.li> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220226135235.10051-4-ansuelsmth@gmail.com
1 parent a469bf8 commit 85e1258

2 files changed

Lines changed: 76 additions & 3 deletions

File tree

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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-ipq8064.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm Global Clock & Reset Controller Binding for IPQ8064
8+
9+
allOf:
10+
- $ref: qcom,gcc.yaml#
11+
12+
maintainers:
13+
- Ansuel Smith <ansuelsmth@gmail.com>
14+
15+
description: |
16+
Qualcomm global clock control module which supports the clocks, resets and
17+
power domains on IPQ8064.
18+
19+
See also:
20+
- dt-bindings/clock/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064)
21+
- dt-bindings/reset/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064)
22+
23+
properties:
24+
compatible:
25+
items:
26+
- const: qcom,gcc-ipq8064
27+
- const: syscon
28+
29+
clocks:
30+
items:
31+
- description: PXO source
32+
- description: CXO source
33+
34+
clock-names:
35+
items:
36+
- const: pxo
37+
- const: cxo
38+
39+
thermal-sensor:
40+
type: object
41+
42+
allOf:
43+
- $ref: /schemas/thermal/qcom-tsens.yaml#
44+
45+
required:
46+
- compatible
47+
- clocks
48+
- clock-names
49+
50+
unevaluatedProperties: false
51+
52+
examples:
53+
- |
54+
#include <dt-bindings/interrupt-controller/arm-gic.h>
55+
56+
gcc: clock-controller@900000 {
57+
compatible = "qcom,gcc-ipq8064", "syscon";
58+
reg = <0x00900000 0x4000>;
59+
clocks = <&pxo_board>, <&cxo_board>;
60+
clock-names = "pxo", "cxo";
61+
#clock-cells = <1>;
62+
#reset-cells = <1>;
63+
#power-domain-cells = <1>;
64+
65+
tsens: thermal-sensor {
66+
compatible = "qcom,ipq8064-tsens";
67+
68+
nvmem-cells = <&tsens_calib>, <&tsens_calib_backup>;
69+
nvmem-cell-names = "calib", "calib_backup";
70+
interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
71+
interrupt-names = "uplow";
72+
73+
#qcom,sensors = <11>;
74+
#thermal-sensor-cells = <1>;
75+
};
76+
};

Documentation/devicetree/bindings/clock/qcom,gcc-other.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ description:
1818
- dt-bindings/clock/qcom,gcc-ipq4019.h
1919
- dt-bindings/clock/qcom,gcc-ipq6018.h
2020
- dt-bindings/reset/qcom,gcc-ipq6018.h
21-
- dt-bindings/clock/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064)
22-
- dt-bindings/reset/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064)
2321
- dt-bindings/clock/qcom,gcc-msm8939.h
2422
- dt-bindings/clock/qcom,gcc-msm8953.h
2523
- dt-bindings/reset/qcom,gcc-msm8939.h
@@ -40,7 +38,6 @@ properties:
4038
enum:
4139
- qcom,gcc-ipq4019
4240
- qcom,gcc-ipq6018
43-
- qcom,gcc-ipq8064
4441
- qcom,gcc-mdm9607
4542
- qcom,gcc-msm8226
4643
- qcom,gcc-msm8660

0 commit comments

Comments
 (0)