STRUCT TI_BANDGAP(9)
π¦ struct ti_bandgap(9) π¦
okay so bestie, we're in the Kernel API Manual today and we're talking about struct ti_bandgap β literally the bandgap device structure, no cap π
β¨ NAME β¨
struct ti_bandgap β the bandgap device structure π«Ά
πΈ SYNOPSIS πΈ
struct ti_bandgap {
struct device *dev;
void __iomem *base;
const struct ti_bandgap_data *conf;
struct temp_sensor_regval *regval;
struct clk *fclock;
struct clk *div_clk;
spinlock_t lock;
int irq;
struct gpio_desc *tshut_gpiod;
u32 clk_rate;
struct notifier_block nb;
unsigned int is_suspended:1;
};
look at her. the whole squad is in there. π
π Members π
devβ astruct devicepointer, the classic device handle bestie πbaseβ the io memory base address, where the magic lives β¨confβ a struct holding the bandgap configuration set (like#sensors,conv_table, etc.) β this is where all the specifics are hiding πregvalβ the temperature sensor register values π«fclockβ pointer to the functional clock of the temperature sensor β°div_clkβ pointer to the divider clock of the temperature sensorfclkπ°οΈlockβ a spinlock for theti_bandgapstructure πirqβ the MPU IRQ number for the thermal alert π¨tshut_gpiodβ astruct gpio_descpointerβ¦ and ngl the page does not give her a blurb, she's just sitting there in the struct being iconic πclk_rateβ holds the current clock rate πnbβ astruct notifier_blockβ¦ again, no blurb on this page, she's a mystery and we respect it πis_suspended:1β anunsigned intbitfield, one whole bit of suspended-ness π (also blurb-less on this page, fr fr)
π Description π
so this is the bandgap device structure β the one representing the bandgap device instance. she holds most of the dynamic stuff π
configurations and sensor specific entries? those live inside the conf structure. periodt. that's the whole vibe check.
π SEE ALSO π
- Kernel file
./drivers/thermal/ti-soc-thermal/ti-bandgap.h bandgap driver data structure(9)struct temp_sensor_registers(9)struct temp_sensor_data(9)struct temp_sensor_regval(9)struct ti_temp_sensor(9)ti bandgap feature types(9)struct ti_bandgap_data(9)
bestie please note: theMemberslist above covers everything the page actually documents βtshut_gpiod,nb, andis_suspended:1are in the struct but the page gives them no write-up, so don't go making up behaviour for them π
okay that's the whole page, you ate it, main character energy all the way through ππ§ and this lil masterpiece comes straight out of ./drivers/thermal/ti-soc-thermal, dated October 2026 β mwah, see you in the next doc bestie ππ
π¦ 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