From patchwork Wed Jul 26 11:27:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Fitzgerald X-Patchwork-Id: 706677 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B7DFC001DE for ; Wed, 26 Jul 2023 11:29:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232882AbjGZL3N (ORCPT ); Wed, 26 Jul 2023 07:29:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233284AbjGZL3L (ORCPT ); Wed, 26 Jul 2023 07:29:11 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 010581BCD; Wed, 26 Jul 2023 04:28:49 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 36Q6ITNS030470; Wed, 26 Jul 2023 06:28:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=O UJSTwXZg3bJ5hQCeQ48YCQHgLKuZPr+bJiVRQrLcyE=; b=WLhyZ30aQufpXxHJ+ HC9Wy5TTLz9J0vtD2kj1phDh23h1Rt0vsyv8I71DMPrRlV7cvDFvyZfGWWHcIMFp a19nnYyp0twn0INx3QnbUJHDz4vXJMU2nUlboCTbpfnXpHQ6dkTj10bNjkaKrDjC EpWm34ZAiJleafGtiFD9SFoMvTFNJA0Mx/iSxXx0JgIXWrqRU4e4eGKJln5Nv/h4 aTCxmGhogbYrSrQ4ZYo/8+CTMNAC4apoVkIg+G8mtP9zVzVBuFoX/en/m0G89JfH uPbnYi8xzVRaxLpFxRLUCZBP/ly8QFCifCwpCDseQ1qqCntWvb3SGZgReFltlM5h 3q4Wg== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3s2q710nrk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jul 2023 06:28:04 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Wed, 26 Jul 2023 12:28:02 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.30 via Frontend Transport; Wed, 26 Jul 2023 12:28:02 +0100 Received: from EDIN4L06LR3.ad.cirrus.com (EDIN4L06LR3.ad.cirrus.com [198.61.65.196]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 0825D15B4; Wed, 26 Jul 2023 11:28:01 +0000 (UTC) From: Richard Fitzgerald To: , , , CC: , , , , Simon Trimmer , Richard Fitzgerald Subject: [PATCH] ACPI: scan: Create platform device for CS35L56 Date: Wed, 26 Jul 2023 12:27:59 +0100 Message-ID: <20230726112759.18814-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Proofpoint-GUID: ZmawruouD-Mt96hwH4BfXdXTmhE2ScWQ X-Proofpoint-ORIG-GUID: ZmawruouD-Mt96hwH4BfXdXTmhE2ScWQ X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Simon Trimmer The ACPI device CSC3556 is a Cirrus Logic CS35L56 mono amplifier which is used in multiples, and can be connected either to I2C or SPI. There will be multiple instances under the same Device() node. Add it to ignore_serial_bus_ids and handle it in the serial-multi-instantiate driver. Signed-off-by: Simon Trimmer Signed-off-by: Richard Fitzgerald Acked-by: Rafael J. Wysocki --- drivers/acpi/scan.c | 1 + drivers/platform/x86/serial-multi-instantiate.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 5b145f1aaa1b..87e385542576 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -1714,6 +1714,7 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) {"BSG1160", }, {"BSG2150", }, {"CSC3551", }, + {"CSC3556", }, {"INT33FE", }, {"INT3515", }, /* Non-conforming _HID for Cirrus Logic already released */ diff --git a/drivers/platform/x86/serial-multi-instantiate.c b/drivers/platform/x86/serial-multi-instantiate.c index f3dcbdd72fec..dcf2914b97c9 100644 --- a/drivers/platform/x86/serial-multi-instantiate.c +++ b/drivers/platform/x86/serial-multi-instantiate.c @@ -316,6 +316,17 @@ static const struct smi_node cs35l41_hda = { .bus_type = SMI_AUTO_DETECT, }; +static const struct smi_node cs35l56_hda = { + .instances = { + { "cs35l56-hda", IRQ_RESOURCE_GPIO, 0 }, + { "cs35l56-hda", IRQ_RESOURCE_GPIO, 0 }, + { "cs35l56-hda", IRQ_RESOURCE_GPIO, 0 }, + { "cs35l56-hda", IRQ_RESOURCE_GPIO, 0 }, + {} + }, + .bus_type = SMI_AUTO_DETECT, +}; + /* * Note new device-ids must also be added to ignore_serial_bus_ids in * drivers/acpi/scan.c: acpi_device_enumeration_by_parent(). @@ -324,6 +335,7 @@ static const struct acpi_device_id smi_acpi_ids[] = { { "BSG1160", (unsigned long)&bsg1160_data }, { "BSG2150", (unsigned long)&bsg2150_data }, { "CSC3551", (unsigned long)&cs35l41_hda }, + { "CSC3556", (unsigned long)&cs35l56_hda }, { "INT3515", (unsigned long)&int3515_data }, /* Non-conforming _HID for Cirrus Logic already released */ { "CLSA0100", (unsigned long)&cs35l41_hda },