dt-bindings: sound: gtm601: convert to YAML
Subsystems (2)
PATCH v3 1/1 dt-bindings: sound: gtm601: convert to YAML
Convert GTM601 binding to the YAML format.
Signed-off-by David Heidelberg <[email protected]>
---
v3:
- incorporated feedback from Krzysztof
v2:
- add #sound-dai-cells
- put [email protected] into maintainers
.../devicetree/bindings/sound/gtm601.txt | 19 ---------- .../bindings/sound/option,gtm601.yaml | 37 +++++++++++++++++++ 2 files changed, 37 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/gtm601.txt create mode 100644 Documentation/devicetree/bindings/sound/option,gtm601.yaml
Documentation/devicetree/bindings/sound/gtm601.txt deleted +0 -19
@@ -1,19 +0,0 @@ -GTM601 UMTS modem audio interface CODEC - -This device has no configuration interface. The sample rate and channels are -based on the compatible string - "option,gtm601" = 8kHz mono - "broadmobi,bm818" = 48KHz stereo - -Required properties: - - - compatible : one of - "option,gtm601" - "broadmobi,bm818" - - -Example: - -codec: gtm601_codec { - compatible = "option,gtm601"; -};
Documentation/devicetree/bindings/sound/option,gtm601.yaml new file +37 -0
@@ -0,0 +1,37 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/option,gtm601.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GTM601 UMTS modem audio interface CODEC + +maintainers: + - [email protected] + +description: > + This device has no configuration interface. The sample rate and channels are + based on the compatible string + +properties: + compatible: + oneOf: + - items: # 48 kHz stereo + - const: broadmobi,bm818 + - const: option,gtm601 + - const: option,gtm601 # 8 kHz mono + + '#sound-dai-cells': + const: 0 + +allOf: + - $ref: dai-common.yaml# + +additionalProperties: false + +examples: + - | + codec { + compatible = "option,gtm601"; + #sound-dai-cells = <0>; + };
Signature · 1 line
2.40.1
Quoted 6 lines · David Heidelberg
Convert GTM601 binding to the YAML format.
Signed-off-by David Heidelberg <[email protected]>---
v3:
- incorporated feedback from Krzysztof
...
Quoted 5 lines
Documentation/devicetree/bindings/sound/option,gtm601.yaml new file +5
-0+properties: + compatible: + oneOf: + - items: # 48 kHz stereo + - const: broadmobi,bm818
Documentation/devicetree/bindings/sound/option,gtm601.yaml line 30
Quoted 10 lines
Documentation/devicetree/bindings/sound/option,gtm601.yaml new file +10
-0+ - const: option,gtm601 + - const: option,gtm601 # 8 kHz mono + + '#sound-dai-cells': + const: 0 + +allOf: + - $ref: dai-common.yaml# + +additionalProperties: false
I missed one thing in the previous review, sorry. Something was looking here as missing but my brain did not work. Please add "required:" with compatible.
Best regards,
Krzysztof