drivers: sensor: lm75: add alert threshold support
Add SENSOR_ATTR_ALERT and SENSOR_ATTR_HYSTERESIS attributes support. The code is heavily inspired by the one for lm77 sensor. Signed-off-by: Benjamin Lemouzy <blemouzy@centralp.fr>
This commit is contained in:
parent
eb2fc22967
commit
5c8937fbac
6 changed files with 342 additions and 26 deletions
|
@ -597,6 +597,7 @@ test_i2c_bmp388: bmp388@55 {
|
|||
test_i2c_lm75: lm75@56 {
|
||||
compatible = "lm75";
|
||||
reg = <0x56>;
|
||||
int-gpios = <&test_gpio 0 0>;
|
||||
};
|
||||
|
||||
test_i2c_ina230: ina230@57 {
|
||||
|
|
|
@ -40,6 +40,7 @@ CONFIG_LIS2DUX12_TRIGGER_GLOBAL_THREAD=y
|
|||
CONFIG_LIS2DW12_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LIS2MDL_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LIS3MDL_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LM75_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LPS2XDF_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LPS22HH_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LSM6DSL_TRIGGER_GLOBAL_THREAD=y
|
||||
|
|
|
@ -40,6 +40,7 @@ CONFIG_LIS2DUX12_TRIGGER_NONE=y
|
|||
CONFIG_LIS2DW12_TRIGGER_NONE=y
|
||||
CONFIG_LIS2MDL_TRIGGER_NONE=y
|
||||
CONFIG_LIS3MDL_TRIGGER_NONE=y
|
||||
CONFIG_LM75_TRIGGER_NONE=y
|
||||
CONFIG_LPS2XDF_TRIGGER_NONE=y
|
||||
CONFIG_LPS22HH_TRIGGER_NONE=y
|
||||
CONFIG_LSM6DSL_TRIGGER_NONE=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue