From 610cb7f0ad3ac51156491d0f2e6badb03bc9d379 Mon Sep 17 00:00:00 2001 From: Wajdi ELMuhtadi Date: Thu, 7 Sep 2023 16:01:39 +0200 Subject: [PATCH] tests: build_all: sensors: add some tests for wurth_elektronik sensor drivers Add some tests for the new wurth_elektronik sensor drivers. Signed-off-by: Wajdi ELMuhtadi --- tests/drivers/build_all/sensor/i2c.dtsi | 66 ++++++++++++++++++------- 1 file changed, 48 insertions(+), 18 deletions(-) diff --git a/tests/drivers/build_all/sensor/i2c.dtsi b/tests/drivers/build_all/sensor/i2c.dtsi index 6beea40d4944087..158334aa83aaa67 100644 --- a/tests/drivers/build_all/sensor/i2c.dtsi +++ b/tests/drivers/build_all/sensor/i2c.dtsi @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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 = <71>; + precision = "High"; +}; + +test_i2c_wsen_isds_2536030320001: wsen_isds_2536030320001@72 { + compatible = "we,wsen-isds-2536030320001"; + reg = <72>; + 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>; +}; \ No newline at end of file