Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp917137rwb; Wed, 26 Jul 2023 05:09:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlF9oB2tRvccB3W8A3bHqaZcIJyMqNhsd9tqPnKSw9GwLST+7xgnHM63KK0OyYN/rGzhgfbz X-Received: by 2002:a05:6358:7245:b0:135:aed4:99b4 with SMTP id i5-20020a056358724500b00135aed499b4mr2365906rwa.4.1690373347072; Wed, 26 Jul 2023 05:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690373347; cv=none; d=google.com; s=arc-20160816; b=quhCSgCa6Xj9QlAQNosudqsaemMDuJQJ4uJOvrCAtnOrSovrEbwLARMvZf+Ok5D9re o0C8wtQilCn9H9EC6fGGGfQqDvReGCVrLg1Rcz4ly5mIU/3kK0hJBnYTZzCsaZs8NERP lE+E2p2Tb82M6lLcKFcGgXcsKK3znDGmS+vhRVmxl4jAfzU/yBsmzGC7SoUt+og6dj2J 38ue8NO2xTRe9HWTRiV33bheuvYLt7C+P7JeYD3DXtoJepB2wC9bZ51EBigra+AxmKIq JhNMc9+Wx+5IfcPz2yPpADDUEZ6koEccqjctzdh76KLlst4Mx59qpHgfcIe/ACWu+Foq ol3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OUJSTwXZg3bJ5hQCeQ48YCQHgLKuZPr+bJiVRQrLcyE=; fh=6GQnKGre8GOpJwdEnaFbstmtu5PTNywuggxFWjl9K9Y=; b=pxcHm5IUq7XKPxuvfGy/TJ2AYBwuyaRKjinpNiRGZ+6CajHuLad34364Y/LyzzGTQC 1jboRQYj9IvOHhCx58H58IVjdJlouduQfcciCMisWVySDxpiCJ39d5RjqJXWheiH7Jhp 2tOOvx2DRni2D+PffcbOuwf8Lcc6bLpgqhvEYo8vYdAqK5iBU3CMAONLowAE7KdSZjk+ DZE0Q4KCFENJWt3cnwy9Z5u+GAO10GkZhs0lRmXRBhor1kZFBMhkdj5/Q34U8TIKCacM QuKuvaUfQCa64Ps0uLu3NEW4xCyGqMfo7yLoDTgfVDKlpsEkjXN9p8j4SvALS44QI3nL Tdew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=WLhyZ30a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a636d03000000b00563dfad10basi1217481pgc.371.2023.07.26.05.08.53; Wed, 26 Jul 2023 05:09:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=WLhyZ30a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233310AbjGZL3O (ORCPT + 99 others); Wed, 26 Jul 2023 07:29:14 -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 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: ZmawruouD-Mt96hwH4BfXdXTmhE2ScWQ X-Proofpoint-ORIG-GUID: ZmawruouD-Mt96hwH4BfXdXTmhE2ScWQ X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- 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 }, -- 2.30.2