Skip to content

Commit dc3d969

Browse files
it-klingermaxd-nordic
authored andcommitted
[nrf fromtree] drivers: sensor: add vishay veml6031 ambient light sensor
- add driver for Vishay VEML6031 High Accuracy Ambient Light Sensor. - add new compatible "vishay,veml6031". - read and write consecutive 8 bit registers as bulk operation. - add driver to build all test of sensors. - support fetch and get. - triggered mode and interrupt is not yet supported. Signed-off-by: Andreas Klinger <[email protected]> (cherry picked from commit 72b2f01)
1 parent 4915cae commit dc3d969

File tree

8 files changed

+810
-0
lines changed

8 files changed

+810
-0
lines changed

drivers/sensor/vishay/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
# zephyr-keep-sorted-start
55
add_subdirectory_ifdef(CONFIG_VCNL36825T vcnl36825t)
66
add_subdirectory_ifdef(CONFIG_VCNL4040 vcnl4040)
7+
add_subdirectory_ifdef(CONFIG_VEML6031 veml6031)
78
add_subdirectory_ifdef(CONFIG_VEML7700 veml7700)
89
# zephyr-keep-sorted-stop

drivers/sensor/vishay/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
# zephyr-keep-sorted-start
55
source "drivers/sensor/vishay/vcnl36825t/Kconfig"
66
source "drivers/sensor/vishay/vcnl4040/Kconfig"
7+
source "drivers/sensor/vishay/veml6031/Kconfig"
78
source "drivers/sensor/vishay/veml7700/Kconfig"
89
# zephyr-keep-sorted-stop
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Andreas Klinger
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
zephyr_library()
5+
zephyr_library_sources(veml6031.c)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2025 Andreas Klinger
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Vishay VEML6031 ambient light sensor driver options.
5+
6+
config VEML6031
7+
bool "Vishay VEML6031 ambient light sensor"
8+
default y
9+
depends on DT_HAS_VISHAY_VEML6031_ENABLED
10+
select I2C
11+
help
12+
Enable Vishay VEML6031 ambient light sensor driver.

0 commit comments

Comments
 (0)