Skip to content

Commit

Permalink
drivers: i2c: Base OMAP I2C support for TI-K3 processor
Browse files Browse the repository at this point in the history
The OMAP I2C provides support for I2C serial interface on TI K3 series.
It is compatible with Philips I2C physical layer.
The commit includes:
Zephyr i2c api implementation
Bus Recovery

Bus recovery feature utilizing bit-bang operations, which sends 9 SCL clock
pulses to recover the bus and checks if the line is down. Upon recovery,
it disables the system test register before resuming the transactions.

Signed-off-by: Dhruv Menon <dhruvmenon1104@gmail.com>
  • Loading branch information
malto101 committed Oct 21, 2024
1 parent 6f64f77 commit bf0b17b
Show file tree
Hide file tree
Showing 5 changed files with 955 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ zephyr_library_sources_ifdef(CONFIG_I2C_LITEX i2c_litex.c)
zephyr_library_sources_ifdef(CONFIG_I2C_NPCX i2c_npcx_controller.c)
zephyr_library_sources_ifdef(CONFIG_I2C_NPCX i2c_npcx_port.c)
zephyr_library_sources_ifdef(CONFIG_I2C_DW i2c_dw.c)
zephyr_library_sources_ifdef(CONFIG_I2C_OMAP i2c_omap.c)
zephyr_library_sources_ifdef(CONFIG_I2C_RCAR i2c_rcar.c)
zephyr_library_sources_ifdef(CONFIG_I2C_TCA954X i2c_tca954x.c)
zephyr_library_sources_ifdef(CONFIG_I2C_XEC_V2 i2c_mchp_xec_v2.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ source "drivers/i2c/Kconfig.litex"
source "drivers/i2c/Kconfig.lpc11u6x"
source "drivers/i2c/Kconfig.npcx"
source "drivers/i2c/Kconfig.test"
source "drivers/i2c/Kconfig.omap"
source "drivers/i2c/Kconfig.rcar"
source "drivers/i2c/Kconfig.renesas_ra"
source "drivers/i2c/Kconfig.tca954x"
Expand Down
12 changes: 12 additions & 0 deletions drivers/i2c/Kconfig.omap
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright (C) 2024 BeagleBoard.org Foundation
# Copyright (C) 2024 Dhruv Menon <dhruvmenon1104@gmail.com>

# SPDX-License-Identifier: Apache-2.0

config I2C_OMAP
bool "TI OMAP I2C Driver"
default y
depends on DT_HAS_TI_OMAP_I2C_ENABLED
select I2C_BITBANG
help
Enable the I2C driver for TI OMAP SoCs.
Loading

0 comments on commit bf0b17b

Please sign in to comment.