Luis Ubieda
971491b5a4
sensor: decoder: Use helper API to compute header size
...
To be consistent with the computed offset on sensor_submit_fallback()
implementation. This prevents falling in misalignment issues when the
number of sensor channels changes.
Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-04-30 19:28:02 -05:00
Luis Ubieda
45ae829791
sensor: rtio_default: Remove log when device does not contain channel
...
Since this loops over all listed sensor channels, this makes more
difficult catching other debug log messages that might be of interest
(e.g: Decoding results).
Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-04-30 19:27:15 -05:00
Luis Ubieda
fcb5d768a2
sensor: rtio_default: Add shift to sensor_submit_fallback DBG printout
...
To facilitate calculation verification between Q-number and value
obtained through fetch/get APIs.
Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-04-30 19:27:15 -05:00
Fredrik Gihl
be25e34a7c
drivers: sensor: Add TI TMP114 temperature sensors
...
Add device driver for TI TMP114 I2C temperature sensor.
The driver only support basic functionality, i.e. fetch temperature
using default values.
Datasheet:
https://www.ti.com/lit/ds/symlink/tmp114.pdf
Signed-off-by: Fredrik Gihl <fgihl@hotmail.com>
2024-04-30 14:31:07 -04:00
Benedikt Schmidt
10bbf7cd57
drivers: sensor: add driver for temperature sensor NCT75
...
Add a driver for the ON Semiconductor temperature sensor NCT75.
Signed-off-by: Benedikt Schmidt <benediktibk@gmail.com>
2024-04-26 19:22:09 -04:00
Yong Cong Sin
0291c551a2
drivers: use DT_INST_NODE_HAS_COMPAT
...
Replace occurances of:
DT_NODE_HAS_COMPAT\(DT_DRV_INST\((.*)\), (.*)\)
With:
DT_INST_NODE_HAS_COMPAT($1, $2)
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-04-26 20:04:38 +01:00
Jeff Daly
7e0a334060
drivers: sensor: ntc_thermistor: Add Murata NCP15XH103
...
Murata NCP15XH103 compensation table added.
Signed-off-by: Jeff Daly <jeffd@silicom-usa.com>
2024-04-24 15:56:23 -04:00
Juliane Schulze
ca92f96f41
drivers: lis2dh: read reference register prior to wakeup
...
Fixes #71371
Signed-off-by: Juliane Schulze <juliane.schulze@deveritec.com>
2024-04-15 12:52:39 +02:00
Jilay Pandya
eaa2c60220
refactor: adjust spacing by clang formatting
...
This commit clang-formats the file after the new additions
Signed-off-by: Jilay Pandya <jilay.pandya@zeiss.com>
2024-04-11 20:09:59 +02:00
Jilay Pandya
895e889b38
fix: sensor: veml7700
...
This commit introduces checks in order to sanitize input data
Signed-off-by: Jilay Pandya <jilay.pandya@zeiss.com>
2024-04-11 20:09:59 +02:00
Armando Visconti
38738265b9
drivers/sensor: use sensor APIs to convert to units
...
Make use of sensor_ug_to_ms2() and sensor_10udegrees_to_rad() APIs
to convert from raw values into proper units (i.e. m/s^2 for accel
and rad/s for gyro).
Signed-off-by: Armando Visconti <armando.visconti@st.com>
2024-04-10 15:55:32 +02:00
Benedikt Schmidt
888d071fe7
drivers: sensor: implement output diagnostics sensor for TLE9104
...
Implement a sensor for the output diagnostics of the power train
switch TLE9104.
Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
2024-04-09 11:07:27 +02:00
Jamie McCrae
2ae1a978ae
drivers: sensor: ite_cvmp_it8xxx2: Move init priority into if check
...
Moves a Kconfig that appears everywhere in the wrong place so that
it is enclosed if if statment check, so it only shows for device
that have the driver enabled
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-04-08 18:17:52 -05:00
Maureen Helm
d2dfb8e8d7
drivers: sensor: meas: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
b6fd6eafa1
drivers: sensor: asahi_kasei: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
3127ffb441
drivers: sensor: espressif: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
1b1954649b
drivers: sensor: infineon: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
5d79eced22
drivers: sensor: honeywell: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
eedccf7e96
drivers: sensor: aosong: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
8e46dc01ba
drivers: sensor: vishay: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
77a53a21b1
drivers: sensor: seeed: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
b52d5e20a1
drivers: sensor: rohm: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
addfa22b08
drivers: sensor: nuvoton: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
51e6cbddba
drivers: sensor: nordic: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
ec105cbf67
drivers: sensor: ite: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
2fc36432e6
drivers: sensor: wsen: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
fab99bd641
drivers: sensor: sensirion: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
5df44e43d6
drivers: sensor: ams: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
b2b2d704f4
drivers: sensor: ti: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
a2ef60e9bc
drivers: sensor: silabs: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
1cfa6d918a
drivers: sensor: nxp: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
e09398d5e0
drivers: sensor: microchip: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
c02e3aa47a
drivers: sensor: maxim: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
5b9454f520
drivers: sensor: st: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
6320a96730
drivers: sensor: bosch: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
8714f53188
drivers: sensor: adi: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Lucas Tamborrino
fe57a12cf2
drivers: esp32: update to hal_espressif v5.1
...
Modify necessary drivers to meet updated hal.
Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-04-05 13:39:53 +02:00
Jamie McCrae
554ed2235c
drivers: sensor: mpu6050: Add support for MPU6500
...
Adds basic support for using this driver with a MPU6500 device
Signed-off-by: Jamie McCrae <spam@helper3000.net>
2024-04-04 15:22:08 -05:00
Jamie McCrae
d3edd34df3
drivers: sensor: dht: Add lock IRQ option
...
Adds an option that allows for locking all interrupts when reading
the data from this sensor, this can be used alongside systems like
Bluetooth to vastly increase chances of getting a reading from the
sensor successfully, at the risk of losing Bluetooth packets.
Signed-off-by: Jamie McCrae <spam@helper3000.net>
2024-04-04 13:16:18 -05:00
Kyle Dunn
a846b81d58
drivers: sensor: lis2dux12: Add lis2dux12 driver
...
Adds support for the STMicroelectronics LIS2DUX12 3-axis accelerometer.
Signed-off-by: Kyle Dunn <kdunn926@gmail.com>
2024-04-04 09:45:49 +01:00
Renato Soma
da7b65735e
drivers: sensors: Add driver for LM35
...
Add a driver implementation for the LM35 ADC temperature sensor
Signed-off-by: Renato Soma <renatoys08@gmail.com>
2024-04-02 14:29:42 +01:00
Jeppe Odgaard
2a5dc2a0df
drivers: sensor: qdec_stm32: add optional encoder mode
...
Add support for setting encoder mode in dts.
Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2024-04-01 12:10:54 -05:00
Jeppe Odgaard
06a4d4b02f
drivers: sensor: qdec_stm32: clang-format qdec_stm32.c
...
Run clang-format on qdec_stm32.c.
This moves '\' in macros to line index 100, which ensures '\' still
aligns if a macro is edited with a new line that is longer than the
previous longest line.
Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2024-04-01 12:10:54 -05:00
Boris Mulder
f87143d919
drivers: sensor: tmp108: Handle negative values correctly
...
Negative temperatures were converted to the sensor_value struct
incorrectly.
This fixes the causes: signed/unsigned mixups and integer overflows.
Also clarified temperature calculation using multiplier/divisor config
values.
Fixes #68240
Signed-off-by: Boris Mulder <b.mulder@innoseis.com>
2024-03-29 15:09:25 +00:00
Armin Brauns
f4c596ae28
drivers: add iis328dq stmemsc driver
...
Based on the iis2dlpc driver, with some significant differences in
interrupt handling.
Signed-off-by: Armin Brauns <armin.brauns@embedded-solutions.at>
2024-03-29 10:01:37 -05:00
Armin Brauns
808d897ca8
drivers: iis2dlpc: fix typo in function name
...
iis2dlpc, not ii2sdlpc.
Signed-off-by: Armin Brauns <armin.brauns@embedded-solutions.at>
2024-03-29 10:01:37 -05:00
Armin Brauns
b49116c7eb
drivers: iis2dlpc: fix typo in log message
...
Probably copy-pasted from another line.
Signed-off-by: Armin Brauns <armin.brauns@embedded-solutions.at>
2024-03-29 10:01:37 -05:00
Nathan Olff
13deb0365c
drivers: sensor: dht20: implement new driver
...
The DHT20 sensor is a temperature and humidity sensor that uses I2C to
communicate with a microcontroller. The DHT20 sensor is Aosong.
use standard crc
update description to add reference to AHT20 and AM2301B
clean code, use defines and bit manipulation
add dht20 to i2c test suite for build tests
update bit manipulation
use more defines instead of raw numbers
add bindings to allow aht20 or am2301b to be used in devicetree
in all 3 cases, the same dht20.c driver is compiled
Signed-off-by: Nathan Olff <nathan@kickmaker.net>
2024-03-27 14:29:54 +00:00
Juliane Schulze
5254c153b9
sensor: tmag5273: fix switched mask/value argument in FIELD_GET
...
This somehow worked without problems during the test runs, but we found a
corner case where this leads to an error.
Signed-off-by: Juliane Schulze <juliane.schulze@deveritec.com>
2024-03-26 11:04:26 -04:00
Tom Burdick
41f1c3a2b7
sensors: Move TDK sensors to a subdirectory
...
Move all tdk/invensense sensors to a subdirectory named after the
vendor.
Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2024-03-26 10:54:27 -04:00