All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/2] Update RV3029 driver to DM and add DM-backed bootcount support
@ 2018-11-27 22:00 Philipp Tomsich
  2018-11-27 22:00 ` [U-Boot] [PATCH v2 1/2] bootcount: add uclass for bootcount Philipp Tomsich
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Philipp Tomsich @ 2018-11-27 22:00 UTC (permalink / raw)
  To: u-boot


On one of our application-specific carrier boards, a MicroCrystal
RV3029 acts as an off-module battery-backed RTC for the RK3399-Q7.
The RV3029 is intended both to provide RTC services (to Linux) and
to store the bootcount in its battery-backed SRAM section.

To support this use-case, this series adds the following:
 * replaces the existing RV3029 driver by a DM-based one (note that the
   existing driver appears unused and didn't even have a Kconfig entry)
   that closely mirrors its incarnation in Linux 4.17
 * adds a bootcount-method interfacing back into DM devices (implementing
   support for the RTC uclass as of now).


Changes in v2:
- changed to provide a UCLASS-based implementation, as requested by
  SJG in his earlier review
- split off the RV3029 driver into a separate series

Philipp Tomsich (2):
  bootcount: add uclass for bootcount
  bootcount: add a DM RTC backing store for bootcount

 doc/device-tree-bindings/chosen.txt  | 30 ++++++++++++
 drivers/bootcount/Kconfig            | 28 +++++++++++
 drivers/bootcount/Makefile           |  3 ++
 drivers/bootcount/bootcount-uclass.c | 93 ++++++++++++++++++++++++++++++++++++
 drivers/bootcount/rtc.c              | 89 ++++++++++++++++++++++++++++++++++
 include/bootcount.h                  | 48 +++++++++++++++++++
 include/dm/uclass-id.h               |  1 +
 7 files changed, 292 insertions(+)
 create mode 100644 drivers/bootcount/bootcount-uclass.c
 create mode 100644 drivers/bootcount/rtc.c

-- 
2.1.4

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

end of thread, other threads:[~2018-12-14 20:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-27 22:00 [U-Boot] [PATCH v2 0/2] Update RV3029 driver to DM and add DM-backed bootcount support Philipp Tomsich
2018-11-27 22:00 ` [U-Boot] [PATCH v2 1/2] bootcount: add uclass for bootcount Philipp Tomsich
2018-12-10  0:01   ` [U-Boot] [U-Boot,v2,1/2] " Philipp Tomsich
2018-12-11  1:07   ` [U-Boot] [PATCH v2 1/2] " Simon Glass
2018-12-14 15:37     ` Simon Glass
2018-12-14 16:04       ` Philipp Tomsich
2018-12-14 16:06         ` Simon Glass
2018-12-14 20:16           ` Philipp Tomsich
2018-11-27 22:00 ` [U-Boot] [PATCH v2 2/2] bootcount: add a DM RTC backing store " Philipp Tomsich
2018-12-10  0:01   ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
2018-11-28  6:29 ` [U-Boot] EXT: [PATCH v2 0/2] Update RV3029 driver to DM and add DM-backed bootcount support Ray, Ian
2018-11-28  9:25   ` Philipp Tomsich

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.