rk_tsadcv2_initialize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ rk_tsadcv2_initialize(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual entry for rk_tsadcv2_initialize β€” yes it's a section 9 page, yes it's a kernel-internals moment, and yes we're gonna get through it together πŸ’–


✨ NAME ✨

rk_tsadcv2_initialize β€” literally here to initialize the TASDC Controller. that's the whole job. icon behavior, no notes πŸ’…


🌸 SYNOPSIS 🌸

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

like, look at her. void, she returns nothing, she just does the thing. main character energy fr fr 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • grf β€” the general register file πŸ’Ύ this one gets used to do static set by software. so it's the "write your settings down permanently-ish" friend of the group.
  • regs β€” the base address of the tsadc controller. this is where the party's happening, address-wise. πŸ“
  • tshut_polarity β€” the hardware-controlled active polarity, and the vibes are literally (0:LOW 1:HIGH). so: 0 means LOW, 1 means HIGH. that's it, that's the choice 🌈

πŸ”₯ DESCRIPTION πŸ”₯

so here's the little three-step glow-up this function performs, in order, no skipping:

  1. Set TSADC_V2_AUTO_PERIOD β€” configure the interleave between every two accessing of TSADC in normal operation. like the normal-speed rhythm of the thing, iykyk ⭐
  2. Set TSADCV2_AUTO_PERIOD_HT β€” configure the interleave between every two accessing of TSADC after the temperature is higher than COM_SHUT or COM_INT. yeah, the spicy mode has its own timing, obsessed 😳πŸ”₯
  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. so it's like "u sure? u sure? okay, interrupt." πŸ™ˆ
notice the second macro in step (3) is spelled TSADC_HIGHT_TSHUT_DEBOUNCE and the first is TSADCV2_HIGH_INT_DEBOUNCE β€” yep, one says HIGHT, one says HIGH. that's genuinely how they're written, don't come for me, I'm just the messenger πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

go read the kernel file ./drivers/thermal/rockchip_thermal.c and then hang out with the rest of the crew:

that's the whole group chat, all nine of them, present and accounted for πŸ§šπŸ’œ


and that's the page!! sign-off time: this lil beauty lives under ./drivers/thermal and it's dated October 2026 β€” periodt, slay, go initialize something responsibly βœ¨πŸŽ€πŸ’–

πŸ“¦ where this page comes from