-
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: Convert marvell,mmp2-clock to json-schema
Convert the fixed-factor-clock binding to DT schema format using json-schema. While at that, fix a couple of small errors: make the file base name match the compatible string, add an example and document the reg-names property. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lkml.kernel.org/r/20200309194254.29009-4-lkundrak@v3.sk Signed-off-by: Stephen Boyd <sboyd@kernel.org>
- Loading branch information
Lubomir Rintel
authored and
Stephen Boyd
committed
Mar 21, 2020
1 parent
cb8dbfe
commit 7de0b8b
Showing
2 changed files
with
62 additions
and
21 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
Documentation/devicetree/bindings/clock/marvell,mmp2-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,62 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/clock/marvell,mmp2-clock.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Marvell MMP2 Clock Controller | ||
|
||
maintainers: | ||
- Lubomir Rintel <lkundrak@v3.sk> | ||
|
||
description: | | ||
The MMP2 clock subsystem generates and supplies clock to various | ||
controllers within the MMP2 SoC. | ||
Each clock is assigned an identifier and client nodes use this identifier | ||
to specify the clock which they consume. | ||
All these identifiers could be found in <dt-bindings/clock/marvell,mmp2.h>. | ||
properties: | ||
compatible: | ||
const: marvell,mmp2-clock # controller compatible with MMP2 SoC | ||
|
||
reg: | ||
items: | ||
- description: MPMU register region | ||
- description: APMU register region | ||
- description: APBC register region | ||
|
||
reg-names: | ||
items: | ||
- const: mpmu | ||
- const: apmu | ||
- const: apbc | ||
|
||
'#clock-cells': | ||
const: 1 | ||
|
||
'#reset-cells': | ||
const: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- reg-names | ||
- '#clock-cells' | ||
- '#reset-cells' | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
clock-controller@d4050000 { | ||
compatible = "marvell,mmp2-clock"; | ||
reg = <0xd4050000 0x1000>, | ||
<0xd4282800 0x400>, | ||
<0xd4015000 0x1000>; | ||
reg-names = "mpmu", "apmu", "apbc"; | ||
#clock-cells = <1>; | ||
#reset-cells = <1>; | ||
}; |
This file was deleted.
Oops, something went wrong.