Re: [PATCH] rtc: add ht1380 driver

2022-12-08 Thread Simon Glass
Hi Sergei, On Fri, 9 Dec 2022 at 00:50, Sergei Antonov wrote: > > On Thu, 8 Dec 2022 at 00:52, Simon Glass wrote: > > > > Is this some sort of I2C protocol? > > > > > > Like I2C it uses a pin for clock and a pin for data in/out. Unlike I2C > > > it does not use addressing. I am not sure whether

Re: [PATCH] rtc: add ht1380 driver

2022-12-08 Thread Sergei Antonov
On Thu, 8 Dec 2022 at 00:52, Simon Glass wrote: > > > Is this some sort of I2C protocol? > > > > Like I2C it uses a pin for clock and a pin for data in/out. Unlike I2C > > it does not use addressing. I am not sure whether this driver can > > utilize some of the existing I2C code in U-Boot. Wrote m

Re: [PATCH] rtc: add ht1380 driver

2022-12-07 Thread Simon Glass
Hi Sergei, On Thu, 8 Dec 2022 at 06:09, Sergei Antonov wrote: > > On Wed, 7 Dec 2022 at 04:08, Simon Glass wrote: > > > > Hi Sergei, > > > > On Tue, 6 Dec 2022 at 23:07, Sergei Antonov wrote: > > > > > > Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds > > > , minutes, h

Re: [PATCH] rtc: add ht1380 driver

2022-12-07 Thread Sergei Antonov
On Wed, 7 Dec 2022 at 04:08, Simon Glass wrote: > > Hi Sergei, > > On Tue, 6 Dec 2022 at 23:07, Sergei Antonov wrote: > > > > Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds > > , minutes, hours, day of the week, date, month and year information. > > > > Datasheet: > > h

Re: [PATCH] rtc: add ht1380 driver

2022-12-07 Thread Tom Rini
On Tue, Dec 06, 2022 at 01:06:59PM +0300, Sergei Antonov wrote: > Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds > , minutes, hours, day of the week, date, month and year information. > > Datasheet: > https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf > >

Re: [PATCH] rtc: add ht1380 driver

2022-12-06 Thread Simon Glass
Hi Sergei, On Tue, 6 Dec 2022 at 23:07, Sergei Antonov wrote: > > Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds > , minutes, hours, day of the week, date, month and year information. > > Datasheet: > https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf > >

[PATCH] rtc: add ht1380 driver

2022-12-06 Thread Sergei Antonov
Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds , minutes, hours, day of the week, date, month and year information. Datasheet: https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf Signed-off-by: Sergei Antonov --- v2: * The RESET pin is now to be described

Re: [PATCH] rtc: add ht1380 driver

2022-11-21 Thread Tom Rini
On Mon, Nov 21, 2022 at 05:47:16PM +0300, Sergei Antonov wrote: > On Wed, 26 Oct 2022 at 14:34, Sergei Antonov wrote: > > > > On Wed, 26 Oct 2022 at 02:35, Simon Glass wrote: > > > > > > +static void ht1380_half_period_delay(void) > > > > +{ > > > > + /* Delay for half a period. 1 us compli

Re: [PATCH] rtc: add ht1380 driver

2022-11-21 Thread Sergei Antonov
On Wed, 26 Oct 2022 at 14:34, Sergei Antonov wrote: > > On Wed, 26 Oct 2022 at 02:35, Simon Glass wrote: > > > > +static void ht1380_half_period_delay(void) > > > +{ > > > + /* Delay for half a period. 1 us complies with the 500 KHz maximum > > > + input serial clock limit given by

Re: [PATCH] rtc: add ht1380 driver

2022-10-26 Thread Sergei Antonov
On Wed, 26 Oct 2022 at 02:35, Simon Glass wrote: > > +static void ht1380_half_period_delay(void) > > +{ > > + /* Delay for half a period. 1 us complies with the 500 KHz maximum > > + input serial clock limit given by the datasheet. */ > > /* > * Delay for half... > * second line

Re: [PATCH] rtc: add ht1380 driver

2022-10-25 Thread Simon Glass
Hi Sergei, On Tue, 25 Oct 2022 at 08:24, Sergei Antonov wrote: > > Support Holtek HT1380/HT1381 Serial Timekeeper Chip. > Datasheet: > https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf > > Signed-off-by: Sergei Antonov > --- > drivers/rtc/Kconfig | 7 + > drivers/rtc/Makefile

[PATCH] rtc: add ht1380 driver

2022-10-25 Thread Sergei Antonov
Support Holtek HT1380/HT1381 Serial Timekeeper Chip. Datasheet: https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf Signed-off-by: Sergei Antonov --- drivers/rtc/Kconfig | 7 + drivers/rtc/Makefile | 1 + drivers/rtc/ht1380.c | 303 +++ 3