Message ID | 20240228-asrc_8qxp-v3-3-d4d5935fd3aa@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-85579-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3556817dyb; Wed, 28 Feb 2024 11:16:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWHCzLiylusVbeVDXLsiJSNdMF4Er063K/WTNAAm/Cj/Z+s74ryTWDEUt2DeCOdhnqYwZxncDHH5ZkBSKocV5aTc46l5A== X-Google-Smtp-Source: AGHT+IH+vn8/qkPCWJPmmsKgZFX5WyJzECmhmq2FF5FzLCCpBwOYRV28rQy2VY8SZMXMRi//Kuan X-Received: by 2002:a0c:f103:0:b0:68f:a78f:bf1d with SMTP id i3-20020a0cf103000000b0068fa78fbf1dmr5737024qvl.39.1709147759832; Wed, 28 Feb 2024 11:15:59 -0800 (PST) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dv6-20020ad44ee6000000b0068f3fccc515si155960qvb.394.2024.02.28.11.15.59 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 11:15:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85579-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=aozQWElq; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-85579-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85579-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9F19F1C2467C for <ouuuleilei@gmail.com>; Wed, 28 Feb 2024 19:15:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1208974429; Wed, 28 Feb 2024 19:14:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="aozQWElq" Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2084.outbound.protection.outlook.com [40.107.13.84]) (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 C120874415; Wed, 28 Feb 2024 19:14:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.13.84 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147686; cv=fail; b=UZE8uOTUEDIMbH+nMkPrHpa4LFcDl1B+wKu8rqyq9H9/8SvfCR/TC0KFc2b4H2/1lavDH20xQYFNREcXLrIlw2ytKic1ItyPFhl8xx/85TgZXoZ/z6RWpQD7XmPvrJzoSN1KkxgTdtZ4uWZL9a8GJtVvlwcY+wK+YZNtfl0Lxfs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709147686; c=relaxed/simple; bh=Zr5TShgZiJta89p9a8K0vtH/7bUq8E+U8vmOaScyf2Y=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=VuCRwD0TOvD4b0YRWFiKRDcwP9fMwBqb3dPCQbMEGCs1l3swT/Anc2p/xTI2nZGsfWbKT5klEar2afuEJGCSLsfwtH62oeZ+Z5xU1oP+pUP/gwowx+3V9WgvoR143ACPOeT1gP9vRaUOzz1s8Z9LwWJQ3xRuCBnu5qiN+ehwU1U= 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=aozQWElq; arc=fail smtp.client-ip=40.107.13.84 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HuCHJOZ2eWgKDl0QVp65U+9yBfQGE0cmFKyLfevGgmGapVYS3ARS4FGeSNbm7IwPvIHhPRfbab9bf7bi++9gIDj0tZLts+OEHn3TY9+ASYIfJLXXdYDifSzoMXALQuIgJ9NgBfVtpk0jowKLauIlVWoM0FSD+QkgIwLWUcgDY5Tmiz9stjEPT+p2HzN7rWwPxkUlQly+BnSwfgGB0qgYisVjQgviw0toiPU5vP7ofgwXzu+Ap1Z5HBp6Z6fBW294xwvv5REZuXBIPi0GL820jmEa5dvq0GUpk6tgncIj96301rh1CPIKrISL56blcH7hyQjPEP6goZVPXs2Rnw+i7g== 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=Skl6lRl14Qap8DvLKPAl02WhkmMYsRwEI7aKW/j1Zs0=; b=DMDsedluH+zqvMMdn+klHaAwmRBJGuZpAgC+/e5Q19mzyQGhJpNx4hFmmraHliSBiusm0JVf/KJSZCLsPHjyR7l3qXLJlIv4zDqGfW/jGa7Eqk//JgklbcNumuGKC0zmBvE8IheZpRBP09gtxhNAWnJkEpdnj8I3wRhfOn9ZJJWSUzd0lKlZdpRQjtty+bQublFIo3Z6E/5b9ws20YxQ3AkJkVbo8XUuYANr1QX7LtO45tHxvbTHWHdoCTWuzP5m1nUO/O8ot0eMR1yb8+zhbMVOiTGr4Jgs7Oza/scWuODz0MQ/vCgc4OnWb2pZ7qQ4X7nw41RqB+N6qTVI6m96uQ== 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=Skl6lRl14Qap8DvLKPAl02WhkmMYsRwEI7aKW/j1Zs0=; b=aozQWElqaqyp6xLjCQO0JkvHd7+1riW8Bc2GUkWMqzMOF3aDE+GbqPl5U6aOFWirr4GYY3+jX5+qU0Uo/iinrTveIXb2tXCalU1ooYDKhwO4mpbVigWQ5fTYjZfItbg3WsuhN8B9jo5sC8OhlrsGOmeAIZiMt/E9NtDErwxM5I8= 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 DU2PR04MB8887.eurprd04.prod.outlook.com (2603:10a6:10:2e2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Wed, 28 Feb 2024 19:14:42 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 19:14:41 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Wed, 28 Feb 2024 14:14:15 -0500 Subject: [PATCH v3 3/4] ASoC: dt-bindings: fsl-sai: allow only one dma-names Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240228-asrc_8qxp-v3-3-d4d5935fd3aa@nxp.com> References: <20240228-asrc_8qxp-v3-0-d4d5935fd3aa@nxp.com> In-Reply-To: <20240228-asrc_8qxp-v3-0-d4d5935fd3aa@nxp.com> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Shengjiu Wang <shengjiu.wang@nxp.com> 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 <Frank.Li@nxp.com> X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709147666; l=938; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=Zr5TShgZiJta89p9a8K0vtH/7bUq8E+U8vmOaScyf2Y=; b=LB7gjXBUEAkh69TaW44crxJQHuGSHdfydIQ9k8zVSletQxd5+EfSjDc1NIQYPVPgUry1VJuHp I2wGraplEbjCWDLigkSShVhLvYuruxBBHEcjvUknkUidYRYnIKa1qDu X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR03CA0299.namprd03.prod.outlook.com (2603:10b6:a03:39e::34) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB8887:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b7f7cd7-b65f-4038-18e5-08dc38918416 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ve4wglpn8Z2taSG/vYcYU9HjkWzfbKFBv8yBejI7ouMwheKALkKNGOrYfXeQLKwcDCZjqVFOxTzgMfGPm/4jE3YlXb2PaZSOkcHZi0VqWcrXldkAUu2mebhNJR+2v9H9wAg1GBxCsXcMOr0VEmFgDFn1OFYxZjoI+Homj5wZVdCDeIq/5D8BLx15vaMjJFcz9zswTRHBsjy6sgJQyVsMa0T88zKYz57Hx0tcENU+lGq0QkphhzexAcw2ITE8qGH6GHvWWBzRiEsGHB/+aNgfry8feFxB+lcm6dj/3GF6tgQe5IDIs+uFrOEsEx6fv7XpW4/LpZQXPYI9k7wCS5nPQFE6Bn9dxaH7aa2B1AdVwznv99i+RogTVaKxdJrgZRO91rKU/j0szaoKOnuJQgQwMAtCz9XeG9LLy+DSioIV540cHomj9DVdIeVd/IRV8DKF+x3dkJPxnSAPgygmhEkqp7NzuLRyfHQ0FY1mWvkACbyyZlABSjurxbxk84zI5z7XUI4v7Wg9dIBS9NPEo095nhPooCr0tFcHArA+jg+pZdxiVtFcbyRgtYzjDscpf1i8xgFup++rxBgH3Qiap3HSh9npigM9dDyoCSI/Vgev3A5Gp9p4pT8+Y7SsvxSLKQqN9BJdIVWIxKjT4a0iPQ1xxhlSqy/+nY6AXotJ1m/wv6hRd1vwooELVhwUhqyU6jNxksTFdvcFkqqBBp/qQwSQJW+IplKm1DiMU4BsfzmSULY= 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)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8LUOSqAvFOncB0DqBrSzBc3joR4g?= =?utf-8?q?pKSUVWFuGSiC0JCN8fvsMQZBE7pyo3wT5Sc9+/tm6C4NtI6Ao3qLU0e7iDYSKAggI?= =?utf-8?q?I3kmht78fP2KLmHC6i8IVItJnbsWPbyk16hgoC2qSveloRp5/02juP/BN7mK1QkRO?= =?utf-8?q?nMrqNR2Qj0xZrJts2fkY/yHbjmUP4Hmsofw5ZorVsdYPsHvbRQv3hVT4ziFKUuIeU?= =?utf-8?q?TGcYoHfsz+8Px+hYMcoNrCIGy66wd9gDkttcOXnQ/3H1yewIqYX9gC4Qq74iEk5As?= =?utf-8?q?vHrtgHCYY2lG2SmY+8bnfD6uY2Nv3wjbiSrRAslVwH0JdoO8S4/oWIZNd25DBqycR?= =?utf-8?q?+CBHtajacx53HBux5MHXClYVwxSduzrPEfirMMAzCYzurZlUV58umvYaj3VAJFE50?= =?utf-8?q?cUy/nI30VtVYz6EZpauDaAhckjbqpv7jugovjJe4tVqR8MMupjW/pRhYLZTIQyLEm?= =?utf-8?q?Mcrgy+fkcYD3zGH1HWDqp4x9uDm83tv+04B1ztjZcznc+Gw7bcK1GfXfDclmTIPcj?= =?utf-8?q?rhH0RYbGFol3LqdTDdO6K/M1fTyDMkj0oE6/641fvDeWappZ2j0J3yZDwxZbOunVD?= =?utf-8?q?3du7Jh4w1oC5XsExQwkgxrPxQBAaz0h5LOtP+tftyES7CiO4soN/e00yi5RwgLHQ2?= =?utf-8?q?SsLU4ZiNjRNSJFm443lm58BMFgfkYuN4xfjgLv7u06dE/DBMnsbTOXre81fWrVoWh?= =?utf-8?q?FHnlbQ7JJ5DCPgSTMr/q/qHdFbltHJWHvN6gKQztZ9opxc4W6PzR3GLjViu33rCiW?= =?utf-8?q?3tvnR61eUBvJfBAJReSjBhvyysvwRHGmLfMEpB38vz982uUmu1YLIptZkzaG0g8co?= =?utf-8?q?slwLYu1qH7AQ4d9buAaE1f+q2L3RzFynZPvHzamkVmbAfB5mCy4RNxysM6Ll3MOIG?= =?utf-8?q?sRJaCM8hP8vJ6/+DVYKm3aKDG7pEwvkR6PjCSFbu2hyxMn3vm3pGtGvnhioJr1G5G?= =?utf-8?q?A21uZqxu3Tb1QKmMxslVSUWTrT413I/J1s72Sh1pPWqRWBAijfO0/7psYtEacM5OS?= =?utf-8?q?liLlXxSbcjtI8BHia/lakkkQz5vSiKKs1zHCCeOMAnsJOLsitCryhBSDzujqZQ4eN?= =?utf-8?q?KaE60hKrWUxQHpBgUwy8nxOE/5MB4wv4PtHOU9/p4CV3rHzyXAhCAupq1u0g0KtYL?= =?utf-8?q?VNDkuJNaHZdgCtJTzcCA1vMbgQTJTjtcaxW2ilDNAh5wvkHKsxGWEo62PvFMP/zxt?= =?utf-8?q?X6f/oAZYgh4/WqKxZ6JbpubmscUKIkDWndLLtqa/uQVkh3dnX7O4HxVxFSfFE9ISu?= =?utf-8?q?L4xTb4b+9y3utT2lkstMYG8o+1ddGFl/1U7UJh6eSHPyKIMhD46Se2RtR0vC69CA4?= =?utf-8?q?YQsJahm+fLQ10h4Z44QXsxLW47Jw3G1OZGUh0OeqWZVWl/QqQf26h7VErJNoZ5kcP?= =?utf-8?q?MT1i97EH8ilIHrcnJ6Y9c6i4IaMbql927G66uVfSJlH2plRSWA2dLBgsWQKpDPHTf?= =?utf-8?q?LUy91wzTcgpqDlh8hZ2Bp7t15j5hBJq/m+QH0n7jmtsfs6tdptQPqzdmd0al77wY/?= =?utf-8?q?A3Ebh+1OOrno?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b7f7cd7-b65f-4038-18e5-08dc38918416 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 19:14:41.7970 (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: aRWsqB+FFIZFNWn98VQEzy8NjTWEZYk7UQbdFbFqfT3pPQ/DON6L0f5OsKskaQF/nzMAL4d3X+8rzMrlnz4qHg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8887 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792171321334795728 X-GMAIL-MSGID: 1792171321334795728 |
Series |
arm64: dts: imx8qxp add asrc and sai
|
|
Commit Message
Frank Li
Feb. 28, 2024, 7:14 p.m. UTC
Some sai only connect one direction. So allow only "rx" or "tx" for
dma-names.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Documentation/devicetree/bindings/sound/fsl,sai.yaml | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
Comments
On 28/02/2024 20:14, Frank Li wrote: > Some sai only connect one direction. So allow only "rx" or "tx" for > dma-names. "one direction" was already allowed. Explain really what is the different, e.g. you expect only TX? This applies to all your recent patches - they all have insufficient explanation. Often they explain what you are doing, but not why. > > Signed-off-by: Frank Li <Frank.Li@nxp.com> Best regards, Krzysztof
On Thu, Feb 29, 2024 at 10:46:38AM +0100, Krzysztof Kozlowski wrote: > On 28/02/2024 20:14, Frank Li wrote: > > Some sai only connect one direction. So allow only "rx" or "tx" for > > dma-names. > > "one direction" was already allowed. Explain really what is the > different, e.g. you expect only TX? Yes, there are one sai only connect tx dma channel. So TX \ RX \ both TX and RX, 3 kind combination. > > This applies to all your recent patches - they all have insufficient > explanation. Often they explain what you are doing, but not why. > > > > > Signed-off-by: Frank Li <Frank.Li@nxp.com> > > > > > Best regards, > Krzysztof >
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 <Frank.Li@nxp.com> > --- > 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
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 - - const: tx + oneOf: + - items: + - const: rx + - const: tx + - items: + - enum: + - rx + - tx interrupts: items: