aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rhodes <drhodes@opensource.cirrus.com>2021-09-15 14:14:22 -0500
committerMark Brown <broonie@kernel.org>2021-09-16 14:11:17 +0100
commit6116df7fafabbd9b2b09bfd8d568cd5fad656125 (patch)
tree4203094cd6d57e09f2e091a102c978881a32345f
parentmisc: cs35l41: Remove unused pdn variable (diff)
downloadlinux-dev-6116df7fafabbd9b2b09bfd8d568cd5fad656125.tar.xz
linux-dev-6116df7fafabbd9b2b09bfd8d568cd5fad656125.zip
ASoC: cs35l41: Binding fixes
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> Link: https://lore.kernel.org/r/20210915191422.2371623-1-drhodes@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml (renamed from Documentation/devicetree/bindings/sound/cs35l41.yaml)30
1 files changed, 18 insertions, 12 deletions
diff --git a/Documentation/devicetree/bindings/sound/cs35l41.yaml b/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>;
+ };
+ };