f07e572f64
bcm2708: boot tested on RPi B+ v1.2 bcm2709: boot tested on RPi 3B v1.2 and RPi 4B v1.1 4G bcm2710: boot tested on RPi 3B v1.2 bcm2711: boot tested on RPi 4B v1.1 4G Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
60 lines
1.7 KiB
Diff
60 lines
1.7 KiB
Diff
From 60f3874207c50db6f6d9dbac40977843cb77acd5 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
|
|
Date: Sat, 7 Mar 2020 22:37:52 +0100
|
|
Subject: [PATCH] add Sensirion SPS30 to i2c-sensor overlay
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Add support for Sensirion SPS30 particulate matter sensor with fixed
|
|
address 0x69.
|
|
|
|
Signed-off-by: Petr Štetiar <ynezz@true.cz>
|
|
---
|
|
arch/arm/boot/dts/overlays/README | 3 +++
|
|
arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts | 15 +++++++++++++++
|
|
2 files changed, 18 insertions(+)
|
|
|
|
--- a/arch/arm/boot/dts/overlays/README
|
|
+++ b/arch/arm/boot/dts/overlays/README
|
|
@@ -1261,6 +1261,9 @@ Params: addr Set the
|
|
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
|
|
|
|
--- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
|
|
+++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
|
|
@@ -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",
|
|
@@ -252,5 +266,6 @@
|
|
ds1621 = <0>,"+12";
|
|
max17040 = <0>,"+13";
|
|
bme680 = <0>,"+14";
|
|
+ sps30 = <0>,"+15";
|
|
};
|
|
};
|