Skip to content

Commit e99ef14

Browse files
jsarrettpopcornmix
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 5205350 commit e99ef14

File tree

2 files changed

+28
-9
lines changed

2 files changed

+28
-9
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,6 +2605,9 @@ Params: addr Set the address for the ADT7410, AS73211,
26052605
humidity sensors. Valid addresses 0x44-0x45,
26062606
default 0x44
26072607

2608+
shtc3 Select the Sensirion SHTC3 temperature and
2609+
humidity sensors.
2610+
26082611
si7020 Select the Silicon Labs Si7013/20/21 humidity/
26092612
temperature sensor
26102613

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

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,21 @@
548548
};
549549

550550
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+
565+
fragment@37 {
551566
target = <&i2cbus>;
552567
__dormant__ {
553568
#address-cells = <1>;
@@ -565,7 +580,7 @@
565580
};
566581
};
567582

568-
fragment@37 {
583+
fragment@38 {
569584
target = <&i2cbus>;
570585
__dormant__ {
571586
#address-cells = <1>;
@@ -579,7 +594,7 @@
579594
};
580595
};
581596

582-
fragment@38 {
597+
fragment@39 {
583598
target = <&i2cbus>;
584599
__dormant__ {
585600
#address-cells = <1>;
@@ -597,7 +612,7 @@
597612
};
598613
};
599614

600-
fragment@39 {
615+
fragment@40 {
601616
target = <&i2cbus>;
602617
__dormant__ {
603618
#address-cells = <1>;
@@ -615,7 +630,7 @@
615630
};
616631
};
617632

618-
fragment@40 {
633+
fragment@41 {
619634
target = <&i2cbus>;
620635
__dormant__ {
621636
#address-cells = <1>;
@@ -681,11 +696,12 @@
681696
sht4x = <0>,"+32";
682697
adt7410 = <0>,"+34";
683698
ina238 = <0>,"+35";
684-
hts221 = <0>,"+36+99";
685-
veml6075 = <0>,"+37";
686-
hdc3020 = <0>,"+38+99";
687-
as73211 = <0>,"+39+99";
688-
as7331 = <0>,"+40+99";
699+
shtc3 = <0>,"+36";
700+
hts221 = <0>,"+37+99";
701+
veml6075 = <0>,"+38";
702+
hdc3020 = <0>,"+39+99";
703+
as73211 = <0>,"+40+99";
704+
as7331 = <0>,"+41+99";
689705

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

0 commit comments

Comments
 (0)