Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3488917rwi; Wed, 12 Oct 2022 02:48:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/t72toahrrjME1RQEmiU6PajrFZoezsslKacHH8STc3MmjB8rHk57J+XITNrY0i8Eb6NY X-Received: by 2002:a17:902:f7cf:b0:17f:9081:a3f7 with SMTP id h15-20020a170902f7cf00b0017f9081a3f7mr28222068plw.3.1665568097113; Wed, 12 Oct 2022 02:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665568097; cv=none; d=google.com; s=arc-20160816; b=naB0JTSVHwukow3rPh+OiTnIXLcTbsW/mZi/ykEnV+l+EhkZUJoVZWfKWt/FAGl/N+ iZWXvdxGQWOyB0yhJJC/0MsgvUmQQ1bxBp6b9k5Wo60WynWAtqIrllLpSba2F8F4fUqL LvlzSRaVfoGdov2a93XsE3UDlzdWJKBEqXMPwmZ8c+N7rWIldQtldljA5cllVawxHvzf V1o2dspTn24pUK8HTpOG3O8oRHSppvUdlUrRvauCoM4vvuMKU2VuqhT7jcZlihLbdk/f qnXOQYs/SxmvKnxljYH7/H07g7+xP9sbY1DuKlUtwaWAhCfs1Rhzf2AETPaI1jRQ5Nb1 6p7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WuRU+MntGnCMaXFzcXMNoaYrVG/2orVNcEHKCqBKaQg=; b=c5CZ+TcsVixcixiANKw1py7Y8CMQ4MW+0xnp536+CLJtmgZiN7xrmZP3lhGPmHfq9n e0uOWyHyry4EzWRI3D2huL7gI4Wv9h9U4Hq9bMXR2GfOuEksJkMHXnAMUNCXm3+QWOlw wQIZKtbLgF/WebbWz3MHyGE0E5ruA85GG3M08fuSEBoFEUGUb9oKHx6r8HRIs5cUiAIr HEWEjjQGxllZJAvWfbFTAFdHjrd3rcqPMUi84YULVCcF56NxlJw1NE8K34ZBif8J8uZo kVCLHAL4sXt/njtlFc29UErtdn0gcnyggBI+NTmClgXpz69pdrplf1Yf/SJ7Q5VHm/Sb EcnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="aw/8jJZg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p3-20020a17090a4f0300b0020a6302b4f2si1512249pjh.75.2022.10.12.02.48.05; Wed, 12 Oct 2022 02:48:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="aw/8jJZg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229900AbiJLJPb (ORCPT + 99 others); Wed, 12 Oct 2022 05:15:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229827AbiJLJP1 (ORCPT ); Wed, 12 Oct 2022 05:15:27 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBE6A491E9; Wed, 12 Oct 2022 02:15:25 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29C8tfB7026001; Wed, 12 Oct 2022 11:15:11 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=WuRU+MntGnCMaXFzcXMNoaYrVG/2orVNcEHKCqBKaQg=; b=aw/8jJZgI81jBzPEP9vF3LPDs5aPjpEocaar0BEyHQIeBVJf3IwXqr8qU9eA4qNGhZD9 E/nWHpM0HKAQu6GHR9oua6gbkxKEp8P8I2lo/AA8USiX4Xe+czS5yGGuVt7q+1ZN9Xwn ePM0vVGgCRcJnkLY7tg+T3VvVfJ414fl/qxlyr4ks3itHGgzRBBRHp9ywxuXepQEGey/ T+Xyefm7Ygfu2fYejo3QmnJtKUFGrSTrb+yS8LMlEXZiWh/6XipB/p1YXMR2nZQJA0V8 McEPwXYZZpTlLsru2vbghdKsFOAMtA36QFVBzB6m+JVbv9Mc4jx3/vva+CYVqy7dyBd1 uA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k4hwf66qg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Oct 2022 11:15:11 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6AE25100034; Wed, 12 Oct 2022 11:15:04 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A10C32194EC; Wed, 12 Oct 2022 11:15:04 +0200 (CEST) Received: from [10.201.22.54] (10.75.127.122) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Wed, 12 Oct 2022 11:15:01 +0200 Message-ID: Date: Wed, 12 Oct 2022 11:15:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] ASoC: dt-bindings: Convert dmic-codec to DT schema Content-Language: en-US To: Rob Herring , Liam Girdwood , "Mark Brown" , Krzysztof Kozlowski , Arnaud Pouliquen , , Heiko Stuebner CC: , , References: <20221011184119.3754096-1-robh@kernel.org> From: Arnaud POULIQUEN In-Reply-To: <20221011184119.3754096-1-robh@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.122] X-ClientProxiedBy: GPXDAG2NODE4.st.com (10.75.127.68) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-12_04,2022-10-11_02,2022-06-22_01 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 10/11/22 20:41, Rob Herring wrote: > Convert the dmic-codec binding to DT schema format. > > The '#sound-dai-cells' and 'sound-name-prefix' properties were not > documented, but are in use, so add them. > > Signed-off-by: Rob Herring > --- > .../devicetree/bindings/sound/dmic-codec.yaml | 55 +++++++++++++++++++ > .../devicetree/bindings/sound/dmic.txt | 22 -------- > 2 files changed, 55 insertions(+), 22 deletions(-) > create mode 100644 Documentation/devicetree/bindings/sound/dmic-codec.yaml > delete mode 100644 Documentation/devicetree/bindings/sound/dmic.txt > > diff --git a/Documentation/devicetree/bindings/sound/dmic-codec.yaml b/Documentation/devicetree/bindings/sound/dmic-codec.yaml > new file mode 100644 > index 000000000000..767152fa99cc > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/dmic-codec.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/dmic-codec.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Generic PDM Digital microphone (DMIC) codec > + > +maintainers: > + - Arnaud Pouliquen I don't have much activity on the audio topic anymore, so I don't know if I'm the best person. But if one maintainer is needed, that's fine. Please just change my email address to arnaud.pouliquen@foss.st.com With that and the fix reported by the bot Reviewed-by: Arnaud Pouliquen Thanks, Arnaud > + > +allOf: > + - $ref: name-prefix.yaml# > + > +properties: > + compatible: > + const: dmic-codec > + > + '#sound-dai-cells': > + const: 0 > + > + dmicen-gpios: > + description: GPIO specifier for DMIC to control start and stop > + maxItems: 1 > + > + num-channels: > + description: Number of microphones on this DAI > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 1 > + maximum: 8 > + default: 8 > + > + modeswitch-delay-ms: > + description: Delay (in ms) to complete DMIC mode switch > + > + wakeup-delay-ms: > + description: Delay (in ms) after enabling the DMIC > + > +required: > + - compatible > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + dmic { > + compatible = "dmic-codec"; > + dmicen-gpios = <&gpio4 3 GPIO_ACTIVE_HIGH>; > + num-channels = <1>; > + wakeup-delay-ms <50>; > + modeswitch-delay-ms <35>; > + }; > +... > diff --git a/Documentation/devicetree/bindings/sound/dmic.txt b/Documentation/devicetree/bindings/sound/dmic.txt > deleted file mode 100644 > index 32e871037269..000000000000 > --- a/Documentation/devicetree/bindings/sound/dmic.txt > +++ /dev/null > @@ -1,22 +0,0 @@ > -Device-Tree bindings for Digital microphone (DMIC) codec > - > -This device support generic PDM digital microphone. > - > -Required properties: > - - compatible: should be "dmic-codec". > - > -Optional properties: > - - dmicen-gpios: GPIO specifier for dmic to control start and stop > - - num-channels: Number of microphones on this DAI > - - wakeup-delay-ms: Delay (in ms) after enabling the DMIC > - - modeswitch-delay-ms: Delay (in ms) to complete DMIC mode switch > - > -Example node: > - > - dmic_codec: dmic@0 { > - compatible = "dmic-codec"; > - dmicen-gpios = <&gpio4 3 GPIO_ACTIVE_HIGH>; > - num-channels = <1>; > - wakeup-delay-ms <50>; > - modeswitch-delay-ms <35>; > - };