Skip to content

Commit 98784a9

Browse files
committed
dt-bindings: clock: samsung,s3c6400-clock: convert to DT Schema
Convert Samsung S3C6400/S3C6410 SoC clock controller bindings to DT schema. Acked-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20240312185035.720491-1-krzysztof.kozlowski@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent dedf873 commit 98784a9

File tree

2 files changed

+57
-76
lines changed

2 files changed

+57
-76
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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,s3c6400-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung S3C6400 SoC clock controller
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <krzk@kernel.org>
11+
12+
description: |
13+
There are several clocks that are generated outside the SoC. It is expected
14+
that they are defined using standard clock bindings with following
15+
clock-output-names and/or provided as clock inputs to this clock controller:
16+
- "fin_pll" - PLL input clock (xtal/extclk) - required,
17+
- "xusbxti" - USB xtal - required,
18+
- "iiscdclk0" - I2S0 codec clock - optional,
19+
- "iiscdclk1" - I2S1 codec clock - optional,
20+
- "iiscdclk2" - I2S2 codec clock - optional,
21+
- "pcmcdclk0" - PCM0 codec clock - optional,
22+
- "pcmcdclk1" - PCM1 codec clock - optional, only S3C6410.
23+
24+
All available clocks are defined as preprocessor macros in
25+
include/dt-bindings/clock/samsung,s3c64xx-clock.h header.
26+
27+
properties:
28+
compatible:
29+
enum:
30+
- samsung,s3c6400-clock
31+
- samsung,s3c6410-clock
32+
33+
reg:
34+
maxItems: 1
35+
36+
clocks:
37+
maxItems: 1
38+
39+
"#clock-cells":
40+
const: 1
41+
42+
required:
43+
- compatible
44+
- reg
45+
- clocks
46+
- "#clock-cells"
47+
48+
additionalProperties: false
49+
50+
examples:
51+
- |
52+
clock-controller@7e00f000 {
53+
compatible = "samsung,s3c6410-clock";
54+
reg = <0x7e00f000 0x1000>;
55+
#clock-cells = <1>;
56+
clocks = <&fin_pll>;
57+
};

Documentation/devicetree/bindings/clock/samsung,s3c64xx-clock.txt

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

0 commit comments

Comments
 (0)