Skip to content

Commit

Permalink
dt-bindings: clock: Add YAML schemas for the QCOM RPMHCC clock bindings
Browse files Browse the repository at this point in the history
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 <tdas@codeaurora.org>
Link: https://lkml.kernel.org/r/1572371299-16774-2-git-send-email-tdas@codeaurora.org
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Taniya Das authored and Stephen Boyd committed Nov 7, 2019
1 parent 1726956 commit 681a6ad
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 27 deletions.
27 changes: 0 additions & 27 deletions Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt

This file was deleted.

48 changes: 48 additions & 0 deletions Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# SPDX-License-Identifier: GPL-2.0-only
%YAML 1.2
---
$id: http://devicetree.org/schemas/bindings/clock/qcom,rpmhcc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm Technologies, Inc. RPMh Clocks Bindings

maintainers:
- Taniya Das <tdas@codeaurora.org>

description: |
Resource Power Manager Hardened (RPMh) manages shared resources on
some Qualcomm Technologies Inc. SoCs. It accepts clock requests from
other hardware subsystems via RSC to control clocks.
properties:
compatible:
enum:
- qcom,sdm845-rpmh-clk
- qcom,sm8150-rpmh-clk

clocks:
maxItems: 1

clock-names:
items:
- const: xo

'#clock-cells':
const: 1

required:
- compatible
- '#clock-cells'

examples:
# Example for GCC for SDM845: The below node should be defined inside
# &apps_rsc node.
- |
#include <dt-bindings/clock/qcom,rpmh.h>
rpmhcc: clock-controller {
compatible = "qcom,sdm845-rpmh-clk";
clocks = <&xo_board>;
clock-names = "xo";
#clock-cells = <1>;
};
...

0 comments on commit 681a6ad

Please sign in to comment.