U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/3] Update RV3029 driver to DM and add DM-backed bootcount support
@ 2018-08-14  9:50 Philipp Tomsich
  2018-08-14  9:51 ` [U-Boot] [PATCH 1/3] rtc: rv3029: add to Kconfig Philipp Tomsich
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Philipp Tomsich @ 2018-08-14  9:50 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).



Philipp Tomsich (3):
  rtc: rv3029: add to Kconfig
  rtc: rv3029: update to support DM and sync with Linux 4.17
  bootcount: add DM-based backing store for bootcount

 doc/device-tree-bindings/chosen.txt |  27 ++
 drivers/bootcount/Kconfig           |  12 +
 drivers/bootcount/Makefile          |   1 +
 drivers/bootcount/bootcount_dm.c    |  93 ++++++
 drivers/rtc/Kconfig                 |  10 +
 drivers/rtc/rv3029.c                | 579 +++++++++++++++++++++++++++---------
 scripts/config_whitelist.txt        |   1 -
 7 files changed, 585 insertions(+), 138 deletions(-)
 create mode 100644 drivers/bootcount/bootcount_dm.c

-- 
2.1.4

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

end of thread, other threads:[~2018-08-30  0:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-14  9:50 [U-Boot] [PATCH 0/3] Update RV3029 driver to DM and add DM-backed bootcount support Philipp Tomsich
2018-08-14  9:51 ` [U-Boot] [PATCH 1/3] rtc: rv3029: add to Kconfig Philipp Tomsich
2018-08-14 16:46   ` Heinrich Schuchardt
2018-08-14 16:52     ` Dr. Philipp Tomsich
2018-08-14  9:51 ` [U-Boot] [PATCH 2/3] rtc: rv3029: update to support DM and sync with Linux 4.17 Philipp Tomsich
2018-08-14  9:51 ` [U-Boot] [PATCH 3/3] bootcount: add DM-based backing store for bootcount Philipp Tomsich
2018-08-14 11:10   ` Lukasz Majewski
2018-08-14 11:39     ` Dr. Philipp Tomsich
2018-08-17 12:49       ` Simon Glass
2018-08-17 12:56         ` Dr. Philipp Tomsich
2018-08-23 10:45           ` Simon Glass
2018-08-23 13:48             ` Dr. Philipp Tomsich
2018-08-30  0:29               ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox