ASoC: dt-bindings: Adjust #sound-dai-cells on TI's single-DAI codecs

[ Upstream commit efb2bfd7b3d210c479b9361c176d7426e5eb8663 ]

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 <povik+lin@cutebit.org
Link: https://lore.kernel.org/r/20230509153412.62847-1-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Martin Povišer
2023-05-09 17:34:12 +02:00
committed by Greg Kroah-Hartman
parent bd99da6472
commit beee708ccc
3 changed files with 12 additions and 6 deletions

View File

@@ -50,7 +50,9 @@ properties:
description: TDM TX current sense time slot. description: TDM TX current sense time slot.
'#sound-dai-cells': '#sound-dai-cells':
const: 1 # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward
# compatibility but is deprecated.
enum: [0, 1]
required: required:
- compatible - compatible
@@ -67,7 +69,7 @@ examples:
codec: codec@4c { codec: codec@4c {
compatible = "ti,tas2562"; compatible = "ti,tas2562";
reg = <0x4c>; reg = <0x4c>;
#sound-dai-cells = <1>; #sound-dai-cells = <0>;
interrupt-parent = <&gpio1>; interrupt-parent = <&gpio1>;
interrupts = <14>; interrupts = <14>;
shutdown-gpios = <&gpio1 15 0>; shutdown-gpios = <&gpio1 15 0>;

View File

@@ -46,7 +46,9 @@ properties:
description: TDM TX voltage sense time slot. description: TDM TX voltage sense time slot.
'#sound-dai-cells': '#sound-dai-cells':
const: 1 # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward
# compatibility but is deprecated.
enum: [0, 1]
required: required:
- compatible - compatible
@@ -63,7 +65,7 @@ examples:
codec: codec@38 { codec: codec@38 {
compatible = "ti,tas2764"; compatible = "ti,tas2764";
reg = <0x38>; reg = <0x38>;
#sound-dai-cells = <1>; #sound-dai-cells = <0>;
interrupt-parent = <&gpio1>; interrupt-parent = <&gpio1>;
interrupts = <14>; interrupts = <14>;
reset-gpios = <&gpio1 15 0>; reset-gpios = <&gpio1 15 0>;

View File

@@ -52,7 +52,9 @@ properties:
- 1 # Falling edge - 1 # Falling edge
'#sound-dai-cells': '#sound-dai-cells':
const: 1 # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward
# compatibility but is deprecated.
enum: [0, 1]
required: required:
- compatible - compatible
@@ -69,7 +71,7 @@ examples:
codec: codec@41 { codec: codec@41 {
compatible = "ti,tas2770"; compatible = "ti,tas2770";
reg = <0x41>; reg = <0x41>;
#sound-dai-cells = <1>; #sound-dai-cells = <0>;
interrupt-parent = <&gpio1>; interrupt-parent = <&gpio1>;
interrupts = <14>; interrupts = <14>;
reset-gpio = <&gpio1 15 0>; reset-gpio = <&gpio1 15 0>;