310-add-i2c-rtl9300-support.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From 63a0a4d85bc900464c5b046b13808a582345f8c8 Mon Sep 17 00:00:00 2001
  2. From: Birger Koblitz <[email protected]>
  3. Date: Sat, 11 Dec 2021 20:14:47 +0100
  4. Subject: [PATCH] realtek: Add support for RTL9300/RTL9310 I2C controller
  5. This adds support for the RTL9300 and RTL9310 I2C controller.
  6. The controller implements the SMBus protocol for SMBus transfers
  7. over an I2C bus. The driver supports selecting one of the 2 possible
  8. SCL pins and any of the 8 possible SDA pins. Bus speeds of
  9. 100kHz (standard speed) and 400kHz (high speed I2C) are supported.
  10. Submitted-by: Birger Koblitz <[email protected]>
  11. ---
  12. drivers/i2c/busses/Kconfig | 10 +++++++++
  13. drivers/i2c/busses/Makefile | 1 +
  14. 2 files changed, 11 insertions(+)
  15. --- a/drivers/i2c/busses/Kconfig
  16. +++ b/drivers/i2c/busses/Kconfig
  17. @@ -1021,6 +1021,16 @@ config I2C_RK3X
  18. This driver can also be built as a module. If so, the module will
  19. be called i2c-rk3x.
  20. +config I2C_RTL9300
  21. + tristate "Realtek RTL9300 I2C adapter"
  22. + depends on OF
  23. + help
  24. + Say Y here to include support for the I2C adapter in Realtek RTL9300
  25. + and RTL9310 SoCs.
  26. +
  27. + This driver can also be built as a module. If so, the module will
  28. + be called i2c-rtl9300.
  29. +
  30. config I2C_RZV2M
  31. tristate "Renesas RZ/V2M adapter"
  32. depends on ARCH_RENESAS || COMPILE_TEST
  33. --- a/drivers/i2c/busses/Makefile
  34. +++ b/drivers/i2c/busses/Makefile
  35. @@ -101,6 +101,7 @@ obj-$(CONFIG_I2C_QCOM_GENI) += i2c-qcom-
  36. obj-$(CONFIG_I2C_QUP) += i2c-qup.o
  37. obj-$(CONFIG_I2C_RIIC) += i2c-riic.o
  38. obj-$(CONFIG_I2C_RK3X) += i2c-rk3x.o
  39. +obj-$(CONFIG_I2C_RTL9300) += i2c-rtl9300.o
  40. obj-$(CONFIG_I2C_RZV2M) += i2c-rzv2m.o
  41. obj-$(CONFIG_I2C_S3C2410) += i2c-s3c2410.o
  42. obj-$(CONFIG_I2C_SH7760) += i2c-sh7760.o