Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: i2c: Base OMAP I2C support for TI-K3 series processor #80113

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@
/* 0x14 is address of padconfig register of p8.22 and 14 is mux mode */
pinmux = <K3_PINMUX(0x14, PIN_INPUT, MUX_MODE_14)>;
};
i2c6_scl_default: i2c6_scl_default {
/* 0x1e0 is the address of padconfig register of p9.17 and 2 is mux mode */
pinmux = <K3_PINMUX(0x1d0, PIN_INPUT_PULLUP, MUX_MODE_2)>;
};
i2c6_sda_default: i2c6_sda_default {
/* 0x1dc is the address of padconfig register of p9.18 and 2 is mux mode */
pinmux = <K3_PINMUX(0x1e4, PIN_INPUT_PULLUP, MUX_MODE_2)>;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
};
};

&i2c6 {
status = "okay";
pinctrl-0 = <&i2c6_scl_default &i2c6_sda_default>;
pinctrl-names = "default";
};

&uart2 {
status = "okay";
pinctrl-0 = <&uart2_tx_default &uart2_rx_default>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ toolchain:
- xtools
supported:
- uart
- i2c
vendor: beagle
malto101 marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 3 additions & 1 deletion boards/beagle/beaglebone_ai64/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ The board configuration supports,
+-----------+------------+-----------------------+
| Interface | Controller | Driver/Component |
+===========+============+=======================+
| UART | on-chip | serial port-polling |
| UART | on-chip | serial port-polling, |
| | | serial port-interrupt |
+-----------+------------+-----------------------+
| I2C | on-chip | i2c-polling |
+-----------+------------+-----------------------+

Other hardwares features are currently not supported.

Expand Down
1 change: 1 addition & 0 deletions drivers/i2c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ else()
)
endif()
zephyr_library_sources_ifdef(CONFIG_I2C_NUMAKER i2c_numaker.c)
zephyr_library_sources_ifdef(CONFIG_I2C_OMAP i2c_omap.c)
zephyr_library_sources_ifdef(CONFIG_I2C_SAM_TWI i2c_sam_twi.c)
if(CONFIG_I2C_RTIO)
zephyr_library_sources_ifdef(CONFIG_I2C_SAM_TWIHS
Expand Down
1 change: 1 addition & 0 deletions drivers/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ source "drivers/i2c/Kconfig.mcux"
source "drivers/i2c/Kconfig.npcx"
source "drivers/i2c/Kconfig.nrfx"
source "drivers/i2c/Kconfig.numaker"
source "drivers/i2c/Kconfig.omap"
source "drivers/i2c/Kconfig.renesas_ra"
source "drivers/i2c/Kconfig.rcar"
source "drivers/i2c/Kconfig.sam0"
Expand Down
18 changes: 18 additions & 0 deletions drivers/i2c/Kconfig.omap
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2024 BeagleBoard.org Foundation
# Copyright (C) 2024 Dhruv Menon <[email protected]>

# SPDX-License-Identifier: Apache-2.0

config I2C_OMAP
bool "TI OMAP I2C Driver"
default y
malto101 marked this conversation as resolved.
Show resolved Hide resolved
depends on DT_HAS_TI_OMAP_I2C_ENABLED
help
Enable the I2C driver for TI OMAP SoCs.

config I2C_OMAP_BUS_RECOVERY
bool "Bus recovery support"
depends on I2C_OMAP
select I2C_BITBANG
help
Enable OMAP I2C driver bus recovery support via bitbanging.
Loading
Loading