drivers: sensor: sensirion: shtcx: remove chip property

Removes the dts "chip" property, the compatible should be used instead.

Any existing dts should be converted from something like:

test_i2c_shtc3: shtc3@70 {
	compatible = "sensirion,shtcx";
	reg = <0x70>;
	chip = "shtc3";
	measure-mode = "normal";
	clock-stretching;
};

to something like:

test_i2c_shtc3: shtc3@70 {
	compatible = "sensirion,shtc3", "sensirion,shtcx";
	reg = <0x70>;
	measure-mode = "normal";
	clock-stretching;
};

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
This commit is contained in:
Thomas Stranger 2024-04-28 14:11:39 +02:00 committed by Johan Hedberg
commit 34cac05775
3 changed files with 31 additions and 16 deletions

View file

@ -231,10 +231,9 @@ test_i2c_sht4xd: sht4x@20 {
repeatability = <2>;
};
test_i2c_shtc3: SHTC3@21 {
compatible = "sensirion,shtcx";
test_i2c_shtc3: shtc3@21 {
compatible = "sensirion,shtc3", "sensirion,shtcx";
reg = <0x21>;
chip = "shtc3";
measure-mode = "normal";
clock-stretching;
};
@ -1049,3 +1048,10 @@ test_i2c_ina226: ina226@8d {
current-lsb-microamps = <5000>;
rshunt-micro-ohms = <500>;
};
test_i2c_shtc1: shtc1@8e {
compatible = "sensirion,shtc1", "sensirion,shtcx";
reg = <0x8e>;
measure-mode = "low-power";
clock-stretching;
};