tests: drivers: build_all: sensors: Test handling plural "compatible"s
Add device definitions in dt to test drivers that handle multiple "compatible"s by a single driver. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
parent
0e978fb1e6
commit
9ecc64835f
1 changed files with 39 additions and 2 deletions
|
@ -1130,11 +1130,11 @@ test_i2c_ilps22qs: ilps22qs@9c {
|
|||
|
||||
test_i2c_sts4x: sts4x@9d {
|
||||
compatible = "sensirion,sts4x";
|
||||
reg = <0x99>;
|
||||
reg = <0x9d>;
|
||||
repeatability = <2>;
|
||||
};
|
||||
|
||||
test_i2c_scd4x: scd4x@9e {
|
||||
test_i2c_scd41: scd41@9e {
|
||||
compatible = "sensirion,scd41";
|
||||
reg = <0x9e>;
|
||||
mode = <0>;
|
||||
|
@ -1148,3 +1148,40 @@ test_i2c_npm2100: npm2100@9f {
|
|||
compatible = "nordic,npm2100-vbat";
|
||||
};
|
||||
};
|
||||
|
||||
test_i2c_scd40: scd40@a1 {
|
||||
compatible = "sensirion,scd40";
|
||||
reg = <0xa1>;
|
||||
};
|
||||
|
||||
test_i2c_ina236: ina236@a2 {
|
||||
compatible = "ti,ina236";
|
||||
reg = <0xa2>;
|
||||
current-lsb-microamps = <1000>;
|
||||
rshunt-micro-ohms = <1000>;
|
||||
mask = <0>;
|
||||
alert-limit = <0>;
|
||||
alert-gpios = <&test_gpio 0 0>;
|
||||
};
|
||||
|
||||
test_i2c_as6212: as6212@a3 {
|
||||
compatible = "ams,as6212";
|
||||
reg = <0xa3>;
|
||||
};
|
||||
|
||||
test_i2c_p3t1755: p3t1755@a4 {
|
||||
compatible = "nxp,p3t1755";
|
||||
reg = <0xa4>;
|
||||
};
|
||||
|
||||
test_i2c_lsm6dso32: lsm6dso32@a5 {
|
||||
compatible = "st,lsm6dso32";
|
||||
reg = <0xa5>;
|
||||
irq-gpios = <&test_gpio 0 0>;
|
||||
accel-pm = <LSM6DSO_DT_XL_ULP_MODE>;
|
||||
accel-range = <LSM6DSO_DT_FS_8G>;
|
||||
accel-odr = <LSM6DSO_DT_ODR_1Hz6>;
|
||||
gyro-pm = <LSM6DSO_DT_GY_NORMAL_MODE>;
|
||||
gyro-range = <LSM6DSO_DT_FS_2000DPS>;
|
||||
gyro-odr = <LSM6DSO_DT_ODR_6667Hz>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue