* [PATCH v4] dt-bindings: sound: gtm601: convert to YAML
@ 2023-07-30 19:17 David Heidelberg
2023-07-30 19:20 ` Krzysztof Kozlowski
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: David Heidelberg @ 2023-07-30 19:17 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, -
Cc: Guido Günther, David Heidelberg, alsa-devel, devicetree,
linux-kernel
Convert GTM601 binding to the YAML format.
Signed-off-by: David Heidelberg <david@ixit.cz>
---
v4:
- added missing required property
v3:
- incorporated feedback from Krzysztof
v2:
- add #sound-dai-cells
- put kernel@puri.sm into maintainers
.../devicetree/bindings/sound/gtm601.txt | 19 ---------
.../bindings/sound/option,gtm601.yaml | 40 +++++++++++++++++++
2 files changed, 40 insertions(+), 19 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/sound/gtm601.txt
create mode 100644 Documentation/devicetree/bindings/sound/option,gtm601.yaml
diff --git a/Documentation/devicetree/bindings/sound/gtm601.txt b/Documentation/devicetree/bindings/sound/gtm601.txt
deleted file mode 100644
index efa32a486c4a..000000000000
--- a/Documentation/devicetree/bindings/sound/gtm601.txt
+++ /dev/null
@@ -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";
-};
diff --git a/Documentation/devicetree/bindings/sound/option,gtm601.yaml b/Documentation/devicetree/bindings/sound/option,gtm601.yaml
new file mode 100644
index 000000000000..69c2ccc79dc5
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/option,gtm601.yaml
@@ -0,0 +1,40 @@
+# 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:
+ - kernel@puri.sm
+
+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
+
+required:
+ - compatible
+
+allOf:
+ - $ref: dai-common.yaml#
+
+additionalProperties: false
+
+examples:
+ - |
+ codec {
+ compatible = "option,gtm601";
+ #sound-dai-cells = <0>;
+ };
--
2.40.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v4] dt-bindings: sound: gtm601: convert to YAML
2023-07-30 19:17 [PATCH v4] dt-bindings: sound: gtm601: convert to YAML David Heidelberg
@ 2023-07-30 19:20 ` Krzysztof Kozlowski
2023-07-31 12:11 ` Guido Günther
2023-07-31 16:00 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-30 19:20 UTC (permalink / raw)
To: David Heidelberg, Liam Girdwood, Mark Brown, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, -
Cc: Guido Günther, alsa-devel, devicetree, linux-kernel
On 30/07/2023 21:17, David Heidelberg wrote:
> Convert GTM601 binding to the YAML format.
>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
> v4:
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] dt-bindings: sound: gtm601: convert to YAML
2023-07-30 19:17 [PATCH v4] dt-bindings: sound: gtm601: convert to YAML David Heidelberg
2023-07-30 19:20 ` Krzysztof Kozlowski
@ 2023-07-31 12:11 ` Guido Günther
2023-07-31 16:00 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Guido Günther @ 2023-07-31 12:11 UTC (permalink / raw)
To: David Heidelberg
Cc: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, -, alsa-devel, devicetree, linux-kernel
Hi,
On Sun, Jul 30, 2023 at 10:17:42PM +0300, David Heidelberg wrote:
> Convert GTM601 binding to the YAML format.
>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
> v4:
> - added missing required property
> v3:
> - incorporated feedback from Krzysztof
> v2:
> - add #sound-dai-cells
> - put kernel@puri.sm into maintainers
>
> .../devicetree/bindings/sound/gtm601.txt | 19 ---------
> .../bindings/sound/option,gtm601.yaml | 40 +++++++++++++++++++
> 2 files changed, 40 insertions(+), 19 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/sound/gtm601.txt
> create mode 100644 Documentation/devicetree/bindings/sound/option,gtm601.yaml
>
> diff --git a/Documentation/devicetree/bindings/sound/gtm601.txt b/Documentation/devicetree/bindings/sound/gtm601.txt
> deleted file mode 100644
> index efa32a486c4a..000000000000
> --- a/Documentation/devicetree/bindings/sound/gtm601.txt
> +++ /dev/null
> @@ -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";
> -};
> diff --git a/Documentation/devicetree/bindings/sound/option,gtm601.yaml b/Documentation/devicetree/bindings/sound/option,gtm601.yaml
> new file mode 100644
> index 000000000000..69c2ccc79dc5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/option,gtm601.yaml
> @@ -0,0 +1,40 @@
> +# 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:
> + - kernel@puri.sm
> +
> +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
This looks good to me. I just wonder if it makes sense to use a description
instead of comments to make the sampling rate/channel requirements a bit
more obvious:
- description: Broadmobi BM818 (48kHz stereo)
items:
- const: broadmobi,bm818
- const: option,gtm601
- description: Option GTM601 audio code (8kHz mono)
const: option,gtm601
Cheers,
-- Guido
> +
> + '#sound-dai-cells':
> + const: 0
> +
> +required:
> + - compatible
> +
> +allOf:
> + - $ref: dai-common.yaml#
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + codec {
> + compatible = "option,gtm601";
> + #sound-dai-cells = <0>;
> + };
> --
> 2.40.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH v4] dt-bindings: sound: gtm601: convert to YAML
2023-07-30 19:17 [PATCH v4] dt-bindings: sound: gtm601: convert to YAML David Heidelberg
2023-07-30 19:20 ` Krzysztof Kozlowski
2023-07-31 12:11 ` Guido Günther
@ 2023-07-31 16:00 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2023-07-31 16:00 UTC (permalink / raw)
To: Liam Girdwood, Rob Herring, Krzysztof Kozlowski, Conor Dooley, -,
David Heidelberg
Cc: Guido Günther, alsa-devel, devicetree, linux-kernel
On Sun, 30 Jul 2023 22:17:42 +0300, David Heidelberg wrote:
> Convert GTM601 binding to the YAML format.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] dt-bindings: sound: gtm601: convert to YAML
commit: cd8ee8aba1f3b5dd4118dc8cea05b73734983288
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-07-31 16:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-30 19:17 [PATCH v4] dt-bindings: sound: gtm601: convert to YAML David Heidelberg
2023-07-30 19:20 ` Krzysztof Kozlowski
2023-07-31 12:11 ` Guido Günther
2023-07-31 16:00 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).