From patchwork Thu Oct 27 06:03:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 13021634 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58646C38A2D for ; Thu, 27 Oct 2022 06:05:52 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 80B7833EA; Thu, 27 Oct 2022 08:05:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 80B7833EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1666850750; bh=77tWth79OOeXfvitTyW1VY30HeWGphaqzuJAoEQbYdY=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JN/tuX53Xgj7J9AH1Aru2LnGZJ/7yco39ZzF9INfj8sihv/3rozMJzE1gmjrI9uHK qrq9ej+ATb0kUJjDNfYkQBmXV0SgFdOJ9rd8bcAUV4B3yXuUjo5TZULHqRw+p96pVY fVrxEBhQzBKoVu65eumCHO3Ez696qCvIuNXcegfo= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BAF87F80559; Thu, 27 Oct 2022 08:04:19 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A5829F80557; Thu, 27 Oct 2022 08:04:16 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2073.outbound.protection.outlook.com [40.107.20.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id AAE71F804D9 for ; Thu, 27 Oct 2022 08:04:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AAE71F804D9 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="HVkcb54W" 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 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> 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: R7Esh/cu/m3GxV/eC0PyUimBR+7a6HvDI3IrF7ueJCDBW4R2mYkovrGqGl9cZBhKQ2mxfLPHXmC3mnTAwzCk+gjao8YpvK0G3cQGzJrdXcdRkKW8cMRGGYCo0v0FgHWa8Q6IV0BGVlrRsDfNzXYSBtcMDQvR5hyVLzgWFoIlunIoH8UGe3ruOKIu6g56OVaPWh9Nk5Lwb7muCy/E6ve++gkV9HuKupuLbauwd5GJzWOgANk/urfdlwIegETnhrlFBUSKQ/g57t62ZWLCr2PHA/qgNasTOlG+adVXOz4ypnRgp7rnoS8uHZf7x5ChJd/hxnqscfBEyWBJe3fb+hO09eKjdQoRF9mFBKO8IZYyps2zB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Ee9Aq5iUleg1hMq19lbfG6saUDweDFIA5dp+Ui3rMs5uMV4yIT6gzWd7IG3o74mrv3xaQDR9LULpidtc2mjGpii+t0M/2bwaGIz7WDNZHXGcF5WDeJjlfEqnIxjCay7GdJPBTZtsfMoKgo+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 Cc: Chancel Liu X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Add compatible string and specific soc data to support SAI on i.MX93 platform. Signed-off-by: Chancel Liu Acked-by: Shengjiu Wang --- 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);