Skip to content

Commit aabe16b

Browse files
jsarrettpelwell
authored andcommitted
add shtc3 to i2c-sensors
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.
1 parent 3b98637 commit aabe16b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

arch/arm/boot/dts/overlays/README

+3
Original file line numberDiff line numberDiff line change
@@ -2570,6 +2570,9 @@ Params: addr Set the address for the ADT7410, BH1750, BME280,
25702570
humidity sensors. Valid addresses 0x44-0x45,
25712571
default 0x44
25722572

2573+
shtc3 Select the Sensirion SHTC3 temperature and
2574+
humidity sensors.
2575+
25732576
si7020 Select the Silicon Labs Si7013/20/21 humidity/
25742577
temperature sensor
25752578

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

+16
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,21 @@
547547
};
548548
};
549549

550+
fragment@36 {
551+
target = <&i2cbus>;
552+
__dormant__ {
553+
#address-cells = <1>;
554+
#size-cells = <0>;
555+
status = "okay";
556+
557+
shtc3: shtc3@70 {
558+
compatible = "sensirion,shtc3";
559+
reg = <0x70>;
560+
status = "okay";
561+
};
562+
};
563+
};
564+
550565
fragment@99 {
551566
target = <&gpio>;
552567
__dormant__ {
@@ -595,6 +610,7 @@
595610
sht4x = <0>,"+32";
596611
adt7410 = <0>,"+34";
597612
ina238 = <0>,"+35";
613+
shtc3 = <0>,"+36";
598614

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

0 commit comments

Comments
 (0)