enable sht3x module in kernel, add sht3x definition to i2c-sensor dts definition...
authorGerald Pape <ubergesundheit@users.noreply.github.com>
Tue, 21 Nov 2017 14:32:11 +0000 (15:32 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:57:24 +0000 (15:57 +0100)
Enable sht3x module in kernel configuration, and add to i2c-sensor overlay.

arch/arm/boot/dts/overlays/README
arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
arch/arm/configs/bcm2709_defconfig
arch/arm/configs/bcmrpi_defconfig

index 68496003d9066f1d8646b6b09348f28402d0e271..a162494d53442de245db7a14f0f53eb449becd4e 100644 (file)
@@ -746,7 +746,7 @@ Info:   Adds support for a number of I2C barometric pressure and temperature
         sensors on i2c_arm
 Load:   dtoverlay=i2c-sensor,<param>=<val>
 Params: addr                    Set the address for the BME280, BMP280, TMP102,
-                                HDC100X or LM75
+                                HDC100X, LM75 or SHT3x
 
         bme280                  Select the Bosch Sensortronic BME280
                                 Valid addresses 0x76-0x77, default 0x76
@@ -780,6 +780,10 @@ Params: addr                    Set the address for the BME280, BMP280, TMP102,
         veml6070                Select the Vishay VEML6070 ultraviolet light
                                 sensor
 
+        sht3x                   Select the Sensiron SHT3x temperature and
+                                humidity sensor. Valid addresses 0x44-0x45,
+                                default 0x44
+
 
 Name:   i2c0-bcm2708
 Info:   Enable the i2c_bcm2708 driver for the i2c0 bus. Not all pin combinations
index 28e6fa3b659d90b4fdfcc52df37e870572731235..0b9bc8ff9dd2f192c17cd92da248f7a3d4e4fc66 100644 (file)
                };
        };
 
+       fragment@11 {
+               target = <&i2c_arm>;
+               __dormant__ {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "okay";
+
+                       sht3x: sht3x@44 {
+                               compatible = "sht3x";
+                               reg = <0x44>;
+                               status = "okay";
+                       };
+               };
+       };
+
        __overrides__ {
                addr =  <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
-                       <&lm75>,"reg:0",<&hdc100x>,"reg:0";
+                       <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0";
                bme280 = <0>,"+0";
                bmp085 = <0>,"+1";
                bmp180 = <0>,"+2";
                hdc100x = <0>,"+8";
                tsl4531 = <0>,"+9";
                veml6070 = <0>,"+10";
+               sht3x = <0>,"+11";
        };
 };
index fea5aef1d15547bc00e642adcee9ea3850fc116f..dc8b77f0637dcd5e93a4b6636028c396563154fb 100644 (file)
@@ -662,6 +662,7 @@ CONFIG_HWMON=m
 CONFIG_SENSORS_JC42=m
 CONFIG_SENSORS_LM75=m
 CONFIG_SENSORS_SHT21=m
+CONFIG_SENSORS_SHT3x=m
 CONFIG_SENSORS_SHTC1=m
 CONFIG_SENSORS_ADS1015=m
 CONFIG_SENSORS_INA2XX=m
index 4888aefa63d8c18c68ff6cb3a0f6c6a75d9db3af..2e5a841c54ea53a0376b804880c489000d5e05a5 100644 (file)
@@ -656,6 +656,7 @@ CONFIG_HWMON=m
 CONFIG_SENSORS_JC42=m
 CONFIG_SENSORS_LM75=m
 CONFIG_SENSORS_SHT21=m
+CONFIG_SENSORS_SHT3x=m
 CONFIG_SENSORS_SHTC1=m
 CONFIG_SENSORS_ADS1015=m
 CONFIG_SENSORS_INA2XX=m