RE: [EXT] Re: [PATCH v3 1/3] drivers: rtc: add pcf2131 rtc driver

2024-03-26 Thread Joy Zou
> -Original Message- > From: Fabio Estevam > Sent: 2024年3月27日 6:10 > To: Joy Zou > Cc: Peng Fan ; Ye Li ; Jacky Bai > ; sba...@denx.de; s...@chromium.org; > sap...@gmail.com; judge.pack...@gmail.com; dl-uboot-imx > ; u-boot@lists.denx.de > Subject: [EXT] Re:

Re: [PATCH v3 1/3] drivers: rtc: add pcf2131 rtc driver

2024-03-26 Thread Fabio Estevam
On Tue, Mar 26, 2024 at 12:30 AM Joy Zou wrote: > +bool is_pcf2131_type(struct udevice *dev) static bool > static int pcf2127_rtc_read(struct udevice *dev, uint offset, u8 *buffer, > uint len) > { > struct dm_i2c_chip *chip = dev_get_parent_plat(dev); > @@ -43,10 +75,64 @@ static

[PATCH v3 1/3] drivers: rtc: add pcf2131 rtc driver

2024-03-26 Thread Joy Zou
Adding support for pcf2131 RTC chip. The pcf2131 is similar to the pcf2127. The driver support rtc register read/write by using rtc cmd and rtc date set/get by using date cmd. The pcf2131 is special when write access to time registers. it requires setting the STOP and CPR bits. STOP bit needs to