]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: pcf2127: add tamper detection support
authorBruno Thomsen <bruno.thomsen@gmail.com>
Thu, 22 Aug 2019 13:19:36 +0000 (15:19 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 27 Aug 2019 16:24:15 +0000 (18:24 +0200)
commit9d94b83a565ce1b301ff0d3c5da221f62287ef13
treec48de78afacfb4b94acf2f9fb603e51ab47ae7f6
parentef3d2006c1ef27a4c1861b54756d16498aa0bc7b
rtc: pcf2127: add tamper detection support

Add support for integrated tamper detection function in both PCF2127 and
PCF2129 chips. This patch implements the feature by adding an additional
timestamp0 file to sysfs device path. This file contains seconds since
epoch, if an event occurred, or is empty, if none occurred.
Interface should match ISL1208 and RV3028 RTC drivers.

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
Link: https://lore.kernel.org/r/20190822131936.18772-5-bruno.thomsen@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf2127.c