Skip to content

Commit

Permalink
dt-bindings: clock: samsung: convert Exynos4 to dtschema
Browse files Browse the repository at this point in the history
Merge Exynos4210 and Exynos4412 clock controller bindings to existing DT
schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210825134056.219884-6-krzysztof.kozlowski@canonical.com
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Krzysztof Kozlowski authored and Stephen Boyd committed Aug 29, 2021
1 parent e9385b9 commit 7ac6157
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 86 deletions.
86 changes: 0 additions & 86 deletions Documentation/devicetree/bindings/clock/exynos4-clock.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ properties:
- samsung,exynos3250-cmu
- samsung,exynos3250-cmu-dmc
- samsung,exynos3250-cmu-isp
- samsung,exynos4210-clock
- samsung,exynos4412-clock
- samsung,exynos5250-clock
- items:
- enum:
Expand All @@ -31,6 +33,7 @@ properties:
- const: syscon

clocks:
minItems: 1
maxItems: 4

"#clock-cells":
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/samsung,exynos4412-isp-clock.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Samsung Exynos4412 SoC ISP 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: |
Clock controller for Samsung Exynos4412 SoC FIMC-ISP (Camera ISP)
All available clocks are defined as preprocessor macros in
dt-bindings/clock/ headers.
properties:
compatible:
const: samsung,exynos4412-isp-clock

clocks:
items:
- description: CLK_ACLK200 from the main clock controller
- description: CLK_ACLK400_MCUISP from the main clock controller

clock-names:
items:
- const: aclk200
- const: aclk400_mcuisp

"#clock-cells":
const: 1

power-domains:
maxItems: 1

reg:
maxItems: 1

required:
- compatible
- "#clock-cells"
- clocks
- clock-names
- power-domains
- reg

additionalProperties: false

examples:
- |
#include <dt-bindings/clock/exynos4412.h>
clock-controller@10048000 {
compatible = "samsung,exynos4412-isp-clock";
reg = <0x10048000 0x1000>;
#clock-cells = <1>;
power-domains = <&pd_isp>;
clocks = <&clock CLK_ACLK200>, <&clock CLK_ACLK400_MCUISP>;
clock-names = "aclk200", "aclk400_mcuisp";
};

0 comments on commit 7ac6157

Please sign in to comment.