From patchwork Thu Mar 7 19:19:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13586168 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2064.outbound.protection.outlook.com [40.107.22.64]) (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 D03DA135A5A; Thu, 7 Mar 2024 19:19:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.64 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709839185; cv=fail; b=QkIs9aWAgJQpn48dYgynz4XWrnu5hFtT8XHfeH7L/uSRGEx+qDw0HeE1/yZiuA5pvqJ3VbaZi3wA+UduEMOSLAw0T7VfbRwTvD7s0dhcsr4eFKyHO6QyAp8JeNU5WJ+ZU/xGxYvJdKd+ToW+hGtbnukrc8aeAtKCqZXD1F3BC10= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709839185; c=relaxed/simple; bh=ty5f4I1ceJv/bmgzC4ekvcaYJmsOaQVPeFLA9ZTjxrI=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=TLFLaZUBgYDWY2j2HVFwZLffLY8JcPTBHSR6Ne1BLBT6jLdLmzKWP2AxPPprOSGvqLZZEyK59LeHOILR06bDKUOYyh7p2odX4g/3YO+9QpaDQ7FRsT6V3mZwi/ovcvZMp96LseIdSgJwqtTqSma/599mTc7LL+lDT1EDJom1Z/U= 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=bDENe2OB; arc=fail smtp.client-ip=40.107.22.64 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="bDENe2OB" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n9b+5e8X9DtdNLEBzQ1o8Tcu/sttJLZ9B8jLzKAu4VWBHrPlqPC8S57fOIV2u9vME6jg2WAE3YyXgEvHePETOheRnxQ6tWb+0Kbb6K3jVnJRKdoh7s1+se5rkhOo6IpUDXTPNUMkEtyggCDtHBEXDcheCOPq9xsxPA4KKeIlNEvbBZ/Xg163+s0bLgj1NvUNHXcK1OSFjP8lY8U6GJFi496xuGhNQIveYlScSnNH0SV7TJwc7RdndOzynrb/07sMDDenDc5ySbwJwtjfdcH2hhBeFz1OQB43+VDtBjyk2/pwC2irBa39/Pp/HLd8FIUHIV1WkOXEB7WukMb3g0/CFA== 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=Ry9d1O8ri36OnOsr//vKZPxLW9rq4AUGvF6G/VAl8Ic=; b=WGE4A2xmsbuviWOKTvkSjD+lns571UFwgWKSD3UwXfszKi3Oh84m3YliEDl65athb1AVUb1tdwcJYNDBQpPRc10K3fKSO1a5Bs97UpEGIz9sl4x9Qy38tSa49Y2MQ29fCQMCrp8ou5yVFhfzHlMYhhoWOrWyrqqUGggtIIC2mQO/Ac0IHX2SE5ViC1JLNLilRW9bX3vyyr5SBeeykfoeidkP1H3ydz0r9DK13Zl4r6/AB1VDXa9rdFm4tLv5B8qbSBKNQbchY5yTsMFx4puNlmSrzo7KMmfO9+ZBAhNzeE23UPRCDOdTHKdfEd1TCCSSI6dtLYvYq35ts0vRhxXaPQ== 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=Ry9d1O8ri36OnOsr//vKZPxLW9rq4AUGvF6G/VAl8Ic=; b=bDENe2OBLp0Ad+KH1OGBbmycr/nXU5yO5pzE+Y0gtcmAr2JR1S3fNum1/JVdrz55qe59tT1ogP12ZaEN2V7RabSiQU0XyqSp7GvdThwW+NAVcrTa46yreYOP8z6YJdfP3GeY7J574r78w2VF76ZF0ubXjCPalxhbE7qdDKrdr/I= 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 VI1PR04MB6992.eurprd04.prod.outlook.com (2603:10a6:803:139::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.24; Thu, 7 Mar 2024 19:19:41 +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.7362.024; Thu, 7 Mar 2024 19:19:41 +0000 From: Frank Li Date: Thu, 07 Mar 2024 14:19:10 -0500 Subject: [PATCH v5 3/4] ASoC: dt-bindings: fsl-sai: allow only one dma-names Message-Id: <20240307-asrc_8qxp-v5-3-db363740368d@nxp.com> References: <20240307-asrc_8qxp-v5-0-db363740368d@nxp.com> In-Reply-To: <20240307-asrc_8qxp-v5-0-db363740368d@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 , Conor Dooley X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709839165; l=1255; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=ty5f4I1ceJv/bmgzC4ekvcaYJmsOaQVPeFLA9ZTjxrI=; b=MeNd/bLGApQZX6DTf1g62Y/JLcakYhK67/Efo4R9Kf4mBRFH3PnDe5JZjXI/yxKI8aCbbcCp1 cgtsD/60BYbAtVM96AegNJlTzRxJECBZzW636uZ6ZD5uL8O2849iVbu X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0001.namprd05.prod.outlook.com (2603:10b6:a03:33b::6) 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_|VI1PR04MB6992:EE_ X-MS-Office365-Filtering-Correlation-Id: ff60cf2d-7097-45c0-cda1-08dc3edb89e9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KGKnkdsx8uID31tD8sE33nHCH6qSgaF6NGJGb3r5T9DZm1zB+IyCl7+kGAgTJ1KDms6oaeDYgmdZlpBAZU6oPbJ6a83JDjc1mlNqinYubv4FZ7HZkePyJ2yA2E/k9ROfhkXIVvjSIuWVwqtNfEsRCpXZinegKaB5JJQkal8kvaTdsUOHIDZQTzhyjJfj2NmAn9409iYrl+SH7fGSIB1+7VOfpBa/Wg6N6PQRpz8lhtFDmHgtM+Y8jLXfivUW0CHfx3UKfcYe5n5STCufFdj+5M942R4urE0msH6xgkdJ5nQVCyJJFjPMQO4xvsYa3eaX9I2JSturNkDX6lj6s4y6vBFd9oPOHhw7zgLrcFcvvApts8CWL836sen3ofA9URY3h8sioAU3O6hc3fQVUMq6Bp6o+J4fLN1ugtBpxvR4b11F+n6JYe2R5e7OiIjNlqlrRx/DPtiXqPUZ/r2zLf3bKANs0fRMUsdmGtHwHp2W296TsaNGI4rk8NVjrCeck+1UOOuTeJ+9dW6SHjw/1VjN9gpDZLT2vhRbyi3w2pkttTz33HZdThpaO3zgNhrYfcps3+hZI0miITVwXLX84D5+eUEil0UTP80WpGMoREaItnghh+a+ALYhnXNuOeZFhsQaMWErr0FSD/T1pLC8+TXD8GUJRo7IZT4NMKa8kIwI3kn0odkiCrgzAbttYoIjzqYYiGDB0cyqdC5YXkhwyP2qVhybQyFzBj/p8hk/79tuRN0= 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?eVKyQiTgiUDTuWxRMYbbcV/y8qoG?= =?utf-8?q?o5Z3Oz3K3IsS+n4EK6v8K1rgWtdl6m0DJaL+QvXaX771vSKscBCGZJ1AdV48j/8V9?= =?utf-8?q?gXsKkMshVrdy+S9Kc4qVGRcUjhhNw8V/yKQK9lHFtQARi4qKxqyRJuAjeudkPvfni?= =?utf-8?q?BBlEGx/r4OQtWnqcRtiBPxQcEl3WraSMEPVli8qM980/DWkaqB0eI7u4RLStXn2WJ?= =?utf-8?q?xX6kUYKaDexCVJ2IHDODhs+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+KUgdmmGlQRb/0tVsndhGK6xiAl0VIavl2dbJ?= =?utf-8?q?XtsEXqYPx3BnSPeGv7zuTK925t0JPHeyPgiw4sJMiJXXonD1OpyE6qOlKN1tZrx0h?= =?utf-8?q?rvyWQDWYwGLWn8EqMloSzLto9t4q+edek6Yhobv7JlGuJEnslIfeUY3cE1X+xdFt4?= =?utf-8?q?5OfBuNKhn9ZIzIsiVl6JA225Wz0/DN9m0nC+bd0sUZyxeXHxWxD+uc1+STcvGdl0u?= =?utf-8?q?wjdIcl7RVu3XJ7ilDuKKf5OLtuQrMKIuRpDiwlf4wKPDI8IJGidYeMWGVtdLJyeXX?= =?utf-8?q?3xpBr03YjEm8hL/8rqPeP2AGgUYkqzgl5MG4sm/wcArLRW8SXZ55RBA3uWck4AN70?= =?utf-8?q?5SSjJ1aRlkfmnQzgAo2860AxGjz7j+YMaJ0Rjt2+TnvWndyGaoKQ/I8qDxsaYYuWU?= =?utf-8?q?/LcR002iGsy0?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff60cf2d-7097-45c0-cda1-08dc3edb89e9 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2024 19:19:41.3346 (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: bgQxTJit+VdqzfTvT+hMRCU/T2zLCr6Doar72w3lqpO9Nbp8V/CPFSaN2Bfj8eFFsTKzEnW2KeQCj5jNhjkfig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6992 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. Acked-by: Conor Dooley Signed-off-by: Frank Li --- Documentation/devicetree/bindings/sound/fsl,sai.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/fsl,sai.yaml b/Documentation/devicetree/bindings/sound/fsl,sai.yaml index 2456d958adeef..93e7737a49a7b 100644 --- a/Documentation/devicetree/bindings/sound/fsl,sai.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,sai.yaml @@ -81,15 +81,13 @@ 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 + maxItems: 2 items: - - const: rx - - const: tx + enum: [ rx, tx ] interrupts: items: