Skip to content

Commit 16e0c24

Browse files
Sam ProtsenkoSylwester Nawrocki
authored andcommitted
dt-bindings: clock: Add bindings for Exynos850 CMU_APM
CMU_APM generates clocks for APM IP-core (Active Power Management). In particular it generates RTC clocks, which are needed to enable rtc-s3c driver on Exynos850 SoC. Add clock indices and binding documentation for CMU_APM. Signed-off-by: Sam Protsenko <[email protected]> Signed-off-by: Sylwester Nawrocki <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Acked-by: Chanwoo Choi <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ac48ea3 commit 16e0c24

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-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
@@ -32,6 +32,7 @@ properties:
3232
compatible:
3333
enum:
3434
- samsung,exynos850-cmu-top
35+
- samsung,exynos850-cmu-apm
3536
- samsung,exynos850-cmu-core
3637
- samsung,exynos850-cmu-dpu
3738
- samsung,exynos850-cmu-hsi
@@ -68,6 +69,24 @@ allOf:
6869
items:
6970
- const: oscclk
7071

72+
- if:
73+
properties:
74+
compatible:
75+
contains:
76+
const: samsung,exynos850-cmu-apm
77+
78+
then:
79+
properties:
80+
clocks:
81+
items:
82+
- description: External reference clock (26 MHz)
83+
- description: CMU_APM bus clock (from CMU_TOP)
84+
85+
clock-names:
86+
items:
87+
- const: oscclk
88+
- const: dout_clkcmu_apm_bus
89+
7190
- if:
7291
properties:
7392
compatible:

include/dt-bindings/clock/exynos850.h

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,34 @@
5555
#define CLK_GOUT_PERI_BUS 43
5656
#define CLK_GOUT_PERI_UART 44
5757
#define CLK_GOUT_PERI_IP 45
58-
#define TOP_NR_CLK 46
58+
#define CLK_MOUT_CLKCMU_APM_BUS 46
59+
#define CLK_DOUT_CLKCMU_APM_BUS 47
60+
#define CLK_GOUT_CLKCMU_APM_BUS 48
61+
#define TOP_NR_CLK 49
62+
63+
/* CMU_APM */
64+
#define CLK_RCO_I3C_PMIC 1
65+
#define OSCCLK_RCO_APM 2
66+
#define CLK_RCO_APM__ALV 3
67+
#define CLK_DLL_DCO 4
68+
#define CLK_MOUT_APM_BUS_USER 5
69+
#define CLK_MOUT_RCO_APM_I3C_USER 6
70+
#define CLK_MOUT_RCO_APM_USER 7
71+
#define CLK_MOUT_DLL_USER 8
72+
#define CLK_MOUT_CLKCMU_CHUB_BUS 9
73+
#define CLK_MOUT_APM_BUS 10
74+
#define CLK_MOUT_APM_I3C 11
75+
#define CLK_DOUT_CLKCMU_CHUB_BUS 12
76+
#define CLK_DOUT_APM_BUS 13
77+
#define CLK_DOUT_APM_I3C 14
78+
#define CLK_GOUT_CLKCMU_CMGP_BUS 15
79+
#define CLK_GOUT_CLKCMU_CHUB_BUS 16
80+
#define CLK_GOUT_RTC_PCLK 17
81+
#define CLK_GOUT_TOP_RTC_PCLK 18
82+
#define CLK_GOUT_I3C_PCLK 19
83+
#define CLK_GOUT_I3C_SCLK 20
84+
#define CLK_GOUT_SPEEDY_PCLK 21
85+
#define APM_NR_CLK 22
5986

6087
/* CMU_HSI */
6188
#define CLK_MOUT_HSI_BUS_USER 1

0 commit comments

Comments
 (0)