From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 92DAFC98328 for ; Mon, 28 Sep 2026 05:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=a1d+BX0LWDOmaxlZOSsFVl4teabkjDG27YohcXb6xPY=; b=vOabBQ5P47PY+gp/rFhwcK+Opz vMtA3CXsb/wmoySnGSW3xyszUKGrU1Jfl9hXA2VoYySy1FwI0r6Fvu1H7f4HwvjZdmVnBgASA/uB3 +efeq5wdNBLt+Sh9t+jzQYggUcfLrtRj5nfJkjoz+Kyc7LAtVqpEsT9GaAH/+TYPowFaas46iR9xx kxzwuNbojUnj+M2vAiFW4cwbo7knBNBeGODBMTDGrgkKA016QXibD4qqSFUqQSMCxF3kMGAGQ2p21 s+LF1A+JHjRav/mWNOi/HLRqjtY1WjJsy/4tyIsaOXKQMMMOyPqbun+c/rdEFuNEXzkpwHlQ3qvmb TlhI0ATA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xB42b-0000000HNFU-1PKU; Mon, 28 Sep 2026 05:36:41 +0000 Received: from mail-japaneastazon11023074.outbound.protection.outlook.com ([52.101.127.74] helo=TYDPR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xB42Z-0000000HNEV-282b for linux-arm-kernel@lists.infradead.org; Mon, 28 Sep 2026 05:36:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=i0U3pNfl31dvguWTxPj6oVjw/aw8eRxWe3s42xRLjsGjjKPhEAZ7CPQc8cfUjXYk9KpwCIsupWrTZTnrY/PpkvpQE7M43g88gxiSgny9WnzhXsboQAj1PG3+NgW4dYxbECR6kHEOef9wE/EW3Y2Z4VV/fGVHwvZl6OYerZ01VkNVKis4UfcTQ93EyZuqpfmPL9xB2QuLYkjlMdLs5/daLt+N5ZGtmYDfkrloQr4nUTt+fheBNhYSRv3QHTLg8omxznk+lLWnQUMmfEPDrA1HCiXYkI+Xn6gO2YG2NuPbKo4hFgNq/aZ0HGhMmTbMA+8jvKBjXNZIOQZHjJ0DyHgbPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=a1d+BX0LWDOmaxlZOSsFVl4teabkjDG27YohcXb6xPY=; b=oQOpGPsZrXFV7zgygcSkmOvU50ZsEEWs3ChHT5d2M8vy8429x/ZuBeXL9HQJI9OitPrUlpx/ox3XLWCBBWBPKIyf5jJNfdZJN+/9K8J48F3zTj72CDgOmBUMA687HocyWFGHpNMnXtAaAsUKdbzAq9qouGnD0P40+tJkSVoCKwwktAkx5ES6KIei5tDsvTgXiabgCkMKc8J7c2CJg2pWDhm1s4CO1hZ1Vwncz38j6f73C2anYK2dcRA6vzzKcxdO61Xt05oKyHVx4i4tiJ4e5Xc0CIYunE/SOWgh6UZRsnT/2OMrBJ0ofjRpYJ2af9tKKuEClrhtwkNzWPm3My1IzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 222.71.101.198) smtp.rcpttodomain=cixtech.com smtp.mailfrom=cixtech.com; dmarc=bestguesspass action=none header.from=cixtech.com; dkim=none (message not signed); arc=none (0) Received: from SI3PR01CA0010.apcprd01.prod.exchangelabs.com (2603:1096:4:296::16) by KL1PR06MB6324.apcprd06.prod.outlook.com (2603:1096:820:99::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.451.23; Mon, 28 Sep 2026 05:36:30 +0000 Received: from OSA0EPF000000C8.apcprd02.prod.outlook.com (2603:1096:4:296:cafe::1c) by SI3PR01CA0010.outlook.office365.com (2603:1096:4:296::16) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.451.23 via Frontend Transport; Mon, 28 Sep 2026 05:36:30 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 222.71.101.198) smtp.mailfrom=cixtech.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=cixtech.com; Received-SPF: Pass (protection.outlook.com: domain of cixtech.com designates 222.71.101.198 as permitted sender) receiver=protection.outlook.com; client-ip=222.71.101.198; helo=smtprelay.cixcomputing.com; pr=C Received: from smtprelay.cixcomputing.com (222.71.101.198) by OSA0EPF000000C8.mail.protection.outlook.com (10.167.240.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.472.14 via Frontend Transport; Mon, 28 Sep 2026 05:36:29 +0000 Received: from cix (unknown [172.18.64.61]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id 5721543B1074; Mon, 28 Sep 2026 13:36:28 +0800 (CST) From: joakim.zhang@cixtech.com To: lgirdwood@gmail.com, broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, perex@perex.cz, tiwai@suse.com, p.zabel@pengutronix.de Cc: cix-kernel-upstream@cixtech.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Joakim Zhang Subject: [PATCH v2 0/4] ASoC: cdns: Add Cadence I2S-SC and I2S-MC controller support Date: Mon, 28 Sep 2026 13:36:09 +0800 Message-ID: <20260928053613.2158446-1-joakim.zhang@cixtech.com> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OSA0EPF000000C8:EE_|KL1PR06MB6324:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: b8a0afc1-8fa3-481f-5bef-08df1d2272d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|82310400026|36860700016|376014|7416014|23010399003|10067099003|6133799003|18002099003|56012099006; X-Microsoft-Antispam-Message-Info: Dp4THVtMSpNsj1JJg5LY/Mpq7JiSfbmSj/QlA/qegogDXyKFlftZX4cDheoNPgB2PEZ7O7cKdoIcWeksjRTcbl3qCKs/pFkrsi/FCmBC2hl76Y9d3WtaEzR+I9F7H6/Z4u5LBEqVqw6szrT3TlawuHHuYvQTPKuGQIuffHMxwvTSiFfDDEMUnY2BwgsCgIjN6kN5k6Z4M/7F4qzNMApmEveQFykq7/RGFp6bTE0VbkgK7T3DwMJC5DjcAGkJ1LD7/GS/qxkuhde82YWG5cpZf+79N6xqJYxtHpEjI2h5DdqCc+iepo53WL9LoT6aB6e7i0QV9u4uLIoUCu3FDIDF7hptD1wWFnfzL9lQJu/QLEHvLvOEWO9n49pcPLyxsajXY8y8227adxqOQ4U+RGngj78ejKFPW+Zp8EG0kdFNXc6IdB7SSKkXXcv71b07n/hbzJ5bYlTO4B23L5dGLTEJ+YPjcnuHM06mkvo/wjXvgFGFxxloK5ydABfrm4zvrgxJjmKy/DV+WYlY/bUwXfsLH2kXXnRBnouEc98NeTSJxDlNUuq7Pgj512uDNBYHFkPuw0eaJJV/7xP3diLynuMjB6ZSZVQCwJPu0ZSConyujF+Gchwm/vwSn8f0zIZJJh86fFFNQToJ+6h1n8q6+LHrqvPpm4wgQfamuipPAhhswvkcCt+DdIsxQeEQNNNV28mZrjHxOZCr6QCJA7/MkXxVNg== X-Forefront-Antispam-Report: CIP:222.71.101.198;CTRY:CN;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:smtprelay.cixcomputing.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(82310400026)(36860700016)(376014)(7416014)(23010399003)(10067099003)(6133799003)(18002099003)(56012099006);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BKah87uJeBUWX9puwPQx1PdfwEQeu/fqTKj0k7QjzqoByxEa8SKApuYMRUxFPn2Lri2wExv+RVzCB6mM0/gJqY8JGBVjqBZ55oExvsHXCi+ZPSLMKkwnEsxQGB+JiwQ8ZOh5T4D/ABf5SRS6oC+SlyK0LRW8enVupHH4uDMVd5dIxzU7HlLJPcLEl9zHSv75ca7u7ZWKj4wLtiDD8U/ueLeo1b3kxhB/9V4NrqTZC1I3Ok8Ll7tAeI5YbtC43bdDAXf9M+X6td8JR+s1A2AziFJSPwUMD5TNfO3euR9NACPZMVAIvvGziwGZ2+O9ooUiJwPPBd4rwbH/atugObHfPD66n/VU1APan1m49c8qJ1HOkZqv36WNrFuV1JUI+AJQsbfnG4dIc6Z75r5HrDAx8gBh3PUXde2eBtHKwuO8xHOfT8pGPz7zBGILR0ybo0Gy X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2026 05:36:29.8515 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b8a0afc1-8fa3-481f-5bef-08df1d2272d5 X-MS-Exchange-CrossTenant-Id: 0409f77a-e53d-4d23-943e-ccade7cb4811 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0409f77a-e53d-4d23-943e-ccade7cb4811;Ip=[222.71.101.198];Helo=[smtprelay.cixcomputing.com] X-MS-Exchange-CrossTenant-AuthSource: OSA0EPF000000C8.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6324 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260927_223639_561546_084EA73C X-CRM114-Status: GOOD ( 14.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Joakim Zhang This series adds support for the Cadence I2S-SC and I2S-MC controllers integrated in the CIX SKY1 audio subsystem, together with their DT bindings. I2S-SC provides full-duplex stereo playback and capture in standard I2S, left/right-justified and DSP modes, along with TDM operation supporting up to 16 slots. I2S-MC provides multi-channel playback and capture through a configurable set of its 8 data pins, described by cix,pin-out-num, cix,pin-rx-mask and cix,pin-tx-mask, and exposes a transmit DAI and a receive DAI. Both drivers register the dmaengine PCM helper, select the audio reference clock parent for the 8 kHz or 11.025 kHz sample rate family and keep the minimum functional-clock to bit-clock ratio required for safe clock domain crossing. Changes in v2: - Move the IRQ request after the clocks are enabled and the reset is released, so the handler never runs against unclocked hardware. - Disable the IRQ before switching the regcache to cache-only mode on suspend, and re-enable it only after the cache is synced on resume; check the status read in the ISR (both drivers). - Replace the manual runtime PM bookkeeping with devm_pm_runtime_enable() and drop the remove() callbacks (both drivers). - Switch to RUNTIME_PM_OPS()/SYSTEM_SLEEP_PM_OPS() wrapped in pm_ptr() and drop the __maybe_unused annotations (both drivers). - Serialize the shared transceiver clock state in prepare() against the trigger() state machine with the existing spinlock (I2S-SC). - Disable clocks in the reverse order of enablement (both drivers). - Sort the cdns/ entry into the vendor list in sound/soc/Makefile and switch sound/soc/cdns/Makefile to the '-y' object syntax. - Clean up the includes and initializer style (both drivers). - Add a NULL check for the match data in probe (both drivers). - Factor the MC transmitter and receiver configuration into a shared helper. - Drop the compatible string from the DMAC stub node in the binding examples. Signed-off-by: Joakim Zhang Joakim Zhang (4): ASoC: dt-bindings: Add Cadence I2S-SC controller ASoC: cdns: Add Cadence I2S-SC controller driver ASoC: dt-bindings: Add Cadence I2S-MC controller ASoC: cdns: Add Cadence I2S-MC controller driver .../bindings/sound/cix,sky1-i2s-mc.yaml | 123 ++ .../bindings/sound/cix,sky1-i2s-sc.yaml | 93 ++ sound/soc/Kconfig | 1 + sound/soc/Makefile | 1 + sound/soc/cdns/Kconfig | 21 + sound/soc/cdns/Makefile | 7 + sound/soc/cdns/cdns-i2s-mc.c | 1121 ++++++++++++++++ sound/soc/cdns/cdns-i2s-sc.c | 1160 +++++++++++++++++ 8 files changed, 2527 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/cix,sky1-i2s-mc.yaml create mode 100644 Documentation/devicetree/bindings/sound/cix,sky1-i2s-sc.yaml create mode 100644 sound/soc/cdns/Kconfig create mode 100644 sound/soc/cdns/Makefile create mode 100644 sound/soc/cdns/cdns-i2s-mc.c create mode 100644 sound/soc/cdns/cdns-i2s-sc.c -- 2.50.1