Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp83207lqc; Thu, 29 Feb 2024 10:57:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUe7wiMNPde9PAR8KMtKSRT+LRiKjQcLm6GXR6WPxu5pOg/uDXYuEGTJqui6sNt6iBcpNRN4ZrxO92Z/p2gFlf70W8wLbUeyW+nBH1Ijg== X-Google-Smtp-Source: AGHT+IHOfHEtHduMOVEkdCwzDeYoNXWGxSI/uWPRmnxNyFLbB3dDv4BqGamEv/kx5uUaFSPVo+6o X-Received: by 2002:a05:6a00:cc4:b0:6e5:37cb:64c4 with SMTP id b4-20020a056a000cc400b006e537cb64c4mr3894373pfv.9.1709233022830; Thu, 29 Feb 2024 10:57:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709233022; cv=pass; d=google.com; s=arc-20160816; b=C9Zy5cx7ZrIGJq+08lzVLR/hoTZNK2z1T2UAaD1r8L4KyKz9oQDD9DCOaRGKGUaec1 BzSPLYdMh9PQ1pR0sHafBYP4c2XaPasej8uRdCWwMNvda1fGr+7b3TcTPbtYqaypgCC8 1QVvMvccCE7AwoTx/wvUUNsIRIA0axMyDxUM+CCa8oVaoyfqgDooirV1DuwZ7Hd0pptH dmxSAaiEXmROEE84uJtHN2EIPgoCgToVpQQQnnyagcQEoomCPzqZGK54QyblWERKenQh i5ytl4kuH90AF0DpCuFGw2VO9GwUCTElfyYEZ9+/X9MeypKk5ZVbOwAsFtb40PdgJPBD rLzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0Z1XE16SmgmSLPWVnb4JgbAmUvgh5jw/8iySGAd8b5Q=; fh=SkTcAqr5bSVDoBIZGAwOQnnh8MUGb1oY8ghmWqidkso=; b=w84sSr6GHqf6+8fN/aEGhek+WGz7EJ4z537Zx7qccsZ75j09OxUqmVgrmpOMawST0p hdciN3hFrDa8n8Vp6QHHEOBOtqz3qD7fkOzCxXYybdmqxQDEHTZYCLaMRU09rUN71Qws EnV+pTSIXSwRKVNNP3PYLc4gNll7j2du/IZU+AALLD+vGXEVNWX7fmoaKGuuHeW5zdSq Dzb7X1xX2My5AohwfXRms+Cd4fez+AftppGK9uu00/yGTPzSjwYVYvbrpny71/rhwBgB M/B60DAsp58sKFR8xPnDRhjuD/BnZ/3rM7YNEYYymAL883EU/kFu6oww1rzQD0wHARXb RuVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BaWt+oH+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r13-20020a056a00216d00b006e541489cc7si1739212pff.312.2024.02.29.10.57.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 10:57:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BaWt+oH+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 F0DDC283814 for ; Thu, 29 Feb 2024 18:56:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39B8413441D; Thu, 29 Feb 2024 18:56:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BaWt+oH+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54BE3134421; Thu, 29 Feb 2024 18:56:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709232964; cv=none; b=cozeoh/X00Ekn5IXmHAZ59P1joF53lXdNPrQIxsogtoznLCTHSDxlVRi1LI0CNw+iman/pfkkTt4WxoL3XTxYsnRrpCkeMj6fy7ZzdJy8PnNvkSw1rCLOgDd/57jVQ+W+kv9dSvThAsM/PqTy1CrK+x4xImUO1tvv0O0nis3N7U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709232964; c=relaxed/simple; bh=9jNWT5JzMeZ3ugm8mZo56duN3alCtt+0bTyYBz7W+gs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FwpWA8txUHzk2cID98WS4+lTyRhuTG5U7pw8Cibtv6nicBpwW0dctDye13adqIrgPu8Ga/C0fJp/y6FaYs4oL/1uMMdxXos6ICMkwpqoFLm/MLkeWMX0Bg76gmZihqGfR9VvtEHEH3IHnIM/6CnFpjGGZqQBVcmB9o21ut2jn/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BaWt+oH+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88EF0C433F1; Thu, 29 Feb 2024 18:56:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709232963; bh=9jNWT5JzMeZ3ugm8mZo56duN3alCtt+0bTyYBz7W+gs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BaWt+oH+BlPkjG4/vxoRjseD+V5SRhv6MvPWyCWxXIwNEUMJV8JlIU5bQLpkeQUr5 j6lRZlGu3C5vH9Y1yrVak/3zGy0rmqm1o5Vg5FF7ep8DP2JffJN4NovDrUICo7TPRr /GiwmHcb7C3HiX5FPcXfmKYCxH8j33MIlmyXNzPNOA36FnwYTnzjy0B3I1qC075+ns /1x49UqQ+xZ8l4TJHiT2FvNWm7QsHW9g3aCpnDc2MK2j4eMgwhQEVyW0FpXUxY8KDE cHEe5cEJiUvZfdr0fC+9pidEwQ27r9EdeoxDKs9JczPosv8Vc/4p8re6MrK3RZK3ul yDU49MneUqnkw== Date: Thu, 29 Feb 2024 18:55:58 +0000 From: Conor Dooley To: Frank Li Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Shengjiu Wang , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/4] ASoC: dt-bindings: fsl-sai: allow only one dma-names Message-ID: <20240229-husband-penalty-8c1ab0f57f55@spud> References: <20240227-asrc_8qxp-v2-0-521bcc7eb1c0@nxp.com> <20240227-asrc_8qxp-v2-3-521bcc7eb1c0@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="srZ/zPvQLoPFy/vJ" Content-Disposition: inline In-Reply-To: <20240227-asrc_8qxp-v2-3-521bcc7eb1c0@nxp.com> --srZ/zPvQLoPFy/vJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2024 at 03:54:11PM -0500, Frank Li wrote: > Some sai only connect one direction. So allow only "rx" or "tx" for > dma-names. Which sai? Can you restrict this per compatible please, so that someone cannot add 2 dmas for ones where only the tx is supported. | dmas: | minItems: 1 | items: | - description: DMA controller phandle and request line for RX | - description: DMA controller phandle and request line for TX The binding already allows only one, but it documents that the first dma is always the RX dma, and that doesn't change with this patch.. Cheers, Conor. >=20 > Signed-off-by: Frank Li > --- > Documentation/devicetree/bindings/sound/fsl,sai.yaml | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/sound/fsl,sai.yaml b/Docum= entation/devicetree/bindings/sound/fsl,sai.yaml > index 2456d958adeef..0302752d58a2b 100644 > --- a/Documentation/devicetree/bindings/sound/fsl,sai.yaml > +++ b/Documentation/devicetree/bindings/sound/fsl,sai.yaml > @@ -86,10 +86,14 @@ properties: > - description: DMA controller phandle and request line for TX > =20 > dma-names: > - minItems: 1 > - items: > - - const: rx > - - const: tx > + oneOf: > + - items: > + - const: rx > + - const: tx > + - items: > + - enum: > + - rx > + - tx > =20 > interrupts: > items: >=20 > --=20 > 2.34.1 >=20 --srZ/zPvQLoPFy/vJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZeDTPgAKCRB4tDGHoIJi 0k4rAQCajuVtW1Lf1g+IHmnbW8Nz9UPj32iFkM/X0vR0/ehEEwD+K1Vs9TW7Xi0M 0xWWhKgTKjbUXNU8JBLMD9PrjjBHOw0= =0DAk -----END PGP SIGNATURE----- --srZ/zPvQLoPFy/vJ--