STRUCT TPS65010_BOARD(9)
π
struct tps65010_board(9) β from the Kernel API Manual β¨
okay bestie, welcome to the struct tps65010_board(9) page from the Kernel API Manual β itβs giving βtiny board-data struct that packages GPIO and LED linesβ and honestly? iconic π
πΈ NAME πΈ
struct tps65010_board β packages GPIO and LED lines π«Ά
β¨ SYNOPSIS β¨
struct tps65010_board {
unsigned outmask;
int (*setup)(struct i2c_client *client, struct gpio_chip *gc);
void (*teardown)(struct i2c_client *client, struct gpio_chip *gc);
};
π Members π
outmaskβbit (N-1)is set to allowGPIO-Nto be used as an (open drain) output πsetupβ optional callback issued once the GPIOs are valid β¨teardownβ optional callback issued before the GPIOs are invalidated π«Ά
π¦ Description π¦
Board data may be used to package the GPIO (and LED) lines so the generic GPIO and LED frameworks can use them. The first four GPIOs starting at gpio_base are GPIO1..GPIO4. The next two are LED1/nPG and LED2 (with hardware blinking capability, not currently exposed) π
The setup callback may be used with the kind of board-specific glue which hands the (now-valid) GPIOs to other drivers, or which puts devices in their initial states using these GPIOs π
π SEE ALSO π
- Kernel file
./include/linux/mfd/tps65010.hπ
mwah π thatβs the tea β source/version: ./include/linux/mfd, date: October 2026, and the star of the whole page is struct tps65010_board(9) πβ¨
π¦ 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