STRUCT ROCKCHIP_THERMAL_DATA(9)
π NAME
struct rockchip_thermal_data β bestie, this is the struct that holds all the private data of the thermal driver π«Ά it's literally the driver's little diary, and we're reading it in the Kernel API Manual, no big deal β¨
β¨ SYNOPSIS
struct rockchip_thermal_data {
const struct rockchip_tsadc_chip *chip;
struct platform_device *pdev;
struct reset_control *reset;
struct rockchip_thermal_sensor *sensors;
struct clk *clk;
struct clk *pclk;
struct regmap *grf;
void __iomem *regs;
int trim_base;
int trim_base_frac;
int trim;
int tshut_temp;
int trim_temp;
enum tshut_mode tshut_mode;
enum tshut_polarity tshut_polarity;
};
π Members
Okay so member by member, here's the whole friend group π
chipβ pointer to the platform/configuration data. the main character honestly πpdevβ the platform device of thermalresetβ the reset controller of tsadcsensorsβ array of thermal sensors π‘οΈ (yes, an array, plural, we love a collective)clkβ the controller clock, which is divided by the exteral 24MHz (that's "external" spelled exteral in the source β iconic of the kernel fr fr π)pclkβ the advanced peripherals bus clockgrfβ the general register file, which gets used to do static set by softwareregsβ the base address of the tsadc controllertrim_baseβ major component of the sensor trim value, in Celsiustrim_base_fracβ minor component of the sensor trim value, in Decicelsius (that's the deci-prefixed bestie, don't mix them up π)trimβ fallback thermal trim value for each channeltshut_tempβ the hardware-controlled shutdown temperature value, with no trimtrim_tempβ the fallback trim temperature for the whole sensortshut_modeβ the hardware-controlled shutdown mode, and the vibes are:0:CRU1:GPIOtshut_polarityβ the hardware-controlled active polarity, vibes again:0:LOW1:HIGH
no cap, everything above is literally what the fields are β I didn't add a single extra claim, that's just the struct being the struct π
π SEE ALSO
Kernel file ./drivers/thermal/rockchip_thermal.c β and the whole extended universe πΈ:
struct chip_tsadc_table(9)struct rockchip_tsadc_chip(9)struct rockchip_thermal_sensor(9)struct tsadc_table(9)rk_tsadcv2_initialize(9)rk_tsadcv3_initialize(9)rk_tsadcv3_control(9)rockchip_get_efuse_value(9)rockchip_thermal_reset_controller(9)
go read them all, iykyk πβ¨
aaaand that's the page bestie π this was struct rockc...thermal_data(9) from ./drivers/thermal, dated October 2026 β slay, see u in the next manpage ππ¦
π¦ 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