[PATCH 2/3] ASoC: dt-bindings: rt1015p: Add #sound-dai-cells

Nícolas F. R. A. Prado posted 3 patches 2 years, 4 months ago
[PATCH 2/3] ASoC: dt-bindings: rt1015p: Add #sound-dai-cells
Posted by Nícolas F. R. A. Prado 2 years, 4 months ago
The rt1015p codec can be pointed to through a sound-dai property to be
used as part of a machine sound driver. dtc expects #sound-dai-cells to
be defined in the codec's node in those cases, so add it in the
dt-binding and set it to 0.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---

 Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml b/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml
index fdb7f295ef2d..1d73204451b1 100644
--- a/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml
+++ b/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml
@@ -25,6 +25,9 @@ properties:
       0 means shut down; 1 means power on.
     maxItems: 1
 
+  "#sound-dai-cells":
+    const: 0
+
 required:
   - compatible
 
-- 
2.36.0

Re: [PATCH 2/3] ASoC: dt-bindings: rt1015p: Add #sound-dai-cells
Posted by Rob Herring 2 years, 4 months ago
On Fri, 29 Apr 2022 16:30:38 -0400, Nícolas F. R. A. Prado wrote:
> The rt1015p codec can be pointed to through a sound-dai property to be
> used as part of a machine sound driver. dtc expects #sound-dai-cells to
> be defined in the codec's node in those cases, so add it in the
> dt-binding and set it to 0.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---
> 
>  Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml | 3 +++
>  1 file changed, 3 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>