[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1d048162-8051-f95b-c359-0ab59e32e507@linaro.org>
Date: Tue, 12 Jul 2022 10:14:14 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Ryan.Wanner@...rochip.com, lgirdwood@...il.com, broonie@...nel.org,
robh+dt@...nel.org, krzysztof.kozlowski+dt@...aro.org,
nicolas.ferre@...rochip.com, alexandre.belloni@...tlin.com,
claudiu.beznea@...rochip.com
Cc: alsa-devel@...a-project.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/2] dt-binding: sound: atmel,pdmic: Convert to
json-schema
On 11/07/2022 20:30, Ryan.Wanner@...rochip.com wrote:
> From: Ryan Wanner <Ryan.Wanner@...rochip.com>
>
> Convert Atmel PDMIC devicetree binding to json-schema.
> Change file naming to match json-schema naming.
>
> Signed-off-by: Ryan Wanner <Ryan.Wanner@...rochip.com>
> ---
> v1 -> v2:
> - Fix title.
> - Removed trivial descriptions.
> - Fix formatting.
>
> .../bindings/sound/atmel,sama5d2-pdmic.yaml | 98 +++++++++++++++++++
> .../devicetree/bindings/sound/atmel-pdmic.txt | 55 -----------
> 2 files changed, 98 insertions(+), 55 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/sound/atmel,sama5d2-pdmic.yaml
> delete mode 100644 Documentation/devicetree/bindings/sound/atmel-pdmic.txt
>
> diff --git a/Documentation/devicetree/bindings/sound/atmel,sama5d2-pdmic.yaml b/Documentation/devicetree/bindings/sound/atmel,sama5d2-pdmic.yaml
> new file mode 100644
> index 000000000000..88fa92a30147
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/atmel,sama5d2-pdmic.yaml
> @@ -0,0 +1,98 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/atmel,sama5d2-pdmic.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Atmel PDMIC decoder
> +
> +maintainers:
> + - Claudiu Beznea <claudiu.beznea@...rochip.com>
> +
> +description:
> + Atmel Pulse Density Modulation Interface Controller
> + (PDMIC) peripheral is a mono PDM decoder module
> + that decodes an incoming PDM sample stream.
> +
> +properties:
> + compatible:
> + const: atmel,sama5d2-pdmic
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + items:
> + - description: peripheral clock
> + - description: generated clock
> +
> + clock-names:
> + items:
> + - const: pclk
> + - const: gclk
> +
> + dmas:
> + maxItems: 1
> +
> + dma-names:
> + const: rx
> +
> + atmel,mic-min-freq:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + The minimal frequency that the microphone supports.
> +
> + atmel,mic-max-freq:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + The maximal frequency that the microphone supports.
> +
> + atmel,model:
> + description: The user-visible name of this sound card.
In previous properties the description was the last one, so keep it
consistent.
> + $ref: /schemas/types.yaml#/definitions/string
> + default: PDMIC
> +
> + atmel,mic-offset:
> + $ref: /schemas/types.yaml#/definitions/int32
> + description: The offset that should be added.
> + default: 0
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - dmas
> + - dma-names
> + - clock-names
> + - clocks
> + - atmel,mic-min-freq
> + - atmel,mic-max-freq
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/dma/at91.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + pdmic: sound@...18000 {
> + compatible = "atmel,sama5d2-pdmic";
Wrong indentation. I already asked for this.
Best regards,
Krzysztof
Powered by blists - more mailing lists