Skip to content

Commit

Permalink
ASoC: dt-bindings: Convert Bluetooth SCO Link binding to a schema
Browse files Browse the repository at this point in the history
Bluetooth SCO Link are supported by Linux with a matching device tree
binding.

Now that we have the DT validation in place, let's convert the device
tree bindings for that driver over to a YAML schema.

Cc: [email protected]
Cc: [email protected]
Cc: Liam Girdwood <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Samuel Holland <[email protected]>
Signed-off-by: Maxime Ripard <[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 5bd5699 commit 6ef2396
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Documentation/devicetree/bindings/sound/bt-sco.txt

This file was deleted.

38 changes: 38 additions & 0 deletions Documentation/devicetree/bindings/sound/linux,bt-sco.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/linux,bt-sco.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Bluetooth SCO Audio Codec Device Tree Bindings

maintainers:
- Mark Brown <[email protected]>

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

# For Wideband PCM
- 1

compatible:
enum:
- delta,dfbmcs320
- linux,bt-sco

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

additionalProperties: false

examples:
- |
codec {
#sound-dai-cells = <0>;
compatible = "linux,bt-sco";
};
...

0 comments on commit 6ef2396

Please sign in to comment.