From patchwork Thu Mar 28 14:51:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13608693 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2075.outbound.protection.outlook.com [40.107.7.75]) (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 79BA012F597; Thu, 28 Mar 2024 14:52:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.7.75 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711637538; cv=fail; b=n8r8fS1E5SP/y6RykCOYRsdINI/8Vye8nxFOnjk0imrc6YTboPpIfV0G6chFtnb5HWK1/kQhfJHtDcEXaG9Sf68j4yaCjz12UFKFHK0LnafV2/tvGF7coiKL/Grbek3NUcS0fNPRYYsMrQgc9NtE8YgWQEdOJyVxCRNYiQp2GIU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711637538; c=relaxed/simple; bh=X/IAnMYuCCsn7agYxlWSxyPgA7U6a0SMgUhlZXUd6aA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=rxZkFq3e+Pb3b3/J5VzwuPtHGG6CC4d/fO6hDnMJowOZDbfhj9pnx5ZFbo/2ARyhKZ6kdlN46OJFKOkAynDeKqfZsecUSULO1sKvKmHbQsVyAnre4R7e/3t1htcEQ3BEBQqWP8YXyRg9uHbu7ADvS9Sn6Cvi0cxgdoKk/fOtOys= 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=kfGsXdIL; arc=fail smtp.client-ip=40.107.7.75 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="kfGsXdIL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fywk4WfNGbfAuM0qPwvoyitZJojcGD1/XAtAry/3H2gC+WmelewnRiYUmm2ZRxd+cg4N4Z0uhBPiFRN6zi01tawscXotsCwG6FuZK8OsS9eO8LYIkk6qnuCKyzQQ9Eikz9dshxl4PBo2yQC+Hignp3scZpS4xlBUjVpe9TuNjLDmK20vn0BDixW6nwuCRD6o6SXdrCe+X8jmbxfreOemwdZBp9TEcXKdCI1aQS3wKR9bfGfRcOugyn6eMrWHuB/bmIc3zP2DSWeFGQi4JwhoXR7m/9fGis48n+vqt0De88r5PTKDKQ2jLvHZxHgwM/FROrcYcJQEgP/4zdoMpjfPDg== 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=FwVLaUa+FtoZhYCvJlQ2Xqx7mL2pTGh/6dw4puqx7SI=; b=PljxiMXsNGMXhfT9bR43KZ9gpxpdYRc02mBVDUrm2nuj8RMiaJzAhxtau4fTtnsBb0HY4IFCcbuT8bIqp59pdEtlneOwH/MA3AUnnueyyRrMZT46LjH+BieXZZYbjdr345dq7ENUjRUdWXRJZ+U8JZRQbIV29FoMI+/zx2xdjYRBTTJOV5TtrdYoq7iz4gSjMxs36E/rRoYQzEo/7cG+L5wDDRoJHvO80OCBlDw4u4AHfUdmnLPTADsnI15uigmwElV6ogpCsfz4Q/FrAQVTs4d+ot3bfhB/qH7CeEQGllVJ5h4OSMJT/wxDesmtrw7U/TO6shYo2qv57jGrlsslGw== 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=FwVLaUa+FtoZhYCvJlQ2Xqx7mL2pTGh/6dw4puqx7SI=; b=kfGsXdIL/iKEKDPqeEjWNrnBhwd0H7IGDIJQDHUa+fOW06OSFwFChct0zJeHFPri+wIpZNRV6R8TRBMQr6n4/1ZsuMoQ9toSxyZ49DdZlgCCQfxjOdqzkvXrGdlSxMvo8BLK7XB0xmyCEJmKcwFgyTMsGyMyLp8wwsc3AoMUXJI= 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 PAXPR04MB8880.eurprd04.prod.outlook.com (2603:10a6:102:20f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 14:52:14 +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.7409.028; Thu, 28 Mar 2024 14:52:14 +0000 From: Frank Li Date: Thu, 28 Mar 2024 10:51:35 -0400 Subject: [PATCH v8 3/5] ASoC: dt-bindings: fsl-sai: allow only one dma-names Message-Id: <20240328-asrc_8qxp-v8-3-801cd6bb5be2@nxp.com> References: <20240328-asrc_8qxp-v8-0-801cd6bb5be2@nxp.com> In-Reply-To: <20240328-asrc_8qxp-v8-0-801cd6bb5be2@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-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1711637518; l=1215; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=X/IAnMYuCCsn7agYxlWSxyPgA7U6a0SMgUhlZXUd6aA=; b=/nvdmdqvcOIeqW/Ur0/9JkLVJsm92TWOEz4b1mdJDDOHUXko6Lz44Hgy2fwWz+8DpMPjMVXGs wmXjD12jgrhBn6ArP6Flxy6xJGFJYlqodY+U4cp6O1Q8sdZLalbndmC X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR11CA0087.namprd11.prod.outlook.com (2603:10b6:a03:f4::28) 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_|PAXPR04MB8880:EE_ X-MS-Office365-Filtering-Correlation-Id: 4260e557-ecd8-40e4-66b4-08dc4f36a7ac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vsAr9PwdFtChdgSujtoD2WrNQxkOkkvZG3B9RCIxhGhR9NurnDEGvMUHR2Ocx1Zp0jvybJ/lvCGqGBC3qipPA2dNw+VI3v6/BNTlMkjXFTsPS5GV/BkDluwWVKzYhMN1nbHARBtCwR9j7B9vU1DbwU+CVGh57W6ZxetIArHcvimclPKtgT5wpfVMoMqBTVUjTM2IC4RqPXnuOOtcoOnX8EIes8Di26tGNe9QrOeYYxvGzk7z0LaZmFkoA3IbW4AToxydNnkN66GPMBLhZJyy0ITq3ch9nEe959ElAUmJKS0hIUu6rIC+cmPAsGi0GcuHh2iA3TEuZPiJeIrSUGSvdXH04oeikYv+dzH36gTvUGknn6MeX85VMjo8QtmHulWQ2kcCXS3+w6i0ITXltfGulXSoUhI2PfvAsCSwSyYZ1ziJj/hn/EyAS/DhZM040ajWS59MLzGaTYE0Z31tM5X3JZxKGHCucZIx3IpgFB91m4+T3OhV+Dsn2a3NX5rWpljmcsngDdT3C69jEBL1/Hr7Ou+g/nVaSXz3MvlIfN8nKNm0nLVMudz5gFluMSMgzwqdiJavU5QqkUZXsNHuepKAxDA7P+GVZA+pE8vymwbc7fAqUdT0KSNhI6sNVjaUrJfZgYGxQxV/xN75atr/Jfis1P9q7K+HvQt5VzSx+U+9VzyXF1DI4ef3lQiRobngjPOcErCNsLWZx78na0DVgzKzVIHOgwaMlaK1xXRlHzTV43k= 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)(366007)(1800799015)(376005)(52116005)(7416005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?EJEy17U8NKcHe/3/v1a+kkvmko34?= =?utf-8?q?rNxI92wlJnQNHsBk4cIKKdOhwOwE6A3v/1fS/g5MRpa0ikvIDnp2PcLLGlkxrMWc/?= =?utf-8?q?FOPU7Ak0yWe0AwP5rKQ4l/XRuwweHNW33lo8uYpF0atVhUAi7TBEOoDT3Zbpmd5Yl?= =?utf-8?q?umji4KvJXteo3hX9QZcJC7h3+H7KhXxUFapcfPLZyAO4KdEVE8hgijF+UxaqhmKqI?= =?ut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S?= =?utf-8?q?hBak3k9l4SO0hzGQNU7tFS9QFtp4A97mqkyGnGgEv7gUfB0N/WAAT1InCOZ+TcSOj?= =?utf-8?q?vMiC0EkX4dLfN5rYDDrtt2JyVyDMyYOt0u0M0NakdnO3dJ57T5kqIzky7Qk8MARKV?= =?utf-8?q?eLOCgKLO2vGl8h4w4cUf7RlsPD/Gt9VQbpYtk2wdLpEWUroj988gjLQwKScwqi91G?= =?utf-8?q?TyPPV48f7C0ZL/KjSeqxOjN/L0QN1kf0dL+ixFRJAdJ8g+uDrwNsOeG6uHWS/T6Fh?= =?utf-8?q?YsilX1X1cwj7j/FrClqc9jA8glTFxo10yQpcxaq0DwvK5/boOv6sSg8C2u+doJXuJ?= =?utf-8?q?rDB7kiLrsFc6Q9TTzIHNtQqozxJWav+hx58emC0GpGNaJMZXeZiJ1gIEsgcPYQSie?= =?utf-8?q?jxO/HI+IY2tzLUIQ/IAbHEVKDMTWcPW6L3HFV0r2L3ziqWWVqw82I6P93bOMmHOGg?= =?utf-8?q?BPkhATzGwxsb?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4260e557-ecd8-40e4-66b4-08dc4f36a7ac X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 14:52:14.0622 (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: XQCuzW0JdAKK4dZ4EpQG2a4KVoZrn5FxudU6HM4v1V2mILDDxMqNcDHwmiVc4azd1RjMzG6VBZ0rBcfVUJhDeQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8880 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. Reviewed-by: Rob Herring Signed-off-by: Frank Li --- Documentation/devicetree/bindings/sound/fsl,sai.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/fsl,sai.yaml b/Documentation/devicetree/bindings/sound/fsl,sai.yaml index 2456d958adeef..a5d9c246cc476 100644 --- a/Documentation/devicetree/bindings/sound/fsl,sai.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,sai.yaml @@ -81,14 +81,12 @@ 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 + - enum: [ rx, tx ] - const: tx interrupts: