linux/drivers/platform/x86/intel/int3472
Leif Skunberg 2a7b7652b1
platform/x86: int3472: Handle GPIO type 0x10 (DOVDD)
The Lenovo ThinkPad X1 Fold 16 Gen 1 has an OV5675 sensor (ACPI HID
OVTI5675) behind an INT3472 discrete PMIC controller. The INT3472
_DSM returns GPIO type 0x10 for one of the pins, which controls the
DOVDD (digital I/O power) regulator enable.

Type 0x10 is not currently handled by the driver, causing the GPIO to
be ignored with a warning. Add INT3472_GPIO_TYPE_DOVDD (0x10) and
handle it as a regulator with con_id "dovdd" to match the supply name
used by sensor drivers (e.g. ov5675).

Also increase GPIO_SUPPLY_NAME_LENGTH from 5 to 6 to accommodate
the "dovdd" name (5 chars + null terminator).

Signed-off-by: Leif Skunberg <diamondback@cohunt.app>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/20260210132129.17943-1-diamondback@cohunt.app
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-02-23 17:49:36 +02:00
..
clk_and_regulator.c platform/x86: int3472: Fix double free of GPIO device during unregister 2025-10-28 17:06:14 +02:00
common.c platform/x86: int3472: Move common.h to public includes, symbols to INTEL_INT3472 2025-05-08 17:35:28 +03:00
discrete.c platform/x86: int3472: Handle GPIO type 0x10 (DOVDD) 2026-02-23 17:49:36 +02:00
discrete_quirks.c platform/x86: int3472: Move common.h to public includes, symbols to INTEL_INT3472 2025-05-08 17:35:28 +03:00
Kconfig platform/x86: int3472/discrete: add LEDS_CLASS dependency 2023-02-10 17:08:24 +01:00
led.c media: v4l2-subdev / pdx86: int3472: Use "privacy" as con_id for the privacy LED 2025-10-24 11:16:26 +02:00
Makefile platform/x86: int3472: Rework AVDD second sensor quirk handling 2025-04-24 16:05:34 +03:00
tps68470.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
tps68470.h platform/x86: int3472: Support multiple gpio lookups in board data 2022-09-24 19:12:32 +02:00
tps68470_board_data.c platform/x86: int3472: Add board data for Dell 7212 2025-06-30 08:47:41 +02:00