rk_tsadcv3_control(9)
π 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 avoid __iomem *, so like, it's the doorway to the hardware registers. don't lose it π«Άenableβ aboolflag 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 π₯
- Kernel file
./drivers/thermal/rockchip_thermal.cβ the whole source, go read it bestie struct chip_tsadc_table(9)struct rockchip_tsadc_chip(9)struct rockchip_thermal_sensor(9)struct rockchip_thermal_data(9)struct tsadc_table(9)rk_tsadcv2_initialize(9)rk_tsadcv3_initialize(9)rockchip_get_efuse_value(9)rockchip_thermal_reset_controller(9)
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
- 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