rk_tsadcv3_initialize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– rk_tsadcv3_initialize(9) β€” aka the Kernel API Manual glow-up ✨

Okay bestie, gather round, because we're diving into rk_tsadcv3_initialize from the Kernel API Manual and honestly? It's giving "small function, big responsibilities." πŸŽ€


🌸 NAME 🌸

rk_tsadcv3_initialize β€” literally just initialize the TASDC Controller. That's the whole vibe. πŸ’…


✨ SYNOPSIS ✨

void rk_tsadcv3_initialize (struct regmap *grf , void __iomem *regs ,
enum tshut_polarity tshut_polarity );

No return value, no drama, just vibes and initialization. πŸ¦‹


🫢 ARGUMENTS 🫢

  • grf β€” the general register file, which is gonna get used to do static set by software. She's the setup queen. πŸ‘‘
  • regs β€” the base address of the tsadc controller. Like, where the controller actually lives, address-wise. πŸ“
  • tshut_polarity β€” the hardware-controlled active polarity. The values are 0 for LOW and 1 for HIGH β€” icon behavior, no cap. ⚑

πŸ”₯ DESCRIPTION πŸ”₯

So here's the whole sequence, step by step, and yes we're doing all of it because nothing here is skippable:

  • (1) The tsadc control power sequence. Power-up era. 🌈
  • (2) Set TSADC_V2_AUTO_PERIOD: this configures the interleave between every two accessing of TSADC in normal operation. Just normal-operation business. 🧚
  • (2) Set TSADCV2_AUTO_PERIOD_HT: this one configures the interleave between every two accessing of TSADC after the temperature is higher than COM_SHUT or COM_INT. (Yes, it's a second (2). We are not fixing the numbering, we are respecting the lore. πŸ’€)
  • (3) Set TSADCV2_HIGH_INT_DEBOUNCE and TSADC_HIGHT_TSHUT_DEBOUNCE: if the temperature is higher than COMP_INT or COMP_SHUT for "debounce" times, the TSADC controller will generate interrupt or TSHUT. Debounce is doing the absolute most here and we stan. 😭πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/thermal/rockchip_thermal.c, plus these absolute main characters:

Iykyk. Go read them, bestie, they're all connected. πŸ’œ


Ngl, if you're here you're probably deep in thermal driver land at some cursed hour. Hydrate, then go read the SEE ALSO list. πŸ“

And that's the page, periodt. πŸ’… This little gem lives in ./drivers/thermal, dated October 2026 β€” mark your calendars, screenshot it, send it to the group chat. πŸŽ€βœ¨πŸ«Ά

πŸ“¦ where this page comes from