Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1287752ybk; Thu, 14 May 2020 05:23:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXiv0CFhbZkPZ2RPpgZiqFLQYii18bRO6VDH2sPjKJ6AJrxhrXgbSnx0TgjXj7Ew9Y5nzW X-Received: by 2002:a17:906:48db:: with SMTP id d27mr3637077ejt.281.1589459037272; Thu, 14 May 2020 05:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589459037; cv=none; d=google.com; s=arc-20160816; b=TUNVFPrN8SuRb067BGvxoAAXcogjHxVZX5lRO7ZR3tikFYhz/TyT4O34UkOREPS58N u5QFfEtnD3dHdVYFoRZAdCpEQ7SeVHwNpk72XuvBHSQ31N/C3V5yPePkKN/WB0wCvZMz OhCI9sQdIpLy3Iuw4kF6f29gt+ecvjoKEPnDzvooWTliIIJ//ujcTUFD7LUGM5H/V+NV jsYqz85gSQjJwO+Oaty6GOr4SKTJsrGpeG3q5DWS2z06EOMB89NAhyybLFfpOM9R7aXo P+8Pkk9RskfKsUvkUSDABX++k90hIzqEqFZaX87W/FMCvaS7ZWXOpqHryXanR3nof8a2 tNaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=voTy57HPP7kdBOyeAtwz0qnAjpwohc6zTYtH4JaYx9E=; b=nMyn/7NDstkimCXBJM47aAEgqtc1dPjb8BcEd+97d8JuHzhbk04KwXt3Sn+FCMSyy3 ZyAFk93DXhIBHmSlO/YPTB9wOvS7dPmlP94IyceuWIBHTm3n0cYihnqG+45lZr/kMuuE kjt7J41aexeq42zbxzG+TkcWq36vHAy7AWCASapKwkJcspiMCtZ3eBGrTaUEZS/8YRx/ caj5Q4mqYA0pw3/BS4PhgtG3DiHBpGGndT9l+SxXlkafwYj2XKQixtkBNluBAFGSbVha EjFd/RSkO/z0O5P/fb1h+gCFHr0tTwB20UPN00cHl1599J9t7robDe5/vySlRVDK2WCF c5WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PDd3krMH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o12si1721739edq.34.2020.05.14.05.23.33; Thu, 14 May 2020 05:23:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PDd3krMH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727097AbgENMTp (ORCPT + 99 others); Thu, 14 May 2020 08:19:45 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:52804 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726885AbgENMTp (ORCPT ); Thu, 14 May 2020 08:19:45 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 04ECIsMf118638; Thu, 14 May 2020 07:18:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1589458735; bh=voTy57HPP7kdBOyeAtwz0qnAjpwohc6zTYtH4JaYx9E=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=PDd3krMHKaSrLQmWOV2qyOX+ULVGjpan6iz7kXWCxMDvtIstcNCpK2CX8pPmPaGJh 2hNz9wmVyk4E6SbWEe7/EZYGHddk96NIC3cGGKNT8LIy0rYJ6HAKiyOjutHkgHGLG6 CwlDDn5HGo74UXxGbRPxtUIKGgT4AkxsqwqS8SV4= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 04ECIsJf127530 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 May 2020 07:18:54 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 14 May 2020 07:18:54 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 14 May 2020 07:18:54 -0500 Received: from [10.250.52.63] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 04ECIspR116786; Thu, 14 May 2020 07:18:54 -0500 Subject: Re: [PATCH v2 2/3] ASoC: tlv320adcx140: Add device tree property for PDM edges To: Ricard Wanderlof CC: "lgirdwood@gmail.com" , "broonie@kernel.org" , "perex@perex.cz" , "tiwai@suse.com" , Rob Herring , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" References: <20200513200549.12213-1-dmurphy@ti.com> <20200513200549.12213-2-dmurphy@ti.com> From: Dan Murphy Message-ID: <27145913-cd16-850b-dcfc-01fcffc72d0e@ti.com> Date: Thu, 14 May 2020 07:09:23 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Richard On 5/14/20 3:09 AM, Ricard Wanderlof wrote: > On Wed, 13 May 2020, Dan Murphy wrote: > >> Add a device tree property to configure the PDM sampling edge for each >> digital microphone. >> >> CC: Rob Herring >> Signed-off-by: Dan Murphy >> --- >>  .../devicetree/bindings/sound/tlv320adcx140.yaml   | 14 ++++++++++++++ >>  1 file changed, 14 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/sound/tlv320adcx140.yaml >> b/Documentation/devicetree/bindings/sound/tlv320adcx140.yaml >> index ab2268c0ee67..55668c7d261d 100644 >> --- a/Documentation/devicetree/bindings/sound/tlv320adcx140.yaml >> +++ b/Documentation/devicetree/bindings/sound/tlv320adcx140.yaml >> @@ -63,6 +63,19 @@ properties: >>        - $ref: /schemas/types.yaml#/definitions/uint32 >>        - enum: [0, 1, 2] >> >> +  ti,pdm-edge-select: >> +    description: | >> +       Defines the sampling edge configuration for the PDM inputs.  This is >> an >> +       array defined as . 0 (default) is >> negative >> +       sampling edge and 1 is positive sampling edge. > A bit of a nitpick, but I would think of the edges as > negative-going/positive-going, or rising/falling. Not sure if anyone would > misunderstand 'negative edge' in practice though. I will re-write the description to be more descriptive. >> +    allOf: >> +      - $ref: /schemas/types.yaml#/definitions/uint32-array >> +      - minItems: 1 >> +        maxItems: 4 >> +        items: >> +          maximum: 1 >> +        default: [0, 0, 0, 0] >> + >>  required: >>    - compatible >>    - reg >> @@ -77,6 +90,7 @@ examples: >>          compatible = "ti,tlv320adc5140"; >>          reg = <0x4c>; >>          ti,mic-bias-source = <6>; >> +        ti,pdm-edge-select = < 0 1 0 1>; > Should there really be a space between < and 0 ? I will remove the space Dan > > /Ricard