Skip to content

Commit

Permalink
add Sensirion SPS30 to i2c-sensor overlay
Browse files Browse the repository at this point in the history
Add support for Sensirion SPS30 particulate matter sensor with fixed
address 0x69.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
  • Loading branch information
ynezz authored and pelwell committed Mar 26, 2020
1 parent 04c81e5 commit 43da8e8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/boot/dts/overlays/README
Expand Up @@ -1261,6 +1261,9 @@ Params: addr Set the address for the BME280, BME680, BMP280,
si7020 Select the Silicon Labs Si7013/20/21 humidity/
temperature sensor

sps30 Select the Sensirion SPS30 particulate matter
sensor. Fixed address 0x69.

tmp102 Select the Texas Instruments TMP102 temp sensor
Valid addresses 0x48-0x4b, default 0x48

Expand Down
15 changes: 15 additions & 0 deletions arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
Expand Up @@ -231,6 +231,20 @@
};
};

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

sps30: sps30@69 {
compatible = "sensirion,sps30";
reg = <0x69>;
status = "okay";
};
};
};

__overrides__ {
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
Expand All @@ -252,5 +266,6 @@
ds1621 = <0>,"+12";
max17040 = <0>,"+13";
bme680 = <0>,"+14";
sps30 = <0>,"+15";
};
};

0 comments on commit 43da8e8

Please sign in to comment.