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 EDA63C636CC for ; Thu, 16 Feb 2023 10:50:33 +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=AGRHGk2wNGY/epHljCz6Z0hfTPRJgyc44Le0OIEKfy4=; b=cojwU2k2meORqY Dbl3dyjHIb8S/017Q4s1ExE56NlrUGySipzF1uC7aQ7M9xB0OqNaVjROLY7VNmtlT0S2HZjsErNYS QLv5NkRsJMJjwlhU6wccztI505k8LECsAJ3+3H85u/O743ddP5VtaZsGrzgBmINVo2BNfnHP1iYNs LPHtTzuv9/A/SsGI1Bx2s7s1IFJJOTChUHT6l5ljvVSLwjbcuZGfMU2nfDtAeLDBQ57qo9kQAt8Ym m13XC2VSHI0jazGrYXpulF+VaXJphHlGtX2e2V+yr+lKEfrUfk/kl6sQGsfRYqtdIpBL1b9uja3PR 7p9ZiS1PK8gsrdcEPbbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSbpN-009i7m-CQ; Thu, 16 Feb 2023 10:49:26 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSbkA-009fWf-ML for linux-arm-kernel@lists.infradead.org; Thu, 16 Feb 2023 10:44:04 +0000 Received: by mail-ej1-x631.google.com with SMTP id f21so4056885ejq.8 for ; Thu, 16 Feb 2023 02:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kAeO7LNS/haa+vteM/1xuDnjwbcezFgkB2yPBvYuG9o=; b=vHKPZZc7dMt/oZ8Hyn8CnfnRp+oaHTGdYYztfha3aB5aZdfeqo6epo7Kw+XANzQaiK 998cuNeJwYorM0k7lszHb28JbPoGJjQGARIxy+n4cYE02TJft12LwrPNAQC9z2A37aUI s4TT9ggLIC4vSDrSq2cVamnijQ+wRD9qDglCTVukpSsbEDJbF4IGBzFO45/wl3IyFZVp dFQObj0jkA4gkklKtP8rD8CtZV1kpZK2xlJlfvR3FCIl6aV6g2nkVr/BOfdN/ktJLUnJ au323gu7WhODBH3PK5w2JzJMJQS+Q3oTkQf7oTwUHQGMVTyGrc0UP9piJZuk7O2J2Azr TZzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kAeO7LNS/haa+vteM/1xuDnjwbcezFgkB2yPBvYuG9o=; b=Ip4cYN2Az24e4LVt8D0rfrH9UEALzSNmOmKaUFohHEFnWtD1b3PPFhqWzxhAYXWv1C RaP0c3vtVL2hJTdWc3D5Qcl2bKmDO6qvES7TxgfjMpr73r1tEvn+AZ422hsJEGlxXl4k gg2g6E8QBnKz71WIYZJkCnmLOZsqCuTSzp9ESVUxYpoyw3Us678DmdKQ19iuudt+Qk9/ VJ0q45AX3ZBExdeWEsLl7xph4CJtHvQcKJtjFaCYqcvBZRT/Edw2Xbjr0hYVvaxPxO31 ADX6g1rc8C8tyQYIXMHsj05Kb/CwzJXbsuHfrHxRG1kC51j4OCcJfUqMEvVvQXkrxN2V tkvw== X-Gm-Message-State: AO0yUKWkMp91CxK1qZBTZfzagbBWUufx99fPw2PUY7ncY1MCqEW78vTs nTvrJ1wLOH7MLlK+wM/AXq3+0A== X-Google-Smtp-Source: AK7set+Dcr4QIHZy7seJx+QjQB2BainiaUbPbSnQo765nWKDQHrz3UG8xsMgAuo4fKOCIiC3KFgjxA== X-Received: by 2002:a17:907:8c89:b0:8b1:781d:f9a4 with SMTP id td9-20020a1709078c8900b008b1781df9a4mr172717ejc.21.1676544238957; Thu, 16 Feb 2023 02:43:58 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id oq15-20020a170906cc8f00b008b165948da6sm490473ejb.101.2023.02.16.02.43.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Feb 2023 02:43:47 -0800 (PST) Message-ID: Date: Thu, 16 Feb 2023 11:43:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 2/3] ASoC: dt-bindings: sama7g5-pdmc: add microchip,startup-delay-us binding Content-Language: en-US To: Claudiu.Beznea@microchip.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lars@metafoo.de, perex@perex.cz, tiwai@suse.com, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20230214161435.1088246-1-claudiu.beznea@microchip.com> <20230214161435.1088246-3-claudiu.beznea@microchip.com> <485d74fe-bfb5-c55e-724f-304476624abd@linaro.org> <954cdf90-c41a-4e21-31e0-88a0baf26065@microchip.com> <8a2132f6-9745-5ef2-724e-14e76fc456f0@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <8a2132f6-9745-5ef2-724e-14e76fc456f0@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230216_024402_778317_D8812BF3 X-CRM114-Status: GOOD ( 17.66 ) 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 16/02/2023 11:41, Claudiu.Beznea@microchip.com wrote: > On 16.02.2023 12:18, Krzysztof Kozlowski wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >> >> On 16/02/2023 11:15, Claudiu.Beznea@microchip.com wrote: >>> On 16.02.2023 12:04, Krzysztof Kozlowski wrote: >>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >>>> >>>> On 14/02/2023 17:14, Claudiu Beznea wrote: >>>>> Add microchip,startup-delay-us binding to let PDMC users to specify >>>>> startup delay. >>>>> >>>>> Signed-off-by: Claudiu Beznea >>>>> --- >>>>> .../devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml | 6 ++++++ >>>>> 1 file changed, 6 insertions(+) >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml b/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml >>>>> index c4cf1e5ab84b..9b40268537cb 100644 >>>>> --- a/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml >>>>> +++ b/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml >>>>> @@ -67,6 +67,12 @@ properties: >>>>> maxItems: 4 >>>>> uniqueItems: true >>>>> >>>>> + microchip,startup-delay-us: >>>>> + description: | >>>>> + Specifies the delay in microseconds that needs to be applied after >>>>> + enabling the PDMC microphones to avoid unwanted noise due to microphones >>>>> + not being ready. >>>> >>>> Is this some hardware delay? Or OS? If OS, why Linux specific delay is >>>> put into DT? >>> >>> It's the delay used in software workaround that IP needs to filter noises. >> >> Then this sounds like OS? Linux related properties usually do not belong >> to DT. >> >>> The IP is not fully featured to do this kind of filtering on its own thus >>> this software workaround. This delay may depend on used microphones thus >>> for different kind of setups (PDMC + different microphones) I introduced >>> this in DT. >> >> I understand your driver needs delay and I am not questioning this. I am >> questioning why this is suitable for DT? > > Because that delay may depend on the microphones that are used with PDMC. > Different boards may come with different microphones, thus the default > delay may not fit to fully filter the noise. Due to this I chose to add it > in DT. Ah, ok, that's good explanation. Thank you. Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel