Skip to content

Commit 7ac6157

Browse files
krzkbebarino
authored andcommitted
dt-bindings: clock: samsung: convert Exynos4 to dtschema
Merge Exynos4210 and Exynos4412 clock controller bindings to existing DT schema. Signed-off-by: Krzysztof Kozlowski <[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 e9385b9 commit 7ac6157

File tree

3 files changed

+67
-86
lines changed

3 files changed

+67
-86
lines changed

Documentation/devicetree/bindings/clock/exynos4-clock.txt

Lines changed: 0 additions & 86 deletions
This file was deleted.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ properties:
2323
- samsung,exynos3250-cmu
2424
- samsung,exynos3250-cmu-dmc
2525
- samsung,exynos3250-cmu-isp
26+
- samsung,exynos4210-clock
27+
- samsung,exynos4412-clock
2628
- samsung,exynos5250-clock
2729
- items:
2830
- enum:
@@ -31,6 +33,7 @@ properties:
3133
- const: syscon
3234

3335
clocks:
36+
minItems: 1
3437
maxItems: 4
3538

3639
"#clock-cells":
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/samsung,exynos4412-isp-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung Exynos4412 SoC ISP clock controller
8+
9+
maintainers:
10+
- Chanwoo Choi <[email protected]>
11+
- Krzysztof Kozlowski <[email protected]>
12+
- Sylwester Nawrocki <[email protected]>
13+
- Tomasz Figa <[email protected]>
14+
15+
description: |
16+
Clock controller for Samsung Exynos4412 SoC FIMC-ISP (Camera ISP)
17+
All available clocks are defined as preprocessor macros in
18+
dt-bindings/clock/ headers.
19+
20+
properties:
21+
compatible:
22+
const: samsung,exynos4412-isp-clock
23+
24+
clocks:
25+
items:
26+
- description: CLK_ACLK200 from the main clock controller
27+
- description: CLK_ACLK400_MCUISP from the main clock controller
28+
29+
clock-names:
30+
items:
31+
- const: aclk200
32+
- const: aclk400_mcuisp
33+
34+
"#clock-cells":
35+
const: 1
36+
37+
power-domains:
38+
maxItems: 1
39+
40+
reg:
41+
maxItems: 1
42+
43+
required:
44+
- compatible
45+
- "#clock-cells"
46+
- clocks
47+
- clock-names
48+
- power-domains
49+
- reg
50+
51+
additionalProperties: false
52+
53+
examples:
54+
- |
55+
#include <dt-bindings/clock/exynos4412.h>
56+
clock-controller@10048000 {
57+
compatible = "samsung,exynos4412-isp-clock";
58+
reg = <0x10048000 0x1000>;
59+
#clock-cells = <1>;
60+
power-domains = <&pd_isp>;
61+
clocks = <&clock CLK_ACLK200>, <&clock CLK_ACLK400_MCUISP>;
62+
clock-names = "aclk200", "aclk400_mcuisp";
63+
};
64+

0 commit comments

Comments
 (0)