All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/7] ASoC: dt-bindings: Add/Update #sound-dai-cells to Tegra related codecs
@ 2026-10-27 12:00 Svyatoslav Ryhel
  2026-10-27 12:00 ` [PATCH v1 1/7] ASoC: dt-bindings: maxim,max98088: Document #sound-dai-cells property Svyatoslav Ryhel
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Svyatoslav Ryhel @ 2026-10-27 12:00 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thierry Reding, Jonathan Hunter, Svyatoslav Ryhel,
	Mikko Perttunen, Abdulrasaq Lawani, Leon Romanovsky,
	Animesh Agarwal
  Cc: patches, linux-sound, devicetree, linux-kernel, linux-tegra

Add/Update #sound-dai-cells to some codecs often used by Tegra devices.
Document #sound-dai-cells property for i2s and ac97 nodes of Tegra20
and Tegra30 devices since they all provide a single dai cell. Add these
properties to SoC level Tegra audio-related nodes. This is required for
creating more complex audio paths.

Svyatoslav Ryhel (7):
  ASoC: dt-bindings: maxim,max98088: Document #sound-dai-cells property
  ASoC: dt-bindings: realtek,alc5632: Document #sound-dai-cells property
  ASoC: dt-bindings: realtek,rt5631: Document #sound-dai-cells property
  ASoC: dt-bindings: wlf,wm8903: Document #sound-dai-cells property
  ASoC: dt-bindings: wlf,wm8994: Update #sound-dai-cells property
  ASoC: dt-bindings: nvidia,tegra20/tegra30: Document #sound-dai-cells
    property
  ARM: tegra: Add '#sound-dai-cells' property for audio-related nodes

 .../devicetree/bindings/sound/maxim,max98088.yaml      |  8 +++++++-
 .../devicetree/bindings/sound/nvidia,tegra20-ac97.yaml |  8 +++++++-
 .../devicetree/bindings/sound/nvidia,tegra20-i2s.yaml  |  8 +++++++-
 .../devicetree/bindings/sound/nvidia,tegra30-i2s.yaml  |  8 +++++++-
 .../devicetree/bindings/sound/realtek,alc5632.yaml     |  8 +++++++-
 .../devicetree/bindings/sound/realtek,rt5631.yaml      |  8 +++++++-
 .../devicetree/bindings/sound/wlf,wm8903.yaml          |  8 +++++++-
 .../devicetree/bindings/sound/wlf,wm8994.yaml          |  2 +-
 arch/arm/boot/dts/nvidia/tegra114.dtsi                 | 10 ++++++++++
 arch/arm/boot/dts/nvidia/tegra124.dtsi                 | 10 ++++++++++
 arch/arm/boot/dts/nvidia/tegra20.dtsi                  |  7 +++++++
 arch/arm/boot/dts/nvidia/tegra30.dtsi                  | 10 ++++++++++
 12 files changed, 87 insertions(+), 8 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH v1 1/7] ASoC: dt-bindings: maxim,max98088: Document #sound-dai-cells property
  2026-10-27 12:00 [PATCH v1 0/7] ASoC: dt-bindings: Add/Update #sound-dai-cells to Tegra related codecs Svyatoslav Ryhel
@ 2026-10-27 12:00 ` Svyatoslav Ryhel
  2026-10-27 18:05   ` Mark Brown
  2026-10-27 12:00 ` [PATCH v1 2/7] ASoC: dt-bindings: realtek,alc5632: " Svyatoslav Ryhel
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 13+ messages in thread
From: Svyatoslav Ryhel @ 2026-10-27 12:00 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thierry Reding, Jonathan Hunter, Svyatoslav Ryhel,
	Mikko Perttunen, Abdulrasaq Lawani, Leon Romanovsky,
	Animesh Agarwal
  Cc: patches, linux-sound, devicetree, linux-kernel, linux-tegra

The Maxim MAX98088 codec provides a single DAI cell.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 .../devicetree/bindings/sound/maxim,max98088.yaml         | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/maxim,max98088.yaml b/Documentation/devicetree/bindings/sound/maxim,max98088.yaml
index e4a2967e1e818..4d33fd705cf8e 100644
--- a/Documentation/devicetree/bindings/sound/maxim,max98088.yaml
+++ b/Documentation/devicetree/bindings/sound/maxim,max98088.yaml
@@ -9,6 +9,9 @@ title: MAX98088 audio CODEC
 maintainers:
   - Abdulrasaq Lawani <abdulrasaqolawani@gmail.com>
 
