ACPI: scan: Create platform device for CS35L56
authorSimon Trimmer <simont@opensource.cirrus.com>
Fri, 28 Jul 2023 11:13:45 +0000 (12:13 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 31 Jul 2023 14:03:39 +0000 (16:03 +0200)
commit1cd0302be5645420f73090aee26fa787287e1096
tree14bf541aab639bbfae37835cc508a133bb0bbb8f
parent785c00993dc4c4bb2f7b0f3a3f29c03a6f7aab2e
ACPI: scan: Create platform device for CS35L56

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.

There can be a 5th I2cSerialBusV2, but this is an alias address and doesn't
represent a real device. Ignore this by having a dummy 5th entry in the
serial-multi-instantiate instance list with the name of a non-existent
driver, on the same pattern as done for bsg2150.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20230728111345.7224-1-rf@opensource.cirrus.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/acpi/scan.c
drivers/platform/x86/serial-multi-instantiate.c