On Wed, 20 Jan 2021, Hans de Goede wrote: > The Intel Bay Trail (x86/ACPI) based Lenovo Yoga Tablet 2 series use > a WM5102 codec connected over SPI. > > Add support for ACPI enumeration to arizona-spi so that arizona-spi can > bind to the codec on these tablets. > > This is loosely based on an earlier attempt (for Android-x86) at this by > Christian Hartmann, combined with insights in things like the speaker GPIO > from the android-x86 android port for the Lenovo Yoga Tablet 2 1051F/L [1]. > > [1] https://github.com/Kitsune2222/Android_Yoga_Tablet_2-1051F_Kernel > > Cc: Christian Hartmann <cornogle@xxxxxxxxxxxxxx> > Reviewed-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx> > Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx> > --- > Changes in v4: > - Add a comment to the irq-flags override explaining that theoretically > DSDTs using IRQF_TRIGGER_FALLING could be correct on boards where the > IRQ controller does not support active low level interrupts > > Changes in v3: > - Fix compilation error when CONFIG_ACPI is not set > > Changes in v2: > - Minor coding style tweaks > - Use memcpy instead of for loop to copy gpiod_lookup-s > - Log a warning when the ACPI "CLKE" call fails > - Drop addition of acpi_device_get_match_data() call, as the code was > moved over to use the generic device_get_match_data() helper in a > (new in v2) preparation patch > --- > drivers/mfd/arizona-spi.c | 127 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 127 insertions(+) Applied, thanks. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog