Skip to content

Commit ce53df3

Browse files
ynezzpopcornmix
authored andcommitted
add Sensirion SPS30 to i2c-sensor overlay
Add support for Sensirion SPS30 particulate matter sensor with fixed address 0x69. Signed-off-by: Petr Štetiar <ynezz@true.cz>
1 parent 853aa63 commit ce53df3

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎arch/arm/boot/dts/overlays/README‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,9 @@ Params: addr Set the address for the BME280, BME680, BMP280,
12611261
si7020 Select the Silicon Labs Si7013/20/21 humidity/
12621262
temperature sensor
12631263

1264+
sps30 Select the Sensirion SPS30 particulate matter
1265+
sensor. Fixed address 0x69.
1266+
12641267
tmp102 Select the Texas Instruments TMP102 temp sensor
12651268
Valid addresses 0x48-0x4b, default 0x48
12661269

‎arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,20 @@
231231
};
232232
};
233233

234+
fragment@15 {
235+
target = <&i2c_arm>;
236+
__dormant__ {
237+
#address-cells = <1>;
238+
#size-cells = <0>;
239+
status = "okay";
240+
241+
sps30: sps30@69 {
242+
compatible = "sensirion,sps30";
243+
reg = <0x69>;
244+
status = "okay";
245+
};
246+
};
247+
};
234248

235249
__overrides__ {
236250
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
@@ -252,5 +266,6 @@
252266
ds1621 = <0>,"+12";
253267
max17040 = <0>,"+13";
254268
bme680 = <0>,"+14";
269+
sps30 = <0>,"+15";
255270
};
256271
};

0 commit comments

Comments
 (0)