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 2F43DC48BF6 for ; Mon, 4 Mar 2024 14:59:32 +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:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OvB/yHCZep5yQD394ecS9W22waFwvBRZNbYeLc7FzP0=; b=NkI4uzSXde9L/z +WiP0BLSpwqNYVLW9P1a82Mc9C/ywCrb5rMbDJBTYBRmGFGEE43hSdeZloWsDlfrlX7WBxcRbL9ZH 19gtI9ohwPVC7YGLccn6xZKXw3sf78Ez+weZ37jtWZZmfK6Zt1M9zurgtYVeMp5xN9U34Re8xHA7u ackmvfRt4eQFA6gMkktFVSosm+EMrp1fxXGNLF1YpskWzrQZ3EjuXXrIdyyavvc/qeCMQfDNOtxBM D3O1JXrPFKRePa7nbUF9b+kHt73x0HGScGBHcvWVe0QA+ZWoi8IT45NsAHpaFqTQHCJVPVtwFongj NgziSDdewg48sxeJ/JyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rh9mf-00000009SNJ-16xO; Mon, 04 Mar 2024 14:59:17 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rh9mT-00000009SLF-0APj for linux-arm-kernel@lists.infradead.org; Mon, 04 Mar 2024 14:59:15 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 318DECE12B3; Mon, 4 Mar 2024 14:59:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4670DC433F1; Mon, 4 Mar 2024 14:59:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709564341; bh=z2v8CXrrV+Qdm48Kfwgi9f4FfBKZReyYmFvVQIhpIIs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bXn/IpfxLlHInHt1mBCYOsDJ6/35WXKrKr68JSnnOGEXLENLgT62BsZrLgOfAgB/6 E1sBrthNYmxgtT9IT9X8hYXvLrC8ER0MVQMl500reWS8645A99eUsuX34qUPjFivip KAN3dpODtigFzbo7lpVwTXu/WljtOiYOfx/g18jM7TIi9sENaDD1KERECcvo6inLcO nyM/uYxS+IjjfBFexkLAZtCpzSBqH6os6856RvHtp6NSAaPU4CtC45ZDMT2kdeTqjx iY7CyBaPQOT1C7uykxN9L2IjM6YiX5flJAJq7rl3l/EBjjmKLbk1byNkJ70FEq3uVy eHDk/iCawOjlg== Date: Mon, 4 Mar 2024 08:58:59 -0600 From: Rob Herring To: Frank Li Cc: Liam Girdwood , Mark Brown , 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 v3 3/4] ASoC: dt-bindings: fsl-sai: allow only one dma-names Message-ID: <20240304145859.GA208747-robh@kernel.org> References: <20240228-asrc_8qxp-v3-0-d4d5935fd3aa@nxp.com> <20240228-asrc_8qxp-v3-3-d4d5935fd3aa@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240228-asrc_8qxp-v3-3-d4d5935fd3aa@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240304_065914_262217_69F1ED92 X-CRM114-Status: GOOD ( 14.76 ) 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 Wed, Feb 28, 2024 at 02:14:15PM -0500, Frank Li wrote: > Some sai only connect one direction. So allow only "rx" or "tx" for > dma-names. > > Signed-off-by: Frank Li > --- > Documentation/devicetree/bindings/sound/fsl,sai.yaml | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/sound/fsl,sai.yaml b/Documentation/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 > > dma-names: > - minItems: 1 > - items: > - - const: rx Just this change is enough: - enum: [ rx, tx ] (We enforce unique items elsewhere already) > - - const: tx > + oneOf: > + - items: > + - const: rx > + - const: tx > + - items: > + - enum: > + - rx > + - tx _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel