STRUCT STMPE_PLATFORM_DATA(9)
β¨ NAME β¨
struct stmpe_platform_data β the STMPE platform data, bestie π
(this is from the Kernel API Manual, iykyk)
πΈ SYNOPSIS πΈ
struct stmpe_platform_data {
int id;
unsigned int blocks;
unsigned int irq_trigger;
bool autosleep;
int autosleep_timeout;
};
π MEMBERS π
Okay so here's the lineup, no skips, all five of them π
idβ the device id, fr fr. Its whole job is to tell multiple STMPEs apart when they're all chillin' on the same board. Not me giving each one its own little name tag π·οΈblocksβ a bitmask of the blocks you wanna enable (useSTMPE_BLOCK_*, those are the ones). Bitmask agenda, lowkey iconic β¨irq_triggerβ the IRQ trigger to use for the interrupt to the host. That's it, that's the vibe check π¦autosleepβ aboolthat enables/disables stmpe autosleep. On or off, no in-between, periodt πautosleep_timeoutβ the inactivity timeout in milliseconds for autosleep. So basically how long it naps before it snoozes for real π΄
π«Ά SEE ALSO π«Ά
Kernel file ./drivers/mfd/stmpe.c β yes that's the one, go read it, iykyk π
And the whole friend group: stmpe_enable(9), stmpe_disable(9), stmpe_reg_read(9), stmpe_reg_write(9), stmpe_set_bits(9), stmpe_block_read(9), stmpe_block_write(9), stmpe_set_altfunc(9) π
aaaand that's the whole page bestie, go forth and configure ur STMPE, you're literally gonna slay π β¨
signing off from <code>./drivers/mfd</code>, dated <strong>October 2026</strong> β mwah, love u, bye ππ¦π
π¦ 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