drivers: sensor: lis2dux12: Add lis2dux12 driver
Adds support for the STMicroelectronics LIS2DUX12 3-axis accelerometer. Signed-off-by: Kyle Dunn <kdunn926@gmail.com>
This commit is contained in:
parent
fd1a129a3e
commit
a846b81d58
19 changed files with 921 additions and 1 deletions
|
@ -127,7 +127,8 @@
|
|||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>; /* 0x2C */
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>;
|
||||
|
||||
#include "spi.dtsi"
|
||||
};
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include <zephyr/dt-bindings/sensor/lis2dh.h>
|
||||
#include <zephyr/dt-bindings/sensor/iis2iclx.h>
|
||||
#include <zephyr/dt-bindings/sensor/lis2du12.h>
|
||||
#include <zephyr/dt-bindings/sensor/lis2dux12.h>
|
||||
#include <zephyr/dt-bindings/sensor/lis2de12.h>
|
||||
#include <zephyr/dt-bindings/sensor/tmag5273.h>
|
||||
#include <zephyr/dt-bindings/sensor/stts22h.h>
|
||||
|
@ -1009,6 +1010,16 @@ test_i2c_aht20: aht20@88 {
|
|||
test_i2c_am2301b: am2301b@89 {
|
||||
compatible = "aosong,am2301b";
|
||||
reg = <0x89>;
|
||||
};
|
||||
|
||||
test_i2c_lis2dux12: lis2dux12@8a {
|
||||
compatible = "st,lis2dux12";
|
||||
reg = <0x8a>;
|
||||
int1-gpios = <&test_gpio 0 0>;
|
||||
int2-gpios = <&test_gpio 0 0>;
|
||||
range = <LIS2DUX12_DT_FS_16G>;
|
||||
odr = <LIS2DUX12_DT_ODR_100Hz>;
|
||||
power-mode = <LIS2DUX12_OPER_MODE_HIGH_FREQUENCY>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
|
|
@ -5,5 +5,6 @@ CONFIG_LSM6DSV16X_ENABLE_TEMP=y
|
|||
CONFIG_LSM6DSO_ENABLE_TEMP=y
|
||||
CONFIG_LIS2DE12_ENABLE_TEMP=y
|
||||
CONFIG_LIS2DS12_ENABLE_TEMP=y
|
||||
CONFIG_LIS2DUX12_ENABLE_TEMP=y
|
||||
CONFIG_LSM6DSO16IS_ENABLE_TEMP=y
|
||||
CONFIG_LSM6DSL_ENABLE_TEMP=y
|
||||
|
|
|
@ -36,6 +36,7 @@ CONFIG_LIS2DH_TRIGGER_GLOBAL_THREAD=y
|
|||
CONFIG_LIS2DE12_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LIS2DS12_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LIS2DU12_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LIS2DUX12_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LIS2DW12_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LIS2MDL_TRIGGER_GLOBAL_THREAD=y
|
||||
CONFIG_LIS3MDL_TRIGGER_GLOBAL_THREAD=y
|
||||
|
|
|
@ -36,6 +36,7 @@ CONFIG_LIS2DH_TRIGGER_NONE=y
|
|||
CONFIG_LIS2DE12_TRIGGER_NONE=y
|
||||
CONFIG_LIS2DS12_TRIGGER_NONE=y
|
||||
CONFIG_LIS2DU12_TRIGGER_NONE=y
|
||||
CONFIG_LIS2DUX12_TRIGGER_NONE=y
|
||||
CONFIG_LIS2DW12_TRIGGER_NONE=y
|
||||
CONFIG_LIS2MDL_TRIGGER_NONE=y
|
||||
CONFIG_LIS3MDL_TRIGGER_NONE=y
|
||||
|
|
|
@ -34,6 +34,7 @@ CONFIG_LIS2DH_TRIGGER_OWN_THREAD=y
|
|||
CONFIG_LIS2DE12_TRIGGER_OWN_THREAD=y
|
||||
CONFIG_LIS2DS12_TRIGGER_OWN_THREAD=y
|
||||
CONFIG_LIS2DU12_TRIGGER_OWN_THREAD=y
|
||||
CONFIG_LIS2DUX12_TRIGGER_OWN_THREAD=y
|
||||
CONFIG_LIS2DW12_TRIGGER_OWN_THREAD=y
|
||||
CONFIG_LIS2MDL_TRIGGER_OWN_THREAD=y
|
||||
CONFIG_LIS3MDL_TRIGGER_OWN_THREAD=y
|
||||
|
|
|
@ -361,3 +361,12 @@ test_spi_iis328dq: iis328dq@2c {
|
|||
int1-gpios = <&test_gpio 0 0>;
|
||||
drdy-int-pad = <1>;
|
||||
};
|
||||
|
||||
test_spi_lis2dux12: lis2dux12@2d {
|
||||
compatible = "st,lis2dux12";
|
||||
reg = <0x2d>;
|
||||
spi-max-frequency = <0>;
|
||||
int1-gpios = <&test_gpio 0 0>;
|
||||
int2-gpios = <&test_gpio 0 0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue