mbox series

[0/8] i2c: sprd: Modification of UNIOC Platform IIC Driver

Message ID 20230817094520.21286-1-Huangzheng.Lai@unisoc.com
Headers show
Series i2c: sprd: Modification of UNIOC Platform IIC Driver | expand

Message

Huangzheng Lai Aug. 17, 2023, 9:45 a.m. UTC
Recently, some bugs have been discovered during use, and patch3 
and patch5-8 are bug fixes. Also, this patchset add new features: 
patch1 allows IIC to use more frequencies for communication, 
patch2 allows IIC to use 'reset framework' for reset, and patch4 allows 
IIC controller to dynamically switch frequencies during use.

Huangzheng Lai (8):
  i2c: sprd: Add configurations that support 1Mhz and 3.4Mhz frequencies
  i2c: sprd: Add I2C driver to use 'reset framework' function
  i2c: sprd: Use global variables to record IIC ack/nack status instead
    of local variables
  i2c: sprd: Add IIC controller driver to support dynamic switching of
    400K/1M/3.4M frequency
  i2c: sprd: Configure the enable bit of the IIC controller before each
    transmission initiation
  i2c: sprd: Add additional IIC control bit configuration to adapt to
    the new IP version of the UNISOC platform
  i2c: sprd: Set I2C_RX_ACK when clear irq
  i2c: sprd: Increase the waiting time for IIC transmission to avoid
    system crash issues

 drivers/i2c/busses/i2c-sprd.c | 70 +++++++++++++++++++++++++++--------
 1 file changed, 55 insertions(+), 15 deletions(-)

Comments

Andi Shyti Aug. 24, 2023, 4:44 p.m. UTC | #1
Hi Orson,

On Thu, Aug 17, 2023 at 05:45:12PM +0800, Huangzheng Lai wrote:
> Recently, some bugs have been discovered during use, and patch3 
> and patch5-8 are bug fixes. Also, this patchset add new features: 
> patch1 allows IIC to use more frequencies for communication, 
> patch2 allows IIC to use 'reset framework' for reset, and patch4 allows 
> IIC controller to dynamically switch frequencies during use.
> 
> Huangzheng Lai (8):
>   i2c: sprd: Add configurations that support 1Mhz and 3.4Mhz frequencies
>   i2c: sprd: Add I2C driver to use 'reset framework' function
>   i2c: sprd: Use global variables to record IIC ack/nack status instead
>     of local variables
>   i2c: sprd: Add IIC controller driver to support dynamic switching of
>     400K/1M/3.4M frequency
>   i2c: sprd: Configure the enable bit of the IIC controller before each
>     transmission initiation
>   i2c: sprd: Add additional IIC control bit configuration to adapt to
>     the new IP version of the UNISOC platform
>   i2c: sprd: Set I2C_RX_ACK when clear irq
>   i2c: sprd: Increase the waiting time for IIC transmission to avoid
>     system crash issues

there are some changes here that require device knowledge... can
you please take a look here?

Andi