+allOf:
+  - $ref: dai-common.yaml#
+
 properties:
   compatible:
     enum:
@@ -26,11 +29,14 @@ properties:
     items:
       - const: mclk
 
+  '#sound-dai-cells':
+    const: 1
+
 required:
   - compatible
   - reg
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v1 2/7] ASoC: dt-bindings: realtek,alc5632: Document #sound-dai-cells property
  2026-10-27 12:00 [PATCH v1 0/7] ASoC: dt-bindings: Add/Update #sound-dai-cells to Tegra related codecs Svyatoslav Ryhel
  2026-10-27 12:00 ` [PATCH v1 1/7] ASoC: dt-bindings: maxim,max98088: Document #sound-dai-cells property Svyatoslav Ryhel
@ 2026-10-27 12:00 ` Svyatoslav Ryhel
  2026-10-27 12:00 ` [PATCH v1 3/7] ASoC: dt-bindings: realtek,rt5631: " Svyatoslav Ryhel
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 13+ messages in thread
From: Svyatoslav Ryhel @ 2026-10-27 12:00 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thierry Reding, Jonathan Hunter, Svyatoslav Ryhel,
	Mikko Perttunen, Abdulrasaq Lawani, Leon Romanovsky,
	Animesh Agarwal
  Cc: patches, linux-sound, devicetree, linux-kernel, linux-tegra

The Realtek ALC5632 codec provides a single DAI cell.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 .../devicetree/bindings/sound/realtek,alc5632.yaml        | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml b/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml
index fb05988ff7ea0..939b1fbf2afe6 100644
--- a/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml
+++ b/Documentation/devicetree/bindings/sound/realtek,alc5632.yaml
@@ -28,6 +28,9 @@ description: |
 maintainers:
   - Leon Romanovsky <leon@leon.nu>
 
+allOf:
+  - $ref: dai-common.yaml#
+
 properties:
   compatible:
     const: realtek,alc5632
@@ -40,13 +43,16 @@ properties:
 
   gpio-controller: true
 
+  '#sound-dai-cells':
+    const: 0
+
 required:
   - compatible
   - reg
   - '#gpio-cells'
   - gpio-controller
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v1 3/7] ASoC: dt-bindings: realtek,rt5631: Document #sound-dai-cells property
  2026-10-27 12:00 [PATCH v1 0/7] ASoC: dt-bindings: Add/Update #sound-dai-cells to Tegra related codecs Svyatoslav Ryhel
  2026-10-27 12:00 ` [PATCH v1 1/7] ASoC: dt-bindings: maxim,max98088: Document #sound-dai-cells property Svyatoslav Ryhel
  2026-10-27 12:00 ` [PATCH v1 2/7] ASoC: dt-bindings: realtek,alc5632: " Svyatoslav Ryhel
@ 2026-10-27 12:00 ` Svyatoslav Ryhel
  2026-10-27 12:00 ` [PATCH v1 4/7] ASoC: dt-bindings: wlf,wm8903: " Svyatoslav Ryhel
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 13+ messages in thread
From: Svyatoslav Ryhel @ 2026-10-27 12:00 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thierry Reding, Jonathan Hunter, Svyatoslav Ryhel,
	Mikko Perttunen, Abdulrasaq Lawani, Leon Romanovsky,
	Animesh Agarwal
  Cc: patches, linux-sound, devicetree, linux-kernel, linux-tegra

The Realtek RT5631 codec provides a single DAI cell.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 .../devicetree/bindings/sound/realtek,rt5631.yaml         | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/realtek,rt5631.yaml b/Documentation/devicetree/bindings/sound/realtek,rt5631.yaml
index 747a731c44c99..3f5f7638cf84c 100644
--- a/Documentation/devicetree/bindings/sound/realtek,rt5631.yaml
+++ b/Documentation/devicetree/bindings/sound/realtek,rt5631.yaml
@@ -36,6 +36,9 @@ description: |
       * MICBIAS1
       * MICBIAS2
 
+allOf:
+  - $ref: dai-common.yaml#
+
 properties:
   compatible:
     enum:
@@ -49,11 +52,14 @@ properties:
     $ref: audio-graph-port.yaml#
     unevaluatedProperties: false
 
+  '#sound-dai-cells':
+    const: 0
+
 required:
   - compatible
   - reg
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v1 4/7] ASoC: dt-bindings: wlf,wm8903: Document #sound-dai-cells property
  2026-10-27 12:00 [PATCH v1 0/7] ASoC: dt-bindings: Add/Update #sound-dai-cells to Tegra related codecs Svyatoslav Ryhel
                   ` (2 preceding siblings ...)
  2026-10-27 12:00 ` [PATCH v1 3/7] ASoC: dt-bindings: realtek,rt5631: " Svyatoslav Ryhel
@ 2026-10-27 12:00 ` Svyatoslav Ryhel
  2026-10-27 12:00 ` [PATCH v1 5/7] ASoC: dt-bindings: wlf,wm8994: Update " Svyatoslav Ryhel
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 13+ messages in thread
From: Svyatoslav Ryhel @ 2026-10-27 12:00 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thierry Reding, Jonathan Hunter, Svyatoslav Ryhel,
	Mikko Perttunen, Abdulrasaq Lawani, Leon Romanovsky,
	Animesh Agarwal
  Cc: patches, linux-sound, devicetree, linux-kernel, linux-tegra

The Wolfson Microelectronics WM8903 codec provides a single DAI cell.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 Documentation/devicetree/bindings/sound/wlf,wm8903.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8903.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8903.yaml
index 089b673847975..bb96e8f790b2d 100644
--- a/Documentation/devicetree/bindings/sound/wlf,wm8903.yaml
+++ b/Documentation/devicetree/bindings/sound/wlf,wm8903.yaml
@@ -29,6 +29,9 @@ description: |
 maintainers:
   - patches@opensource.cirrus.com
 
+allOf:
+  - $ref: dai-common.yaml#
+
 properties:
   compatible:
     const: wlf,wm8903
@@ -75,13 +78,16 @@ properties:
   DCVDD-supply:
     description: Digital core supply regulator for the DCVDD pin.
 
+  '#sound-dai-cells':
+    const: 0
+
 required:
   - compatible
   - reg
   - gpio-controller
   - '#gpio-cells'
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v1 5/7] ASoC: dt-bindings: wlf,wm8994: Update #sound-dai-cells property
  2026-10-27 12:00 [PATCH v1 0/7] ASoC: dt-bindings: Add/Update #sound-dai-cells to Tegra related codecs Svyatoslav Ryhel
                   ` (3 preceding siblings ...)
  2026-10-27 12:00 ` [PATCH v1 4/7] ASoC: dt-bindings: wlf,wm8903: " Svyatoslav Ryhel
@ 2026-10-27 12:00 ` Svyatoslav Ryhel
  2026-10-27 12:10   ` sashiko-bot
  2026-10-27 18:05   ` Mark Brown
  2026-10-27 12:00 ` [PATCH v1 6/7] ASoC: dt-bindings: nvidia,tegra20/tegra30: Document " Svyatoslav Ryhel
  2026-10-27 12:00 ` [PATCH v1 7/7] ARM: tegra: Add '#sound-dai-cells' property for audio-related nodes Svyatoslav Ryhel
  6 siblings, 2 replies; 13+ messages in thread
