From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F06F5C433EF for ; Tue, 12 Jul 2022 08:14:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232590AbiGLIOV (ORCPT ); Tue, 12 Jul 2022 04:14:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231160AbiGLIOT (ORCPT ); Tue, 12 Jul 2022 04:14:19 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 315862616 for ; Tue, 12 Jul 2022 01:14:18 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id t25so12659453lfg.7 for ; Tue, 12 Jul 2022 01:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=piVMAlOpffJwid9tZ0g858Wy2lJidXX23spAtayy7OI=; b=StLfu8nwjSGQBtoVu4xYBsPLaD86GA58kvcFstln0NzGJ/tDTYxbzgh3KFuopdgHNF fK+aRHHn5QwzVLgwmscm7kPdZVWj+Lyj+G6BTDqzEVOJMulJ+zd4o8+JeCOdURYADhdN dJCsIuavIfqIWAzB5j1VjwTnovlSzB+zyXJM5URY8uDY5idEMKcQGkhk7QT6ka1njyOs gXDpjtdnsNFSHZQh59Az9HtdqoLcByUS4I9wjlO4d2zx4Q5iGdnSiL+FyuVfIbPlvJOO oD26l4vQ80PEHbSKsVUliv8Ke8if2qF42yz+10hJLfWg54eG43XGUooXN25VQE3E2Fkd ugfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=piVMAlOpffJwid9tZ0g858Wy2lJidXX23spAtayy7OI=; b=kLYJIGL3gPbBouAPOlrp0zNyuOLuztxVtnOHcqUs6OeB4Ro5Xer7bziShmwnG8dPos +FHhYHFvpxqw3+cQpt3Co4mwbzbFINmLYQwFO6DEEY0NHN36+/P6Br8ZJULZZkjr8Cn1 rhn53nXeClVuJrYvobDCabFV2rka/phDTrOyoUCEMYFvvKTGoi24/VE5/0YYtFEvJt8p rETtnpdysh6G/e7MqVColMnz/n8JpSedeURRXrucs/FLtFE6rONXhWD5iDYS3r/znKuT 5c0um8hwuIDSn9tUBOA55Iu0cnWxkrsgptJ+Z6qLTQe63VbuCHr5UTMuc1HVU+2q+dXQ 82SQ== X-Gm-Message-State: AJIora/g66j06cxeo86UgcIJhxK48WzZw86pOOFEmzR4NKqQS7OKzcOz vDuzzC5R6CTa4Yab9lnAWsM+fA== X-Google-Smtp-Source: AGRyM1vqqp5s0BWN1F/7Lz3d6Rxo5GmlvLhM0XjExtACcM8zjS7RAxUFqyw3vof8bqYboTmuemBL4g== X-Received: by 2002:a05:6512:2345:b0:489:e76e:cc1a with SMTP id p5-20020a056512234500b00489e76ecc1amr3619483lfu.219.1657613656558; Tue, 12 Jul 2022 01:14:16 -0700 (PDT) Received: from [10.0.0.8] (fwa5cab-55.bb.online.no. [88.92.171.55]) by smtp.gmail.com with ESMTPSA id f14-20020a05651c02ce00b0025d754ba5f4sm639397ljo.99.2022.07.12.01.14.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Jul 2022 01:14:16 -0700 (PDT) Message-ID: <1d048162-8051-f95b-c359-0ab59e32e507@linaro.org> Date: Tue, 12 Jul 2022 10:14:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 2/2] dt-binding: sound: atmel,pdmic: Convert to json-schema Content-Language: en-US To: Ryan.Wanner@microchip.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@microchip.com Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220711183010.39123-1-Ryan.Wanner@microchip.com> <20220711183010.39123-3-Ryan.Wanner@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20220711183010.39123-3-Ryan.Wanner@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 11/07/2022 20:30, Ryan.Wanner@microchip.com wrote: > From: Ryan Wanner > > Convert Atmel PDMIC devicetree binding to json-schema. > Change file naming to match json-schema naming. > > Signed-off-by: Ryan Wanner > --- > 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 > + > +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 > + #include > + > + pdmic: sound@f8018000 { > + compatible = "atmel,sama5d2-pdmic"; Wrong indentation. I already asked for this. Best regards, Krzysztof