-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: clock: samsung: convert S5Pv210 to dtschema
Convert Samsung S5Pv210 SoC clock controller bindings to DT schema format. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220102115356.75796-8-krzysztof.kozlowski@canonical.com
- Loading branch information
Krzysztof Kozlowski
authored and
Rob Herring
committed
Jan 11, 2022
1 parent
cc190b1
commit 653c3d3
Showing
3 changed files
with
79 additions
and
78 deletions.
There are no files selected for viewing
77 changes: 0 additions & 77 deletions
77
Documentation/devicetree/bindings/clock/samsung,s5pv210-clock.txt
This file was deleted.
Oops, something went wrong.
79 changes: 79 additions & 0 deletions
79
Documentation/devicetree/bindings/clock/samsung,s5pv210-clock.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/clock/samsung,s5pv210-clock.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Samsung S5P6442/S5PC110/S5PV210 SoC clock controller | ||
|
||
maintainers: | ||
- Chanwoo Choi <cw00.choi@samsung.com> | ||
- Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | ||
- Sylwester Nawrocki <s.nawrocki@samsung.com> | ||
- Tomasz Figa <tomasz.figa@gmail.com> | ||
|
||
description: | | ||
Expected external clocks, defined in DTS as fixed-rate clocks with a matching | ||
name:: | ||
- "xxti" - external crystal oscillator connected to XXTI and XXTO pins of | ||
the SoC, | ||
- "xusbxti" - external crystal oscillator connected to XUSBXTI and XUSBXTO | ||
pins of the SoC, | ||
All available clocks are defined as preprocessor macros in | ||
include/dt-bindings/clock/s5pv210.h header. | ||
properties: | ||
compatible: | ||
enum: | ||
- samsung,s5pv210-clock | ||
- samsung,s5p6442-clock | ||
|
||
clocks: | ||
items: | ||
- description: xxti clock | ||
- description: xusbxti clock | ||
|
||
clock-names: | ||
items: | ||
- const: xxti | ||
- const: xusbxti | ||
|
||
"#clock-cells": | ||
const: 1 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- "#clock-cells" | ||
- reg | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/s5pv210.h> | ||
xxti: clock-0 { | ||
compatible = "fixed-clock"; | ||
clock-frequency = <0>; | ||
clock-output-names = "xxti"; | ||
#clock-cells = <0>; | ||
}; | ||
xusbxti: clock-1 { | ||
compatible = "fixed-clock"; | ||
clock-frequency = <0>; | ||
clock-output-names = "xusbxti"; | ||
#clock-cells = <0>; | ||
}; | ||
clock-controller@e0100000 { | ||
compatible = "samsung,s5pv210-clock"; | ||
reg = <0xe0100000 0x10000>; | ||
clock-names = "xxti", "xusbxti"; | ||
clocks = <&xxti>, <&xusbxti>; | ||
#clock-cells = <1>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters