From: Phil Elwell Date: Tue, 24 Jan 2023 11:34:38 +0000 (+0000) Subject: overlays: i2c-sensor: Add SHT4X support X-Git-Tag: accepted/tizen/unified/20230814.120944~316 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8c99191e1419062ac8b668956d19e788865912a;p=platform%2Fkernel%2Flinux-rpi.git overlays: i2c-sensor: Add SHT4X support Add support for the Sensirion SHT4X temperature and humidity sensor. See: https://github.com/raspberrypi/linux/issues/5334 Signed-off-by: Phil Elwell --- diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index 12d7619d..dba128f 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -2071,8 +2071,12 @@ Params: addr Set the address for the BH1750, BME280, BME680, incompatible device can stop it from being activated. - sht3x Select the Sensiron SHT3x temperature and - humidity sensor. Valid addresses 0x44-0x45, + sht3x Select the Sensirion SHT3x temperature and + humidity sensors. Valid addresses 0x44-0x45, + default 0x44 + + sht4x Select the Sensirion SHT4x temperature and + humidity sensors. Valid addresses 0x44-0x45, default 0x44 si7020 Select the Silicon Labs Si7013/20/21 humidity/ diff --git a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi index ed3a207..4648587 100755 --- a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi +++ b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi @@ -457,6 +457,21 @@ // Fragments 30 and 31 omitted due to BNO055 support in rpi-6.1.y + fragment@32 { + target = <&i2cbus>; + __dormant__ { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + sht4x: sht4x@44 { + compatible = "sht4x"; + reg = <0x44>; + status = "okay"; + }; + }; + }; + __overrides__ { bme280 = <0>,"+0"; bmp085 = <0>,"+1"; @@ -490,6 +505,7 @@ mpu6050 = <0>,"+28"; mpu9250 = <0>,"+29"; // Skip 30 and 31 + sht4x = <0>,"+32"; addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0", <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",