Based on master, at:
  f29ccc287a

The TMP421 variants are now described by a class descriptor instead
of a lookup table. Channel enablement, register write masks, the
one-shot trigger and the per-channel N-factor registers are modelled,
reset follows Resettable API, and the variant type names move to a
header so boards stop open-coding the strings.

The new TMP421 state is stored in optional subsections.

New qtest for the TMP421 family, checking a migration round trip.

Signed-off-by: Emmanuel Blot <[email protected]>
---
Emmanuel Blot (16):
      hw/sensor: tmp421: do not report a stale errno on a parse failure
      hw/sensor: tmp421: name the parent object field parent_obj
      hw/sensor: tmp421: implement Resettable reset
      hw/sensor: tmp421: model device variants with a class descriptor
      hw/sensor: tmp421: honor per-variant channels and channel enablement
      hw/sensor: tmp421: implement register write masks, one-shot and N-factor
      hw/sensor: tmp421: describe the temperature properties
      hw/sensor: tmp421: keep the measurement across a range change
      hw/sensor: tmp421: migrate the exact measurement
      hw/sensor: tmp421: publish the variant type names
      hw/arm/aspeed: use the TMP421 type-name macros
      tests/qtest: tmp421: cover device IDs and reset defaults
      tests/qtest: tmp421: cover temperature encoding and range
      tests/qtest: tmp421: cover per-variant channels and enablement
      tests/qtest: tmp421: cover software reset and N-factor registers
      tests/qtest: tmp421: cover the register form of the migration stream

 hw/arm/aspeed_ast2400_palmetto.c          |   3 +-
 hw/arm/aspeed_ast2400_supermicrox11.c     |   3 +-
 hw/arm/aspeed_ast2500_supermicro-x11spi.c |   3 +-
 hw/arm/aspeed_ast2500_tiogapass.c         |  10 +-
 hw/arm/aspeed_ast2500_witherspoon.c       |   7 +-
 hw/arm/aspeed_ast2500_yosemitev2.c        |  10 +-
 hw/arm/aspeed_ast2600_bletchley.c         |   3 +-
 hw/arm/aspeed_ast2600_catalina.c          |   3 +-
 hw/arm/aspeed_ast2600_fby35.c             |   2 +-
 hw/arm/aspeed_ast2600_fuji.c              |   3 +-
 hw/arm/aspeed_ast2600_rainier.c           |  13 +-
 hw/sensor/tmp421.c                        | 429 +++++++++++++++++++++---------
 include/hw/sensor/tmp421.h                |  19 ++
 tests/qtest/meson.build                   |   1 +
 tests/qtest/tmp421-test.c                 | 326 +++++++++++++++++++++++
 15 files changed, 692 insertions(+), 143 deletions(-)
---
base-commit: f29ccc287a6cfdd51d3a4fd17fbe9af3310a0ac5
change-id: 20261105-sensor-tmp421-9d69ce545c66

Best regards,
--  
Emmanuel Blot <[email protected]>


Reply via email to