All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] rtc: pcf8563: HYM8563 support and unreliable-time reporting
@ 2026-07-19  1:49 Daniel Golle
  2026-07-19  1:49 ` [PATCH 1/2] rtc: pcf8563: add haoyu,hym8563 compatible Daniel Golle
  2026-07-19  1:49 ` [PATCH 2/2] rtc: pcf8563: return -EINVAL when the voltage-low flag is set Daniel Golle
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Golle @ 2026-07-19  1:49 UTC (permalink / raw)
  To: Tom Rini, Daniel Golle, u-boot

The Haoyu HYM8563, found for example on the Radxa ROCK 5B, is a clone of
the NXP PCF8563 with an identical timekeeping register layout, but the
pcf8563 driver does not match its compatible used in upstream DT.

Boards fitted with it end up without DM_RTC and, as a consequence,
without usable EFI GetTime and SetTime runtime services. On top of
that, when the chip reports that the time may be unreliable after a
supply voltage drop, the driver returns a bare -1, which callers
interpret as -EPERM rather than as invalid data.

This series makes the existing driver serve the HYM8563 and lets callers
distinguish an unreliable time from a permission problem.

The driver gains the additional compatible string and returns -EINVAL
when the voltage-low flag is set, matching the rv3032 driver and the
behaviour of the Linux driver for the same chips.

Daniel Golle (2):
  rtc: pcf8563: add haoyu,hym8563 compatible
  rtc: pcf8563: return -EINVAL when the voltage-low flag is set

 drivers/rtc/pcf8563.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


base-commit: ece349ade2973e220f524ce59e59711cc919263f
-- 
2.55.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-20 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-19  1:49 [PATCH 0/2] rtc: pcf8563: HYM8563 support and unreliable-time reporting Daniel Golle
2026-07-19  1:49 ` [PATCH 1/2] rtc: pcf8563: add haoyu,hym8563 compatible Daniel Golle
2026-07-20 15:42   ` Tom Rini
2026-07-19  1:49 ` [PATCH 2/2] rtc: pcf8563: return -EINVAL when the voltage-low flag is set Daniel Golle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.