Skip to content

hw/rtc: DS1338 improvements and DS1339 support

Emmanuel Blot via qemu development qemu-devel 1 version New

Get series with b4
b4 am [email protected] change-id 20261105-rtc-ds1339-35ebbcd86e4b

Versions newest first

  1. v1 Latest19 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19hw/rtc: ds1338: program the clock from the time registershw/rtc/ds1338.c+63 -530 replies
2/19hw/rtc: ds1338: implement the DS1338 clock-halt bithw/rtc/ds1338.c+31 -50 replies
3/19hw/rtc: ds1338: refresh the user registers on a read rollover onlyhw/rtc/ds1338.c+6 -80 replies
4/19hw/rtc: ds1338: add a persist-on-reset propertyhw/rtc/ds1338.c+25 -40 replies
5/19tests/qtest: ds1338: cover the DS1338-specific register maptests/qtest/ds1338-test.c+66 -10 replies
6/19tests/qtest: ds1338: cover the power-on register defaultstests/qtest/ds1338-test.c+10 -00 replies
7/19tests/qtest: ds1338: cover the clock-halt bittests/qtest/ds1338-test.c+38 -00 replies
8/19tests/qtest: ds1338: cover persist-on-resettests/qtest/ds1338-test.c+54 -00 replies
9/19tests/qtest: ds1338: cover the reserved bits of the time registerstests/qtest/ds1338-test.c+22 -00 replies
10/19hw/rtc: ds1338: add DS1339 varianthw/rtc/ds1338.c include/hw/rtc/ds1338.h+168 -150 replies
11/19tests/qtest: ds1339: add RTC testtests/qtest/ds1339-test.c tests/qtest/meson.build+167 -00 replies
12/19tests/qtest: ds1339: cover power-on defaults and reserved-bit maskingtests/qtest/ds1339-test.c+51 -00 replies
13/19tests/qtest: ds1339: cover oscillator stop/restart and time programmingtests/qtest/ds1339-test.c+50 -00 replies
14/19tests/qtest: ds1339: cover the Century bittests/qtest/ds1339-test.c+60 -00 replies
15/19tests/qtest: ds1339: cover the end-of-month rollovertests/qtest/ds1339-test.c+60 -00 replies
16/19tests/qtest: ds1339: cover the 12-hour formattests/qtest/ds1339-test.c+45 -00 replies
17/19tests/qtest: ds1339: cover the day-of-week countertests/qtest/ds1339-test.c+32 -00 replies
18/19tests/qtest: ds1339: cover persist-on-resettests/qtest/ds1339-test.c+56 -00 replies
19/19tests/qtest: ds1339: cover the migration round triptests/qtest/ds1339-test.c+61 -00 replies

Reviews trailers per patch

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

Read the v1 thread

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

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.

---
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,

Signature · 1 line
Emmanuel Blot <[email protected]>