[PATCH 13/14] i2c: Add support for Qualcomm I2C driver
Stephan Gerhold
stephan at gerhold.net
Fri Jan 20 14:37:49 CET 2023
On Fri, Jan 20, 2023 at 05:55:35PM +0530, Sumit Garg wrote:
> On Fri, 20 Jan 2023 at 14:16, Heiko Schocher <hs at denx.de> wrote:
> > On 20.01.23 08:17, Sumit Garg wrote:
> > > Add support for Qualcomm I2C QUP driver which is inspired from
> > > corresponding driver in Linux: drivers/i2c/busses/i2c-qup.c.
> > >
> > > Currently this driver only support FIFO polling mode which is sufficient
> > > to support devices like eeprom, rtc etc.
> > >
> > > Co-developed-by: Mike Worsfold <mworsfold at impinj.com>
> > > Signed-off-by: Mike Worsfold <mworsfold at impinj.com>
> > > Signed-off-by: Sumit Garg <sumit.garg at linaro.org>
> > > ---
> > > drivers/i2c/Kconfig | 6 +
> > > drivers/i2c/Makefile | 1 +
> > > drivers/i2c/qup_i2c.c | 592 ++++++++++++++++++++++++++++++++++++++++++
> > > 3 files changed, 599 insertions(+)
> > > create mode 100644 drivers/i2c/qup_i2c.c
> > >
> > > diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
> > > index 76e19918aa..2a1d36f91a 100644
> > > --- a/drivers/i2c/Kconfig
> > > +++ b/drivers/i2c/Kconfig
> > > @@ -635,6 +635,12 @@ config SYS_I2C_TEGRA
> > > help
> > > Support for NVIDIA I2C controller available in Tegra SoCs.
> > >
> > > +config SYS_I2C_QUP
> > > + bool "Qualcomm I2C controller"
> > > + depends on ARCH_SNAPDRAGON
> > > + help
> > > + Support for Qualcomm I2C controller.
> [...]
> > and may you can ad here some more infos
> > like link to datasheet?
> >
>
> I will try to put more info here. However, I don't think the datasheet
> is available publically. This driver is inspired from its Linux
> counterpart only.
>
FWIW: The I2C/SPI QUP controller is publicly documented in the
Snapdragon 410E (APQ8016E) Technical Reference Manual [1],
chapter "6.1 Qualcomm Universal Peripherals Engine (QUP)".
Stephan
[1]: https://developer.qualcomm.com/download/sd410/snapdragon-410e-technical-reference-manual.pdf
More information about the U-Boot
mailing list