[PATCH v4 4/4] platform/x86: int3472: Add support for GPIO type 0x02 (strobe LED)
From: Marco Nenciarini
Date: Fri Mar 27 2026 - 05:12:04 EST
Some ACPI INT3472 devices include a GPIO with DSM type 0x02, used for
IR flood (strobe) illumination. This GPIO type was previously
unhandled, resulting in the following warning during probe:
int3472-discrete INT3472:00: GPIO type 0x02 unknown; the sensor
may not work
Add INT3472_GPIO_TYPE_STROBE (0x02) handling that registers the GPIO
as an LED class device via skl_int3472_register_led(). Unlike the
privacy LED, the strobe LED is not consumed by the sensor driver, so
no LED lookup is registered.
Signed-off-by: Marco Nenciarini <mnencia@xxxxxxxx>
---
Cc: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
drivers/platform/x86/intel/int3472/discrete.c | 13 +++++++++++++
drivers/platform/x86/intel/int3472/led.c | 2 ++
include/linux/platform_data/x86/int3472.h | 2 ++
3 files changed, 17 insertions(+)
diff --git a/drivers/platform/x86/intel/int3472/discrete.c b/drivers/platform/x86/intel/int3472/discrete.c
index 2c554a0..03f0b49 100644
--- a/drivers/platform/x86/intel/int3472/discrete.c
+++ b/drivers/platform/x86/intel/int3472/discrete.c
@@ -207,6 +207,10 @@ static void int3472_get_con_id_and_polarity(struct int3472_discrete_device *int3
*con_id = "powerdown";
*gpio_flags = GPIO_ACTIVE_LOW;
break;
+ case INT3472_GPIO_TYPE_STROBE:
+ *con_id = "strobe";
+ *gpio_flags = GPIO_ACTIVE_HIGH;
+ break;
case INT3472_GPIO_TYPE_CLK_ENABLE:
*con_id = "clk-enable";
*gpio_flags = GPIO_ACTIVE_HIGH;
@@ -248,6 +252,7 @@ static void int3472_get_con_id_and_polarity(struct int3472_discrete_device *int3
*
* 0x00 Reset
* 0x01 Power down
+ * 0x02 Strobe (IR flood LED)
* 0x0b Power enable
* 0x0c Clock enable
* 0x0d Privacy LED
@@ -329,6 +334,7 @@ static int skl_int3472_handle_gpio_resources(struct acpi_resource *ares,
err_msg = "Failed to map GPIO pin to sensor\n";
break;
+ case INT3472_GPIO_TYPE_STROBE:
case INT3472_GPIO_TYPE_CLK_ENABLE:
case INT3472_GPIO_TYPE_PRIVACY_LED:
case INT3472_GPIO_TYPE_POWER_ENABLE:
@@ -353,6 +359,13 @@ static int skl_int3472_handle_gpio_resources(struct acpi_resource *ares,
if (ret)
err_msg = "Failed to register privacy LED\n";
+ break;
+ case INT3472_GPIO_TYPE_STROBE:
+ ret = skl_int3472_register_led(int3472, gpio,
+ INT3472_LED_TYPE_STROBE);
+ if (ret)
+ err_msg = "Failed to register strobe LED\n";
+
break;
case INT3472_GPIO_TYPE_POWER_ENABLE:
second_sensor = int3472->quirks.avdd_second_sensor;
diff --git a/drivers/platform/x86/intel/int3472/led.c b/drivers/platform/x86/intel/int3472/led.c
index 33b30f3..e6faba4 100644
--- a/drivers/platform/x86/intel/int3472/led.c
+++ b/drivers/platform/x86/intel/int3472/led.c
@@ -8,10 +8,12 @@
static const char * const int3472_led_names[] = {
[INT3472_LED_TYPE_PRIVACY] = "privacy",
+ [INT3472_LED_TYPE_STROBE] = "strobe",
};
static const char * const int3472_led_con_ids[] = {
[INT3472_LED_TYPE_PRIVACY] = "privacy",
+ [INT3472_LED_TYPE_STROBE] = NULL,
};
static int int3472_led_set(struct led_classdev *led_cdev,
diff --git a/include/linux/platform_data/x86/int3472.h b/include/linux/platform_data/x86/int3472.h
index b6b5b36..9893711 100644
--- a/include/linux/platform_data/x86/int3472.h
+++ b/include/linux/platform_data/x86/int3472.h
@@ -23,6 +23,7 @@
/* PMIC GPIO Types */
#define INT3472_GPIO_TYPE_RESET 0x00
#define INT3472_GPIO_TYPE_POWERDOWN 0x01
+#define INT3472_GPIO_TYPE_STROBE 0x02
#define INT3472_GPIO_TYPE_POWER_ENABLE 0x0b
#define INT3472_GPIO_TYPE_CLK_ENABLE 0x0c
#define INT3472_GPIO_TYPE_PRIVACY_LED 0x0d
@@ -71,6 +72,7 @@
enum int3472_led_type {
INT3472_LED_TYPE_PRIVACY,
+ INT3472_LED_TYPE_STROBE,
};
struct acpi_device;
--
2.47.3