Browse Source
These three sensor types are all largely compatible. The SHT21 and HTU21D can be supported by this driver by sending command 0xE3 instead of 0xE0 to read the temperature. Mention the sensor names in bindings and Kconfig to help those looking for support to find it. There have been at least five PRs attempting to add SHT21 and/or HTU21D support that did not realize the Si7006 is the same. As mentioned in PR #22862, the Sensirion SH21 is the original. The dts bindings are adjusted (in a backward compatible way!) to make the sht21 the base binding and si7006 is derived from that. Examples of dts compatibles: TE Connectivity née Measurement Sepcialties HTU21D: compatible = "meas,htu21d", "sensirion,sht21"; Sensirion SHT21: compatible = "sensirion,sht21"; Silicon Labs Si7006 compatible = "silabs,si7006"; Silicon Labs Si7021 compatible = "silabs,si7021", "silabs,si7006"; Signed-off-by: Trent Piepho <tpiepho@gmail.com>pull/74334/head
5 changed files with 48 additions and 18 deletions
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
# Copyright (c) 2023, Trent Piepho <tpiepho@gmail.com> |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
description: | |
||||
Sensirion SHT21 Humidity and Temperature Sensor |
||||
|
||||
This is compatible with the Measurement Specialties HUT21D, "meas,htu21d". |
||||
|
||||
For the Silicon Labs Si7006/13/20/21 series, use the "silabs,si7006" |
||||
compatible for slightly altered operation. |
||||
|
||||
compatible: "sensirion,sht21" |
||||
|
||||
include: [sensor-device.yaml, i2c-device.yaml] |
@ -1,8 +1,14 @@
@@ -1,8 +1,14 @@
|
||||
# Copyright (c) 2019, Electronut Labs |
||||
# Copyright (c) 2023, Trent Piepho <tpiepho@gmail.com> |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
description: Si7006 temperature and humidity sensor |
||||
description: | |
||||
Silicon Labs Si7006 Humidity and Temperature Sensor |
||||
|
||||
This is compatible with a range of Silicon Labs sensors, such as the Si7013, |
||||
Si7020, and Si7021. This binding will use a slightly different (better) |
||||
command to read temperature from the "sensirion,sht21" binding. |
||||
|
||||
compatible: "silabs,si7006" |
||||
|
||||
include: [sensor-device.yaml, i2c-device.yaml] |
||||
include: sensirion,sht21.yaml |
||||
|
Loading…
Reference in new issue