[PATCH] rtc: add ht1380 driver
Simon Glass
sjg at chromium.org
Thu Dec 8 19:09:47 CET 2022
Hi Sergei,
On Fri, 9 Dec 2022 at 00:50, Sergei Antonov <saproj at gmail.com> wrote:
>
> On Thu, 8 Dec 2022 at 00:52, Simon Glass <sjg at chromium.org> 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 my own bit
> > > banging routines.
> >
> > Yes you can use i2c, by setting the offset_len to 0, e.g. with:
> >
> > u-boot,i2c-offset-len = <0>;
>
> I2C transmits/receives bytes most significant bit first (msb), but
> this device needs lsb.
Also it seems that it is not actually using the i2c protocol, even
with that change.
Regards,
Simon
More information about the U-Boot
mailing list