From: Svyatoslav Ryhel @ 2026-10-27 12:00 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thierry Reding, Jonathan Hunter, Svyatoslav Ryhel,
	Mikko Perttunen, Abdulrasaq Lawani, Leon Romanovsky,
	Animesh Agarwal
  Cc: patches, linux-sound, devicetree, linux-kernel, linux-tegra

The Wolfson Microelectronics WM8994 codec provides three DAI cells.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 Documentation/devicetree/bindings/sound/wlf,wm8994.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml
index 0db04a90ac6b3..39bf1af7c3ab8 100644
--- a/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml
+++ b/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml
@@ -69,7 +69,7 @@ properties:
   SPKVDD2-supply: true
 
   '#sound-dai-cells':
-    const: 0
+    const: 1
 
   wlf,gpio-cfg:
     $ref: /schemas/types.yaml#/definitions/uint32-array
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v1 6/7] ASoC: dt-bindings: nvidia,tegra20/tegra30: Document #sound-dai-cells property
  2026-10-27 12:00 [PATCH v1 0/7] ASoC: dt-bindings: Add/Update #sound-dai-cells to Tegra related codecs Svyatoslav Ryhel
                   ` (4 preceding siblings ...)
  2026-10-27 12:00 ` [PATCH v1 5/7] ASoC: dt-bindings: wlf,wm8994: Update " Svyatoslav Ryhel
