diff options
author | Stefan Gloor <code@stefan-gloor.ch> | 2024-01-31 12:15:12 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-02-25 21:37:36 +0100 |
commit | 9d613d9b8a9e54cc21379a40de29294adc1e6594 (patch) | |
tree | c21070ec2c351b939a409e85e0ab37308489d374 /Documentation/hwmon/sht3x.rst | |
parent | hwmon: Add driver for MPS MPQ8785 Synchronous Step-Down Converter (diff) | |
download | linux-9d613d9b8a9e54cc21379a40de29294adc1e6594.tar.xz linux-9d613d9b8a9e54cc21379a40de29294adc1e6594.zip |
hwmon: (sht3x) read out sensor serial number
The temperature/humidity sensors of the STS3x/SHT3x family are
calibrated and factory-programmed with a unique serial number.
For some sensors, this serial number can be used to obtain a calibration
certificate via an API provided by the manufacturer (Sensirion).
Expose the serial number via debugfs.
Tested with: 2x STS31, 1x STS32, 1x SHT31
Signed-off-by: Stefan Gloor <code@stefan-gloor.ch>
Link: https://lore.kernel.org/r/20240131111512.25321-2-code@stefan-gloor.ch
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon/sht3x.rst')
-rw-r--r-- | Documentation/hwmon/sht3x.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/hwmon/sht3x.rst b/Documentation/hwmon/sht3x.rst index 957c854f5d08..9585fa7c5a5d 100644 --- a/Documentation/hwmon/sht3x.rst +++ b/Documentation/hwmon/sht3x.rst @@ -65,6 +65,10 @@ When the temperature and humidity readings move back between the hysteresis values, the alert bit is set to 0 and the alert pin on the sensor is set to low. +The serial number exposed to debugfs allows for unique identification of the +sensors. For sts32, sts33 and sht33, the manufacturer provides calibration +certificates through an API. + sysfs-Interface --------------- @@ -99,3 +103,10 @@ repeatability: write or read repeatability, higher repeatability means - 1: medium repeatability - 2: high repeatability =================== ============================================================ + +debugfs-Interface +----------------- + +=================== ============================================================ +serial_number: unique serial number of the sensor in decimal +=================== ============================================================ |