-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: clock: Introduce QCOM Graphics clock bindings
Add device tree bindings for graphics clock controller for Qualcomm Technology Inc's SDM845 SoCs. Signed-off-by: Amit Nischal <anischal@codeaurora.org> Reviewed-by: Rob Herring <robh@kernel.org> [sboyd@kernel.org: Add input clocks property] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
- Loading branch information
Amit Nischal
authored and
Stephen Boyd
committed
Nov 28, 2018
1 parent
6510223
commit e431c92
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Qualcomm Graphics Clock & Reset Controller Binding | ||
-------------------------------------------------- | ||
|
||
Required properties : | ||
- compatible : shall contain "qcom,sdm845-gpucc" | ||
- reg : shall contain base register location and length | ||
- #clock-cells : from common clock binding, shall contain 1 | ||
- #reset-cells : from common reset binding, shall contain 1 | ||
- #power-domain-cells : from generic power domain binding, shall contain 1 | ||
- clocks : shall contain the XO clock | ||
- clock-names : shall be "xo" | ||
|
||
Example: | ||
gpucc: clock-controller@5090000 { | ||
compatible = "qcom,sdm845-gpucc"; | ||
reg = <0x5090000 0x9000>; | ||
#clock-cells = <1>; | ||
#reset-cells = <1>; | ||
#power-domain-cells = <1>; | ||
clocks = <&xo_board>; | ||
clock-names = "xo"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* | ||
* Copyright (c) 2018, The Linux Foundation. All rights reserved. | ||
*/ | ||
|
||
#ifndef _DT_BINDINGS_CLK_SDM_GPU_CC_SDM845_H | ||
#define _DT_BINDINGS_CLK_SDM_GPU_CC_SDM845_H | ||
|
||
/* GPU_CC clock registers */ | ||
#define GPU_CC_CX_GMU_CLK 0 | ||
#define GPU_CC_CXO_CLK 1 | ||
#define GPU_CC_GMU_CLK_SRC 2 | ||
#define GPU_CC_PLL1 3 | ||
|
||
/* GPU_CC Resets */ | ||
#define GPUCC_GPU_CC_CX_BCR 0 | ||
#define GPUCC_GPU_CC_GMU_BCR 1 | ||
#define GPUCC_GPU_CC_XO_BCR 2 | ||
|
||
/* GPU_CC GDSCRs */ | ||
#define GPU_CX_GDSC 0 | ||
#define GPU_GX_GDSC 1 | ||
|
||
#endif |