From patchwork Tue Mar 5 17:33:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13582800 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061.outbound.protection.outlook.com [40.107.20.61]) (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 D89D617BAF; Tue, 5 Mar 2024 17:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709660017; cv=fail; b=ifoDAKbOcCT04qhglZCPaxD2IzbMKRMyvFot3KaKsMycQBDw5iAn96nRUKMa2c8iKZXOI6eijNd+1IYlUBovNmdv9+imRspORIapPEIsgbYXC+iVOQXCI8uA1zmiCivEjU7aD1oxHXiykcCg66SbdNk/gv/AFTeJI6VlvJ7mSZ4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709660017; c=relaxed/simple; bh=yjXouEe9GejMOBTUStSt91sQSE1J9SrHWPb4cvvLO90=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=NlHvJeLqOCh7L+omTa38gY9QVX+Hq2ntF8V7CTHavDEHBl6zdZ+uGeUF0l2VekpuDVjGcF0mw2B9Dnbd8igpbM0UvQFplNLgwNsIoC9NprtEUIzoxhF4KxZR9BJNUSem8zh1rrG+0C1Oq3dt8Du6+Ii247zBNzG3w8gp95VvsoQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=JndEjCoX; arc=fail smtp.client-ip=40.107.20.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="JndEjCoX" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NO3laGbCQ+vOckce1quAUqBAWi4oOXeE7g1V4VEHD/OkwTn1J+Gnwn7fNYlfF8HmBOsv5unFkY2if+YXIO+Bw5Q3C6KBQ7NXQOKz0D2KRZPugptm2K5ya63TszOn2lSs4QnBulgFB6DFprMTp1IeGepdnyrBE6q9JxYiwuHO+VZ2u0qAlmD2qkyjBp5AZ5M0tBDhCIULqvVNt9Psdd6lGG7AldX1cqVhKd4zH11o9mLBDG59vhkEvw2Qu1oheIXOXuhKfh690yl+Cv+vQPGjQNIHr/i/SpJPSvDbn1fCN7VXpFvjHkTCYB4/z3FMQUHqoHnKjy6bLQHEYT66YD+yIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=52cZjio8ouiskuvTgFyXFyDw5dtyl3FaSq1t3asy42Y=; b=dMYi3RVbaMHPeZGU1z3m6hgrq3gUI2+Mv9ZvbdltQioQhBEbNpaglmjB0oDR5jmjtL+xY7JqX8I7GIGmhdlyt9MeMetN6mv2BKf2ogIjxIUg9W3gdt81PgJJxp0BDKOVrmHARh2NAR3cc8+q3weo78FBDTlQmlgbX8FwUy+p57LfgV35ENh1M+vJkjNN9CoJWewWjy7zO8D3hgYJzyGs/wnx8kw1n3xR2LmAOWo8zuImyBxzsioKQw/Njw3owaKhB7XlGJS/H6LsnjtcKD1mDkU08Gcv/0ltVGojjR3AKw5Vv6c2rjIfIdWhEM4t4mrtYdsgEL+9MsOsVREbdVF1og== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=52cZjio8ouiskuvTgFyXFyDw5dtyl3FaSq1t3asy42Y=; b=JndEjCoXd4va68rnUIh6zbv2eJy5wVlWPrCXjgbf6VI7msgN+HsCq37pHmsp1K+8ABxnINsPRULBXrhZRJiqxJbLF4CV+uaS/Gi+Zkd05A6D4QDvH1kjqdd2oo16qsoEfWIvi8/qfGkuyrZ3Gx9czNwYKI1048+CpA6aSDgARTg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PAXPR04MB9280.eurprd04.prod.outlook.com (2603:10a6:102:2b6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.37; Tue, 5 Mar 2024 17:33:33 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6%3]) with mapi id 15.20.7339.035; Tue, 5 Mar 2024 17:33:33 +0000 From: Frank Li Date: Tue, 05 Mar 2024 12:33:04 -0500 Subject: [PATCH v4 3/4] ASoC: dt-bindings: fsl-sai: allow only one dma-names Message-Id: <20240305-asrc_8qxp-v4-3-c61b98046591@nxp.com> References: <20240305-asrc_8qxp-v4-0-c61b98046591@nxp.com> In-Reply-To: <20240305-asrc_8qxp-v4-0-c61b98046591@nxp.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Shengjiu Wang Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709659997; l=1270; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=yjXouEe9GejMOBTUStSt91sQSE1J9SrHWPb4cvvLO90=; b=wOKUgAlbFL2QcLra8v27pLVY4QAf+HvqWu3QLW18Y/nitXAMlPj00qZOhzR6L11Fo96JJ5WTO cGCbPQurMi0DlzxsshJpmwD8uuWL2x3ushos0O5mZswDzxkHgmi+7+6 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0159.namprd05.prod.outlook.com (2603:10b6:a03:339::14) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PAXPR04MB9280:EE_ X-MS-Office365-Filtering-Correlation-Id: d41ec39f-7fd9-44fa-71c2-08dc3d3a6166 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gis6bWmbwpLkvo6W8ztFARWMyDoWsINBQ3MdHg+22N2hn2YXl4mcmuuYY8TdzNvYtSrn2ZQ/fIRgZU50S/zWsna8E4wALD/KlebLku8PlAo85AcsMg2ZtfMPmTSVy+qpcETyJUGpeHbzx213/bGfpBrbOjpZtUJ71wyIRkh9H7KnoauZVlqRTNRg9jBP9g3KogLzvw5jff3zC1HTf2DBQ7k+z3gVZqpcDWRcae3qrZgQUUeh3b3ysndSMQ7+Mr8a1PeDUelZuYvOQXTssU28UCV7sN8K+75HIMjOxarKuJf9yvqUD1wITr+RNA9y7l66R+LSkcBDAY8jah+DvGX5e23QS3s5vngWMBPl4Uo0FSsVsCk2kqhzCBRuesFVVzpBqRiAqiA5IVvLaPReZSgMeiDEefZa71Nhu/nMXHlcTHpEOE4jtMXofNfDTEKO9qFiaBsqIZUJCCmLWBFPQta2czeETypEuk6PAMfO2AEl03AmLcQr2kP0vmkFpo4s8+qrU5/SAq6cS/CFxp8Z63tX3AD52gmiIOZWo3sxDi/EZQobxKTmf+4ja7KZPjrWJ/6aUjWqsHFWmPYiYiy/gsITt/hR7HGrgu5+cc9ypbTH3LlM534Ozhj3ZW2Du3Zue+14D7jnIQjF4u6DMpxX5xgxY6jMzlqGdDe7GWpjpwdXJW9BT6fEhogEbAZ03wXYTBxGx/sxHRgNtXjztWSuwmZecBAltYS9GTym6LVyTLsB/Zs= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?cc5RfCVlcyyosVJL/13FTywQ5vcd?= =?utf-8?q?144I9QWWB310xc3QPxokmHe6AMAYPeUjVDqDbnJi2AqQFcWIn17DzrswQhHdnQ7ib?= =?utf-8?q?vkmRtL10p2I3MEondMlBFviDQYm7L58jowLYRb1YBv46Z559VnuD/H+N57PBlaVTT?= =?utf-8?q?Xv8Mi5GheZK9t/odbEv3dEvkzKj204qPVtNCSTEjl+kCRsG/rifO7MAryB28ZGm9u?= =?utf-8?q?DPaeFeElgYg+DU0PYWsKGQKZbkT84vch6LCfW/NXeurKmUxzp1Ab3Dhsg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Et?= =?utf-8?q?nklGZNlfYdqiTvHj+gMvrjxvDXHHVIh85GrM+ASz+Zg3oBeQueAGNAzTQQ3qu4E3d?= =?utf-8?q?2tpnWJ7TOCZ2G82jx5sP7Dv+W2HoOEV45XqtmKvyrsdyWu9DsUsAnhoHg8u1pcVmo?= =?utf-8?q?Gty/+bo5gok5c+f2pUO/vUFTRC2/UaahwRuBvajqqIl8UZv3nUMM/gRtOCoFIpPV+?= =?utf-8?q?cLKWmes4Cv1ghCPT2XV29z+skzvAJXxZi3ScRtpVd7jYVE9DvdzMAcUVriJh6hItp?= =?utf-8?q?WeZKefEUu3TjssYDf8NgH118JeOsLTStpNykCtmmtykIjU/cV9BoeZ2vARTyKe0hW?= =?utf-8?q?RxdxiLjqJ0+P6y0GfslHpF40UqSKCJ+wEEVzK2eyHKYff4c1Jl2x1hC7mb1AOQrcI?= =?utf-8?q?+ljSWP8VCRuu?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d41ec39f-7fd9-44fa-71c2-08dc3d3a6166 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 17:33:33.2114 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LS5F1LpA7EPwNGWM0A7Ty/CpGfl+ZclW8NBk239Z8Sf2/yMHIK6MsFtKSVoKBpZUE/zJxCIoYRyjSkKHlssL+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9280 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. Remove description under dmas because no user use index to get dma channel. All user use 'dma-names' to get correct dma channel. dma-names already in 'required' list. Signed-off-by: Frank Li Acked-by: Conor Dooley --- Documentation/devicetree/bindings/sound/fsl,sai.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/fsl,sai.yaml b/Documentation/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: dmas: minItems: 1 - items: - - description: DMA controller phandle and request line for RX - - description: DMA controller phandle and request line for TX + maxItems: 2 dma-names: - minItems: 1 - items: - - const: rx - - const: tx + oneOf: + - items: + - const: rx + - const: tx + - enum: [ rx, tx ] interrupts: items: