Lines Matching +full:temperature +full:- +full:sensor

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * OMAP4 Bandgap temperature sensor driver
5 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
26 * +----------+----------------+
28 * +---------------------------+
32 * +-------------------+ +-----------------+
33 * | struct ti_bandgap |-->| struct device * |
34 * +----------+--------+ +-----------------+
38 * +------------------------+
40 * +------------------------+
44 * +------------+------------------------------------------------------+
45 * | +----------+------------+ +-------------------------+ |
46 * | | struct ti_temp_sensor |-->| struct temp_sensor_data | |
47 * | +-----------------------+ +------------+------------+ |
51 * | +----------+-------------------+ |
53 * | +------------------------------+ |
55 * +-------------------------------------------------------------------+
60 * sensors, representing every sensor instance present in this bandgap.
64 * struct temp_sensor_registers - descriptor to access registers and bitfields
138 * struct temp_sensor_data - The thresholds and limits for temperature sensors.
139 * @tshut_hot: temperature to trigger a thermal reset (initial value)
141 * @t_hot: temperature to trigger a thermal alert (high initial value)
142 * @t_cold: temperature to trigger a thermal alert (low initial value)
143 * @min_freq: sensor minimum clock rate
144 * @max_freq: sensor maximum clock rate
146 * This data structure will hold the required thresholds and temperature limits
147 * for a specific temperature sensor, like shutdown temperature, alert
148 * temperature, clock / rate used, ADC conversion limits and update intervals
162 * struct temp_sensor_regval - temperature sensor register values and priv data
163 * @bg_mode_ctrl: temp sensor control register value
183 * struct ti_bandgap - bandgap device structure
187 * @regval: temperature sensor register values
188 * @fclock: pointer to functional clock of temperature sensor
189 * @div_clk: pointer to divider clock of temperature sensor fclk
196 * It holds most of the dynamic stuff. Configurations and sensor specific
215 * struct ti_temp_sensor - bandgap temperature sensor configuration data
216 * @ts_data: pointer to struct with thresholds, limits of temperature sensor
218 * @domain: the name of the domain where the sensor is located
219 * @slope_pcb: sensor gradient slope info for hotspot extrapolation equation
221 * @constant_pcb: sensor gradient const info for hotspot extrapolation equation
223 * @register_cooling: function to describe how this sensor is going to be cooled
226 * Data structure to describe a temperature sensor handled by a bandgap device.
227 * It should provide configuration details on this sensor, such as how to
228 * access the registers affecting this sensor, shadow register buffer, how to
229 * assess the gradient from hotspot, how to cooldown the domain when sensor
230 * reports too hot temperature.
246 * TI_BANDGAP_FEATURE_TSHUT - used when the thermal shutdown signal output
251 * TI_BANDGAP_FEATURE_TSHUT_CONFIG - used when the bandgap device has control
255 * TI_BANDGAP_FEATURE_TALERT - used when the bandgap device instance outputs
258 * TI_BANDGAP_FEATURE_MODE_CONFIG - used when it is possible to choose which
261 * TI_BANDGAP_FEATURE_COUNTER - used when the bandgap device instance allows
264 * TI_BANDGAP_FEATURE_POWER_SWITCH - used when the bandgap device allows
267 * TI_BANDGAP_FEATURE_CLK_CTRL - used when the clocks feeding the bandgap
270 * TI_BANDGAP_FEATURE_FREEZE_BIT - used when the bandgap device features
273 * TI_BANDGAP_FEATURE_COUNTER_DELAY - used when the bandgap device features
276 * TI_BANDGAP_FEATURE_HISTORY_BUFFER - used when the bandgap device features
279 * TI_BANDGAP_FEATURE_ERRATA_814 - used to workaorund when the bandgap device
281 * TI_BANDGAP_FEATURE_UNRELIABLE - used when the sensor readings are too
283 * TI_BANDGAP_FEATURE_CONT_MODE_ONLY - used when single mode hangs the sensor
284 * TI_BANDGAP_HAS(b, f) - macro to check if a bandgap device is capable of a
285 * specific feature (above) or not. Return non-zero, if yes.
301 ((b)->conf->features & TI_BANDGAP_FEATURE_ ## f)
304 * struct ti_bandgap_data - ti bandgap data configuration structure
306 * @conv_table: Pointer to ADC to temperature conversion table
311 * @sensor_count: count of temperature sensor within this bandgap device
313 * @expose_sensor: callback to export sensor to thermal API
314 * @remove_sensor: callback to destroy sensor from thermal API
344 int *temperature);