Skip to content

Commit 2e090ae

Browse files
robherringbebarino
authored andcommitted
dt-bindings: clock: Convert alphascale,asm9260-clock-controller to DT schema
Convert the Alphascale Clock Controller binding to DT schema format. Add the undocumented 'clocks' property which is used in DTS. Drop the clock defines and consumer examples from the old binding. Signed-off-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Oleksij Rempel <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent cc33289 commit 2e090ae

File tree

2 files changed

+49
-114
lines changed

2 files changed

+49
-114
lines changed

Documentation/devicetree/bindings/clock/alphascale,acc.txt

Lines changed: 0 additions & 114 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/alphascale,asm9260-clock-controller.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Alphascale Clock Controller
8+
9+
maintainers:
10+
- Oleksij Rempel <[email protected]>
11+
12+
description: |
13+
The ACC (Alphascale Clock Controller) is responsible for choosing proper
14+
clock source, setting dividers and clock gates.
15+
16+
Simple one-cell clock specifier format is used, where the only cell is used
17+
as an index of the clock inside the provider.
18+
It is encouraged to use dt-binding for clock index definitions. SoC specific
19+
dt-binding should be included to the device tree descriptor. For example
20+
Alphascale ASM9260:
21+
22+
#include <dt-bindings/clock/alphascale,asm9260.h>
23+
24+
This binding contains two types of clock providers:
25+
26+
_AHB_ - AHB gate;
27+
_SYS_ - adjustable clock source. Not all peripheral have _SYS_ clock provider.
28+
29+
All clock specific details can be found in the SoC documentation.
30+
31+
properties:
32+
compatible:
33+
const: alphascale,asm9260-clock-controller
34+
35+
reg:
36+
maxItems: 1
37+
38+
'#clock-cells':
39+
const: 1
40+
41+
clocks:
42+
maxItems: 1
43+
44+
required:
45+
- compatible
46+
- reg
47+
- '#clock-cells'
48+
49+
additionalProperties: false

0 commit comments

Comments
 (0)