Skip to content

Commit c48de50

Browse files
pelwellpopcornmix
authored andcommitted
overlays: i2c-sensor: Add sts3x support
Add a parameter to the i2c-sensor overlay to support the STS3X sensors from Sensirion. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent d5f7ae5 commit c48de50

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2444,7 +2444,8 @@ Params: addr Set the address for the AD799X, ADS7828,
24442444
BME280, BME680, BMP280, BMP380, BMP58x, CCS811,
24452445
DS1621, HDC100X, HDC3020, JC42, LM75, MCP980x,
24462446
MPU6050, MPU9250, MS5637, MS5803, MS5805,
2447-
MS5837, MS8607, SHT3x, TMP102 or VEML6030.
2447+
MS5837, MS8607, SHT3x, STS3X, TMP102 or
2448+
VEML6030.
24482449

24492450
i2c-bus Supports all the standard I2C bus selection
24502451
parameters - see "dtoverlay -h i2c-bus"
@@ -2640,6 +2641,8 @@ Params: addr Set the address for the AD799X, ADS7828,
26402641
sps30 Select the Sensirion SPS30 particulate matter
26412642
sensor. Fixed address 0x69.
26422643

2644+
sts3x Select the Sensirion STS3X temperature sensors.
2645+
Valid addresses 0x4a-0x4b, default 0x4a
26432646

26442647
tcs3472 Select the AMS TAOS TCS3472 family of RGBW light
26452648
sensors.

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,21 @@
878878
};
879879
};
880880

881+
fragment@57 {
882+
target = <&i2cbus>;
883+
__dormant__ {
884+
#address-cells = <1>;
885+
#size-cells = <0>;
886+
status = "okay";
887+
888+
sts3x: sts3x@4a {
889+
compatible = "sensirion,sts3x";
890+
reg = <0x4a>;
891+
status = "okay";
892+
};
893+
};
894+
};
895+
881896
fragment@98 {
882897
target-path = "/";
883898
__dormant__ {
@@ -967,6 +982,7 @@
967982
ad7997 = <0>,"+56", <&ad799x>,"compatible=adi,ad7997";
968983
ad7998 = <0>,"+56", <&ad799x>,"compatible=adi,ad7998";
969984
ad7999 = <0>,"+56", <&ad799x>,"compatible=adi,ad7999", <&ad799x>,"reg:0=0x29";
985+
sts3x = <0>,"+57";
970986

971987
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
972988
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -982,7 +998,7 @@
982998
<&ads7828>,"reg:0", <&ads7830>,"reg:0",
983999
<&adxl355>,"reg:0", <&bmp58x>,"reg:0",
9841000
<&veml6030>,"reg:0", <&tmp117>,"reg:0",
985-
<&ad799x>,"reg:0";
1001+
<&ad799x>,"reg:0", <&sts3x>,"reg:0";
9861002
int_pin = <&int_pins>, "brcm,pins:0",
9871003
<&int_pins>, "reg:0",
9881004
<&max30102>, "interrupts:0",

0 commit comments

Comments
 (0)