[PATCH 00/19] hw/rtc: DS1338 improvements and DS1339 support

Emmanuel Blot via qemu development posted 19 patches 2 weeks, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261105-rtc-ds1339-v1-0-50a8dc463ee8@free.fr
Maintainers: Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
hw/rtc/ds1338.c           | 353 ++++++++++++++++++++++------
include/hw/rtc/ds1338.h   |   3 +-
tests/qtest/ds1338-test.c | 191 ++++++++++++++-
tests/qtest/ds1339-test.c | 581 ++++++++++++++++++++++++++++++++++++++++++++++
tests/qtest/meson.build   |   1 +
5 files changed, 1054 insertions(+), 75 deletions(-)
[PATCH 00/19] hw/rtc: DS1338 improvements and DS1339 support
Posted by Emmanuel Blot via qemu development 2 weeks, 3 days ago
Based on master, at:
  f29ccc287a

Add the DS1339 RTC as a DS1338 variant. Improve the DS1338
implementation with support for the clock-halt bit, and a
"persist-on-reset" property keeping the registers across a reset.

New qtests for the DS1339, plus DS1338 cases for the register map.

The DS1338 vmstate goes from version 2 to 3, but older streams still
load fine.

Signed-off-by: Emmanuel Blot <emmanuel.blot@free.fr>
---
Emmanuel Blot (19):
      hw/rtc: ds1338: program the clock from the time registers
      hw/rtc: ds1338: implement the DS1338 clock-halt bit
      hw/rtc: ds1338: refresh the user registers on a read rollover only
      hw/rtc: ds1338: add a persist-on-reset property
      tests/qtest: ds1338: cover the DS1338-specific register map
      tests/qtest: ds1338: cover the power-on register defaults
      tests/qtest: ds1338: cover the clock-halt bit
      tests/qtest: ds1338: cover persist-on-reset
      tests/qtest: ds1338: cover the reserved bits of the time registers
      hw/rtc: ds1338: add DS1339 variant
      tests/qtest: ds1339: add RTC test
      tests/qtest: ds1339: cover power-on defaults and reserved-bit masking
      tests/qtest: ds1339: cover oscillator stop/restart and time programming
      tests/qtest: ds1339: cover the Century bit
      tests/qtest: ds1339: cover the end-of-month rollover
      tests/qtest: ds1339: cover the 12-hour format
      tests/qtest: ds1339: cover the day-of-week counter
      tests/qtest: ds1339: cover persist-on-reset
      tests/qtest: ds1339: cover the migration round trip

 hw/rtc/ds1338.c           | 353 ++++++++++++++++++++++------
 include/hw/rtc/ds1338.h   |   3 +-
 tests/qtest/ds1338-test.c | 191 ++++++++++++++-
 tests/qtest/ds1339-test.c | 581 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/qtest/meson.build   |   1 +
 5 files changed, 1054 insertions(+), 75 deletions(-)
---
base-commit: f29ccc287a6cfdd51d3a4fd17fbe9af3310a0ac5
change-id: 20261105-rtc-ds1339-35ebbcd86e4b

Best regards,
--  
Emmanuel Blot <emmanuel.blot@free.fr>