From patchwork Tue Jan 9 07:55:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 761515 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 5A590C46CD2 for ; Tue, 9 Jan 2024 07:59:36 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 52118741; Tue, 9 Jan 2024 08:59:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 52118741 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1704787174; bh=ZKsJmXNN2utas8n19ovALVGOJ+quj44V9vnmc1n20AU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=e3PBPsydC5w0dCsBKtz4wI7mS0W8Px0Wtay0NZhWf5pNAheBWnnfVR4o4xRyP9ATX YtuAZpaIbhc5HBnzjI9A7OwisKLHpiyMoPG9C5HMGew+bJG1YpdRGSJmKoDOzASdq8 iNbMqp4O5gWGqturVh9Je+N96rc2KZHs8w2rk+M0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id B05BEF80086; Tue, 9 Jan 2024 08:59:03 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id AB143F80571; Tue, 9 Jan 2024 08:59:02 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 43186F80254; Tue, 9 Jan 2024 08:57:06 +0100 (CET) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on20600.outbound.protection.outlook.com [IPv6:2a01:111:f403:260d::600]) (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 C5B75F80086 for ; Tue, 9 Jan 2024 08:57:02 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C5B75F80086 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=AQK0wc3i ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZkRZGBJn/VvLnCYM7QEcVxXRJZNhj0cXmGtlvpez9a32sI0WofjbW15jic03WpvzjmDPeiLIkaY2aeD6Z9pxExFn080/B18HEC0l6YWfMYeMO6vpu3p/noZ+uVJ16LkcuWj7NQZW8/CeJ0sIuse5HaynDi03pxOs2FI2ITG9z8k2j1rIAMYJGf/ZOQDoYMDFgopo//FlgjrijlUU61jByX1Ny9S0Q2agNv3C5pFbg/oUiKmP+s4sOa8+GxSjLI79VfizZpy/5j94g1qWdUbHnjKf9MND49iCilB8fKiiQFeB9Hzu0GpoO0RGbi1JUq02QKKIkiycra5ujNU36ehtmA== 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=0mBacVnmmEo6nSbLcbfW5aP18Z4DRu9hu0bQFtRtQN8=; b=X7UQpJZi2JeDhTNcuT7jxKXltgY9mUO15+z0jeCEQnckkWug6LrBO/8i0DaF5DLu/JSLn2hJ+XZRlv1d7Qbc4bXjQs5zEP+Qx3yZ09KGdCYqo2Twd6xkjIyiGRVi467v4rnVdbF9rsDgCKRFhcS9WL/d5NiEhtzn2LP2jZkgww3ELzf0+D1GNVrn3t+tS/6ffwC5+SIKrP4gzv8H1OztU0LUgoW6Fwqcqq1seZ8D6vcLsUJimfyx/uDyS9dzWwPHtLUCu87dIAOT1EthMwX1/I+i5btOcJEc+DZ8ERthMW1kOuzg2KI9S9fOjHayQAiTbLgnCnSyocqhCUqGQEqFLw== 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=0mBacVnmmEo6nSbLcbfW5aP18Z4DRu9hu0bQFtRtQN8=; b=AQK0wc3i938UO4h+Morbt7iRLQPMqbPY6zLJvGEqraaoXZHcOGqpSqVkFiXbxaZypwCxrD9J/ahWkrLSo/ndPselyjUmoA6SLGcI2lEmaS8n75F+1hFWAmSY8SW58E2ss9w71LtnNljlisE4mn0NBMQULkFq1bQodqceD8oqrRE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) by GVXPR04MB9994.eurprd04.prod.outlook.com (2603:10a6:150:11a::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.21; Tue, 9 Jan 2024 07:57:00 +0000 Received: from DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::2a3c:9a90:b09f:293c]) by DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::2a3c:9a90:b09f:293c%3]) with mapi id 15.20.7159.020; Tue, 9 Jan 2024 07:57:00 +0000 From: Chancel Liu To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shengjiu.wang@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org Cc: Chancel Liu Subject: [PATCH 2/3] ASoC: fsl_sai: Add support for i.MX95 platform Date: Tue, 9 Jan 2024 16:55:50 +0900 Message-ID: <20240109075551.870001-3-chancel.liu@nxp.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240109075551.870001-1-chancel.liu@nxp.com> References: <20240109075551.870001-1-chancel.liu@nxp.com> X-ClientProxiedBy: SG2PR06CA0184.apcprd06.prod.outlook.com (2603:1096:4:1::16) To DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB9498:EE_|GVXPR04MB9994:EE_ X-MS-Office365-Filtering-Correlation-Id: a87b1e1d-b0ca-4498-db0a-08dc10e88f35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cm4UlonQSxV28XpsQlh9hy1OjLyXW7l70IKkvber5YOsgWxyIDiL8HikviJySAlpwHPdhGHd/8oMdX8pY1Lt/RjiQzvU3CsWOFayOY2dtQlyMxWTcZROB3kfFICp1mJ1BoQc7ZgoV6xTp4cuXauxQiAZGsWvlADBtVE+68LnsJgW7c+4P7n8Kfz0SAvpDC0G1jwzc8Yuitj6lnrwRV9Y7UHQbsHswjF0IpFLyJLAAIB9x+/1jjL2wY3ci9bYxa/ndESh1AqTGMh1lgdQCduSz7DmNL00uAcFu9MZXHuq3TH8DppOwRBVDyw40BsdYnd+ZKVsfUSh5dEQqgAqn5s3swavRM781QvpPSf/RhoyiSoIrAWHDPi3ygSMmXdSbqo4TkdwESsYLbFM7v7RfDPNRHde5G/ZbQd1UCy3p4n7FqBWSnEuDZGXp9rl4bZN5iwYzhehGB21MMnzoi28FLLLGN0/yvEbVVLQhIxvkwaahx95SC90T7uMeJ1L0X8xyGNT61HtLy42mU1+2T7gLeRgH4lIMLu4fgufvyMvqtvAspueVqc1RWt4ap4kX4G/5Q+qn2XK9tnUuRKJjQOUAiRQgxmqx2fG46TaeEg02cGRyJuzZaSClDdoy3DtrpHIos4LNtxZRRfyHQId2ABtzu8cpQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB9498.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(396003)(39860400002)(346002)(136003)(366004)(230922051799003)(64100799003)(451199024)(1800799012)(186009)(1076003)(2616005)(26005)(52116002)(478600001)(6506007)(6666004)(6512007)(6486002)(38100700002)(921011)(36756003)(86362001)(38350700005)(2906002)(7416002)(41300700001)(5660300002)(66556008)(4326008)(66946007)(316002)(44832011)(8936002)(8676002)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kPoIRugS3odKFGVdOqL0+60hb7d+bTJc6kgwlqo2JYdEdKlFruuUIjCiztPgpKglpv+86I+LrVcRgLOASKTIQJ31kpylOoQ8GkohDLBqjwze9DL0dVUci5BcQLQaMxhE5wSnw8rKkcTFuk3vg8gz9nEqfuGTK5cN/TFbfJ0Z/l7gq8wrHHdCOHCYs0xDtEfBuJqouRY5AnCrf1VmgRFQ3VY4GzTlwLoi7Zksz4FEMGMcVx0pAd+yjiqVAcW0KarVPTKMOwogW3Xg/UMnfGO+G1TwQlXu7pQFJlcHAQLONjTNnNTHx3epU6lFMczV+VqDFdmOzTejG5F5nq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ogE2TpsvlQjg0jj42P3dJMobMbN3SS3bIlfLyu+8H/Mu4qBeaQ2prZIF3AizYTtrBWorRw6+zdacBLPBXcUuX2M9l+p060sAhRBMGDfNMpf0cWSGVGRayBbRSkjud4GQ9AZMilrWZSe837iFQqyy0SRnQvCUje/Ui9MdPD0bFjWD+0Nf4GkXd X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a87b1e1d-b0ca-4498-db0a-08dc10e88f35 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9498.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2024 07:57:00.4085 (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: pZmNK0/dmN9NRH447SiH66K2IG/E34Yx09X4lXFNCuiloekpNOpJmuw5W5jaljiCeGABHK+jVz82zh+MyYjOcQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9994 Message-ID-Hash: DRF3KBYSOKOBXAIPFCEMNBPEJLST2AYG X-Message-ID-Hash: DRF3KBYSOKOBXAIPFCEMNBPEJLST2AYG X-MailFrom: chancel.liu@nxp.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add compatible string and specific soc data to support SAI on i.MX95 platform. Signed-off-by: Chancel Liu --- sound/soc/fsl/fsl_sai.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 546bd4e333b5..0e2c31439670 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -1639,6 +1639,18 @@ static const struct fsl_sai_soc_data fsl_sai_imx93_data = { .max_burst = {8, 8}, }; +static const struct fsl_sai_soc_data fsl_sai_imx95_data = { + .use_imx_pcm = true, + .use_edma = true, + .fifo_depth = 128, + .reg_offset = 8, + .mclk0_is_mclk1 = false, + .pins = 8, + .flags = 0, + .max_register = FSL_SAI_MCTL, + .max_burst = {8, 8}, +}; + 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 }, @@ -1651,6 +1663,7 @@ static const struct of_device_id fsl_sai_ids[] = { { .compatible = "fsl,imx8ulp-sai", .data = &fsl_sai_imx8ulp_data }, { .compatible = "fsl,imx8mn-sai", .data = &fsl_sai_imx8mn_data }, { .compatible = "fsl,imx93-sai", .data = &fsl_sai_imx93_data }, + { .compatible = "fsl,imx95-sai", .data = &fsl_sai_imx95_data }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, fsl_sai_ids);