File tree Expand file tree Collapse file tree 4 files changed +461
-0
lines changed Expand file tree Collapse file tree 4 files changed +461
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ zephyr_library_sources_ifdef(CONFIG_I2C_STM32_V2
76
76
zephyr_library_sources_ifdef (CONFIG_I2C_SY1XX i2c_sy1xx.c )
77
77
zephyr_library_sources_ifdef (CONFIG_I2C_TCA954X i2c_tca954x.c )
78
78
zephyr_library_sources_ifdef (CONFIG_I2C_TELINK_B91 i2c_b91.c )
79
+ zephyr_library_sources_ifdef (CONFIG_I2C_WCH i2c_wch.c )
79
80
zephyr_library_sources_ifdef (CONFIG_I2C_XEC i2c_mchp_xec.c )
80
81
zephyr_library_sources_ifdef (CONFIG_I2C_XEC_V2 i2c_mchp_xec_v2.c )
81
82
zephyr_library_sources_ifdef (CONFIG_I2C_XILINX_AXI i2c_xilinx_axi.c )
Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ source "drivers/i2c/Kconfig.stm32"
156
156
source "drivers/i2c/Kconfig.sy1xx"
157
157
source "drivers/i2c/Kconfig.tca954x"
158
158
source "drivers/i2c/Kconfig.test"
159
+ source "drivers/i2c/Kconfig.wch"
159
160
source "drivers/i2c/Kconfig.xec"
160
161
source "drivers/i2c/Kconfig.xilinx_axi"
161
162
# zephyr-keep-sorted-stop
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Andrei-Edward Popa
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ config I2C_WCH
5
+ bool "WCH I2C driver"
6
+ default y
7
+ depends on DT_HAS_WCH_I2C_ENABLED
8
+ select PINCTRL
9
+ help
10
+ Enable I2C support on WCH platforms
11
+
12
+ config I2C_WCH_XFER_TIMEOUT_MS
13
+ int "Set the transfer timeout in milliseconds"
14
+ depends on I2C_WCH
15
+ default 500
You can’t perform that action at this time.
0 commit comments