[PATCH 0/2][SRU][J] Add ODM driver rtc-pcf85263

AceLan Kao acelan.kao at canonical.com
Thu Dec 28 03:18:40 UTC 2023


From: "Chia-Lin Kao (AceLan)" <acelan.kao at canonical.com>

BugLink: https://bugs.launchpad.net/bugs/2045385

[ Impact ]
rtc-pcf85263 driver is needed for ODM partner

[ Test Plan ]
Load the driver setting the timestamp level to 0 (default to 1) :
modprobe rtc-pcf85263 tsl=0

export the rtc device:
echo "pcf85263 0x51" > /sys/bus/i2c/devices/i2c-1/new_device

RTC device should act as a standard RTC,
hwclock -r -f /dev/rtc1 #for reading
hwclock -w -f /dev/rtc1 #for writing

This driver has anti-tampering function.
Get the current tamper timestamp:
cat /sys/class/rtc/rtc1/device/timestamp1

unmount the bottom metal panel, unscrewing the 6x T-10 screws and let the anti-tampering goes in open state.
The timestamp should be updated to the current time.

[ Where problems could occur ]
Events could occur on the I2C bus communication.

Chia-Lin Kao (AceLan) (1):
  UBUNTU: [Config] updateconfigs for ODM drivers CONFIG_RTC_DRV_PCF85263

Filippo Copetti (1):
  UBUNTU: SAUCE: ODM: rtc: add PCF85263 RTC driver

 MAINTAINERS                      |    6 +
 debian.master/config/annotations |    1 +
 drivers/rtc/Kconfig              |   10 +
 drivers/rtc/Makefile             |    1 +
 drivers/rtc/rtc-pcf85263.c       | 1784 ++++++++++++++++++++++++++++++
 drivers/rtc/rtc-pcf85263.h       |  387 +++++++
 6 files changed, 2189 insertions(+)
 create mode 100644 drivers/rtc/rtc-pcf85263.c
 create mode 100644 drivers/rtc/rtc-pcf85263.h

-- 
2.34.1




More information about the kernel-team mailing list