platform/x86: serial-multi-instantiate: Add support for CS35L54 and CS35L57
authorSimon Trimmer <simont@opensource.cirrus.com>
Fri, 8 Mar 2024 13:59:00 +0000 (13:59 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 8 Mar 2024 16:59:19 +0000 (17:59 +0100)
Add the ACPI HIDs and smi_node descriptions for the CS35L54 and CS35L57
Boosted Smart Amplifiers.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Message-ID: <20240308135900.603192-4-rf@opensource.cirrus.com>

drivers/acpi/scan.c
drivers/platform/x86/serial-multi-instantiate.c

index e6ed1ba91e5c9152c7eeec242c302f91fda42d5d..091c501bed1fe3aafb928511476b442098e65778 100644 (file)
@@ -1725,7 +1725,9 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device)
                {"BSG1160", },
                {"BSG2150", },
                {"CSC3551", },
+               {"CSC3554", },
                {"CSC3556", },
+               {"CSC3557", },
                {"INT33FE", },
                {"INT3515", },
                /* Non-conforming _HID for Cirrus Logic already released */
index 8158e3cf5d6dec12903c1b8b97f682da451f5df3..97b9c63922303af20175d15ca76dcb93e8e91601 100644 (file)
@@ -329,6 +329,19 @@ static const struct smi_node cs35l41_hda = {
        .bus_type = SMI_AUTO_DETECT,
 };
 
+static const struct smi_node cs35l54_hda = {
+       .instances = {
+               { "cs35l54-hda", IRQ_RESOURCE_AUTO, 0 },
+               { "cs35l54-hda", IRQ_RESOURCE_AUTO, 0 },
+               { "cs35l54-hda", IRQ_RESOURCE_AUTO, 0 },
+               { "cs35l54-hda", IRQ_RESOURCE_AUTO, 0 },
+               /* a 5th entry is an alias address, not a real device */
+               { "cs35l54-hda_dummy_dev" },
+               {}
+       },
+       .bus_type = SMI_AUTO_DETECT,
+};
+
 static const struct smi_node cs35l56_hda = {
        .instances = {
                { "cs35l56-hda", IRQ_RESOURCE_AUTO, 0 },
@@ -342,6 +355,19 @@ static const struct smi_node cs35l56_hda = {
        .bus_type = SMI_AUTO_DETECT,
 };
 
+static const struct smi_node cs35l57_hda = {
+       .instances = {
+               { "cs35l57-hda", IRQ_RESOURCE_AUTO, 0 },
+               { "cs35l57-hda", IRQ_RESOURCE_AUTO, 0 },
+               { "cs35l57-hda", IRQ_RESOURCE_AUTO, 0 },
+               { "cs35l57-hda", IRQ_RESOURCE_AUTO, 0 },
+               /* a 5th entry is an alias address, not a real device */
+               { "cs35l57-hda_dummy_dev" },
+               {}
+       },
+       .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().
@@ -350,7 +376,9 @@ static const struct acpi_device_id smi_acpi_ids[] = {
        { "BSG1160", (unsigned long)&bsg1160_data },
        { "BSG2150", (unsigned long)&bsg2150_data },
        { "CSC3551", (unsigned long)&cs35l41_hda },
+       { "CSC3554", (unsigned long)&cs35l54_hda },
        { "CSC3556", (unsigned long)&cs35l56_hda },
+       { "CSC3557", (unsigned long)&cs35l57_hda },
        { "INT3515", (unsigned long)&int3515_data },
        /* Non-conforming _HID for Cirrus Logic already released */
        { "CLSA0100", (unsigned long)&cs35l41_hda },