Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp87386lqi; Wed, 6 Mar 2024 10:45:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6/L0Dknfo714j9Vp4hgwXnFSQepWPM3IjtJMRcLHp/UjIXr0m83TViynwxIBPt7Qi/0BpP5G6MOB0wYap1a9VHz9KtWhLyPmBDv39nA== X-Google-Smtp-Source: AGHT+IEf1gRTla5dTfKx3HvQNZxU5LdOPWCP9tg2y0MIHYd07O3Cd4DVYh5uJJFwwxwPILi9EbXT X-Received: by 2002:a05:6214:4007:b0:690:99de:c3ff with SMTP id kd7-20020a056214400700b0069099dec3ffmr2035414qvb.28.1709750726707; Wed, 06 Mar 2024 10:45:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709750726; cv=pass; d=google.com; s=arc-20160816; b=Kn10u4X7bCK5UJ/MKc0Dk3qseuAHQGvLBFYIDDO+eo3DSOvunBjBv4DIlTGRdekvew dTkJkBdrOYRAJj5lj2blC79febGUk4EeLKcoAK8uUVIrj8EFgAvFQ7E7/X+/0moiMJuw YtUpx6kSO02liyhTlBPrcmwZR9u5cpeka+lmg9cvGCNyvnDnBEpkWM/TpPrGo688Z50X gIPNQsLS8RFh8AYhDRwQrxWUwW4wMGu5bi/MPTwmWLZNlol59lOuu4GJK3Ms1gUnrIjt osNCYmQyUYY9aZNRXlPRXzqm9paEIjmObIpkwkjK08OaZJc5nl/aFqA+X7DYRMNzB563 TqKA== 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=ZvHQM31M6cYCLymD/Ny1OPy1RoRtfif+g7EjMCZuoJs=; fh=SkTcAqr5bSVDoBIZGAwOQnnh8MUGb1oY8ghmWqidkso=; b=iTpIgihuVqBdxaqajkU6+xg3mYbDCWQqPz1RJ9S1vV8RZjXIfUZ8OUF20tuLxleJJy usApP2jpSlvPUxAk1ey8ScEg/joFTIO/lRUsT084dXa4Me+aqgJFiIjwJUNpbqvYGsX/ Dyf5KuU607PbILiVgW84283BrSmCdKMmtNFHbnZwmwPJzr7gs1CYJIAoeYXivJBi+3rL vNfZpCq1Jpo/E8cP5JyCcIf3UzJr7f61dmdNG4J5bogCUPis10yCxuHofkFjvyIBw8Ea SswlxzcQiQpE4VzOnmn6eNIbu/M7/TC8MNXGe4Be8BLsSMg8Z7B0brZDPdj2csBlhXM2 Q9Lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WYwSno0V; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94444-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94444-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 4-20020a05621420c400b0069077431257si7912791qve.209.2024.03.06.10.45.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 10:45:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94444-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WYwSno0V; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94444-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94444-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 70FFD1C2338B for ; Wed, 6 Mar 2024 18:45:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56D2913E7C6; Wed, 6 Mar 2024 18:45:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WYwSno0V" 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 5A8D15FDCC; Wed, 6 Mar 2024 18:45:19 +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=1709750719; cv=none; b=ZJ5647bJGByT+EmKAzMvYqReq4Q0od+OS6iDQR8mkh2ZNm5+skoGlzZmk1CT+VVXynEV0w08Fw2QHEPNQkQnQgXD2QooQKpv9OFN8lIfx0DfLiBRJe6VT7zWddoj6A1dET8ANGapEuKzQI4HuO9evT64XdWAk7V5Ffv4G0+Zkbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709750719; c=relaxed/simple; bh=7CP+A26tMm7Rg/McJFoxPIsRAv/dhgwhokRlKJJDh7A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O2i+KjWodf8WPwfl0HHgbwBH3V6uUPXtmIZ2ymDv7cgBshZJU3wP910r9DpelcnO9L+cYFb2z3B8htgsmL9wlYzuv+lETi1h5YxDDwyHqdFK6V8/V6oO5SWzvREPo8Ta4+gcVVvZx/n0ApeKmb4LqCqstn90b6BjEX24LyoVNLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WYwSno0V; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBD37C433F1; Wed, 6 Mar 2024 18:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709750718; bh=7CP+A26tMm7Rg/McJFoxPIsRAv/dhgwhokRlKJJDh7A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WYwSno0VcyP2eJcPt9fDzb7A1sk+TV/0ju9H33p/7aSBi8RntoPqX68fZvNOHstAr XfImv0tjdAICPJNdwMKFMoIEN0GfdQPErxzOvyRrpBOYvR6JhN3fWlPqiSbv4OkxAe 9c5dZ3dzsxHOfPQZmtgxqch3xwxrb/8pZZMztKjmM3Y1Xm94fe89qxFaQ6yZenKWIU 1t9k3xhkOkg3YPCgZoUu+JwS6XPT4/CVcHB/r/72RbINrIOUne9+6obnjJSGKEd5rE OxGaA8FY75l+Mbd//X4M2xXFO1D4wbd+l4bBkl6iNdRhurtL5hSHwfKQf8IxbnJAcV 9Tbqkyjk5V6bw== Date: Wed, 6 Mar 2024 18:45:13 +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 v4 3/4] ASoC: dt-bindings: fsl-sai: allow only one dma-names Message-ID: <20240306-pebble-grope-88fdaa95a87c@spud> References: <20240305-asrc_8qxp-v4-0-c61b98046591@nxp.com> <20240305-asrc_8qxp-v4-3-c61b98046591@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="3EPdioiMTrMIrN3t" Content-Disposition: inline In-Reply-To: <20240305-asrc_8qxp-v4-3-c61b98046591@nxp.com> --3EPdioiMTrMIrN3t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 05, 2024 at 12:33:04PM -0500, Frank Li wrote: > Some sai only connect one direction dma (rx/tx) in SOC. For example: > imx8qxp sai5 only connect tx dma channel. So allow only one "rx" or "tx" > for dma-names. >=20 > Remove description under dmas because no user use index to get dma channe= l. > All user use 'dma-names' to get correct dma channel. dma-names already in > 'required' list. Acked-by: Conor Dooley > Signed-off-by: Frank Li > --- > Documentation/devicetree/bindings/sound/fsl,sai.yaml | 13 ++++++------- > 1 file changed, 6 insertions(+), 7 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/sound/fsl,sai.yaml b/Docum= entation/devicetree/bindings/sound/fsl,sai.yaml > index 2456d958adeef..6f551c68d33db 100644 > --- a/Documentation/devicetree/bindings/sound/fsl,sai.yaml > +++ b/Documentation/devicetree/bindings/sound/fsl,sai.yaml > @@ -81,15 +81,14 @@ properties: > =20 > dmas: > minItems: 1 > - items: > - - description: DMA controller phandle and request line for RX > - - description: DMA controller phandle and request line for TX > + maxItems: 2 > =20 > dma-names: > - minItems: 1 > - items: > - - const: rx > - - const: tx > + oneOf: > + - items: > + - const: rx > + - const: tx > + - enum: [ rx, tx ] I'm not entirely sure if this was Rob's suggestion, I got the impression he was suggesting that in the two items case we'd not care about the order. But while I think this is different to that suggestion it's also not wrong. Thanks, Conor. --3EPdioiMTrMIrN3t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZei5uQAKCRB4tDGHoIJi 0oGVAQC0WUWgje4xSZZqPzRwX4PZpsGdXdHoL3D6DvpnrN9/GgD/UgvXhmOyhVOO woy4Ab0tIG63oNAMuHs9RTTQly9j3gI= =3qdj -----END PGP SIGNATURE----- --3EPdioiMTrMIrN3t--