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
Jeppe Odgaard
d1d6938a16
drivers: sensors: grow_r502a: remove all unused drv_data
...
Fix compile warnings cause by removing drv_data in some functions.
Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2024-03-26 10:46:30 -04:00
Jeppe Odgaard
83957729dd
drivers: sensors: add fcx-mldx5 o2 sensor
...
Add driver for Angst+Pfister O2 sensors FCX-MLD25 & FCX-MLD95 and maybe
more. Tested with FCX-MLD25.
Supports get O2 value, get status, and power management.
Note that in suspended power mode heating output is at 20 %, thus
probably not suited for a battery powered device.
Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2024-03-26 10:46:30 -04:00
Jeppe Odgaard
29cc0e6aed
sensor: add SENSOR_CHAN_O2 enum value
...
Add an enum value to support O2 sensors.
Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2024-03-26 10:46:30 -04:00
Armando Visconti
8d83b76f84
drivers/sensor: add support to STTS22H temperature sensor
...
The STTS22H is an ultralow-power, high-accuracy, digital temperature
sensor offering high performance over the entire operating temperature
range. This driver is based on stmemsc HAL i/f v2.3
https://www.st.com/resource/en/datasheet/stts22h.pdf
Signed-off-by: Armando Visconti <armando.visconti@st.com>
2024-03-25 18:40:54 -04:00
Daniel Leung
3664ed64c3
arch: move arch_interface.h under zephyr/arch
...
arch_interface.h is for architecture and should not be
under sys/. So move it under include/zephyr/arch/.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-03-25 09:58:35 +00:00
Alberto Escolar Piedras
46193f48f6
drivers/sensor/bma4xx/Kconfig: Change native_posix reference to native_sim
...
As we are replacing native_posix with native_sim, let's
use native_sim instead of native_posix as example platform.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-20 15:43:05 +01:00