mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
55 lines
1.7 KiB
Diff
55 lines
1.7 KiB
Diff
|
From 0fa1f65da585dae9cf4fce77f412eb129ac13da6 Mon Sep 17 00:00:00 2001
|
||
|
From: Mehmet Ahsen <2084476+mehmetahsen@users.noreply.github.com>
|
||
|
Date: Fri, 21 May 2021 00:14:29 +0200
|
||
|
Subject: [PATCH] overlays: add sensirion sgp30 to i2c-sensor overlay
|
||
|
|
||
|
---
|
||
|
arch/arm/boot/dts/overlays/README | 3 +++
|
||
|
.../arm/boot/dts/overlays/i2c-sensor-overlay.dts | 16 ++++++++++++++++
|
||
|
2 files changed, 19 insertions(+)
|
||
|
mode change 100644 => 100755 arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
|
||
|
|
||
|
--- a/arch/arm/boot/dts/overlays/README
|
||
|
+++ b/arch/arm/boot/dts/overlays/README
|
||
|
@@ -1527,6 +1527,9 @@ Params: addr Set the
|
||
|
sps30 Select the Sensirion SPS30 particulate matter
|
||
|
sensor. Fixed address 0x69.
|
||
|
|
||
|
+ sgp30 Select the Sensirion SGP30 VOC sensor.
|
||
|
+ Fixed address 0x58.
|
||
|
+
|
||
|
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
|
||
|
@@ -246,6 +246,21 @@
|
||
|
};
|
||
|
};
|
||
|
|
||
|
+ fragment@16 {
|
||
|
+ target = <&i2c_arm>;
|
||
|
+ __dormant__ {
|
||
|
+ #address-cells = <1>;
|
||
|
+ #size-cells = <0>;
|
||
|
+ status = "okay";
|
||
|
+
|
||
|
+ sgp30: sgp30@58 {
|
||
|
+ compatible = "sensirion,sgp30";
|
||
|
+ reg = <0x58>;
|
||
|
+ status = "okay";
|
||
|
+ };
|
||
|
+ };
|
||
|
+ };
|
||
|
+
|
||
|
__overrides__ {
|
||
|
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
|
||
|
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
|
||
|
@@ -267,5 +282,6 @@
|
||
|
max17040 = <0>,"+13";
|
||
|
bme680 = <0>,"+14";
|
||
|
sps30 = <0>,"+15";
|
||
|
+ sgp30 = <0>,"+16";
|
||
|
};
|
||
|
};
|