From: Andreas Brauchli Date: Thu, 13 Dec 2018 14:44:18 +0000 (+0100) Subject: iio: chemical: sgp30: add device tree support X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4535fa0576d2bb14060a7e80a710382414a93558;p=openwrt%2Fstaging%2Fblogic.git iio: chemical: sgp30: add device tree support Add device tree support for Sensirion SGP30/SGPC3 gas sensors. Signed-off-by: Andreas Brauchli Reviewed-by: Rob Herring Signed-off-by: Jonathan Cameron --- diff --git a/Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt b/Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt new file mode 100644 index 000000000000..5844ed58173c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt @@ -0,0 +1,15 @@ +* Sensirion SGP30/SGPC3 multi-pixel Gas Sensor + +Required properties: + + - compatible: must be one of + "sensirion,sgp30" + "sensirion,sgpc3" + - reg: the I2C address of the sensor + +Example: + +gas@58 { + compatible = "sensirion,sgp30"; + reg = <0x58>; +};