dt-bindings: sound: gtm601: convert to YAML
Subsystems (2)
PATCH v2 1/1 dt-bindings: sound: gtm601: convert to YAML
Convert GTM601 binding to the YAML format.
---
v2:
- add #sound-dai-cells
- put [email protected] into maintainers
.../devicetree/bindings/sound/gtm601.txt | 19 ---------- .../devicetree/bindings/sound/gtm601.yaml | 36 +++++++++++++++++++ 2 files changed, 36 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/gtm601.txt create mode 100644 Documentation/devicetree/bindings/sound/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/gtm601.yaml new file +36 -0
@@ -0,0 +1,36 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/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: + - const: broadmobi,bm818 + - const: option,gtm601 + - items: + - enum: + - broadmobi,bm818 # 48 kHz stereo + - option,gtm601 # 8 kHz mono + + '#sound-dai-cells': + const: 0 + +additionalProperties: false + +examples: + - | + gtm601_codec { + compatible = "option,gtm601"; + };
Signature · 1 line
2.33.0
Rob Herring
maintainerQuoted 56 lines · David Heidelberg
Convert GTM601 binding to the YAML format.
Signed-off-by David Heidelberg <[email protected]>---
v2:
- add #sound-dai-cells
- put [email protected] into maintainers.../devicetree/bindings/sound/gtm601.txt | 19 ---------- .../devicetree/bindings/sound/gtm601.yaml | 36 +++++++++++++++++++ 2 files changed, 36 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/gtm601.txt create mode 100644 Documentation/devicetree/bindings/sound/gtm601.yamlDocumentation/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/gtm601.yaml new file +11
-0@@ -0,0 +1,36 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/gtm601.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GTM601 UMTS modem audio interface CODEC + +maintainers: + - [email protected] +
Documentation/devicetree/bindings/sound/gtm601.yaml line 21
Quoted 10 lines
Documentation/devicetree/bindings/sound/gtm601.yaml new file +10
-0+description: > + This device has no configuration interface. The sample rate and channels are + based on the compatible string + +properties: + compatible: + oneOf: + - items: + - const: broadmobi,bm818 + - const: option,gtm601
This does not match what the binding originally said. And generally this combined with the one below should never be valid.
Quoted 19 lines
Documentation/devicetree/bindings/sound/gtm601.yaml new file +15
-0+ - items: + - enum: + - broadmobi,bm818 # 48 kHz stereo + - option,gtm601 # 8 kHz mono + + '#sound-dai-cells': + const: 0 + +additionalProperties: false + +examples: + - | + gtm601_codec { + compatible = "option,gtm601"; + };Signature · 1 line
2.33.0
I agree, I'll adapt Librem 5 dts to follow original convention and resend.
-------- Původní zpráva --------
Odesílatel: Rob Herring <[email protected]>
Odesláno: 8. listopadu 2021 21:04:44 UTC
Komu: David Heidelberg <[email protected]>
Kopie: Liam Girdwood <[email protected]>, Mark Brown <[email protected]>, - <[email protected]>, ~okias/[email protected], [email protected], [email protected], [email protected], [email protected] Předmět: Re: [PATCH v2] dt-bindings: sound: gtm601: convert to YAML
Quoted 56 lines · David Heidelberg
Convert GTM601 binding to the YAML format.
Signed-off-by David Heidelberg <[email protected]>---
v2:
- add #sound-dai-cells
- put [email protected] into maintainers.../devicetree/bindings/sound/gtm601.txt | 19 ---------- .../devicetree/bindings/sound/gtm601.yaml | 36 +++++++++++++++++++ 2 files changed, 36 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/gtm601.txt create mode 100644 Documentation/devicetree/bindings/sound/gtm601.yamlDocumentation/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/gtm601.yaml new file +11
-0@@ -0,0 +1,36 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/gtm601.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GTM601 UMTS modem audio interface CODEC + +maintainers: + - [email protected] +
Documentation/devicetree/bindings/sound/gtm601.yaml line 21
Quoted 10 lines
Documentation/devicetree/bindings/sound/gtm601.yaml new file +10
-0+description: > + This device has no configuration interface. The sample rate and channels are + based on the compatible string + +properties: + compatible: + oneOf: + - items: + - const: broadmobi,bm818 + - const: option,gtm601
This does not match what the binding originally said. And generally this combined with the one below should never be valid.
Quoted 19 lines
Documentation/devicetree/bindings/sound/gtm601.yaml new file +15
-0+ - items: + - enum: + - broadmobi,bm818 # 48 kHz stereo + - option,gtm601 # 8 kHz mono + + '#sound-dai-cells': + const: 0 + +additionalProperties: false + +examples: + - | + gtm601_codec { + compatible = "option,gtm601"; + };Signature · 1 line
2.33.0