STRUCT TPS65010_BOARD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 allow GPIO-N to 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