Skip to content

Commit 697d29e

Browse files
VynDragonmaxd-nordic
authored andcommitted
[nrf fromtree] sensor: Introduce Phosense XBR818 Driver
This Introduces a driver for the i2c interface of Phosense XBR818. XBR818 is a 10.525Ghz Radar chip with builtin detection algorithm. Signed-off-by: Camille BAUD <[email protected]> (cherry picked from commit 6376866)
1 parent cd16378 commit 697d29e

File tree

10 files changed

+619
-0
lines changed

10 files changed

+619
-0
lines changed

drivers/sensor/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ add_subdirectory_ifdef(CONFIG_TH02 th02)
6262
add_subdirectory_ifdef(CONFIG_TSIC_XX6 tsic_xx6)
6363
add_subdirectory_ifdef(CONFIG_VEAA_X_3 veaa_x_3)
6464
add_subdirectory_ifdef(CONFIG_VOLTAGE_DIVIDER voltage_divider)
65+
add_subdirectory_ifdef(CONFIG_XBR818 xbr818)
6566
add_subdirectory_ifdef(CONFIG_TACH_ENE_KB1200 ene_tach_kb1200)
6667

6768
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/sensor.h)

drivers/sensor/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ source "drivers/sensor/th02/Kconfig"
146146
source "drivers/sensor/tsic_xx6/Kconfig"
147147
source "drivers/sensor/veaa_x_3/Kconfig"
148148
source "drivers/sensor/voltage_divider/Kconfig"
149+
source "drivers/sensor/xbr818/Kconfig"
149150
source "drivers/sensor/ene_tach_kb1200/Kconfig"
150151

151152
endif # SENSOR
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
zephyr_library()
4+
5+
zephyr_library_sources_ifdef(CONFIG_XBR818 xbr818.c)

drivers/sensor/xbr818/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2024 MASSDRIVER EI (massdriver.space)
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config XBR818
5+
bool "XBR818 Radar"
6+
default y
7+
depends on DT_HAS_PHOSENSE_XBR818_ENABLED
8+
select I2C
9+
help
10+
Enable driver for the Phosense XBR818 Radar Sensor

0 commit comments

Comments
 (0)