Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2168834rbb; Tue, 27 Feb 2024 12:55:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVvGeM5ByTXxvHD6igzduPgaojIZW8sOiGq+tm/lGRbPQjhhRIZTp/eTYBSlyzhS9u2ZNQHpjUC2qTgWudjvxym898XTMNBi/H7VR6D7A== X-Google-Smtp-Source: AGHT+IE1UxKvPhM1lIFPC5uV5oYanTL83FfcU+GlfONQfehbatubaye0ubaCFu1adh0PeX1buIVi X-Received: by 2002:a17:906:36cd:b0:a3e:f79e:ce56 with SMTP id b13-20020a17090636cd00b00a3ef79ece56mr7039912ejc.45.1709067349844; Tue, 27 Feb 2024 12:55:49 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e7-20020a170906248700b00a3e883d717csi984877ejb.383.2024.02.27.12.55.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 12:55:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84001-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=CtNVoj2L; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-84001-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84001-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 717AF1F24855 for ; Tue, 27 Feb 2024 20:55:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7ADAA15099A; Tue, 27 Feb 2024 20:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="CtNVoj2L" Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2052.outbound.protection.outlook.com [40.107.7.52]) (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 65E8E14F987; Tue, 27 Feb 2024 20:54:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.7.52 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709067293; cv=fail; b=Wxmh1GJosXB5/ICaPDktR7zyWOkStTJDSy+YrQJR1kKrqbQyFjG9z3bkWPEOWCff616ga6yKFOeM22i52y9XXXHP+nogwYKga4nevC+vBEIIKC/e5V4dyvfH27Hscj0xiLUHhb/ia9luF8gfH3uDYXLD5MlB12U2PJ8lxcL9zs4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709067293; c=relaxed/simple; bh=Zr5TShgZiJta89p9a8K0vtH/7bUq8E+U8vmOaScyf2Y=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=YphTQEIf+69NJ8JBkmkGGZMU05DYXb5IGOVy8qJ9S7i6CZvZNYAFjUvriuj3ie+N0oQelaz4td6ZH5u49OJy+9EDgRqucNSk55T9aFZ/Zxph27wYbb6HNuJgxRHkiF18dupv9eqoT6JSI+dwGLStFhr6BjX0pKokmmT0okQRkpg= 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=CtNVoj2L; arc=fail smtp.client-ip=40.107.7.52 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=CijGUOuSLBQMHcrutdLp+zZ3FgrJ3GO5wmsA6A6qC3YqAJHscqQghjRNAfCWXdHZ5UuWCwEUJmBe8zFMaICiRMTtvGr/GBEhNw8SkDVipWDZawp/Ps0XInmnzRYDWxDHvvTELqcwNTFuBoLS4sLO3+PJydAjRhh9Kz82+fzzvNneNn4cgtWSUuTFcONj4Vc5M0teipUbjWBZe5pX9tAWcJJfEVv8WCdWbeXLxS/P1xc2a5jzA3wj5/cgWV0tJqQyvAFAEPxsVbR5v+s3EkcViwMSclJvvYrMRvyxnehNk/iNXQWnoVCB5GVGMUVVk+RPBrWkEgH739MQWbIfTG46/A== 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=CkU51d83z+fjJK1AYSGgzHsmFzk0pQ7gHd0pqdv7mgwuXXKmHduBHo4aELahyKbURpOC4O04iauO0LkvPV/v4MYTOH2OJdwmNAEhW81SgAxbyx9VhgA9hkMK11bSlHdAEQWGnaonFg6naWM7vZmBqBxqip+M3R2Nw/YstGpLaILokmg8aXvAs+wjXLN3B/VlmlQekfGKlsqcqqyv5hP2AP/lieK0+iL1nN/mH19c0TLJj6FG+mANanZGFrC+9FPCZoK04TBV0u8/76tGt8NmLlSYi90CGTXk3J1mOFMhIlr8t72Mrjqw+QdHgVWsmatG24xWmeLDl/7/t/X01wW/dQ== 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=CtNVoj2L5i1jswdph1PxBcKz2jl0l4bCq9jlob5f/5ZzDEvMyibwplS4lV+7bAhGNuCFZ1uKiB2uj6TnofoJyErkL4cwltI7BDI6xoNRYqUXPEgQZmIcwYJIZ/MY4LjZACUc4JYC0aDa8c+bDiyzVdajTlEZT3qxgDY8Ov/he0M= 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 GV1PR04MB9200.eurprd04.prod.outlook.com (2603:10a6:150:2b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Tue, 27 Feb 2024 20:54:49 +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; Tue, 27 Feb 2024 20:54:49 +0000 From: Frank Li Date: Tue, 27 Feb 2024 15:54:11 -0500 Subject: [PATCH v2 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: <20240227-asrc_8qxp-v2-3-521bcc7eb1c0@nxp.com> References: <20240227-asrc_8qxp-v2-0-521bcc7eb1c0@nxp.com> In-Reply-To: <20240227-asrc_8qxp-v2-0-521bcc7eb1c0@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=1709067274; l=938; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=Zr5TShgZiJta89p9a8K0vtH/7bUq8E+U8vmOaScyf2Y=; b=qIXIkvEEJLjFUSIph/s/46TFmrsyD/KLjyWjM4PJmRf2Vyl289vaOgNzHPiuBHbmfTg0qGcDj e7H9niyHM6BD09znC+9Uh4hdkE57zYwDhJAjntmyg3Zh5CGA4K5kf0B X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ2PR07CA0001.namprd07.prod.outlook.com (2603:10b6:a03:505::11) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|GV1PR04MB9200:EE_ X-MS-Office365-Filtering-Correlation-Id: f33a30f6-16a2-47b1-61d6-08dc37d65661 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OzGT6JBfV9yAgaExqBQdvC4JtoRJqOsKKEPC+/tdXgeTjGOk6A5Ekf8o9zmVtosdF9Md0qvZArnWMiIenD7yjyae2MbDysCKRWI5R14xNhqZXhLfHHcR98YOufmYj3+HqOqGrY0vLg5L0GovQiwz8L+TGqJDE2QIFwjWcabMKqe/lOqd9HDx9ZbDsf1rQ+vPpSrle3t+4TSwpfAtbFIhAakEjniqkPjJQpWSN/tC59jzydtJORkTObYGSnL66H/+LioH7wfGiQB0UpJFy+N3U/PEFPEXDKjwt0utn+WbgUkDjxxuuBr05kmPkxEpxdRai0S7VCueXvxJt/qFIvADpcTlOqh5AsAQmSJI6Ct8XxPjgoJtaqVbI098/y7CRRnEB+hiJdvW6sKqqdCZIDrF7D1xSNjDXbytma4wTzqf3efT9ki5UTWEjWQtl5i+pR6+VlvYn4gBYKyUDGhNFeTXNpImuKwCrofaVt1tUbueGR270n7GRaB9lTVURaOnlYEp8LqYGmAxtFL6mW7KQjerOA3s0TAwCrBNCv6Bka5GazXmd3b+eFBOFA1KhwJNrEJ7NB6ym+JeGOaNun5s4haVVWdyXrY95kSt/322a7FVeMLAfnJuiTdjSutnWF80zectENq2x4uEtBWb6mHvIlgb2GTXFapJ6Nuz/flG2/8ALKBYBWsvKpma/axw6JICzOyQpQ2H2nOMGMbasp8spYfr+l4urIWMfZkk2e1SirFp3ec= 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?B?TUR4b3ZFZ2xjc1BhblBTSlJFTXR5ZGpEM09zd2RCMU9IZWRvcFA0a2VrUVRL?= =?utf-8?B?QUhGSEd6MjJ3bXVsM0xDYnowaEorL3FRemhESEtOTU8yTVU1eE1TcUtHN2VJ?= =?utf-8?B?RXQwY21nUXNJaUJuT3NVOGNOWmF0Szhic0xZQzZpVWIwOHh4bVBqSzVLM0Vu?= =?utf-8?B?emxNM2x0UW42UkQzbzlWYW1xTnQxOStoT3JxTUU4OFEwQmZtLz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eW1iMHFuUkMycEJoZmtVdHk1d0FtdUJSVktzN0J4YWNYZS9HdUJL?= =?utf-8?B?ZnY3WjVZcVJ0dkxiTFltVWhmUjZhand2eklKNHQ0bStRUnZmSjVCaFcyQTNB?= =?utf-8?Q?hL9+BXpKjtcUS8Qv2vUNcuKjd?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f33a30f6-16a2-47b1-61d6-08dc37d65661 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2024 20:54:49.2450 (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: gpAZjjRLW1LUMRYnRNQ4BhRDIQWhJbmBJhENQg8DWaThtX0ErGJjMKUTLSVx7fJVQOqeuX5EurhbvvpOrzztMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9200 Some sai only connect one direction. So allow only "rx" or "tx" for dma-names. Signed-off-by: Frank Li --- 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 - - const: tx + oneOf: + - items: + - const: rx + - const: tx + - items: + - enum: + - rx + - tx interrupts: items: -- 2.34.1