@ 2026-10-27 12:00 ` Svyatoslav Ryhel
  2026-10-27 12:00 ` [PATCH v1 7/7] ARM: tegra: Add '#sound-dai-cells' property for audio-related nodes Svyatoslav Ryhel
  6 siblings, 0 replies; 13+ messages in thread
From: Svyatoslav Ryhel @ 2026-10-27 12:00 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thierry Reding, Jonathan Hunter, Svyatoslav Ryhel,
	Mikko Perttunen, Abdulrasaq Lawani, Leon Romanovsky,
	Animesh Agarwal
  Cc: patches, linux-sound, devicetree, linux-kernel, linux-tegra

The Tegra20 AC97, Tegra20 I2S, and Tegra30 I2S controllers each provide a
single DAI cell.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 .../devicetree/bindings/sound/nvidia,tegra20-ac97.yaml    | 8 +++++++-
 .../devicetree/bindings/sound/nvidia,tegra20-i2s.yaml     | 8 +++++++-
 .../devicetree/bindings/sound/nvidia,tegra30-i2s.yaml     | 8 +++++++-
 3 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra20-ac97.yaml b/Documentation/devicetree/bindings/sound/nvidia,tegra20-ac97.yaml
index 4ea0a303d995d..19e242f6cf028 100644
--- a/Documentation/devicetree/bindings/sound/nvidia,tegra20-ac97.yaml
+++ b/Documentation/devicetree/bindings/sound/nvidia,tegra20-ac97.yaml
@@ -10,6 +10,9 @@ maintainers:
   - Thierry Reding <treding@nvidia.com>
   - Jon Hunter <jonathanh@nvidia.com>
 
+allOf:
+  - $ref: dai-common.yaml#
+
 properties:
   compatible:
     const: nvidia,tegra20-ac97
@@ -45,6 +48,9 @@ properties:
     description: AC97 DAP _FS line
     maxItems: 1
 
+  '#sound-dai-cells':
+    const: 0
+
 required:
   - compatible
   - reg
@@ -57,7 +63,7 @@ required:
   - nvidia,codec-reset-gpios
   - nvidia,codec-sync-gpios
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra20-i2s.yaml b/Documentation/devicetree/bindings/sound/nvidia,tegra20-i2s.yaml
index 68ae124eaf804..9a17866da7731 100644
--- a/Documentation/devicetree/bindings/sound/nvidia,tegra20-i2s.yaml
+++ b/Documentation/devicetree/bindings/sound/nvidia,tegra20-i2s.yaml
@@ -15,6 +15,9 @@ maintainers:
   - Thierry Reding <treding@nvidia.com>
   - Jon Hunter <jonathanh@nvidia.com>
 
+allOf:
+  - $ref: dai-common.yaml#
+
 properties:
   compatible:
     const: nvidia,tegra20-i2s
@@ -49,6 +52,9 @@ properties:
       limiting number of supportable audio rates.
     type: boolean
 
+  '#sound-dai-cells':
+    const: 0
+
 required:
   - compatible
   - reg
@@ -59,7 +65,7 @@ required:
   - dmas
   - dma-names
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.yaml b/Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.yaml
index 89c3c6414ab13..fbe4cd4619683 100644
--- a/Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.yaml
+++ b/Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.yaml
@@ -10,6 +10,9 @@ maintainers:
   - Thierry Reding <treding@nvidia.com>
   - Jon Hunter <jonathanh@nvidia.com>
 
+allOf:
+  - $ref: dai-common.yaml#
+
 properties:
   compatible:
     oneOf:
@@ -42,6 +45,9 @@ properties:
       - description: rx (playback)
       - description: tx (capture)
 
+  '#sound-dai-cells':
+    const: 0
+
 required:
   - compatible
   - reg
