All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Rhodes <drhodes@opensource.cirrus.com>
To: <broonie@kernel.org>, <robh@kernel.org>,
	<ckeepax@opensource.cirrus.com>, <patches@opensource.cirrus.com>,
	<alsa-devel@alsa-project.org>, <david.rhodes@cirrus.com>,
	<devicetree@vger.kernel.org>
Cc: David Rhodes <drhodes@opensource.cirrus.com>
Subject: [PATCH] ASoC: cs35l41: Binding fixes
Date: Wed, 15 Sep 2021 14:14:22 -0500	[thread overview]
Message-ID: <20210915191422.2371623-1-drhodes@opensource.cirrus.com> (raw)

Fix warnings and errors in DT bindings

Add newline at end of file
Replace 'unevaluatedProperties' with 'additionalProperties'
Add spi context to DT example
Add #sound-dai-cells to DT example
Rename to 'cirrus,cs35l41.yaml'

Signed-off-by: David Rhodes <drhodes@opensource.cirrus.com>
---
 .../{cs35l41.yaml => cirrus,cs35l41.yaml}     | 30 +++++++++++--------
 1 file changed, 18 insertions(+), 12 deletions(-)
 rename Documentation/devicetree/bindings/sound/{cs35l41.yaml => cirrus,cs35l41.yaml} (87%)

diff --git a/Documentation/devicetree/bindings/sound/cs35l41.yaml b/Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml
similarity index 87%
rename from Documentation/devicetree/bindings/sound/cs35l41.yaml
rename to Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml
index fde78c850286..3235702ce402 100644
--- a/Documentation/devicetree/bindings/sound/cs35l41.yaml
+++ b/Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
 %YAML 1.2
 ---
-$id: http://devicetree.org/schemas/sound/cs35l41.yaml#
+$id: http://devicetree.org/schemas/sound/cirrus,cs35l41.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
 title: Cirrus Logic CS35L41 Speaker Amplifier
@@ -135,17 +135,23 @@ required:
   - cirrus,boost-ind-nanohenry
   - cirrus,boost-cap-microfarad
 
-unevaluatedProperties: false
+additionalProperties: false
 
 examples:
   - |
-      cs35l41: cs35l41@2 {
-        compatible = "cirrus,cs35l41";
-        reg = <2>;
-        VA-supply = <&dummy_vreg>;
-        VP-supply = <&dummy_vreg>;
-        reset-gpios = <&gpio 110 0>;
-        cirrus,boost-peak-milliamp = <4500>;
-        cirrus,boost-ind-nanohenry = <1000>;
-        cirrus,boost-cap-microfarad = <15>;
-      };
\ No newline at end of file
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        cs35l41: cs35l41@2 {
+          #sound-dai-cells = <1>;
+          compatible = "cirrus,cs35l41";
+          reg = <2>;
+          VA-supply = <&dummy_vreg>;
+          VP-supply = <&dummy_vreg>;
+          reset-gpios = <&gpio 110 0>;
+          cirrus,boost-peak-milliamp = <4500>;
+          cirrus,boost-ind-nanohenry = <1000>;
+          cirrus,boost-cap-microfarad = <15>;
+        };
+    };
-- 
2.25.1


             reply	other threads:[~2021-09-15 19:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-15 19:14 David Rhodes [this message]
2021-09-15 19:14 ` [PATCH] ASoC: cs35l41: Binding fixes David Rhodes
2021-09-16 15:14 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210915191422.2371623-1-drhodes@opensource.cirrus.com \
    --to=drhodes@opensource.cirrus.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=david.rhodes@cirrus.com \
    --cc=devicetree@vger.kernel.org \
    --cc=patches@opensource.cirrus.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.