Skip to content

Commit

Permalink
ASoC: dt-bindings: Add WM8978 Binding
Browse files Browse the repository at this point in the history
Even though we had the wm8978 driver for some time and a number of
boards using it already, we never had a binding for it. Let's add it
based on what the driver expects and the boards are providing.

Cc: [email protected]
Cc: [email protected]
Cc: Liam Girdwood <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: [email protected]
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
mripard authored and broonie committed Sep 13, 2021
1 parent 0c7985e commit 5bd5699
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions Documentation/devicetree/bindings/sound/wlf,wm8978.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/wlf,wm8978.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Wolfson WM8978 Codec Device Tree Bindings

maintainers:
- [email protected]

properties:
'#sound-dai-cells':
const: 0

compatible:
const: wlf,wm8978

reg:
maxItems: 1

spi-max-frequency:
maximum: 526000

required:
- '#sound-dai-cells'
- compatible
- reg

additionalProperties: false

examples:
- |
spi {
#address-cells = <1>;
#size-cells = <0>;
codec@0 {
#sound-dai-cells = <0>;
compatible = "wlf,wm8978";
reg = <0>;
spi-max-frequency = <500000>;
};
};
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;
codec@0 {
#sound-dai-cells = <0>;
compatible = "wlf,wm8978";
reg = <0>;
};
};
...

0 comments on commit 5bd5699

Please sign in to comment.