Skip to content

Commit f793e45

Browse files
fltobebarino
authored andcommitted
dt-bindings: clock: add SM8150 QCOM Graphics clock bindings
Add device tree bindings for graphics clock controller for Qualcomm Technology Inc's SM8150 SoCs. Signed-off-by: Jonathan Marek <[email protected]> Tested-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 23e2653 commit f793e45

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

Documentation/devicetree/bindings/clock/qcom,gpucc.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@ maintainers:
1111

1212
description: |
1313
Qualcomm graphics clock control module which supports the clocks, resets and
14-
power domains on SDM845/SC7180.
14+
power domains on SDM845/SC7180/SM8150.
1515
1616
See also:
1717
dt-bindings/clock/qcom,gpucc-sdm845.h
1818
dt-bindings/clock/qcom,gpucc-sc7180.h
19+
dt-bindings/clock/qcom,gpucc-sm8150.h
1920
2021
properties:
2122
compatible:
2223
enum:
2324
- qcom,sdm845-gpucc
2425
- qcom,sc7180-gpucc
26+
- qcom,sm8150-gpucc
2527

2628
clocks:
2729
items:
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
/*
3+
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
4+
*/
5+
6+
#ifndef _DT_BINDINGS_CLK_QCOM_GPU_CC_SM8150_H
7+
#define _DT_BINDINGS_CLK_QCOM_GPU_CC_SM8150_H
8+
9+
/* GPU_CC clock registers */
10+
#define GPU_CC_AHB_CLK 0
11+
#define GPU_CC_CRC_AHB_CLK 1
12+
#define GPU_CC_CX_APB_CLK 2
13+
#define GPU_CC_CX_GMU_CLK 3
14+
#define GPU_CC_CX_SNOC_DVM_CLK 4
15+
#define GPU_CC_CXO_AON_CLK 5
16+
#define GPU_CC_CXO_CLK 6
17+
#define GPU_CC_GMU_CLK_SRC 7
18+
#define GPU_CC_GX_GMU_CLK 8
19+
#define GPU_CC_PLL1 9
20+
21+
/* GPU_CC Resets */
22+
#define GPUCC_GPU_CC_CX_BCR 0
23+
#define GPUCC_GPU_CC_GFX3D_AON_BCR 1
24+
#define GPUCC_GPU_CC_GMU_BCR 2
25+
#define GPUCC_GPU_CC_GX_BCR 3
26+
#define GPUCC_GPU_CC_SPDM_BCR 4
27+
#define GPUCC_GPU_CC_XO_BCR 5
28+
29+
/* GPU_CC GDSCRs */
30+
#define GPU_CX_GDSC 0
31+
#define GPU_GX_GDSC 1
32+
33+
#endif

0 commit comments

Comments
 (0)