Skip to content

Add AHT20 sensor bindings and fix driver initialization

Hao Yu linux-devicetree linux-hwmon lkml 2 versions Applied

Status from this message: Applied, since htis is a fix which doewsn't depend on the devicetree patches.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesApplied
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Split the driver patch into two separate commits:
- Patch 2/3: A fix for the initialization bug (includes Fixes tag).
- Patch 3/3: A feature patch for adding Device Tree support.
- Improved the commit message for the initialization fix with a detailed explanation as requested by Guenter Roeck.
- Fixed indentation in aht10.c (ensured tab usage after macro definition).

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: hwmon: add aosong,aht10 familyDocumentation/devicetree/bindings/hwmon/aosong,aht10.yaml+41 -01 reply
2/3hwmon: (aht10) Fix initialization commands for AHT20drivers/hwmon/aht10.c+4 -21 reply
3/3hwmon: (aht10) Add Device Tree supportdrivers/hwmon/aht10.c+10 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Add AHT20 sensor bindings and fix driver initialization

This patch series adds device tree binding documentation for Aosong AHT10/AHT20 series sensors, fixes the initialization command sequence for AHT20, and adds Device Tree support to the driver.

The AHT20 sensor was tested on a rk3566_lckfb board with the I2C-2 port. Temperature and humidity readings are now accurate after fixing the initialization command.

Changes in v2:
- Split the driver patch into two separate commits:
- Patch 2/3: A fix for the initialization bug (includes Fixes tag).
- Patch 3/3: A feature patch for adding Device Tree support.
- Improved the commit message for the initialization fix with a detailed explanation as requested by Guenter Roeck.
- Fixed indentation in aht10.c (ensured tab usage after macro definition).

Hao Yu (3):
dt-bindings: hwmon: add aosong,aht10 family
hwmon: (aht10) Fix initialization commands for AHT20
hwmon: (aht10) Add Device Tree support

 .../bindings/hwmon/aosong,aht10.yaml          | 41 +++++++++++++++++++
 drivers/hwmon/aht10.c                         | 16 +++++++-
 2 files changed, 55 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/hwmon/aosong,aht10.yaml
Signature · 1 line
2.34.1