From patchwork Fri Mar 8 15:30:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13586948 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2041.outbound.protection.outlook.com [40.107.13.41]) (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 20D8F2D78A; Fri, 8 Mar 2024 15:31:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.13.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709911887; cv=fail; b=JUJAcqUKWr2PfIVXY4i6WUvI6EoayYNrRAvHjuPr3qJemcf9TSuaiOPDVQWXd+gjGJo5k9wFGXrQv2aXrI9noOsRTC8n3DlnWzOLoMwEo5n5npeIewqTMvqdGk5DFJ0b/P3f7BxzJENRayZQ7PIKRO4NGwLRHwqchBOXicakzao= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709911887; c=relaxed/simple; bh=ty5f4I1ceJv/bmgzC4ekvcaYJmsOaQVPeFLA9ZTjxrI=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=GEyNbSHig7mmxPdT4iq/F1h1rTrOCpFsmb1qwQF/cTVvfLY4tYw/u9QKE3Lby+VtLs+vDfxIrgE5mbWJUV/Z58Yx3BR6Tl9KCwVlRcys35x/+FiD1yNc+IDgM/Dus1WDrcqzLmz2G5gzbc1PeDFgiGpttoj4y7EWVtgJWW9zTtk= 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=C7u2dCBK; arc=fail smtp.client-ip=40.107.13.41 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="C7u2dCBK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O33ZbBOL67O4eDOgeL6vE1Qg7S160LRLW/xqjg2L02ZuMw1lMxRnC5GPtYWos84XjG7rw4y0FeFtjE13au4X+IZJbtuHCcutUBPhpekrCu/sWxCuPWkSf2zCB+3/PFpEXWvxd9e9/mWzT5Fb/tX/69UZ0FBDHdsp9gqJujj4ZBbJ+Yr+o8Ff3CPcjO6pcvemx1P6zvez8VCyJcPAjNGbFlbu/q9gdUJRHMf6jixO82uRoKxFfEagi5cvcD1igiYG2Sm2CNjky9onK7mLQFdPvt9suGyFZQgIxofjmyzUZ7CDu7vvQEVtLUT7Y8lXsLf5F7foRidTdU+WB4ztJ0cLaA== 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=CVk3XHt3czf3HQdWIjFZ7cUvWlOztdQ2BOf8fvzIU3UQtIMpoTte34S1LQLGgprcxmkcv7IMOhLkqhLDyQW/2uFksBsOgVbhD7pDx5R8zFM7JDUZobGHw1q9eSgT0uPgG0xZ7+7M0w6whbvVV7GLZCkRvte6iApkVnTf5D6aWB30w9vsIoExhaiDP+czo6E5zZege42azbo7htWJADGkBdtovrDk8MjI9U/skrcPqr7SIyFHHxjV/ogdZen5JrjJXBilBwKevb8R+Wx1MVKRG4Sd+0hOGKwsdV12fp2rAIF9zOFTHDhoTtc/NCcyYGMlpJSEPhlSGRw/p8ej9WuGbw== 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=C7u2dCBKCsZPf8cq5g5Fli+X6rEuOyfb/q4TH7/honr7YnJPa/X78aD6w9s0UN2ozT5A46C9KoWtnHMomJYXMtUng8wUKymrzuImhs4m+88U4z+Z77LT0LH8UYb+ObRmg5iUWs9ACx9sN8kuLdCZbUmnASBsELGohYige5tBYlg= 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 AM9PR04MB8116.eurprd04.prod.outlook.com (2603:10a6:20b:3e7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.29; Fri, 8 Mar 2024 15:31:23 +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; Fri, 8 Mar 2024 15:31:23 +0000 From: Frank Li Date: Fri, 08 Mar 2024 10:30:52 -0500 Subject: [PATCH v6 3/4] ASoC: dt-bindings: fsl-sai: allow only one dma-names Message-Id: <20240308-asrc_8qxp-v6-3-e08f6d030e09@nxp.com> References: <20240308-asrc_8qxp-v6-0-e08f6d030e09@nxp.com> In-Reply-To: <20240308-asrc_8qxp-v6-0-e08f6d030e09@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=1709911866; l=1255; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=ty5f4I1ceJv/bmgzC4ekvcaYJmsOaQVPeFLA9ZTjxrI=; b=6W8mAOAo4PSbsV23QKNmA6mss9ebhqq+84S+DUZxqDR3U2XCnfUXtxxKrdIlpES2W6laYjki8 p3tefBVHozQCmcVLvjRgv+LX0uI0Ks0p6nd/am+l82zT3IK5XT3R5Qb X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0151.namprd05.prod.outlook.com (2603:10b6:a03:339::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_|AM9PR04MB8116:EE_ X-MS-Office365-Filtering-Correlation-Id: 089e35c7-0a8c-4f3e-904a-08dc3f84cfc5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vIVm2r72eVYNP3lX6pvvYSrkJiTMyLtH0/tSljXN5WvDRR6nOe0Wf4mi5fFvZauFQbJ2nLng3KiUFW8A7kIP6/8m/pY6yHh/08zbee48yLmmGVVQ8Zj8/GCxTUuIbpZiaCMcruz4a3bhASOeJCMpvWw2PuoG4apgYBxatdadl+UlmJJWlxVroLjvethwD4xLauMKT1kuRaJ0xx5XXBs89YqxmH7Ooj4b/WcoZBXDrNVw6dUTUKDbCPZc2FnQhLfD93eRH09ewzkOjRD5SnU4xzL5hjSVSXCtG2Y3Qszd1AnEEWuh+UJp1VDtXQejIlstUyiqJKlcMkUP40az1yc94TR9CZHyaKMkPl6yJijpn+/Fc47rtPyxTZBTc8rA94DM6WtOPLeYHTolX0OXLNaSDx1JQ7aOQP/Hb6YX15grUi62/eiqPYMyTDb5aHsYpAEd3VgvknlYiFhNH8qV8F/e+hfXNCayNzNKj5jOMjREnq+ED5KZFJBzxDVUo/jUVccZLkR9ssOUyVZ4RpFuOuBUMuxPibXR66x3ZlzDlVxLVcF05ncgmPvA1Fj3UFXzKixaVlI3RAIse+2VYl2Sx0D7BXeJ9KS8Mk3lN4817grItTKVgk1HHzWmnYd5+/EWlf2yCbEvoy2pxUv3wsDWyYKadFLZIaUvzxk63WtFFu3EYbbxoGWS5ss36WQN/Eyhml+eHiamrZ6AMtruWyVXY4EAWuK3Gfqs85mXxS3q1DGfvMk= 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)(52116005)(1800799015)(7416005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?CKSl/90ULc76Ia8FW+Bb8FVPZe+Z?= =?utf-8?q?SxrKKCsLe9R91UbYUrKRRLaS6sDz2JLtxjVfYC+LjB/65Q4EC7BzOUCMrIdU24hCO?= =?utf-8?q?TDQfZF7JpogJfcE+ixJWb8oftMB1NGIuEZVgUzwLQ15L9avY78tRPMa2CQ9EqAhdx?= =?utf-8?q?ldHHkVX+Ifq0UuCPJ5KiSqOQfXBS7NYvjEEVQ8CMrWCDT0uBQLk4uJz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k89vUvQblUF?= =?utf-8?q?jkTX1x9A58T8MQR/ce64UwqLQ5Lc0eK0itSB2NSt3Si4/NQUOTvrnGksFveO/Nw76?= =?utf-8?q?yChyY3AcR1NYVyyDF/k5xNmFW6DuwjG/VhM4HSb/7QDPPV8heAp+PYXu+ccLA3Ajy?= =?utf-8?q?WMPpbA5ob7swBPayyWUN4jdMje3a8aQMNYOcTe7PZJsUxUYGQA8lisRIw8jjjEEEw?= =?utf-8?q?ydDux0cBbZgxn+8BGGq/B/G3SUP6P8ThSq3uE4wmJG4DbTLXgVP3xzde2dHvKC9wx?= =?utf-8?q?SyPuZT+ytnN2kxk2GEuiG5USwKwoPZjACaSHnamlw4h3dk/kMzuwO7xiQbR74IFY6?= =?utf-8?q?oRAQSl+nxvM++IQoEdj5gRBzU6r9YkMy/iGDul7Xy2ziS9Sk3K7QCOB99K+C2lkRR?= =?utf-8?q?pEbmzGyXF6mEXtQf+OnGYX9j7fRPVTw7woEq7NK+iC+rjNyHfIWh925ICknPU8FbN?= =?utf-8?q?VgUu8iHMhlGD?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 089e35c7-0a8c-4f3e-904a-08dc3f84cfc5 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2024 15:31:23.5506 (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: B+lql3OkqdioZaLl6CfAiamlXlzXVRvk5rIRrQ42RsK/gJFnWp/cvyvvDGrRRa3oM8BdP0xofiFlDic+q3LOyQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8116 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: