rk_tsadcv3_initialize(9)
π 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 are0for LOW and1for 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 thanCOM_SHUTorCOM_INT. (Yes, it's a second(2). We are not fixing the numbering, we are respecting the lore. π) - (3) Set
TSADCV2_HIGH_INT_DEBOUNCEandTSADC_HIGHT_TSHUT_DEBOUNCE: if the temperature is higher thanCOMP_INTorCOMP_SHUTfor"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:
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_control(9)rockchip_get_efuse_value(9)rockchip_thermal_reset_controller(9)
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
- 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