From patchwork Mon Jan 20 10:01:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mukunda,Vijendar" X-Patchwork-Id: 13944956 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2058.outbound.protection.outlook.com [40.107.223.58]) (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 3CDE519D8B2; Mon, 20 Jan 2025 10:01:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.58 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737367311; cv=fail; b=rlTona6bwAMwB/a65r0QVIMXjt9IBxmWWbJTrJuLMHzt5+sK0Pfp8Y/gCOyglE+8aGxz5ZEedk1WEQp5CS8sM62PN4LY5JoIvzOrH3Lu1ZDvRpLHwRLe3WnHFZ4+qhQMZt5pLyLqi11QSZvfVFdVImS0L+IEY7qmPY7a3vWX0Wk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737367311; c=relaxed/simple; bh=DjuVTQm95TumpN15cn6YMRYN+ONnrWOyJ8+3jJ15I08=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Ik4D1SzXDi95xqGqSuYqYYDePmXY9sw+BOR+Xk9q1FVQGLbc5RqQXfZUfdCzh8bLnzVlejcCOAs0DrPxLSCofb6+t/xQIPpVgjmsWjFII3zOzdN4M4i9UHJhp4osL+P7lKPx2+uD7whJasCn9hrrZbc8RvL0cjM6shLgIUhyoSU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=HarmM2j1; arc=fail smtp.client-ip=40.107.223.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="HarmM2j1" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VcHhvxBg1pn3y0CudbE7riCqWVmkht8O7a3ndvlzYyggyYjV+m34lcmcmcm4xPAduZ+wfpPEhQmb4CkUKB0bB4adQdeCd5kw2Vb/vQYQwjOR3eEmK6ZVPT1WFNwcXsxPE6Fstau7LueJzbo7xMRxVXjZ5yobIBlq2qWIf7gZyRCznvJDWgdn76fBlxaE6Q5ZZ2aHxh7jmWwwBkQ80ZqCmMHi7S1vHrjrSVtOKaTvu2Ede7p4c1MUMP1x/5mYs1QPjmCywhw7Dzr0wX92EPbjB8nH5IyRLlw5YgzWU3EqGdNQEGI4XLAotvaT8YBC1LCMnc2s20bKT3t2Ana2AlsM/w== 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=fgnsiHK0gctMavttPAPVE6NoVIpNrV/XxYP5BCVphRg=; b=Q2UNDnfOouiZ9r/aEBUZfFdsSGP9lBMiv9KKJPDguGZj8zF9MHiHAPXpu9IYmcVHMRLCe0VUh2ZCXVDtrGckP4pLKd7tXqonaibYdxGdUg+l/EfwnUF18nwepdLj9NdYOC9SITBjv5HmpSj2hQ1ubbFPw8rp1HzsCz3N08AXzAXxNvlI/B+dvzB3gDan9Nv3oJbXMiJQBwOujqshrxeKfIFnAihuBk2ysKuBK3XFYMJ3GIktNUkC55WYPiJ11jLSAlgM9pYhWh9vaI8TZ7EvW1EJXyaQ/m/YnQ7EHlH9bW4S8coZGrgzvPy/sj5skSXOopbgD/60PoE7ciBhZsLBdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fgnsiHK0gctMavttPAPVE6NoVIpNrV/XxYP5BCVphRg=; b=HarmM2j17Vmw8gAVkJEol7Ztir7uewKn8154qt8PbTMFUsa5KOnqzR0k5nJZOT/7MXTfUyHkJHsdiYV+jfpHA6yaDEXKrGbZkDV8zjk3ZDBPSIvg5ZGlFBT1cV24iymBIVAVNjc4Y3sCyYQSeC5eogPqx+ZCni1eFuI7mb4kYdM= Received: from CH2PR14CA0021.namprd14.prod.outlook.com (2603:10b6:610:60::31) by CY5PR12MB6249.namprd12.prod.outlook.com (2603:10b6:930:23::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.16; Mon, 20 Jan 2025 10:01:46 +0000 Received: from CH1PEPF0000AD82.namprd04.prod.outlook.com (2603:10b6:610:60:cafe::f) by CH2PR14CA0021.outlook.office365.com (2603:10b6:610:60::31) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.22 via Frontend Transport; Mon, 20 Jan 2025 10:01:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH1PEPF0000AD82.mail.protection.outlook.com (10.167.244.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8377.8 via Frontend Transport; Mon, 20 Jan 2025 10:01:46 +0000 Received: from vijendar-X570-GAMING-X.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 20 Jan 2025 04:01:42 -0600 From: Vijendar Mukunda To: CC: , , , , , , , , , , Vijendar Mukunda Subject: [PATCH V2 00/23] ASoC: amd: acp70: add soundwire and acp pdm support Date: Mon, 20 Jan 2025 15:31:07 +0530 Message-ID: <20250120100130.3710412-1-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000AD82:EE_|CY5PR12MB6249:EE_ X-MS-Office365-Filtering-Correlation-Id: 562fbf88-42d9-46b8-81c0-08dd39397319 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: 0jMNQLvMU+V6Q8Tz7WKmeUc4HZO/AIr5ftJ99EoSx4qKAXcM3luE+Il82RatkNIzHvNPMzako/pBMSdp+lzuUCf2q8b4T1IjsRi/y7Zp7W6RAqfm5G4i+DFCFMy5qYBRSyInnfSxxNkxzFGGEM3YHAuUVbOGk+0lzpySUgWg34mYVy8TVZnuEJL5bW18Ut4y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Kq4iKCaZ2zQt4NKbefZS3i2iT+HuwoiWWHb7I8FtE7B4rVqepurcX2OCHL7apz7OW8FmqVllsfKw7ojC6GoMs/9cUkGmXlpSV9Pu9iKL9JF8pxuSFEgbYB3qncVgkF5otppO/yqxtOlM7B6bJxVms65RmmumE/40utLyY9AK76vqEif4ydbjrGEphw4de9+DhIVkZ8GKdGjHWx/EwqXNdF6kPWZUHyI68jI125Dj1tmzZI= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(1800799024)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2025 10:01:46.2667 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 562fbf88-42d9-46b8-81c0-08dd39397319 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000AD82.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6249 This patch series includes below changes - Add Audio IO support for ACP7.0 and ACP7.1 platforms for SoundWire IO and ACP PDM controller combination. - Add common driver modules for ACP7.0 and ACP7.1 platforms (acp pci driver, Soundwire dma driver, pdm platform driver). - Add SoundWire generic machine driver changes for legacy stack (No DSP enabled) for ACP7.0 & ACP7.1 platforms. - Add SoundWire machines for ACP7.0 & ACP7.1 platforms. Changes since v1: - Change the code sequence for handling SoundWire wake interrupts. - Add new patch to restore host wake interrupt mask - Add new patch to enable ACP PME during ACP init sequence. - Change ACP PCI driver PM ops code sequence. Vijendar Mukunda (23): ASoC: amd: add register header file for ACP7.0 platform ASoC: amd: acp70: add acp pci driver for ACP7.0 and ACP7.1 platforms ASoC: amd: acp70: add acp init and de-init functions ASoC: amd: acp70: add logic for scanning acp child devices ASoC: amd: acp70: create platform devices for acp child nodes ASoC: amd: acp70: enable driver build for ACP7.0 platform ASoC: amd: acp70: add acp pdm platform driver ASoC: amd: acp70: add acp pdm driver dma ops and dai ops ASoC: amd: acp70: add acp soundwire dma driver ASoC: amd: update ACP7.0 KConfig option description ASoC: amd: acp70: add soundwire dma driver dma ops ASoC: amd: acp70: add acp ip interrupt handler ASoC: amd: acp70: add acp pdm driver pm ops ASoC: amd: acp70: add pm ops support for soundwire dma driver ASoC: amd: acp70: add acp driver pm ops support ASoC: amd: acp70: enable wake capability for acp pci driver ASoC: amd: acp70: add soundwire wake interrupt handling ASoC: amd: acp70: enable soundwire host wake irq mask ASoC: amd: acp70: enable acp pme enable during acp init sequence ASoC: amd: acp70: create a device node for soundwire machine driver ASoC: amd: acp: add machine driver changes for ACP7.0 and ACP7.1 platforms ASoC: amd: acp: add RT711, RT714 & RT1316 support for ACP7.0 platform ASoC: amd: acp: amd-acp70-acpi-match: Add rt722 support include/sound/acp70_chip_offset_byte.h | 484 +++++++++++++ sound/soc/amd/Kconfig | 12 + sound/soc/amd/Makefile | 1 + sound/soc/amd/acp/Makefile | 2 +- sound/soc/amd/acp/acp-sdw-legacy-mach.c | 16 + sound/soc/amd/acp/acp-sdw-mach-common.c | 34 + sound/soc/amd/acp/amd-acp70-acpi-match.c | 132 ++++ sound/soc/amd/acp/soc_amd_sdw_common.h | 11 + sound/soc/amd/acp70/Makefile | 9 + sound/soc/amd/acp70/acp70-pdm-dma.c | 463 +++++++++++++ sound/soc/amd/acp70/acp70-sdw-dma.c | 586 ++++++++++++++++ sound/soc/amd/acp70/acp70.h | 288 ++++++++ sound/soc/amd/acp70/pci-acp70.c | 833 +++++++++++++++++++++++ sound/soc/amd/mach-config.h | 1 + 14 files changed, 2871 insertions(+), 1 deletion(-) create mode 100644 include/sound/acp70_chip_offset_byte.h create mode 100644 sound/soc/amd/acp/amd-acp70-acpi-match.c create mode 100644 sound/soc/amd/acp70/Makefile create mode 100644 sound/soc/amd/acp70/acp70-pdm-dma.c create mode 100644 sound/soc/amd/acp70/acp70-sdw-dma.c create mode 100644 sound/soc/amd/acp70/acp70.h create mode 100644 sound/soc/amd/acp70/pci-acp70.c