Skip to content

Commit

Permalink
driver: sensor: adds basic support for analog devices ltc2990
Browse files Browse the repository at this point in the history
This commit adds Kconfig variables to configure ADLTC2990. This commit adds
basic driver code for analog devices ltc2990 sensor.

Signed-off-by: Jilay Pandya <jilay.pandya@zeiss.com>
  • Loading branch information
jilaypandya committed Sep 8, 2023
1 parent da33449 commit 89bb77e
Show file tree
Hide file tree
Showing 8 changed files with 627 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

add_subdirectory_ifdef(CONFIG_A01NYUB a01nyub)
add_subdirectory_ifdef(CONFIG_ADC_CMP_NPCX nuvoton_adc_cmp_npcx)
add_subdirectory_ifdef(CONFIG_ADLTC2990 adltc2990)
add_subdirectory_ifdef(CONFIG_ADT7310 adt7310)
add_subdirectory_ifdef(CONFIG_ADT7420 adt7420)
add_subdirectory_ifdef(CONFIG_ADXL345 adxl345)
Expand Down
1 change: 1 addition & 0 deletions drivers/sensor/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ config SENSOR_INFO
comment "Device Drivers"

source "drivers/sensor/a01nyub/Kconfig"
source "drivers/sensor/adltc2990/Kconfig"
source "drivers/sensor/adt7310/Kconfig"
source "drivers/sensor/adt7420/Kconfig"
source "drivers/sensor/adxl345/Kconfig"
Expand Down
6 changes: 6 additions & 0 deletions drivers/sensor/adltc2990/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright(c) 2023 Carl Zeiss Meditec AG
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(adltc2990.c)
13 changes: 13 additions & 0 deletions drivers/sensor/adltc2990/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ADLTC2990 Quad I2C Voltage, Current and Temperature sensor configuration options

# Copyright(c) 2023 Carl Zeiss Meditec AG
# SPDX-License-Identifier: Apache-2.0

config ADLTC2990
bool "ADLTC2990 Quad I2C Voltage, Current and Temperature Monitor"
default y
depends on DT_HAS_ADI_ADLTC2990_ENABLED
select I2C
help
Enable the driver for Analog Devices LTC2990
Quad I2C Voltage, Current and Temperature Monitor.

0 comments on commit 89bb77e

Please sign in to comment.