Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp189195rwi; Wed, 26 Oct 2022 23:08:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5H1k7fJccau8XgYVlnQKQtMitbHZHn4FwHshHQgri2Ck2JLNnY/V+qd1W1iN9PU4WyhCaR X-Received: by 2002:a17:906:844f:b0:78d:8bd1:ee8c with SMTP id e15-20020a170906844f00b0078d8bd1ee8cmr42425313ejy.262.1666850913390; Wed, 26 Oct 2022 23:08:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666850913; cv=pass; d=google.com; s=arc-20160816; b=kEJCRde2J35CLq1Gq5NWbWHjnriw3uy3p87i/ooXKVXou/NVNY1gQ/Vwc+YQ95N+56 sAYxWbc2kwAOvaA9o2BbBx0FZw3dw59lIKQouN45r3cHngWz1qXBDFI+ozfVdlDxUO+8 7D9miHo0W9qaG1Ltd9lYdUfioKvC4hdSP1ywb/G2igKkmm8p+sJj3e55WoMB4zSV1Km2 Q5hheSmLLvhmGBMNxMWHUkFyowSFf3clZiWJznhWi65Z2ZWetz2wDpVMCIx6z4pQCOs0 8C39b6INelCp0G9mDrkaxrnMpUcr8AMUQ1q8kdTohwt31nnUlKfx1tNOWjG1sCP0zjbX xfJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n8D6fK94z9bkr/WCLrzqOXpjsV7zmAzm5B0HWwNZVS8=; b=DbVwFub8Tle0soThemUQ89nM0g8kK9ze8d4zuRa/vbXrT97B6xDPPeOxZhPpOiFxre 4xywci1cu86rnE3YYRj4TGKjLVxyYDD44KZCf/2qVbpQOuYe8Cknpuw552cNE8QfAzLB LhYE8s1yg/9d1nsjJBgywRVo5P8A3GrM9Um6W0xNKx66RXOga6deG2kHMWOBPndFQ+/9 SS/2Gbus7bMeG9t/2N/+90YmMQwB1AK1WhpsryzvyFsZUZwdWrA83DKo2zio2T8Cky3W DFQYSmt6nXt0qLg6WGr+M56SkPSVaUFxxvM5tP3ceUNU5X4eCPz4s6hrPannZaW6HBOo qZ5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=HVkcb54W; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s19-20020a170906455300b0078d44c5da0esi469642ejq.667.2022.10.26.23.08.07; Wed, 26 Oct 2022 23:08:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=HVkcb54W; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234332AbiJ0GEl (ORCPT + 99 others); Thu, 27 Oct 2022 02:04:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234518AbiJ0GEX (ORCPT ); Thu, 27 Oct 2022 02:04:23 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2046.outbound.protection.outlook.com [40.107.20.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3C8C15F906; Wed, 26 Oct 2022 23:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jm8aJwL2EasBQoDDm3WhfD0CSv3mz/1tk2z8iu06L60a5biie7APXTJN1HIihjhlMPgrPjDLuSBmxABhL8r+YQDNEXeULIciLheWs7WGTn/2L2GzLrvwEAKwyOAFLYGg8+dOm3QIevH//eN+7rD9fTJ3uFem04emRCliMffgm8mqupjIkQvkoJqju1v5/M+FODRDyPWcS2X8vuJ9h04plyz1gz/J9BRYnmn+FF5hZu7r4OMxUwH8ooFWuVa0M0nWsogsPWT3G+9LqkKcO2UVYpLsZ0WCU17K9+vMkA+RxfWEREglyg12+oQbEL4HWf1CLzpLADazBoC83UsAIdbQxg== 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=n8D6fK94z9bkr/WCLrzqOXpjsV7zmAzm5B0HWwNZVS8=; b=Lvs1oWQI7oasSkovEJlgSgjWsoHXQeWRGW/X8H5BydbhgjQFoOwdOm6eQLxnXv3fsBWWTkf1b0n6L2GGuIGajc+TorqNjdfJJ7uITwzfSK5plD0vJzX5H/RU5KH4pbcat4evmiNHP3MZYH67qX7zUEycq1Dc411TPgwVNfKagneS9l2Ib0hPQYN8UIIag+uY8YzoMlCiOPbbaemCLZSBXPTT611zJxJNnhJfLEcn0SQ850UcuxwAs9cpMyE6n1H5V2BQ3srfDw0zqwNNb2BB1lVZO5bnD9XT+/JXslw23/u8/Uz2QmK8CMCtlr5MOFoL/58QfN/K6UiXFq3k8ILHvw== 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=n8D6fK94z9bkr/WCLrzqOXpjsV7zmAzm5B0HWwNZVS8=; b=HVkcb54W4xRzNKG29G4XcO12XA7mWoDPvmng7uJbi14IAX4EVHQJYhHJ0Qujdiy1iqT/Kkr4zpltb28GWQtoZsysHDfhnnNZrsgGHv8IZvsH2rlWRw4wrbOIs6Nasi3KQ3RCucPdVu86lenh+ZTd4D4qxRJEipEzY2aDbtoRK78= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:46::19) by DB9PR04MB8186.eurprd04.prod.outlook.com (2603:10a6:10:25f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Thu, 27 Oct 2022 06:04:04 +0000 Received: from VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::33ab:7f2:7263:ee79]) by VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::33ab:7f2:7263:ee79%6]) with mapi id 15.20.5746.028; Thu, 27 Oct 2022 06:04:04 +0000 From: Chancel Liu To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, shengjiu.wang@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Cc: Chancel Liu Subject: [PATCH 2/3] ASoC: fsl_sai: Add support for i.MX93 platform Date: Thu, 27 Oct 2022 14:03:10 +0800 Message-Id: <20221027060311.2549711-3-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221027060311.2549711-1-chancel.liu@nxp.com> References: <20221027060311.2549711-1-chancel.liu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR06CA0017.apcprd06.prod.outlook.com (2603:1096:4:186::15) To VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:46::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB4222:EE_|DB9PR04MB8186:EE_ X-MS-Office365-Filtering-Correlation-Id: 920b2dfb-4748-48da-eb88-08dab7e10d27 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qzLb60caBrx6Bf+/N2Aj4vktF4CEjifSGtxdwv/WVHK0GawSV0p0JpAJ8qWNr6+758NqHJwZiNRl7E+yqncKez4gq4N3eSKfOiC4cQgE9qY40P7rxUdsOG7Xxd3gunn+5pHdL3g6a1vFtJd8Si2IbxyeBTj1PQkkQAThGRDz9e/T5Qid5DP4rlIbYoJuZXw6yqKmFvse2AK2OFlOmF6blRxVFA+JkzaEGxsHSD3Xk0zBSlqNN4lt87l1UI+r6PQuhE2EVTB/YwtDNpRrFJKOXNfLqDMJpYc8fCqB2hRvPQ/ssM04QxdxgabWaUbeEzRUrm4ZiOYjm19NwwbG2IgtUY0nSe9A/DeWo3z5kO1wqfTiiRWkxgigZ6296cvtBjH5sYRj9l5ALvpORRKVllOLMbR+32NHDWlvv5pb4YoB4OahDSRQqHh2h+sWFT+piGheUq42YW4y/Nf9EV+r+s7V+MvvpKKVW6vsXtdSxJmDldgqMB1jCvIuK74CrCbr7IsYSeqwjcs4AWJ5mFT7LcVVAZAxbmPT8WJthleQ9aBziwYY4LtlC0UeOzv91WwkIQChNotPG6c6HqheNjJcCTbMOj8kNjtF7d1k55VRSZRypAh+BUekVt90+C73k0Mb2pra9CdMeaxzrN9CGVYdg3DHQBLzEyNXA17D2EHvya4xn6FKUt9F1nmYm92Q4cJPLZx5M/uRW0Py9G0KIpu9XQp11KgtFXfG7ahmFjHX+CiVxkXygMfU39CdmGZ7lSM70fbidbd9WakaseUYtu0XmEHs9IES4A9cXtI41kFVaZ30V6g= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB4222.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(366004)(136003)(39860400002)(396003)(451199015)(8676002)(66476007)(66556008)(4326008)(6486002)(36756003)(86362001)(316002)(66946007)(2616005)(38100700002)(38350700002)(6506007)(26005)(6512007)(1076003)(52116002)(6666004)(186003)(921005)(478600001)(44832011)(8936002)(41300700001)(5660300002)(7416002)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?R7Esh/cu/m3GxV/eC0PyUimBR+7a6HvDI3IrF7ueJCDBW4R2mYkovrGqGl9c?= =?us-ascii?Q?ZBhKQ2mxfLPHXmC3mnTAwzCk+gjao8YpvK0G3cQGzJrdXcdRkKW8cMRGGYCo?= =?us-ascii?Q?0v0FgHWa8Q6IV0BGVlrRsDfNzXYSBtcMDQvR5hyVLzgWFoIlunIoH8UGe3ru?= =?us-ascii?Q?OKIu6g56OVaPWh9Nk5Lwb7muCy/E6ve++gkV9HuKupuLbauwd5GJzWOgANk/?= =?us-ascii?Q?urfdlwIegETnhrlFBUSKQ/g57t62ZWLCr2PHA/qgNasTOlG+adVXOz4ypnRg?= =?us-ascii?Q?p7rnoS8uHZf7x5ChJd/hxnqscfBEyWBJe3fb+hO09eKjdQoRF9mFBKO8IZYy?= =?us-ascii?Q?ps2zBu3G9vZwXl1MJtFBnkZO7Pdnp/W2dd6AJXcgwBy/mIZHtN+Wulvf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3NjcIS/jj61kKFwDdiUykGWbtBYQGPyVN36XKzrvMcL3cRuG?= =?us-ascii?Q?iiFh/DAjxuCzlO6mBNLPRA5nUHai7yxt/ydiOXblrrMqt5ChCiuFO8PwgO/U?= =?us-ascii?Q?2Hrc93HOmETSe/OtCgmx+emRhemP0Ug7NJTK8WMArfhwvucEe9Aq5iUleg1h?= =?us-ascii?Q?Mq19lbfG6saUDweDFIA5dp+Ui3rMs5uMV4yIT6gzWd7IG3o74mrv3xaQDR9L?= =?us-ascii?Q?ULpidtc2mjGpii+t0M/2bwaGIz7WDNZHXGcF5WDeJjlfEqnIxjCay7GdJPBT?= =?us-ascii?Q?ZtsfMoKgo+guawQ4N3re7Sma6HnZHf8k3sjV1JfB?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 920b2dfb-4748-48da-eb88-08dab7e10d27 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 06:04:04.4309 (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: /ZT5AWLvrkmH5Db8vlAtcV9AwBb17kflKn7OvnjXGmdR8xFOZvQ1UnUflLlBo+GpOckRFodAFrqi95V6MoeBeA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8186 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add compatible string and specific soc data to support SAI on i.MX93 platform. Signed-off-by: Chancel Liu --- sound/soc/fsl/fsl_sai.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 81f89f6767a2..68e1cc4c369a 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -1579,6 +1579,17 @@ static const struct fsl_sai_soc_data fsl_sai_imx8ulp_data = { .max_register = FSL_SAI_RTCAP, }; +static const struct fsl_sai_soc_data fsl_sai_imx93_data = { + .use_imx_pcm = true, + .use_edma = true, + .fifo_depth = 128, + .reg_offset = 8, + .mclk0_is_mclk1 = false, + .pins = 4, + .flags = 0, + .max_register = FSL_SAI_MCTL, +}; + static const struct of_device_id fsl_sai_ids[] = { { .compatible = "fsl,vf610-sai", .data = &fsl_sai_vf610_data }, { .compatible = "fsl,imx6sx-sai", .data = &fsl_sai_imx6sx_data }, @@ -1590,6 +1601,7 @@ static const struct of_device_id fsl_sai_ids[] = { { .compatible = "fsl,imx8mp-sai", .data = &fsl_sai_imx8mp_data }, { .compatible = "fsl,imx8ulp-sai", .data = &fsl_sai_imx8ulp_data }, { .compatible = "fsl,imx8mn-sai", .data = &fsl_sai_imx8mp_data }, + { .compatible = "fsl,imx93-sai", .data = &fsl_sai_imx93_data }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, fsl_sai_ids); -- 2.25.1