@@ -50,7 +56,7 @@ required:
   - reset-names
   - nvidia,ahub-cif-ids
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v1 7/7] ARM: tegra: Add '#sound-dai-cells' property for audio-related nodes
  2026-10-27 12:00 [PATCH v1 0/7] ASoC: dt-bindings: Add/Update #sound-dai-cells to Tegra related codecs Svyatoslav Ryhel
                   ` (5 preceding siblings ...)
  2026-10-27 12:00 ` [PATCH v1 6/7] ASoC: dt-bindings: nvidia,tegra20/tegra30: Document " Svyatoslav Ryhel
@ 2026-10-27 12:00 ` Svyatoslav Ryhel
  6 siblings, 0 replies; 13+ messages in thread
From: Svyatoslav Ryhel @ 2026-10-27 12:00 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thierry Reding, Jonathan Hunter, Svyatoslav Ryhel,
	Mikko Perttunen, Abdulrasaq Lawani, Leon Romanovsky,
	Animesh Agarwal
  Cc: patches, linux-sound, devicetree, linux-kernel, linux-tegra

Add the '#sound-dai-cells' property to audio-related nodes to support more
advanced audio routing configurations.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 arch/arm/boot/dts/nvidia/tegra114.dtsi | 10 ++++++++++
 arch/arm/boot/dts/nvidia/tegra124.dtsi | 10 ++++++++++
 arch/arm/boot/dts/nvidia/tegra20.dtsi  |  7 +++++++
 arch/arm/boot/dts/nvidia/tegra30.dtsi  | 10 ++++++++++
 4 files changed, 37 insertions(+)

diff --git a/arch/arm/boot/dts/nvidia/tegra114.dtsi b/arch/arm/boot/dts/nvidia/tegra114.dtsi
index a5958f3a965b2..f2766c11ee6c3 100644
--- a/arch/arm/boot/dts/nvidia/tegra114.dtsi
+++ b/arch/arm/boot/dts/nvidia/tegra114.dtsi
@@ -881,6 +881,8 @@ tegra_i2s0: i2s@70080300 {
 			clocks = <&tegra_car TEGRA114_CLK_I2S0>;
 			resets = <&tegra_car 30>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -891,6 +893,8 @@ tegra_i2s1: i2s@70080400 {
 			clocks = <&tegra_car TEGRA114_CLK_I2S1>;
 			resets = <&tegra_car 11>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -901,6 +905,8 @@ tegra_i2s2: i2s@70080500 {
 			clocks = <&tegra_car TEGRA114_CLK_I2S2>;
 			resets = <&tegra_car 18>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -911,6 +917,8 @@ tegra_i2s3: i2s@70080600 {
 			clocks = <&tegra_car TEGRA114_CLK_I2S3>;
 			resets = <&tegra_car 101>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -921,6 +929,8 @@ tegra_i2s4: i2s@70080700 {
 			clocks = <&tegra_car TEGRA114_CLK_I2S4>;
 			resets = <&tegra_car 102>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 	};
diff --git a/arch/arm/boot/dts/nvidia/tegra124.dtsi b/arch/arm/boot/dts/nvidia/tegra124.dtsi
index 86956b94ca0b0..920b1329a4dcb 100644
--- a/arch/arm/boot/dts/nvidia/tegra124.dtsi
+++ b/arch/arm/boot/dts/nvidia/tegra124.dtsi
@@ -1125,6 +1125,8 @@ tegra_i2s0: i2s@70301000 {
 			clocks = <&tegra_car TEGRA124_CLK_I2S0>;
 			resets = <&tegra_car 30>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -1135,6 +1137,8 @@ tegra_i2s1: i2s@70301100 {
 			clocks = <&tegra_car TEGRA124_CLK_I2S1>;
 			resets = <&tegra_car 11>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -1145,6 +1149,8 @@ tegra_i2s2: i2s@70301200 {
 			clocks = <&tegra_car TEGRA124_CLK_I2S2>;
 			resets = <&tegra_car 18>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -1155,6 +1161,8 @@ tegra_i2s3: i2s@70301300 {
 			clocks = <&tegra_car TEGRA124_CLK_I2S3>;
 			resets = <&tegra_car 101>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -1165,6 +1173,8 @@ tegra_i2s4: i2s@70301400 {
 			clocks = <&tegra_car TEGRA124_CLK_I2S4>;
 			resets = <&tegra_car 102>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 	};
diff --git a/arch/arm/boot/dts/nvidia/tegra20.dtsi b/arch/arm/boot/dts/nvidia/tegra20.dtsi
index e4be3b62a51fe..b7102e6317ab1 100644
--- a/arch/arm/boot/dts/nvidia/tegra20.dtsi
+++ b/arch/arm/boot/dts/nvidia/tegra20.dtsi
@@ -405,6 +405,8 @@ tegra_ac97: ac97@70002000 {
 		reset-names = "ac97";
 		dmas = <&apbdma 12>, <&apbdma 12>;
 		dma-names = "rx", "tx";
+		#sound-dai-cells = <0>;
+
 		status = "disabled";
 	};
 
@@ -419,6 +421,7 @@ tegra_spdif: spdif@70002400 {
 		dmas = <&apbdma 3>, <&apbdma 3>;
 		dma-names = "rx", "tx";
 		#sound-dai-cells = <0>;
+
 		status = "disabled";
 
 		assigned-clocks = <&tegra_car TEGRA20_CLK_SPDIF_OUT>;
@@ -434,6 +437,8 @@ tegra_i2s1: i2s@70002800 {
 		reset-names = "i2s";
 		dmas = <&apbdma 2>, <&apbdma 2>;
 		dma-names = "rx", "tx";
+		#sound-dai-cells = <0>;
+
 		status = "disabled";
 	};
 
@@ -446,6 +451,8 @@ tegra_i2s2: i2s@70002a00 {
 		reset-names = "i2s";
 		dmas = <&apbdma 1>, <&apbdma 1>;
 		dma-names = "rx", "tx";
+		#sound-dai-cells = <0>;
+
 		status = "disabled";
 	};
 
diff --git a/arch/arm/boot/dts/nvidia/tegra30.dtsi b/arch/arm/boot/dts/nvidia/tegra30.dtsi
index ed1bbf86434ce..1e51da329f310 100644
--- a/arch/arm/boot/dts/nvidia/tegra30.dtsi
+++ b/arch/arm/boot/dts/nvidia/tegra30.dtsi
@@ -1043,6 +1043,8 @@ tegra_i2s0: i2s@70080300 {
 			clocks = <&tegra_car TEGRA30_CLK_I2S0>;
 			resets = <&tegra_car 30>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -1053,6 +1055,8 @@ tegra_i2s1: i2s@70080400 {
 			clocks = <&tegra_car TEGRA30_CLK_I2S1>;
 			resets = <&tegra_car 11>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -1063,6 +1067,8 @@ tegra_i2s2: i2s@70080500 {
 			clocks = <&tegra_car TEGRA30_CLK_I2S2>;
 			resets = <&tegra_car 18>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -1073,6 +1079,8 @@ tegra_i2s3: i2s@70080600 {
 			clocks = <&tegra_car TEGRA30_CLK_I2S3>;
 			resets = <&tegra_car 101>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 
@@ -1083,6 +1091,8 @@ tegra_i2s4: i2s@70080700 {
 			clocks = <&tegra_car TEGRA30_CLK_I2S4>;
 			resets = <&tegra_car 102>;
 			reset-names = "i2s";
+			#sound-dai-cells = <0>;
+
 			status = "disabled";
 		};
 	};
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH v1 5/7] ASoC: dt-bindings: wlf,wm8994: Update #sound-dai-cells property
  2026-10-27 12:00 ` [PATCH v1 5/7] ASoC: dt-bindings: wlf,wm8994: Update " Svyatoslav Ryhel
