Skip to content

Commit

Permalink
tests: build_all: sensors: add some tests for wurth_elektronik sensor…
Browse files Browse the repository at this point in the history
… drivers

Add some tests for the new wurth_elektronik sensor drivers.

Signed-off-by: Wajdi ELMuhtadi <wajdi.elmuhtadi@we-online.com>
  • Loading branch information
wm-eisos committed Sep 8, 2023
1 parent d44d71b commit 38823eb
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 24 deletions.
66 changes: 48 additions & 18 deletions tests/drivers/build_all/sensor/i2c.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -473,19 +473,30 @@ test_i2c_iis2iclx: iis2iclx@4c {
int-pin = <1>;
};

test_i2c_wsen_hids: wsen_hids@4d {
compatible = "we,wsen-hids";
test_i2c_wsen_hids_2525020210001: wsen_hids_2525020210001@4d {
compatible = "we,wsen-hids-2525020210001";
reg = <0x4d>;
drdy-gpios = <&test_gpio 0 0>;
odr = "1";
};

test_i2c_itds: itds@4e {
compatible = "we,wsen-itds";
test_i2c_itds_2533020201601: wsen_itds_2533020201601@4e {
compatible = "we,wsen-itds-2533020201601";
reg = <0x4e>;
int-gpios = <&test_gpio 0 0>;
odr = "800";
events-interrupt-gpios = <&test_gpio 0 0>;
drdy-interrupt-gpios = <&test_gpio 0 0>;
odr = "400";
tap-threshold = <0>, <0>, <6>;
tap-latency = < 5 >;
tap-shock = < 2 >;
tap-quiet = < 1 >;
tap-mode = < 1 >;
freefall-duration = < 6 >;
freefall-threshold = < 10 >;
delta-duration = < 1 >;
delta-threshold = < 4 >;
op-mode = "high-perf";
power-mode = "normal";
};

test_i2c_max17055: max17055@4f {
Expand Down Expand Up @@ -619,13 +630,11 @@ test_i2c_akm09918c: akm09918c@5f {
reg = <0x5f>;
};

test_i2c_wsen_tids: wsen_tids@60 {
compatible = "we,wsen-tids";
test_i2c_wsen_tids_2521020222501: wsen_tids_2521020222501@60 {
compatible = "we,wsen-tids-2521020222501";
reg = <0x60>;
int-gpios = <&test_gpio 0 0>;
interrupt-gpios = <&test_gpio 0 0>;
odr = <25>;
temp-high-threshold = <0>;
temp-low-threshold = <0>;
};

test_i2c_vl53l1x: vl53l1x@61 {
Expand All @@ -649,11 +658,11 @@ test_i2c_tmd2620: tmd2620@62 {
wait-time-factor = <0>;
};

test_i2c_wsen_pads: wsen_pads@63 {
compatible = "we,wsen-pads";
test_i2c_wsen_pads_2511020213301: wsen_pads_2511020213301@63 {
compatible = "we,wsen-pads-2511020213301";
reg = <0x63>;
drdy-gpios = <&test_gpio 0 0>;
odr = <1>;
interrupt-gpios = <&test_gpio 0 0>;
odr = <10>;
};

test_i2c_s11059: s11059@64 {
Expand All @@ -662,10 +671,10 @@ test_i2c_s11059: s11059@64 {
integration-time = <546000>;
};

test_i2c_wsen_pdus: wsen_pdus@65 {
compatible = "we,wsen-pdus";
test_i2c_wsen_pdus_25131308XXXXX: wsen_pdus_25131308XXXXX@65 {
compatible = "we,wsen-pdus-25131308XXXXX";
reg = <0x65>;
sensor-type = <3>;
sensor-type = < 4 >;
};

test_i2c_veml7700: veml7700@66 {
Expand Down Expand Up @@ -745,3 +754,24 @@ test_i2c_f75303: f75303@70 {
compatible = "fintek,f75303";
reg = <0x70>;
};

test_i2c_wsen_hids_2525020210002: wsen_hids_2525020210002@71 {
compatible = "we,wsen-hids-2525020210002";
reg = <0x71>;
precision = "High";
};

test_i2c_wsen_isds_2536030320001: wsen_isds_2536030320001@72 {
compatible = "we,wsen-isds-2536030320001";
reg = <0x72>;
accel-odr = "416";
gyro-odr = "416";
tap-threshold = < 9 >;
tap-latency = < 5 >;
tap-shock = < 2 >;
tap-quiet = < 1 >;
tap-mode = < 1 >;
tap-axis-enable = < 0 0 1 >;
events-interrupt-gpios = <&test_gpio 0 0>;
drdy-interrupt-gpios = <&test_gpio 0 0>;
};
7 changes: 5 additions & 2 deletions tests/drivers/build_all/sensor/sensors_trigger_global.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@ CONFIG_TCN75A_TRIGGER_GLOBAL_THREAD=y
CONFIG_TMD2620_TRIGGER_GLOBAL_THREAD=y
CONFIG_TMP007_TRIGGER_GLOBAL_THREAD=y
CONFIG_VCNL4040_TRIGGER_GLOBAL_THREAD=y
CONFIG_WSEN_HIDS_TRIGGER_GLOBAL_THREAD=y
CONFIG_WSEN_TIDS_TRIGGER_GLOBAL_THREAD=y
CONFIG_WSEN_TIDS_2521020222501_TRIGGER_GLOBAL_THREAD=y
CONFIG_WSEN_HIDS_2525020210001_TRIGGER_GLOBAL_THREAD=y
CONFIG_WSEN_PADS_2511020213301_TRIGGER_GLOBAL_THREAD=y
CONFIG_WSEN_ITDS_2533020201601_TRIGGER_GLOBAL_THREAD=y
CONFIG_WSEN_ISDS_2536030320001_TRIGGER_GLOBAL_THREAD=y
7 changes: 5 additions & 2 deletions tests/drivers/build_all/sensor/sensors_trigger_none.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@ CONFIG_TCN75A_TRIGGER_NONE=y
CONFIG_TMD2620_TRIGGER_NONE=y
CONFIG_TMP007_TRIGGER_NONE=y
CONFIG_VCNL4040_TRIGGER_NONE=y
CONFIG_WSEN_HIDS_TRIGGER_NONE=y
CONFIG_WSEN_TIDS_TRIGGER_NONE=y
CONFIG_WSEN_TIDS_2521020222501_TRIGGER_NONE=y
CONFIG_WSEN_HIDS_2525020210001_TRIGGER_NONE=y
CONFIG_WSEN_PADS_2511020213301_TRIGGER_NONE=y
CONFIG_WSEN_ITDS_2533020201601_TRIGGER_NONE=y
CONFIG_WSEN_ISDS_2536030320001_TRIGGER_NONE=y
7 changes: 5 additions & 2 deletions tests/drivers/build_all/sensor/sensors_trigger_own.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@ CONFIG_SX9500_TRIGGER_OWN_THREAD=y
CONFIG_TCN75A_TRIGGER_OWN_THREAD=y
CONFIG_TMP007_TRIGGER_OWN_THREAD=y
CONFIG_VCNL4040_TRIGGER_OWN_THREAD=y
CONFIG_WSEN_HIDS_TRIGGER_OWN_THREAD=y
CONFIG_WSEN_TIDS_TRIGGER_OWN_THREAD=y
CONFIG_WSEN_TIDS_2521020222501_TRIGGER_OWN_THREAD=y
CONFIG_WSEN_HIDS_2525020210001_TRIGGER_OWN_THREAD=y
CONFIG_WSEN_PADS_2511020213301_TRIGGER_OWN_THREAD=y
CONFIG_WSEN_ITDS_2533020201601_TRIGGER_OWN_THREAD=y
CONFIG_WSEN_ISDS_2536030320001_TRIGGER_OWN_THREAD=y

0 comments on commit 38823eb

Please sign in to comment.