Skip to content

Commit efb2bfd

Browse files
povikbroonie
authored andcommitted
ASoC: dt-bindings: Adjust #sound-dai-cells on TI's single-DAI codecs
A bunch of TI's codecs have binding schemas which force #sound-dai-cells to one despite those codecs only having a single DAI. Allow for bindings with zero DAI cells and deprecate the former non-zero value. Signed-off-by: Martin Povišer <[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]
1 parent ad721bc commit efb2bfd

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

Documentation/devicetree/bindings/sound/tas2562.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ properties:
5555
description: TDM TX current sense time slot.
5656

5757
'#sound-dai-cells':
58-
const: 1
58+
# The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward
59+
# compatibility but is deprecated.
60+
enum: [0, 1]
5961

6062
required:
6163
- compatible
@@ -72,7 +74,7 @@ examples:
7274
codec: codec@4c {
7375
compatible = "ti,tas2562";
7476
reg = <0x4c>;
75-
#sound-dai-cells = <1>;
77+
#sound-dai-cells = <0>;
7678
interrupt-parent = <&gpio1>;
7779
interrupts = <14>;
7880
shutdown-gpios = <&gpio1 15 0>;

Documentation/devicetree/bindings/sound/tas2770.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ properties:
5757
- 1 # Falling edge
5858

5959
'#sound-dai-cells':
60-
const: 1
60+
# The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward
61+
# compatibility but is deprecated.
62+
enum: [0, 1]
6163

6264
required:
6365
- compatible
@@ -74,7 +76,7 @@ examples:
7476
codec: codec@41 {
7577
compatible = "ti,tas2770";
7678
reg = <0x41>;
77-
#sound-dai-cells = <1>;
79+
#sound-dai-cells = <0>;
7880
interrupt-parent = <&gpio1>;
7981
interrupts = <14>;
8082
reset-gpio = <&gpio1 15 0>;

Documentation/devicetree/bindings/sound/tas27xx.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ properties:
5050
description: TDM TX voltage sense time slot.
5151

5252
'#sound-dai-cells':
53-
const: 1
53+
# The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward
54+
# compatibility but is deprecated.
55+
enum: [0, 1]
5456

5557
required:
5658
- compatible
@@ -67,7 +69,7 @@ examples:
6769
codec: codec@38 {
6870
compatible = "ti,tas2764";
6971
reg = <0x38>;
70-
#sound-dai-cells = <1>;
72+
#sound-dai-cells = <0>;
7173
interrupt-parent = <&gpio1>;
7274
interrupts = <14>;
7375
reset-gpios = <&gpio1 15 0>;

0 commit comments

Comments
 (0)