Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: clock: Introduce QCOM RPMh clock bindings

Add RPMh clock device bindings for Qualcomm Technology Inc's SoCs. These
devices would be used for communicating resource state requests to control
the clocks managed by RPMh.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Taniya Das and committed by
Stephen Boyd
1f8777a4 60cc43fc

+44
+22
Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt
··· 1 + Qualcomm Technologies, Inc. RPMh Clocks 2 + ------------------------------------------------------- 3 + 4 + Resource Power Manager Hardened (RPMh) manages shared resources on 5 + some Qualcomm Technologies Inc. SoCs. It accepts clock requests from 6 + other hardware subsystems via RSC to control clocks. 7 + 8 + Required properties : 9 + - compatible : shall contain "qcom,sdm845-rpmh-clk" 10 + 11 + - #clock-cells : must contain 1 12 + 13 + Example : 14 + 15 + #include <dt-bindings/clock/qcom,rpmh.h> 16 + 17 + &apps_rsc { 18 + rpmhcc: clock-controller { 19 + compatible = "qcom,sdm845-rpmh-clk"; 20 + #clock-cells = <1>; 21 + }; 22 + };
+22
include/dt-bindings/clock/qcom,rpmh.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + /* Copyright (c) 2018, The Linux Foundation. All rights reserved. */ 3 + 4 + 5 + #ifndef _DT_BINDINGS_CLK_MSM_RPMH_H 6 + #define _DT_BINDINGS_CLK_MSM_RPMH_H 7 + 8 + /* RPMh controlled clocks */ 9 + #define RPMH_CXO_CLK 0 10 + #define RPMH_CXO_CLK_A 1 11 + #define RPMH_LN_BB_CLK2 2 12 + #define RPMH_LN_BB_CLK2_A 3 13 + #define RPMH_LN_BB_CLK3 4 14 + #define RPMH_LN_BB_CLK3_A 5 15 + #define RPMH_RF_CLK1 6 16 + #define RPMH_RF_CLK1_A 7 17 + #define RPMH_RF_CLK2 8 18 + #define RPMH_RF_CLK2_A 9 19 + #define RPMH_RF_CLK3 10 20 + #define RPMH_RF_CLK3_A 11 21 + 22 + #endif