Skip to content

Commit 8335900

Browse files
committed
overlays: i2c-sensor: Add sht85 support
Add a parameter to the i2c-sensor overlay to support the SHT85 sensors from Sensirion. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent da4ebcc commit 8335900

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2632,6 +2632,9 @@ Params: addr Set the address for the AD799X, ADS7828,
26322632
humidity sensors. Valid addresses 0x44-0x45,
26332633
default 0x44
26342634

2635+
sht85 Select the Sensirion SHT85 temperature and
2636+
humidity sensors. Fixed address 0x44.
2637+
26352638
shtc3 Select the Sensirion SHTC3 temperature and
26362639
humidity sensors.
26372640

arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,21 @@
893893
};
894894
};
895895

896+
fragment@58 {
897+
target = <&i2cbus>;
898+
__dormant__ {
899+
#address-cells = <1>;
900+
#size-cells = <0>;
901+
status = "okay";
902+
903+
sht85: sht85@44 {
904+
compatible = "sensirion,sht85";
905+
reg = <0x44>;
906+
status = "okay";
907+
};
908+
};
909+
};
910+
896911
fragment@98 {
897912
target-path = "/";
898913
__dormant__ {
@@ -983,6 +998,7 @@
983998
ad7998 = <0>,"+56", <&ad799x>,"compatible=adi,ad7998";
984999
ad7999 = <0>,"+56", <&ad799x>,"compatible=adi,ad7999", <&ad799x>,"reg:0=0x29";
9851000
sts3x = <0>,"+57";
1001+
sht85 = <0>,"+58";
9861002

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

0 commit comments

Comments
 (0)