]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: int3472: Add support for GPIO type 0x02 (IR flood LED)
authorMarco Nenciarini <mnencia@kcore.it>
Wed, 1 Apr 2026 20:36:38 +0000 (22:36 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 13 Apr 2026 11:09:49 +0000 (14:09 +0300)
commit0ec7f158dc01e354ba83d808e46346dba826e353
tree8eade5170e5fefee539570f957b9980b97083b64
parent218d3c44f5f0a3cc1647bc61a4e4eac663b37aa5
platform/x86: int3472: Add support for GPIO type 0x02 (IR flood LED)

Add support for GPIO type 0x02, which controls an IR flood LED used
for face authentication on some laptops (e.g. Dell Pro Max 16 Premium).

Without this patch, the kernel logs "GPIO type 0x02 unknown; the sensor
may not work" and IR sensors paired with a flood LED cannot function.

The flood LED is registered through the LED subsystem like the existing
privacy LED, including a lookup entry to allow future consumer drivers
to find and control it via led_get().

To support multiple LEDs per INT3472 device, convert the single led
struct member to an array with a counter.

Signed-off-by: Marco Nenciarini <mnencia@kcore.it>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/20260401203638.1601661-5-mnencia@kcore.it
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/int3472/discrete.c
drivers/platform/x86/intel/int3472/led.c
include/linux/platform_data/x86/int3472.h