Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1047597lqt; Tue, 19 Mar 2024 11:04:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/kFRSUH8SjTk9AGAdtww28hKW1myldTK3CM+ynRAsC7a65R+Pon/YAlUkf9lOsCRL/Fu5bNazE3QdaYLbSMC3zYpNkH13v4fGNAVBNQ== X-Google-Smtp-Source: AGHT+IEWU1/iY2jEbF9fGDgHtL+u0E8RtaFfaAHWj3pfxrcVHzRgFu54mVAug35vS8Mv37EA3ROC X-Received: by 2002:a05:6a20:8f29:b0:1a3:5462:f891 with SMTP id b41-20020a056a208f2900b001a35462f891mr9963950pzk.14.1710871493146; Tue, 19 Mar 2024 11:04:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710871493; cv=pass; d=google.com; s=arc-20160816; b=a+2EI98zw0sF3D57+K65kfNiLOaNsarjp5FgKeTF0/Lc8yZNeEvrJAGDSylUEaR/wF V2JAKWZuUrDMdG7mM59ulwVG/mOfu45/xecqkeqDU8QggexnE8foHVlHs7M4yLRqSkYs H0YJv3dCtz4PqGrfyypzvzT/BLO3bLd1FiFYcwmEbWyacgwF73Mtrtk2szexyRXWNt8X TZtebc8Pe8tmOlGFu9fPT+pkz9ES7zqyoAbPtY65EBGxII09JsuZbVAJ1c+qELGsG7e0 sI/MwRkvC6PustRBXFunXtKWltjElH8FEaXnUN2Jhf5GMqdruaHyBb7m/tWLnT+uD3h0 UlJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=RFqJ9v2zgUJwbKbtJortrw7B6iqBove/bjKEeSOHJg4=; fh=TY3Bko9u6zRv1X6LmiE/auaRZrO6mPcsRCFhFlik+2g=; b=gQlQVuKS/i1Cpjtz2HeS+ye6vt3+aSCzyil+HO1PUFdVzr+Q0z8MeYHx4qEjvOPP9x uKdd5faBSuz5JabFF4pNUG9+6CWbx2qXwWhtIZYrb6s8b80gWAHlUtuls3R8/N0I1GMD sLcZMhBPnyvIaxm4EjJbkw0mFYUfjrds5Tn2CnTFIjH1De5/kR8tpnyiLsXhswvk6IQr K+Bj8dkTDgt+QhCzIh362etAXw81Duc4PdxWSbQcN+mUwgOHnuRjjXsGglKWSTsHQJLV BPrblzDuFZrXpdZfRof2k/08ROdxuptPaPgIp9a+IK/+KQWiul3oEJXPv1l1urK5h7NM DphQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a2abpvA9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-107971-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107971-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j9-20020a635949000000b005dc50f61543si10504598pgm.427.2024.03.19.11.04.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 11:04:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107971-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a2abpvA9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-107971-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107971-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E0E6828197C for ; Tue, 19 Mar 2024 18:04:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1547860254; Tue, 19 Mar 2024 18:01:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a2abpvA9" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 537235FDD5; Tue, 19 Mar 2024 18:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710871272; cv=none; b=ndWP7Y3zuKRnTLeKCIppTH4C/LC3mrw5wsLwJgjLPeZ+/BR8DAGXEuHDhGCT2TQAZVLxBCPIkkuEU+LlB3BaPcmFEu6TS/I34wUUYpGF2EZuJtOTYU6J1c2hRm5ZZr4RJMvFl9RZMtM79qA5tQG25UplX6E6BzvwN3NgTaJtwEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710871272; c=relaxed/simple; bh=fURqETKu8mthWcz2QdEl07SUDYEre4FagvpPaVAfaU8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M2X3PKHOLDK76j9MlSRxU7BUXm0GTkF5LWSKS9/zO/xcME2P3M9WQceS0vuRIQNzu20RvD/+dGsu3nDS1IfJJti36iiztDFRXJ5uvSGBMXhxsTCQGmBNYYSUbaX7s1+K3rSwxsD7GkKL2Xcf4zKAMINykJ5FA9LRv2Nyg+9hyek= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a2abpvA9; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d4a901e284so50439661fa.1; Tue, 19 Mar 2024 11:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710871268; x=1711476068; darn=vger.kernel.org; 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=RFqJ9v2zgUJwbKbtJortrw7B6iqBove/bjKEeSOHJg4=; b=a2abpvA9lKAQ5M7yuSiWFkXUDbidlYup9mVykTvej9QldKCc71bMcIhuuV6qSxbsYs qGIrKWMxmfj+LiJe1qItkF3zIze+HUz1Y2EcLZrYsYZn/W0dAdXIPKNp1S4+cUfKgup+ FHnoTKGtYxLHfKt4NmX9fwX8AzQ432G8mcVjnSqRU1csxrsig2mx3Y+Bm/+H1ejmId2H OpDLJTauHVcDHYDKg1mu9c2pXE0wqdo+EvX6HmRHbpakA8rF97c70CoVhOKvCYEp20NK OOGns4aIaeGMS4ZCk1FyYTUHr7xGDwyf7Fy3nMUai0AHZqgLTjAB5I1eYDYnXyQHBfNM o/rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710871268; x=1711476068; 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=RFqJ9v2zgUJwbKbtJortrw7B6iqBove/bjKEeSOHJg4=; b=VwoZXq++Uy94TyiKuI1L5OlOYgpiWzFEzvjgH/QBlFtxN63xEl7PMhxntWZIRRYoa6 TubeiqpiEKlnrbKKnMagbQoRQaX+L3TQaBmO2hdn9njIv9jNqeQ/sumiaJysFYlelLtn Kvdphc1RUAhiGrwF0qsl7Yz7Zcm5Xv5a3HYOJxp1VLMrZ3Au2sveTdHETWLd0EiBAaxc MKkcZ44YW0Ruaokp6uMc5EIT1vZ9KWXnw4kFEVX7Gv3NxK5OY0j4mXlioCN7KXHTarGp RmCC5G9NWVDxIUh36XFEBP9Tth0wpQC5nx8FUECBSKTAK2uAJHKwt/6Pyh7oTDobfG1X D5Mw== X-Forwarded-Encrypted: i=1; AJvYcCXffgXfXSpLGsdcxbFBM/AwT8Mgg7DaAyuZHnH6Z3DO3O96p0ev2HnKCYqk8wk/Qj499WeOzS1iWdpPqzfr6tbME8BYWK804ISBwTJetZjhQuJgfXHxETvNpuiSGywhmC2DFDO6u4ExAA== X-Gm-Message-State: AOJu0YxgTyu/59Pm+ny/cpNOihLQofgH/h+wqBPYjK7SxjmziTEKhWhv MPx0CHk0RQwFVbMCICgBnIu+1kj/BDuP/Ja9MgfgetPEpBmdUPPCi0pReK6lrIQ1Nw== X-Received: by 2002:a2e:8e99:0:b0:2d6:84a4:99b4 with SMTP id z25-20020a2e8e99000000b002d684a499b4mr2261330ljk.20.1710871268053; Tue, 19 Mar 2024 11:01:08 -0700 (PDT) Received: from [10.0.0.100] (host-85-29-76-118.kaisa-laajakaista.fi. [85.29.76.118]) by smtp.gmail.com with ESMTPSA id g6-20020a05651c078600b002d0b21bf81esm1946002lje.43.2024.03.19.11.01.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Mar 2024 11:01:07 -0700 (PDT) Message-ID: <6e120eee-5cec-460c-87d2-40ef776efc3d@gmail.com> Date: Tue, 19 Mar 2024 20:02:48 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 12/13] ASoC: dt-bindings: davinic-mcbsp: Add the 'ti,drive-dx' property Content-Language: en-US To: Bastien Curutchet , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Thomas Petazzoni , herve.codina@bootlin.com, christophercordahi@nanometrics.ca References: <20240315112745.63230-1-bastien.curutchet@bootlin.com> <20240315112745.63230-13-bastien.curutchet@bootlin.com> From: =?UTF-8?Q?P=C3=A9ter_Ujfalusi?= In-Reply-To: <20240315112745.63230-13-bastien.curutchet@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 15/03/2024 13:27, Bastien Curutchet wrote: > McBSP is able to handle capture and playback stream. > The McBSP's DX pins that outputs serial data during playback streams can > be used to output a chosen pattern during capture streams. For instance, > this can be useful to drive an active-low signal during capture streams > (by choosing <0> as pattern) or configure the MCBSPx.DX pin as GPO and use it as a GPIO? Quite novel use of the hardware, no doubt about it. If you don't have DMA servicing the TX, it will just re-transmit the word from from the DXR register when the transmitter is pulled out of reset. Interesting, but I'm not sure if this belongs to DT. > Add a 'ti,drive-dx' property that can be used to repeatedly output a > chosen pattern on DX pin while capture stream is ON. > > Signed-off-by: Bastien Curutchet > --- > Documentation/devicetree/bindings/sound/davinci-mcbsp.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/davinci-mcbsp.yaml b/Documentation/devicetree/bindings/sound/davinci-mcbsp.yaml > index d8d4e7ea6e02..f4d1fc6bcd61 100644 > --- a/Documentation/devicetree/bindings/sound/davinci-mcbsp.yaml > +++ b/Documentation/devicetree/bindings/sound/davinci-mcbsp.yaml > @@ -80,6 +80,13 @@ properties: > Enable synchronisation error detections when an unexpected frame pulse is > received. If not present, unexpected frame pulses are ignored. > > + ti,drive-dx: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + If the property is present, McBSP will repeatedly output the selected > + value on DX pin during capture streams. For instance, if set to 0, this > + can be used to drive an active-low signal. > + > required: > - "#sound-dai-cells" > - compatible -- Péter