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

dt-bindings: clock: Document gpucc for msm8998

The GPU for msm8998 has its own clock controller. Document it.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Jeffrey Hugo and committed by
Stephen Boyd
072a551f a188339c

+32 -1
+3 -1
Documentation/devicetree/bindings/clock/qcom,gpucc.txt
··· 2 2 -------------------------------------------------- 3 3 4 4 Required properties : 5 - - compatible : shall contain "qcom,sdm845-gpucc" 5 + - compatible : shall contain "qcom,sdm845-gpucc" or "qcom,msm8998-gpucc" 6 6 - reg : shall contain base register location and length 7 7 - #clock-cells : from common clock binding, shall contain 1 8 8 - #reset-cells : from common reset binding, shall contain 1 9 9 - #power-domain-cells : from generic power domain binding, shall contain 1 10 10 - clocks : shall contain the XO clock 11 + shall contain the gpll0 out main clock (msm8998) 11 12 - clock-names : shall be "xo" 13 + shall be "gpll0" (msm8998) 12 14 13 15 Example: 14 16 gpucc: clock-controller@5090000 {
+29
include/dt-bindings/clock/qcom,gpucc-msm8998.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + /* 3 + * Copyright (c) 2019, Jeffrey Hugo 4 + */ 5 + 6 + #ifndef _DT_BINDINGS_CLK_MSM_GPUCC_8998_H 7 + #define _DT_BINDINGS_CLK_MSM_GPUCC_8998_H 8 + 9 + #define GPUPLL0 0 10 + #define GPUPLL0_OUT_EVEN 1 11 + #define RBCPR_CLK_SRC 2 12 + #define GFX3D_CLK_SRC 3 13 + #define RBBMTIMER_CLK_SRC 4 14 + #define GFX3D_ISENSE_CLK_SRC 5 15 + #define RBCPR_CLK 6 16 + #define GFX3D_CLK 7 17 + #define RBBMTIMER_CLK 8 18 + #define GFX3D_ISENSE_CLK 9 19 + #define GPUCC_CXO_CLK 10 20 + 21 + #define GPU_CX_BCR 0 22 + #define RBCPR_BCR 1 23 + #define GPU_GX_BCR 2 24 + #define GPU_ISENSE_BCR 3 25 + 26 + #define GPU_CX_GDSC 1 27 + #define GPU_GX_GDSC 2 28 + 29 + #endif