[PATCH] rtc: add ht1380 driver

Sergei Antonov saproj at gmail.com
Thu Dec 8 12:49:48 CET 2022


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.


More information about the U-Boot mailing list