bcm27xx-userland: update to latest version
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0489-add-Sensirion-SPS30-to-i2c-sensor-overlay.patch
1 From 60f3874207c50db6f6d9dbac40977843cb77acd5 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
3 Date: Sat, 7 Mar 2020 22:37:52 +0100
4 Subject: [PATCH] add Sensirion SPS30 to i2c-sensor overlay
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Add support for Sensirion SPS30 particulate matter sensor with fixed
10 address 0x69.
11
12 Signed-off-by: Petr Štetiar <ynezz@true.cz>
13 ---
14 arch/arm/boot/dts/overlays/README | 3 +++
15 arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts | 15 +++++++++++++++
16 2 files changed, 18 insertions(+)
17
18 --- a/arch/arm/boot/dts/overlays/README
19 +++ b/arch/arm/boot/dts/overlays/README
20 @@ -1261,6 +1261,9 @@ Params: addr Set the
21 si7020 Select the Silicon Labs Si7013/20/21 humidity/
22 temperature sensor
23
24 + sps30 Select the Sensirion SPS30 particulate matter
25 + sensor. Fixed address 0x69.
26 +
27 tmp102 Select the Texas Instruments TMP102 temp sensor
28 Valid addresses 0x48-0x4b, default 0x48
29
30 --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
31 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
32 @@ -231,6 +231,20 @@
33 };
34 };
35
36 + fragment@15 {
37 + target = <&i2c_arm>;
38 + __dormant__ {
39 + #address-cells = <1>;
40 + #size-cells = <0>;
41 + status = "okay";
42 +
43 + sps30: sps30@69 {
44 + compatible = "sensirion,sps30";
45 + reg = <0x69>;
46 + status = "okay";
47 + };
48 + };
49 + };
50
51 __overrides__ {
52 addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
53 @@ -252,5 +266,6 @@
54 ds1621 = <0>,"+12";
55 max17040 = <0>,"+13";
56 bme680 = <0>,"+14";
57 + sps30 = <0>,"+15";
58 };
59 };