Skip to content

Commit 4d1976c

Browse files
morimotobroonie
authored andcommitted
ASoC: dt-bindings: ak4613: switch to yaml base Documentation
This patch switches from .txt base to .yaml base Document. Signed-off-by: Kuninori Morimoto <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c3936ba commit 4d1976c

File tree

2 files changed

+49
-27
lines changed

2 files changed

+49
-27
lines changed

Documentation/devicetree/bindings/sound/ak4613.txt

Lines changed: 0 additions & 27 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/sound/ak4613.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: AK4613 I2C transmitter Device Tree Bindings
8+
9+
maintainers:
10+
- Kuninori Morimoto <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: asahi-kasei,ak4613
15+
16+
reg:
17+
maxItems: 1
18+
19+
clocks:
20+
maxItems: 1
21+
22+
"#sound-dai-cells":
23+
const: 0
24+
25+
patternProperties:
26+
"^asahi-kasei,in[1-2]-single-end$":
27+
description: Input Pin 1 - 2.
28+
$ref: /schemas/types.yaml#/definitions/flag
29+
30+
"^asahi-kasei,out[1-6]-single-end$":
31+
description: Output Pin 1 - 6.
32+
$ref: /schemas/types.yaml#/definitions/flag
33+
34+
required:
35+
- compatible
36+
- reg
37+
38+
additionalProperties: false
39+
40+
examples:
41+
- |
42+
i2c {
43+
#address-cells = <1>;
44+
#size-cells = <0>;
45+
ak4613: codec@10 {
46+
compatible = "asahi-kasei,ak4613";
47+
reg = <0x10>;
48+
};
49+
};

0 commit comments

Comments
 (0)