Skip to content

Commit

Permalink
add shtc3 to i2c-sensors
Browse files Browse the repository at this point in the history
This patch adds the shtc3 device tree parameters to the i2c-sensors
overlay.  The shtc3 driver needs no other configuration parameters, as the
i2c address is permanently baked in to the silicon.
  • Loading branch information
jsarrett authored and pelwell committed Jan 27, 2025
1 parent 3b98637 commit aabe16b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -2570,6 +2570,9 @@ Params: addr Set the address for the ADT7410, BH1750, BME280,
humidity sensors. Valid addresses 0x44-0x45,
default 0x44

shtc3 Select the Sensirion SHTC3 temperature and
humidity sensors.

si7020 Select the Silicon Labs Si7013/20/21 humidity/
temperature sensor

Expand Down
16 changes: 16 additions & 0 deletions arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,21 @@
};
};

fragment@36 {
target = <&i2cbus>;
__dormant__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

shtc3: shtc3@70 {
compatible = "sensirion,shtc3";
reg = <0x70>;
status = "okay";
};
};
};

fragment@99 {
target = <&gpio>;
__dormant__ {
Expand Down Expand Up @@ -595,6 +610,7 @@
sht4x = <0>,"+32";
adt7410 = <0>,"+34";
ina238 = <0>,"+35";
shtc3 = <0>,"+36";

addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
Expand Down

0 comments on commit aabe16b

Please sign in to comment.