@ 2026-10-27 12:10   ` sashiko-bot
  2026-10-27 18:05   ` Mark Brown
  1 sibling, 0 replies; 13+ messages in thread
From: sashiko-bot @ 2026-10-27 12:10 UTC (permalink / raw)
  To: Svyatoslav Ryhel; +Cc: linux-sound, devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] ASoC: dt-bindings: wlf,wm8994: #sound-dai-cells const: 1 breaks existing DTs
--

commit c9447e4a210bccb381d9588b9e0794f2b80cb590
Author: Svyatoslav Ryhel <clamor95@gmail.com>

ASoC: dt-bindings: wlf,wm8994: Update #sound-dai-cells property

This commit updates the #sound-dai-cells property in the Wolfson
Microelectronics WM8994 audio codec binding from const: 0 to const: 1.

> diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml
> index 0db04a90ac6b3..39bf1af7c3ab8 100644
> --- a/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml
> +++ b/Documentation/devicetree/bindings/sound/wlf,wm8994.yaml
> @@ -69,7 +69,7 @@ properties:
>    SPKVDD2-supply: true
>  
>    '#sound-dai-cells':
> -    const: 0
> +    const: 1

[Severity: Medium]
Does replacing const: 0 with const: 1 break dtbs_check validation and
backwards compatibility for existing in-tree device trees?

