Skip to content

Commit e021e0e

Browse files
AnimeshAgarwal28broonie
authored andcommitted
ASoC: dt-bindings: cirrus,cs4270: Convert to dtschema
Convert the Cirrus Logic CS4270 audio CODEC bindings to DT schema. Add missing va-supply, vd-supply and vlc-supply properties, because they are already being used in the DTS and the driver for this device. Cc: Daniel Baluta <[email protected]> Signed-off-by: Animesh Agarwal <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a8915e2 commit e021e0e

File tree

2 files changed

+59
-21
lines changed

2 files changed

+59
-21
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/cirrus,cs4270.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cirrus Logic CS4270 audio CODEC
8+
9+
maintainers:
10+
11+
12+
description:
13+
The CS4270 is a stereo audio codec. The driver for this device currently only
14+
supports I2C.
15+
16+
allOf:
17+
- $ref: dai-common.yaml#
18+
19+
properties:
20+
compatible:
21+
const: cirrus,cs4270
22+
23+
reg:
24+
maxItems: 1
25+
26+
'#sound-dai-cells':
27+
const: 0
28+
29+
reset-gpios:
30+
description:
31+
This pin will be deasserted before communication to the codec starts.
32+
maxItems: 1
33+
34+
va-supply:
35+
description: Analog power supply.
36+
37+
vd-supply:
38+
description: Digital power supply.
39+
40+
vlc-supply:
41+
description: Serial Control Port power supply.
42+
43+
required:
44+
- compatible
45+
- reg
46+
47+
unevaluatedProperties: false
48+
49+
examples:
50+
- |
51+
i2c {
52+
#address-cells = <1>;
53+
#size-cells = <0>;
54+
55+
codec@48 {
56+
compatible = "cirrus,cs4270";
57+
reg = <0x48>;
58+
};
59+
};

Documentation/devicetree/bindings/sound/cs4270.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)