skl_int3472...io_resources(9)
β¨ skl_int3472...io_resources(9) β¨
okay so bestie, we're in the Kernel API Manual today and this one is a whole vibe β it's the page for skl_int3472_handle_gpio_resources, and honestly it's giving "small function, big responsibilities" π
π NAME π
skl_int3472_handle_gpio_resources β maps PMIC resources to the consuming sensor π«Ά
πΈ SYNOPSIS πΈ
int skl_int3472_handle_gpio_resources (struct acpi_resource *ares , void
*data );
π¦ ARGUMENTS π¦
aresβ a pointer to astruct acpi_resourceβ¨ like, that's the resource we're looking at rndataβ a pointer to astruct int3472_discrete_deviceπ the device context, our main character
π DESCRIPTION π
so this function handles GPIO resources that are against an INT3472 ACPI device β and the way it does that is by checking the value of the corresponding _DSM entry π₯ It returns a 32bit int, and the lowest byte is the part that matters, because that's the function of the GPIO pin:
0x00β Reset0x01β Power down0x02β Strobe0x0bβ Power enable0x0cβ Clock enable0x0dβ Privacy LED0x10β DOVDD (digital I/O voltage)0x13β Hotplug detect
ngl though, there are some known platform specific quirks where that does not quite hold up π for example, there's a case where a pin with type 0x01 (Power down) is mapped to a sensor pin that performs a reset function, and also entries in _CRS and _DSM that do not actually correspond to a physical connection π These get handled by the mapping sub-functions, so don't stress β it's handled.
and the GPIOs themselves? they'll either be mapped directly to the sensor device, or else used to create clocks and regulators via the usual frameworks π« either way, slay.
β RETURN β
1β continue the loop without adding a copy of the resource to the list passed toacpi_dev_get_resources0β continue the loop after adding a copy of the resource to the list passed toacpi_dev_get_resources-errnoβ error, break loop π
π SEE ALSO π
- Kernel file
./drivers/platform/x86/intel/int3472/discrete.c struct int3472_gpio_map(9)
and that's the whole page bestie, no cap π§ from ./drivers/platform/x86/intel/i... β the October 2026 edition, with all the copyright and license vibes living in that source path. mwah π periodt π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms