Skip to content

Commit e787c5b

Browse files
lkundrakbebarino
authored andcommitted
dt-bindings: clock: Add Marvell MMP Audio Clock Controller binding
This describes the bindings for a controller that generates master and bit clocks for the I2S interface. Signed-off-by: Lubomir Rintel <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent ee4df23 commit e787c5b

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/marvell,mmp2-audio-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell MMP2 Audio Clock Controller
8+
9+
maintainers:
10+
- Lubomir Rintel <[email protected]>
11+
12+
description: |
13+
The audio clock controller generates and supplies the clocks to the audio
14+
codec.
15+
16+
Each clock is assigned an identifier and client nodes use this identifier
17+
to specify the clock which they consume.
18+
19+
All these identifiers could be found in
20+
<dt-bindings/clock/marvell,mmp2-audio.h>.
21+
22+
properties:
23+
compatible:
24+
enum:
25+
- marvell,mmp2-audio-clock
26+
27+
reg:
28+
maxItems: 1
29+
30+
clocks:
31+
items:
32+
- description: Audio subsystem clock
33+
- description: The crystal oscillator clock
34+
- description: First I2S clock
35+
- description: Second I2S clock
36+
37+
clock-names:
38+
items:
39+
- const: audio
40+
- const: vctcxo
41+
- const: i2s0
42+
- const: i2s1
43+
44+
'#clock-cells':
45+
const: 1
46+
47+
power-domains:
48+
maxItems: 1
49+
50+
required:
51+
- compatible
52+
- reg
53+
- clocks
54+
- clock-names
55+
- '#clock-cells'
56+
57+
additionalProperties: false
58+
59+
examples:
60+
- |
61+
#include <dt-bindings/clock/marvell,mmp2-audio.h>
62+
#include <dt-bindings/power/marvell,mmp2.h>
63+
64+
clock-controller@d42a0c30 {
65+
compatible = "marvell,mmp2-audio-clock";
66+
reg = <0xd42a0c30 0x10>;
67+
clock-names = "audio", "vctcxo", "i2s0", "i2s1";
68+
clocks = <&soc_clocks MMP2_CLK_AUDIO>,
69+
<&soc_clocks MMP2_CLK_VCTCXO>,
70+
<&soc_clocks MMP2_CLK_I2S0>,
71+
<&soc_clocks MMP2_CLK_I2S1>;
72+
power-domains = <&soc_clocks MMP2_POWER_DOMAIN_AUDIO>;
73+
#clock-cells = <1>;
74+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) */
2+
#ifndef __DT_BINDINGS_CLOCK_MARVELL_MMP2_AUDIO_H
3+
#define __DT_BINDINGS_CLOCK_MARVELL_MMP2_AUDIO_H
4+
5+
#define MMP2_CLK_AUDIO_SYSCLK 0
6+
#define MMP2_CLK_AUDIO_SSPA0 1
7+
#define MMP2_CLK_AUDIO_SSPA1 2
8+
9+
#define MMP2_CLK_AUDIO_NR_CLKS 3
10+
#endif

0 commit comments

Comments
 (0)