STRUCT ROCKCHIP_THERMAL_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 thermal
  • reset β€” the reset controller of tsadc
  • sensors β€” 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 clock
  • grf β€” the general register file, which gets used to do static set by software
  • regs β€” the base address of the tsadc controller
  • trim_base β€” major component of the sensor trim value, in Celsius
  • trim_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 channel
  • tshut_temp β€” the hardware-controlled shutdown temperature value, with no trim
  • trim_temp β€” the fallback trim temperature for the whole sensor
  • tshut_mode β€” the hardware-controlled shutdown mode, and the vibes are: 0:CRU 1:GPIO
  • tshut_polarity β€” the hardware-controlled active polarity, vibes again: 0:LOW 1: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 🌸:

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