From 8dcbdcf19dd85269f3e0021a2e40340227f82a54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ula=C5=9F=20Sertan=20Keme=C3=A7?= Date: Tue, 15 Sep 2026 14:40:00 +0300 Subject: [PATCH] Documentation/am67: Document I2C support on t3-gem-o1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Record the WKUP_I2C0 master in the board's Peripheral Support list. Assisted-by: Claude Code:claude-opus-5 Signed-off-by: Ulaş Sertan Kemeç --- Documentation/platforms/arm/am67/boards/t3-gem-o1/index.rst | 1 + arch/arm/src/am67/am67_i2c.c | 4 ---- boards/arm/am67/t3-gem-o1/src/am67_i2c.c | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Documentation/platforms/arm/am67/boards/t3-gem-o1/index.rst b/Documentation/platforms/arm/am67/boards/t3-gem-o1/index.rst index 5b1eee618a0..aad627e51b3 100644 --- a/Documentation/platforms/arm/am67/boards/t3-gem-o1/index.rst +++ b/Documentation/platforms/arm/am67/boards/t3-gem-o1/index.rst @@ -100,6 +100,7 @@ main-domain R5F core: - **GPIO:** pad configuration and read/write over the AM67 GPIO controller. - **SPI:** MCU_MCSPI0 master, with the hardware chip-select driven per channel (used for the on-board ICM-20948 IMU and LPS22DF barometer). +- **I2C:** WKUP_I2C0 master, registered as /dev/i2c2. Installation ============ diff --git a/arch/arm/src/am67/am67_i2c.c b/arch/arm/src/am67/am67_i2c.c index 29731b7100e..bd4d74cb15b 100644 --- a/arch/arm/src/am67/am67_i2c.c +++ b/arch/arm/src/am67/am67_i2c.c @@ -52,9 +52,6 @@ /* At least one I2C peripheral must be enabled */ -#if defined(CONFIG_AM67_I2C0) || defined(CONFIG_AM67_I2C1) || \ - defined(CONFIG_AM67_WKUP_I2C0) - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -1479,4 +1476,3 @@ int am67_i2cbus_uninitialize(struct i2c_master_s *dev) return OK; } -#endif /* CONFIG_AM67_I2C0 || CONFIG_AM67_I2C1 || CONFIG_AM67_WKUP_I2C0 */ diff --git a/boards/arm/am67/t3-gem-o1/src/am67_i2c.c b/boards/arm/am67/t3-gem-o1/src/am67_i2c.c index f842988c748..fd4e1c0181f 100644 --- a/boards/arm/am67/t3-gem-o1/src/am67_i2c.c +++ b/boards/arm/am67/t3-gem-o1/src/am67_i2c.c @@ -31,8 +31,6 @@ #include #include "am67_i2c.h" -#if defined(CONFIG_AM67_I2C0) || defined(CONFIG_AM67_WKUP_I2C0) - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -79,4 +77,3 @@ void am67_i2cdev_initialize(void) #endif } -#endif /* CONFIG_AM67_I2C0 || CONFIG_AM67_WKUP_I2C0 */