Skip to content

Commit 8daf28c

Browse files
duynguyenxaquytranpzz
authored andcommitted
driver: i2c: Support i2c for Renesas RX MCU
Add initial support for i2c on Renesas RX MCU This driver is controlling the RIIC HW of RX MCU for i2c bus interface on Zephyr Only master mode is supported Signed-off-by: Duy Nguyen <[email protected]>
1 parent 8e776a6 commit 8daf28c

File tree

7 files changed

+458
-0
lines changed

7 files changed

+458
-0
lines changed

drivers/i2c/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ zephyr_library_sources_ifdef(CONFIG_I2C_OMAP i2c_omap.c)
5656
zephyr_library_sources_ifdef(CONFIG_I2C_RCAR i2c_rcar.c)
5757
zephyr_library_sources_ifdef(CONFIG_I2C_RENESAS_RA_IIC i2c_renesas_ra_iic.c)
5858
zephyr_library_sources_ifdef(CONFIG_I2C_RENESAS_RA_SCI_B i2c_renesas_ra_sci_b.c)
59+
zephyr_library_sources_ifdef(CONFIG_I2C_RENESAS_RX_RIIC i2c_renesas_rx_riic.c)
5960
zephyr_library_sources_ifdef(CONFIG_I2C_RENESAS_RZ_RIIC i2c_renesas_rz_riic.c)
6061
zephyr_library_sources_ifdef(CONFIG_I2C_RV32M1_LPI2C i2c_rv32m1_lpi2c.c)
6162
zephyr_library_sources_ifdef(CONFIG_I2C_SAM0 i2c_sam0.c)

drivers/i2c/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ source "drivers/i2c/Kconfig.numaker"
145145
source "drivers/i2c/Kconfig.omap"
146146
source "drivers/i2c/Kconfig.rcar"
147147
source "drivers/i2c/Kconfig.renesas_ra"
148+
source "drivers/i2c/Kconfig.renesas_rx"
148149
source "drivers/i2c/Kconfig.renesas_rz"
149150
source "drivers/i2c/Kconfig.sam0"
150151
source "drivers/i2c/Kconfig.sam_twihs"

drivers/i2c/Kconfig.renesas_rx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Renesas RX Family
2+
3+
# Copyright (c) 2025 Renesas Electronics Corporation
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config I2C_RENESAS_RX_RIIC
7+
bool "Renesas RX I2C Master"
8+
default y
9+
depends on DT_HAS_RENESAS_RX_I2C_ENABLED
10+
select USE_RX_RDP_I2C
11+
select PINCTRL
12+
help
13+
Enable Renesas RX I2C Driver.
14+
15+
config I2C_RENESAS_RX_CALLBACK
16+
bool "Renesas RX I2C Callback Support"
17+
depends on I2C_CALLBACK && I2C_RENESAS_RX_RIIC
18+
default y
19+
help
20+
Enable Callback support for the I2C Driver

0 commit comments

Comments
 (0)