All existing in-tree device trees using wlf,wm1811 or wlf,wm8994 specify
#sound-dai-cells = <0> and reference the codec with a 0-cell sound-dai
phandle:

arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi:
    wm1811: audio-codec@1a {
        ...
        gpio-controller;
        #gpio-cells = <2>;
        #sound-dai-cells = <0>;

arch/arm/boot/dts/samsung/exynos4412-midas.dtsi:
    wm1811: audio-codec@1a {
        ...
        gpio-controller;
        #gpio-cells = <2>;
        #sound-dai-cells = <0>;

arch/arm/boot/dts/samsung/s5pv210-aries.dtsi:
    wm8994: audio-codec@1a {
        compatible = "wlf,wm8994";
        reg = <0x1a>;

        #sound-dai-cells = <0>;

The corresponding sound card bindings
(Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml and
Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml) and
machine drivers (sound/soc/samsung/midas_wm1811.c and
sound/soc/samsung/aries_wm8994.c) parse a bare codec phandle via
of_parse_phandle(codec, "sound-dai", 0) and hardcode the three codec DAIs.
Meanwhile, sound/soc/codecs/wm8994.c registers three DAIs without a custom
.of_xlate_dai_name callback, so snd_soc_get_dlc() in sound/soc/soc-core.c
supports both 0 cells and 1 cell.

Should #sound-dai-cells in
Documentation/devicetree/bindings/sound/wlf,wm8994.yaml use enum: [0, 1]
instead so that both existing 0-cell device trees and 1-cell consumers remain
valid?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261027120019.93611-1-clamor95@gmail.com?part=5

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v1 1/7] ASoC: dt-bindings: maxim,max98088: Document #sound-dai-cells property
  2026-10-27 12:00 ` [PATCH v1 1/7] ASoC: dt-bindings: maxim,max98088: Document #sound-dai-cells property Svyatoslav Ryhel
@ 2026-10-27 18:05   ` Mark Brown
  2026-10-27 18:46     ` Svyatoslav Ryhel
  0 siblings, 1 reply; 13+ messages in thread
From: Mark Brown @ 2026-10-27 18:05 UTC (permalink / raw)
  To: Svyatoslav Ryhel
  Cc: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thierry Reding, Jonathan Hunter, Mikko Perttunen,
	Abdulrasaq Lawani, Leon Romanovsky, Animesh Agarwal, patches,
	linux-sound, devicetree, linux-kernel, linux-tegra

> The Maxim MAX98088 codec provides a single DAI cell.

The device has HiFi and Aux DAIs...

> +  '#sound-dai-cells':
> +    const: 1

This makes sense for the device.

-- 
Mark Brown <broonie@kernel.org>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v1 5/7] ASoC: dt-bindings: wlf,wm8994: Update #sound-dai-cells property
  2026-10-27 12:00 ` [PATCH v1 5/7] ASoC: dt-bindings: wlf,wm8994: Update " Svyatoslav Ryhel
  2026-10-27 12:10   ` sashiko-bot
@ 2026-10-27 18:05   ` Mark Brown
  2026-10-27 18:44     ` Svyatoslav Ryhel
  1 sibling, 1 reply; 13+ messages in thread
From: Mark Brown @ 2026-10-27 18:05 UTC (permalink / raw)
  To: Svyatoslav Ryhel
  Cc: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thierry Reding, Jonathan Hunter, Mikko Perttunen,
	Abdulrasaq Lawani, Leon Romanovsky, Animesh Agarwal, patches,
	linux-sound, devicetree, linux-kernel, linux-tegra

> The Wolfson Microelectronics WM8994 codec provides three DAI cells.

>    '#sound-dai-cells':
> -    const: 0
> +    const: 1

We have existing Exynos users which are validated with 0, this will break
validation for them.

-- 
Mark Brown <broonie@kernel.org>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v1 5/7] ASoC: dt-bindings: wlf,wm8994: Update #sound-dai-cells property
  2026-10-27 18:05   ` Mark Brown
@ 2026-10-27 18:44     ` Svyatoslav Ryhel
  0 siblings, 0 replies; 13+ messages in thread
From: Svyatoslav Ryhel @ 2026-10-27 18:44 UTC (permalink / raw)
  To: Mark Brown
  Cc: Liam Girdwood, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Thierry Reding, Jonathan Hunter, Mikko Perttunen,
	Abdulrasaq Lawani, Leon Romanovsky, Animesh Agarwal, patches,
	linux-sound, devicetree, linux-kernel, linux-tegra

вт, 27 жовт. 2026 р. о 20:05 Mark Brown <broonie@kernel.org> пише:
>
> > The Wolfson Microelectronics WM8994 codec provides three DAI cells.
>
> >    '#sound-dai-cells':
> > -    const: 0
> > +    const: 1
>
> We have existing Exynos users which are validated with 0, this will break
> validation for them.
>

Yes, sorry, it should be enum [0, 1] my bad, I will update in v2.

> --
> Mark Brown <broonie@kernel.org>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v1 1/7] ASoC: dt-bindings: maxim,max98088: Document #sound-dai-cells property
  2026-10-27 18:05   ` Mark Brown
@ 2026-10-27 18:46     ` Svyatoslav Ryhel
  0 siblings, 0 replies; 13+ messages in thread
From: Svyatoslav Ryhel @ 2026-10-27 18:46 UTC (permalink / raw)
  To: Mark Brown
  Cc: Liam Girdwood, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Thierry Reding, Jonathan Hunter, Mikko Perttunen,
	Abdulrasaq Lawani, Leon Romanovsky, Animesh Agarwal, patches,
	linux-sound, devicetree, linux-kernel, linux-tegra

вт, 27 жовт. 2026 р. о 20:05 Mark Brown <broonie@kernel.org> пише:
>
> > The Maxim MAX98088 codec provides a single DAI cell.
>
> The device has HiFi and Aux DAIs...
>
> > +  '#sound-dai-cells':
> > +    const: 1
>
> This makes sense for the device.
>

I must have set code correctly, but forgot to adjust the commit
message. I will update commit message in v2. I have to adjust wm8994
codec anyway.

> --
> Mark Brown <broonie@kernel.org>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-10-27 18:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-27 12:00 [PATCH v1 0/7] ASoC: dt-bindings: Add/Update #sound-dai-cells to Tegra related codecs Svyatoslav Ryhel
2026-10-27 12:00 ` [PATCH v1 1/7] ASoC: dt-bindings: maxim,max98088: Document #sound-dai-cells property Svyatoslav Ryhel
2026-10-27 18:05   ` Mark Brown
2026-10-27 18:46     ` Svyatoslav Ryhel
2026-10-27 12:00 ` [PATCH v1 2/7] ASoC: dt-bindings: realtek,alc5632: " Svyatoslav Ryhel
2026-10-27 12:00 ` [PATCH v1 3/7] ASoC: dt-bindings: realtek,rt5631: " Svyatoslav Ryhel
2026-10-27 12:00 ` [PATCH v1 4/7] ASoC: dt-bindings: wlf,wm8903: " Svyatoslav Ryhel
2026-10-27 12:00 ` [PATCH v1 5/7] ASoC: dt-bindings: wlf,wm8994: Update " Svyatoslav Ryhel
2026-10-27 12:10   ` sashiko-bot
2026-10-27 18:05   ` Mark Brown
2026-10-27 18:44     ` Svyatoslav Ryhel
2026-10-27 12:00 ` [PATCH v1 6/7] ASoC: dt-bindings: nvidia,tegra20/tegra30: Document " Svyatoslav Ryhel
2026-10-27 12:00 ` [PATCH v1 7/7] ARM: tegra: Add '#sound-dai-cells' property for audio-related nodes Svyatoslav Ryhel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.