From: Stephan Lensky <linux@slensky.com>
To: Takashi Iwai <tiwai@suse.com>
Cc: "Jaroslav Kysela" <perex@perex.cz>,
"Mark Brown" <broonie@kernel.org>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Rafael J . Wysocki" <rafael@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Hans de Goede" <hansg@kernel.org>, "Len Brown" <lenb@kernel.org>,
"Kevin Cuperus" <cuperus.kevin@hotmail.com>,
linux-sound@vger.kernel.org, linux-acpi@vger.kernel.org,
platform-driver-x86@vger.kernel.org,
"Stephan Lensky" <linux@slensky.com>
Subject: [PATCH 2/4] ACPI/platform: Add MAX98390 to serial-multi-instantiate
Date: Tue, 1 Dec 2026 22:12:31 -0500 [thread overview]
Message-ID: <20261202031233.171555-3-linux@slensky.com> (raw)
In-Reply-To: <20261202031233.171555-1-linux@slensky.com>
From: Kevin Cuperus <cuperus.kevin@hotmail.com>
The Samsung Galaxy Book4 Pro 360 (NP960QGK) describes its four MAX98390
speaker amplifiers with a single ACPI device, _HID "MAX98390"
(\_SB.PC00.I2C2.MX98), which has one I2cSerialBusV2 resource per
amplifier at addresses 0x38, 0x39, 0x3c and 0x3d. "MAX98390" is not a
valid ACPI or PNP ID, but it ships in the laptop's firmware, so list it
with the other non-conforming IDs.
Register the "MAX98390" hardware ID with the serial-multi-instantiate
driver and add it to the ACPI scan ignore list so that the ACPI core
creates a platform device for serial-multi-instantiate, which
instantiates one I2C client named "max98390-hda" per amplifier, instead
of a single I2C client for the first resource. The amplifiers have no
interrupt lines, so the instances use IRQ_RESOURCE_NONE.
The ASoC max98390 driver matches the "MX98390" ID used on Chromebooks
and is not affected.
Signed-off-by: Kevin Cuperus <cuperus.kevin@hotmail.com>
[stephan: moved the ID to a non-conforming _HID section]
Signed-off-by: Stephan Lensky <linux@slensky.com>
---
The scan.c hunk conflicts with commit 7a3eb8c45ff1 ("ACPI: Use named
initializers for acpi_device_id arrays") in linux-pm's linux-next
branch. The resolution is to add the entry as { .id = "MAX98390" }.
---
drivers/acpi/scan.c | 2 ++
drivers/platform/x86/serial-multi-instantiate.c | 13 +++++++++++++
2 files changed, 15 insertions(+)
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 9218264f8da1..88fc8de61690 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -1835,6 +1835,8 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device)
{"CLSA0100", },
{"CLSA0101", },
{"CLSA0102", },
+ /* Non-conforming _HID for MAX98390 already released by Samsung */
+ {"MAX98390", },
/*
* Some ACPI devs contain SerialBus resources even though they are not
* attached to a serial bus at all.
diff --git a/drivers/platform/x86/serial-multi-instantiate.c b/drivers/platform/x86/serial-multi-instantiate.c
index ffec4f0a4992..f958136beb16 100644
--- a/drivers/platform/x86/serial-multi-instantiate.c
+++ b/drivers/platform/x86/serial-multi-instantiate.c
@@ -409,6 +409,17 @@ static const struct smi_node tas2781_hda = {
.bus_type = SMI_AUTO_DETECT,
};
+static const struct smi_node max98390_hda = {
+ .instances = {
+ { "max98390-hda", IRQ_RESOURCE_NONE, 0 },
+ { "max98390-hda", IRQ_RESOURCE_NONE, 0 },
+ { "max98390-hda", IRQ_RESOURCE_NONE, 0 },
+ { "max98390-hda", IRQ_RESOURCE_NONE, 0 },
+ {}
+ },
+ .bus_type = SMI_I2C,
+};
+
/*
* Note new device-ids must also be added to ignore_serial_bus_ids in
* drivers/acpi/scan.c: acpi_device_enumeration_by_parent().
@@ -427,6 +438,8 @@ static const struct acpi_device_id smi_acpi_ids[] = {
{ "CLSA0100", (unsigned long)&cs35l41_hda },
{ "CLSA0101", (unsigned long)&cs35l41_hda },
{ "CLSA0102", (unsigned long)&cs35l41_hda },
+ /* Non-conforming _HID for MAX98390 already released by Samsung */
+ { "MAX98390", (unsigned long)&max98390_hda },
{ }
};
MODULE_DEVICE_TABLE(acpi, smi_acpi_ids);
--
2.55.0
next prev parent reply other threads:[~2026-12-02 3:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 3:12 [PATCH 0/4] ALSA: hda: Add MAX98390 side codec support for Samsung Galaxy Book4 Pro 360 Stephan Lensky
2026-12-02 3:12 ` [PATCH 1/4] ASoC: max98390: Move register definitions to include/sound Stephan Lensky
2026-12-02 3:12 ` Stephan Lensky [this message]
2026-12-02 3:12 ` [PATCH 3/4] ALSA: hda: Add MAX98390 side codec driver Stephan Lensky
2026-12-02 3:23 ` sashiko-bot
2026-12-02 3:12 ` [PATCH 4/4] ALSA: hda/realtek: Add MAX98390 fixup for Samsung Galaxy Book4 Pro 360 Stephan Lensky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202031233.171555-3-linux@slensky.com \
--to=linux@slensky.com \
--cc=broonie@kernel.org \
--cc=cuperus.kevin@hotmail.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=lenb@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.