> [a] Is there any particular reason that you picked DS3231 ? Linux kernel > has drivers for DS3232/34 only [1]. I did read the datasheets of both > 3232 & 3231 and found that they are quite similar except for the 236 > bytes of SRAM support found only in 3232. >
Yes, DS3231 is a part of a board we want to support in future. I think you could make your QEMU emulation cover both DS3231 and DS3232 (and call your file ds323x.c, or similar). If you do it right, this may be the model for handling similar cases, and I am sure there are plenty of them in the whole QEMU tree. (for example, DS1307 and DS1306) But, if this sound too complicated for you, please just cover DS3231. Also, you can contact kernel DSxxxx drivers authors for more info. I suspect their DS3232 driver works with DS3231 too. Yours, Aleksandar