BANDGAP DRIVER DATA STRUCTURE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– bandgap driver data structure πŸ’–

okay bestie, welcome to the bandgap driver data structure(9) page from the Kernel API Manual ✨. this one is lowkey just a map of the bandgap data structures, and the diagram is doing a lot of the talking, so let it cook:

       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
       β”‚     struct temp_sensor_regval β”‚
       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

       β€’      (Array of) | |

              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β”‚     struct ti_bandgap   -->   struct device * β”‚
              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              | | V

              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β”‚     struct ti_bandgap_data β”‚
              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              | |

       β€’      (Array of)

              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β”‚ +----------+------------+   +-------------------------+ β”‚
              β”‚                                                         β”‚
              β”‚ +-----------------------+   +------------+------------+ β”‚
              β”‚                                                         β”‚
              β”‚ +                                                       β”‚
              β”‚ V                                                       β”‚
              β”‚ +----------+-------------------+                        β”‚
              β”‚                                                         β”‚
              β”‚ +------------------------------+                        β”‚
              β”‚                                                         β”‚
              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

so yeah, that diagram above is literally a simple little diagram describing how the data structures below are organized. no cap. for each bandgap device there should be a ti_bandgap_data containing the device instance configuration, as well as, an array of sensors, representing every sensor instance present in this bandgap. that's the vibe: one config data situation per device, plus a sensor array holding every sensor instance for that bandgap. periodt πŸ’…


🌸 SEE ALSO 🌸

  • Kernel file ./drivers/thermal/ti-soc-thermal/ti-bandgap.h
  • struct temp_sensor_registers(9)
  • struct temp_sensor_data(9)
  • struct temp_sensor_regval(9)
  • struct ti_bandgap(9)
  • struct ti_temp_sensor(9)
  • ti bandgap feature types(9)
  • struct ti_bandgap_data(9)

mwah πŸ’‹ that's the whole page. the source/version is ./drivers/thermal/ti-soc-thermal, the date is October 2026, and the footer is serving bandgap dri...ta structure(9). periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from