Skip to content

Commit 521568c

Browse files
Sam Protsenkokrzk
authored andcommitted
dt-bindings: clock: exynos850: Add Exynos850 CMU_G3D
CMU_G3D generates Gondul GPU and bus clocks for BLK_G3D. Add clock indices and binding documentation for CMU_G3D. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Link: https://lore.kernel.org/r/20230223042133.26551-2-semen.protsenko@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent fe15c26 commit 521568c

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

Documentation/devicetree/bindings/clock/samsung,exynos850-clock.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ properties:
3737
- samsung,exynos850-cmu-cmgp
3838
- samsung,exynos850-cmu-core
3939
- samsung,exynos850-cmu-dpu
40+
- samsung,exynos850-cmu-g3d
4041
- samsung,exynos850-cmu-hsi
4142
- samsung,exynos850-cmu-is
4243
- samsung,exynos850-cmu-mfcmscl
@@ -169,6 +170,24 @@ allOf:
169170
- const: oscclk
170171
- const: dout_dpu
171172

173+
- if:
174+
properties:
175+
compatible:
176+
contains:
177+
const: samsung,exynos850-cmu-g3d
178+
179+
then:
180+
properties:
181+
clocks:
182+
items:
183+
- description: External reference clock (26 MHz)
184+
- description: G3D clock (from CMU_TOP)
185+
186+
clock-names:
187+
items:
188+
- const: oscclk
189+
- const: dout_g3d_switch
190+
172191
- if:
173192
properties:
174193
compatible:

include/dt-bindings/clock/exynos850.h

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@
8585
#define CLK_DOUT_MFCMSCL_M2M 73
8686
#define CLK_DOUT_MFCMSCL_MCSC 74
8787
#define CLK_DOUT_MFCMSCL_JPEG 75
88-
#define TOP_NR_CLK 76
88+
#define CLK_MOUT_G3D_SWITCH 76
89+
#define CLK_GOUT_G3D_SWITCH 77
90+
#define CLK_DOUT_G3D_SWITCH 78
91+
#define TOP_NR_CLK 79
8992

9093
/* CMU_APM */
9194
#define CLK_RCO_I3C_PMIC 1
@@ -195,6 +198,21 @@
195198
#define CLK_GOUT_SYSREG_CMGP_PCLK 15
196199
#define CMGP_NR_CLK 16
197200

201+
/* CMU_G3D */
202+
#define CLK_FOUT_G3D_PLL 1
203+
#define CLK_MOUT_G3D_PLL 2
204+
#define CLK_MOUT_G3D_SWITCH_USER 3
205+
#define CLK_MOUT_G3D_BUSD 4
206+
#define CLK_DOUT_G3D_BUSP 5
207+
#define CLK_GOUT_G3D_CMU_G3D_PCLK 6
208+
#define CLK_GOUT_G3D_GPU_CLK 7
209+
#define CLK_GOUT_G3D_TZPC_PCLK 8
210+
#define CLK_GOUT_G3D_GRAY2BIN_CLK 9
211+
#define CLK_GOUT_G3D_BUSD_CLK 10
212+
#define CLK_GOUT_G3D_BUSP_CLK 11
213+
#define CLK_GOUT_G3D_SYSREG_PCLK 12
214+
#define G3D_NR_CLK 13
215+
198216
/* CMU_HSI */
199217
#define CLK_MOUT_HSI_BUS_USER 1
200218
#define CLK_MOUT_HSI_MMC_CARD_USER 2

0 commit comments

Comments
 (0)