From patchwork Thu Jul 18 15:23:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shyam Sundar S K X-Patchwork-Id: 813225 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2082.outbound.protection.outlook.com [40.107.100.82]) (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 1DD4312C474; Thu, 18 Jul 2024 15:24:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.100.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721316243; cv=fail; b=Y50XV4nc1RB3D58zgqNNh83WqM2oAnUCEN5yxpOdjMFskDsoYIay3GXW+PZOGdez6OKys13+rZkIE9Ln/FABIihcopBweu3GToxtyHCIojQAUWJMmdbGLjs+vmk+biwLeOyUllLZudJfC6ZAcsCWA4MBdKh0E5arjsMdm77TbOk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721316243; c=relaxed/simple; bh=qe0My/fS6ORb82UBUClc8ewlAf5PUdiJxr9PXcGEOoc=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Ui0wbzWgdfNkf6r3iSlLivuDEca7343/unSjAthls/PQLG18dLHmZjCgwF6GyFTZoPq9lb7LVSY4gibslBjTuOnMHEKYSYdZC3Te2A+SwBfDAzd9mayEm8VFhtN+UiafFrHpORUoe+mdTOe1CIh8nHnn0pwvTkeqcfGH+nMQENA= 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=Tdup5Dii; arc=fail smtp.client-ip=40.107.100.82 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="Tdup5Dii" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OkeeRuL4nffc+ztUp6uAir1y5DirTzLjM2AhPvgy5qM1LmTMBap56LV2lgNIE9RjuoLpi4XMFQL/6sS/2vFg4PGpjmngB8u+c+XbI2CVnrHCnjwhX/qxKn//HsOHtJlAO0NfHJ70bKG0qTJv6WAL+694Y/oQPce+PGOdr2MvcOY+7pVet8StUyhjvMcb+KbiH7VmPOUWFKJFKU7HQhct5KGV40eP/pk7fKS7AP5J5NaSu/2xfPd2ovPHei6cpUqkj9xFkJJ6VMHLOoMphk53ezJKfHh01vlApp0lN9x3PEoq0psu6vXgxZJc8Sy17sv9PUG6aRHvVBV/MK2fA3xjTA== 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=rK/T/mEu+GsotLmJv+cRS4lxGWytNi5SI6FRCdOAS+Q=; b=dzJK73CeMsZJacsJed5wvkF371WCTuz4mrP43W8tTLLpEjXNayLa3rcUwAXTX0+zbHZ9GCcHmqkl5upOQs1ZXe/jqAPZ7DN/1RfMMQcumacFuJ/OBsq7wvg7d2vpyQM2b/85zY14RONXDU3HWCICf5heujDIZ3UGSJwGOZtp0gNC7Me0+Y+JLzm9FMYxCl6EIC8DZpCd7avgEEG/6gSz6GbXWBXaQ1Cl1rNBwjOFOAUbe9F3Zvlfhj3bc1r1CPR4zBg6HnxcozhTu1P8GKImlTsBktJ8hf8SpT5+ghGsxXGqfeP5qicnDu9/EgPsQa+Q+CUDgAav66lUYgq2i3zn4Q== 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=rK/T/mEu+GsotLmJv+cRS4lxGWytNi5SI6FRCdOAS+Q=; b=Tdup5DiiDs4kU7GSnaT26Ine5HR71qOm1OIg5rYOu90uKBSOcZK9F0gTnuC52gMXz+sn5+mc60+zpY/Fx9XueW5F9SdvQSVuSEHRiMwgKKX+O5gZ3RlYFczE9lny5rb1sJaRk5sXRp3zQ1GU5dNriGudLuGRISWpoeo6wppA8ts= Received: from MW4PR04CA0280.namprd04.prod.outlook.com (2603:10b6:303:89::15) by CH3PR12MB8236.namprd12.prod.outlook.com (2603:10b6:610:121::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.28; Thu, 18 Jul 2024 15:23:58 +0000 Received: from MWH0EPF000971E8.namprd02.prod.outlook.com (2603:10b6:303:89:cafe::6c) by MW4PR04CA0280.outlook.office365.com (2603:10b6:303:89::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.17 via Frontend Transport; Thu, 18 Jul 2024 15:23:58 +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 MWH0EPF000971E8.mail.protection.outlook.com (10.167.243.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7784.11 via Frontend Transport; Thu, 18 Jul 2024 15:23:58 +0000 Received: from jatayu.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; Thu, 18 Jul 2024 10:23:55 -0500 From: Shyam Sundar S K To: , CC: , , "Shyam Sundar S K" , Sanket Goswami Subject: [PATCH v1] ACPI: APD: Add AMDI0015 as platform device Date: Thu, 18 Jul 2024 20:53:24 +0530 Message-ID: <20240718152324.3449253-1-Shyam-sundar.S-k@amd.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-acpi@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: MWH0EPF000971E8:EE_|CH3PR12MB8236:EE_ X-MS-Office365-Filtering-Correlation-Id: 22b6650e-6722-4e19-434d-08dca73da54b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|82310400026|376014; X-Microsoft-Antispam-Message-Info: beLUUpOOO5BZ2jpz9+PUAE1fThYb2mpzRdE5Xg2HkL65CDj02kxxdf6alAVwu8zC/GQXEvhpIwSDpGv2CwWTS8dcj9rJ8DX6PyXmU1ob0hxRt+mQb6338D3/+ojzwrFxwncSxNGK2Fc8PHUmMDRJDi2VrdElQ7H8Ft3guciT1NUWQRi0P+m72GJ5H16L11075d8iUSvdbrukInNKnhNE1NyxkGij7/Z2KGi/7esJVkrvH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ej7wsRGbRTPUgXJ0r9d38Lu7U3JLWGTB4TUfLyRJoQMluVmLmyjobjTDFcIfJvkYvFRCTqS59fUnQivOFhGOdkCqm9L3Z/B3g66ZTmaMdJnn4bCU8zfQybafhQ1mbZ6nBVrR9ApwOkj4ageQvOuj3QFCA94C6GDDPeDuEYIs5i 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)(1800799024)(36860700013)(82310400026)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2024 15:23:58.6065 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 22b6650e-6722-4e19-434d-08dca73da54b 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: MWH0EPF000971E8.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8236 Add AMDI0015 to the ACPI APD support list to ensure correct clock settings for the I3C device on the latest AMD platforms. Signed-off-by: Sanket Goswami Signed-off-by: Shyam Sundar S K --- drivers/acpi/acpi_apd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c index 80f945cbec8a..6c502268879e 100644 --- a/drivers/acpi/acpi_apd.c +++ b/drivers/acpi/acpi_apd.c @@ -118,6 +118,11 @@ static const struct apd_device_desc wt_i2c_desc = { .fixed_clk_rate = 150000000, }; +static const struct apd_device_desc wt_i3c_desc = { + .setup = acpi_apd_setup, + .fixed_clk_rate = 125000000, +}; + static struct property_entry uart_properties[] = { PROPERTY_ENTRY_U32("reg-io-width", 4), PROPERTY_ENTRY_U32("reg-shift", 2), @@ -232,6 +237,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = { { "AMD0040", APD_ADDR(fch_misc_desc)}, { "AMDI0010", APD_ADDR(wt_i2c_desc) }, { "AMDI0019", APD_ADDR(wt_i2c_desc) }, + { "AMDI0015", APD_ADDR(wt_i3c_desc) }, { "AMDI0020", APD_ADDR(cz_uart_desc) }, { "AMDI0022", APD_ADDR(cz_uart_desc) }, { "HYGO0010", APD_ADDR(wt_i2c_desc) },