Skip to content

Commit 681a6ad

Browse files
Taniya Dasbebarino
authored andcommitted
dt-bindings: clock: Add YAML schemas for the QCOM RPMHCC clock bindings
The RPMHCC clock provider have a bunch of generic properties that are needed in a device tree. Add a YAML schemas for those. Signed-off-by: Taniya Das <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 1726956 commit 681a6ad

File tree

2 files changed

+48
-27
lines changed

2 files changed

+48
-27
lines changed

Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/bindings/clock/qcom,rpmhcc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm Technologies, Inc. RPMh Clocks Bindings
8+
9+
maintainers:
10+
- Taniya Das <[email protected]>
11+
12+
description: |
13+
Resource Power Manager Hardened (RPMh) manages shared resources on
14+
some Qualcomm Technologies Inc. SoCs. It accepts clock requests from
15+
other hardware subsystems via RSC to control clocks.
16+
17+
properties:
18+
compatible:
19+
enum:
20+
- qcom,sdm845-rpmh-clk
21+
- qcom,sm8150-rpmh-clk
22+
23+
clocks:
24+
maxItems: 1
25+
26+
clock-names:
27+
items:
28+
- const: xo
29+
30+
'#clock-cells':
31+
const: 1
32+
33+
required:
34+
- compatible
35+
- '#clock-cells'
36+
37+
examples:
38+
# Example for GCC for SDM845: The below node should be defined inside
39+
# &apps_rsc node.
40+
- |
41+
#include <dt-bindings/clock/qcom,rpmh.h>
42+
rpmhcc: clock-controller {
43+
compatible = "qcom,sdm845-rpmh-clk";
44+
clocks = <&xo_board>;
45+
clock-names = "xo";
46+
#clock-cells = <1>;
47+
};
48+
...

0 commit comments

Comments
 (0)