rk_tsadcv3_control(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rk_tsadcv3_control β€” Kernel API Manual, bestie edition πŸŽ€

okay so this page lives in section 9 of the kernel API manual, and it's all about rk_tsadcv3_control. say it with me: rk-tsadc-v3-control. iconic name, honestly.


✨ NAME ✨

rk_tsadcv3_control β€” literally flips the tsadc controller on or off. that's the whole vibe. enabled, or disabled. main character toggle energy πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void rk_tsadcv3_control (void __iomem *regs , bool enable );

no cap, that's the whole signature. void in, void out, nothing returned, just vibes ✨


🌸 ARGUMENTS 🌸

  • regs β€” the base address of the tsadc controller. it's a void __iomem *, so like, it's the doorway to the hardware registers. don't lose it 🫢
  • enable β€” a bool flag that enables the controller. so it's giving "on" or "off" and those are genuinely the only two options, periodt.

πŸ‘‘ NOTE πŸ‘‘

real talk, this one matters πŸ‘€

The TSADC controller works at auto mode, and some SoCs need set the tsadc_q_sel bit on TSADCV2_AUTO_CON[1]. The (1024 - tsadc_q) as output adc value if setting this bit to enable.

so yeah β€” auto mode is the default situation, but some SoCs are extra and need that tsadc_q_sel bit flipped before things behave. iykyk 😭


πŸ”₯ SEE ALSO πŸ”₯

like a whole friend group of structs and functions. they all ate πŸ’–


and that's the page!! ok bye, this was written from ./drivers/thermal, dated October 2026, and the function at the top of it all is rk_tsadcv3_control(9) πŸ’œβœ¨ stay toasty bestie πŸ“

πŸ“¦ where this page comes from