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 43149C43334 for ; Tue, 12 Jul 2022 08:14:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232592AbiGLIOV (ORCPT ); Tue, 12 Jul 2022 04:14:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbiGLIOT (ORCPT ); Tue, 12 Jul 2022 04:14:19 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E184DC1 for ; Tue, 12 Jul 2022 01:14:18 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id a9so12637479lfk.11 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=dhcoJFiX1pVtPqc9Ek4ckT5edUZPQLLiQ2q1J3ZMv99tQ3VzYjwh8ws5fQDiU9UBhD 40TlcadQf3lGD7/dCQX5o60bSzHT1c7FF2rkcwkeKcAXlFR48iMsU9oR+sy3hjr4+XjZ 0CIN4qX3ALcqyVoFrLkZLLMo9s++fYkzCvHZzAtk5a+oCvH1ze1WAMeTK60Qy4ALy4+i 0ekRYu6fte+LGipupWe/lhAZWl1CrDWv+3m/729ynRe+FFpLBgqLtF8cP0cT3RUOzcL+ i+qAmc5MLlXsdQ9iW3b3GQYXcec9tj1NPvktFmvhNzRiVK4XkdgwaxjNn3B6kZqMsLpv UEYg== X-Gm-Message-State: AJIora+cBKvP4VwtAIDDTXw8K8U6iJVOmjjIs0sYszV8NTSi5i8vdKg1 hn1fZ6AF7snfYEhfN0euDbK+9w== 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: linux-kernel@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 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8086DC433EF for ; Tue, 12 Jul 2022 08:15:19 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8CEA3F7; Tue, 12 Jul 2022 10:14:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8CEA3F7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1657613717; bh=DaO1SaCB2QJ8BzyVMTk36CTssf38LA8aDs4v44hjeVk=; h=Date:Subject:To:References:From:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=mXKoqFogKE4wcmEaNYl7gvfasaZmwh0LswOreBIJ7FD4nKirvDjZkbb4tfj4d4Wfe fYwqaOXu0wk4gcUK+r29pYuLHTnQbfp3UjYCpsJ38yqzFQpxUKWPM92lw9DKpQNe1n los/v/KDDoshaI9bJZk42UAg0GOGZh+LEaZwFn38= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 359A5F8023B; Tue, 12 Jul 2022 10:14:27 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 94B7BF80246; Tue, 12 Jul 2022 10:14:26 +0200 (CEST) Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 749B9F800E8 for ; Tue, 12 Jul 2022 10:14:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 749B9F800E8 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="StLfu8nw" Received: by mail-lf1-x136.google.com with SMTP id bu42so12722786lfb.0 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=wDw74y08FGPCU0BCP39NsKZoVid1DWRpuAAEwhje0p1Q6JG0ruPrgb65n6BovFWxor 1sQ+9HQjvUuJi+DlrceJASnGTp3d/Rjo1iNDWjKVdH19zPUpffSRHwdizmm0QvGX+3Jx 3eYfk+DJyyghoSrG5M6GeYZxjRqw6LSsbIgqOeU+/67FG2ISxwAJdAQ/51l+EkvVDT9e TtLDAOjtAK0B/2fzts0ydJgfEF1CKg7ZfAbYEd/nSvC1fNmza0PRFNt8gastt6sBoF5p uCJ73vG1Ke6LUtOt73OkGVMDmhfUEKrrHYIc4YxUJemvWlgZ/iOexROoLlkRKdxe8qMG WvXw== X-Gm-Message-State: AJIora8q7v/65obEYtqbxIejbP/GD5a2Ib2iKH3CqItW0PVr+FgXXDWO K9Xx+vkYF+onKk+GD3Y8wlSNnQ== 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 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 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5C39AC43334 for ; Tue, 12 Jul 2022 08:15:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=N7SRt6uW5pGgrdNgiEknvOVkkmacOM9rb2jP7X74GIA=; b=3CfOaIbK1CjeLk WvvC19RjALudmYH7y8auW7+ZAbQg+WY3hQmQGTweWk8Ta54Xl+xR5UOdzG9+3WHH4rsicqe4CShxz Cp1E8PsYcfh1QhEtFNewK9YpZF6NnIcWp1B+6VHzT69rkG3Qr+GJ5AUDsYahxf2lMQ8gfyA+76X0I 5WLMrKd8D2b/oMdybOV16oVtHqsSLKAwaztT2+92qLgvVViOJE/JSuAdVvNfICuhrPCsEoM0oxbKC o8HUIKnJFkyloZ+8tFUDfaInp3W+FJucw8wRn/dk4sBt/uQzUn0kFGO8UrG1pVahLiOZ5ewF4azaS fy1hHsrzcHE3wUQAC/iQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBB2F-008bpF-GM; Tue, 12 Jul 2022 08:14:23 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBB2C-008bmp-A4 for linux-arm-kernel@lists.infradead.org; Tue, 12 Jul 2022 08:14:21 +0000 Received: by mail-lf1-x132.google.com with SMTP id u13so12664831lfn.5 for ; Tue, 12 Jul 2022 01:14:17 -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=vQqAsFnfTmnmcLPaRnnjm6OXR8BCrJZoYrYLqs4WU1eDi2Ms4mCzLs4iK9UsN0RRsj czH2wdptYZDkWNKZudo8utEeyS4jSDRVDPBQR5Bw2MdHE2Oqiy1/CuA3g2nPVDJuxwjp eH+8pTLKLxLEyzw2UyE2o8+tWezl4Td1YQuXfreoeJJ4rUixf0hHKlRo0KAFTbYvJffW 3VylGtfyfV9rA44l4UXC1A7gVpPHWiXgoC/gHUFtc+Ln0odOZEUlhWHEwLzvEMsfltVZ H90tbzo5LZ9qapVo+03JPkga0n5P6+YbyAo1TaydmmXaQGNakXVzEmSNAQEwSj2ePjgv iVAg== X-Gm-Message-State: AJIora+HldpCvZjCJW01CKJRkZnhAegW41ZTN6MzMgGdhoGLuADMP8md jKnrm7I5FnxfSSdrA0OKAL3FkQ== 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220712_011420_383924_67BA981F X-CRM114-Status: GOOD ( 18.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel