Re: [PATCH v4] drivers: rtc: Add driver for SD2405AL.

From: Csókás Bence
Date: Mon Jun 24 2024 - 09:34:24 EST


Hi!
As per my last email,

On 6/24/24 13:25, Tóth János via B4 Relay wrote:
From: Tóth János <gomba007@xxxxxxxxx>

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

Signed-off-by: Tóth János <gomba007@xxxxxxxxx>

Reviewed-by: Csókás, Bence <csokas.bence@xxxxxxxxx>

> ---
> Changes in v4:
> - Implement more comprehensive data validation.

BTW why did you decide to add this? Did you have problems with these high bits getting set?

Bence