]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtc: Add driver for SD2405AL
authorTóth János <gomba007@gmail.com>
Fri, 30 Aug 2024 08:36:39 +0000 (10:36 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 11 Sep 2024 22:33:24 +0000 (00:33 +0200)
commit5af858acea22bc5d8a2ebddcad57babca1442dd1
tree9f928ac2d4a6d332f7833fcbd52238dc148c5e31
parentda1531ecf18612572c53878d5ef8e94673bf86ce
rtc: Add driver for SD2405AL

Add support for the DFRobot SD2405AL I2C RTC Module.

Datasheet:
https://image.dfrobot.com/image/data/TOY0021/SD2405AL%20datasheet%20(Angelo%20v0.1).pdf

Product:
https://www.dfrobot.com/product-1600.html

To instantiate (assuming device is connected to I2C-1)
as root:
echo sd2405al 0x32 > /sys/bus/i2c/devices/i2c-1/new_device
as user:
echo 'sd2405al 0x32' | sudo tee /sys/class/i2c-adapter/i2c-1/new_device

The driver is tested with:
+ hwclock
+ tools/testing/selftests/rtc/setdate
+ tools/testing/selftests/rtc/rtctest

Reviewed-by: Csókás Bence <csokas.bence@prolan.hu>
Signed-off-by: Tóth János <gomba007@gmail.com>
Link: https://lore.kernel.org/r/20240830-rtc-sd2405al-v7-1-2f7102621b1d@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
MAINTAINERS
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-sd2405al.c [new file with mode: 0644]