From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philipp Tomsich Date: Tue, 27 Nov 2018 23:00:17 +0100 Subject: [U-Boot] [PATCH v2 0/2] Update RV3029 driver to DM and add DM-backed bootcount support Message-ID: <1543356019-47135-1-git-send-email-philipp.tomsich@theobroma-systems.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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