Skip to content

Commit 8f3fc0e

Browse files
Sam Protsenkokrzk
authored andcommitted
dt-bindings: clock: exynos850: Add Exynos850 CMU_MFCMSCL
CMU_MFCMSCL generates MFC, M2M, MCSC and JPEG clocks for BLK_MFCMSCL. Add clock indices and binding documentation for CMU_MFCMSCL. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20220809113323.29965-4-semen.protsenko@linaro.org
1 parent f20f35f commit 8f3fc0e

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ properties:
3939
- samsung,exynos850-cmu-dpu
4040
- samsung,exynos850-cmu-hsi
4141
- samsung,exynos850-cmu-is
42+
- samsung,exynos850-cmu-mfcmscl
4243
- samsung,exynos850-cmu-peri
4344

4445
clocks:
@@ -216,6 +217,30 @@ allOf:
216217
- const: dout_is_vra
217218
- const: dout_is_gdc
218219

220+
- if:
221+
properties:
222+
compatible:
223+
contains:
224+
const: samsung,exynos850-cmu-mfcmscl
225+
226+
then:
227+
properties:
228+
clocks:
229+
items:
230+
- description: External reference clock (26 MHz)
231+
- description: Multi-Format Codec clock (from CMU_TOP)
232+
- description: Memory to Memory Scaler clock (from CMU_TOP)
233+
- description: Multi-Channel Scaler clock (from CMU_TOP)
234+
- description: JPEG codec clock (from CMU_TOP)
235+
236+
clock-names:
237+
items:
238+
- const: oscclk
239+
- const: dout_mfcmscl_mfc
240+
- const: dout_mfcmscl_m2m
241+
- const: dout_mfcmscl_mcsc
242+
- const: dout_mfcmscl_jpeg
243+
219244
- if:
220245
properties:
221246
compatible:

include/dt-bindings/clock/exynos850.h

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,19 @@
7373
#define CLK_DOUT_IS_ITP 61
7474
#define CLK_DOUT_IS_VRA 62
7575
#define CLK_DOUT_IS_GDC 63
76-
#define TOP_NR_CLK 64
76+
#define CLK_MOUT_MFCMSCL_MFC 64
77+
#define CLK_MOUT_MFCMSCL_M2M 65
78+
#define CLK_MOUT_MFCMSCL_MCSC 66
79+
#define CLK_MOUT_MFCMSCL_JPEG 67
80+
#define CLK_GOUT_MFCMSCL_MFC 68
81+
#define CLK_GOUT_MFCMSCL_M2M 69
82+
#define CLK_GOUT_MFCMSCL_MCSC 70
83+
#define CLK_GOUT_MFCMSCL_JPEG 71
84+
#define CLK_DOUT_MFCMSCL_MFC 72
85+
#define CLK_DOUT_MFCMSCL_M2M 73
86+
#define CLK_DOUT_MFCMSCL_MCSC 74
87+
#define CLK_DOUT_MFCMSCL_JPEG 75
88+
#define TOP_NR_CLK 76
7789

7890
/* CMU_APM */
7991
#define CLK_RCO_I3C_PMIC 1
@@ -225,6 +237,24 @@
225237
#define CLK_GOUT_IS_SYSREG_PCLK 23
226238
#define IS_NR_CLK 24
227239

240+
/* CMU_MFCMSCL */
241+
#define CLK_MOUT_MFCMSCL_MFC_USER 1
242+
#define CLK_MOUT_MFCMSCL_M2M_USER 2
243+
#define CLK_MOUT_MFCMSCL_MCSC_USER 3
244+
#define CLK_MOUT_MFCMSCL_JPEG_USER 4
245+
#define CLK_DOUT_MFCMSCL_BUSP 5
246+
#define CLK_GOUT_MFCMSCL_CMU_MFCMSCL_PCLK 6
247+
#define CLK_GOUT_MFCMSCL_TZPC_PCLK 7
248+
#define CLK_GOUT_MFCMSCL_JPEG_ACLK 8
249+
#define CLK_GOUT_MFCMSCL_M2M_ACLK 9
250+
#define CLK_GOUT_MFCMSCL_MCSC_CLK 10
251+
#define CLK_GOUT_MFCMSCL_MFC_ACLK 11
252+
#define CLK_GOUT_MFCMSCL_PPMU_ACLK 12
253+
#define CLK_GOUT_MFCMSCL_PPMU_PCLK 13
254+
#define CLK_GOUT_MFCMSCL_SYSMMU_CLK 14
255+
#define CLK_GOUT_MFCMSCL_SYSREG_PCLK 15
256+
#define MFCMSCL_NR_CLK 16
257+
228258
/* CMU_PERI */
229259
#define CLK_MOUT_PERI_BUS_USER 1
230260
#define CLK_MOUT_PERI_UART_USER 2

0 commit comments

Comments
 (0)