overlays: add sensirion sgp30 to i2c-sensor overlay
authorMehmet Ahsen <2084476+mehmetahsen@users.noreply.github.com>
Thu, 20 May 2021 22:14:29 +0000 (00:14 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 21 May 2021 10:06:16 +0000 (11:06 +0100)
arch/arm/boot/dts/overlays/README
arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts [changed mode: 0644->0755]

index a0e28b8..2a79440 100644 (file)
@@ -1527,6 +1527,9 @@ Params: addr                    Set the address for the BME280, BME680, BMP280,
         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
 
old mode 100644 (file)
new mode 100755 (executable)
index ce97837..73c691c
                };
        };
 
+       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",
                max17040 = <0>,"+13";
                bme680 = <0>,"+14";
                sps30 = <0>,"+15";
+               sgp30 = <0>,"+16";
        };
 };