Skip to content

Commit 9743a98

Browse files
Chenhongrenkartben
authored andcommitted
drivers: i3c: add it51xxx i3cm driver
Add it51xxx i3c controller driver. Tested with: it51xxx evb board with st_lps22df sensor Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
1 parent 76efd33 commit 9743a98

File tree

5 files changed

+1844
-0
lines changed

5 files changed

+1844
-0
lines changed

drivers/i3c/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ zephyr_library_sources_ifdef(
5656
i3c_dw.c
5757
)
5858

59+
zephyr_library_sources_ifdef(
60+
CONFIG_I3CM_IT51XXX
61+
i3cm_it51xxx.c
62+
)
63+
5964
zephyr_library_sources_ifdef(
6065
CONFIG_I3CS_IT51XXX
6166
i3cs_it51xxx.c

drivers/i3c/Kconfig.it51xxx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@ module = I3C_IT51XXX
55
module-str = i3c-it51xxx
66
source "subsys/logging/Kconfig.template.log_config"
77

8+
config I3CM_IT51XXX
9+
bool "it51xxx i3cm driver"
10+
depends on DT_HAS_ITE_IT51XXX_I3CM_ENABLED
11+
select PINCTRL
12+
select I3C_IBI_WORKQUEUE if I3C_USE_IBI
13+
select SOC_IT51XXX_CPU_IDLE_GATING
14+
default y
15+
help
16+
Enable it51xxx i3c controller driver.
17+
18+
if I3CM_IT51XXX
19+
20+
config I3CM_IT51XXX_TRANSFER_TIMEOUT_MS
21+
int "Set the transfer timeout in milliseconds"
22+
default 1000
23+
24+
config I3CM_IT51XXX_DLM_SIZE
25+
int "it51xxx i3cm dlm data size"
26+
depends on I3CM_IT51XXX
27+
default 256
28+
help
29+
Set i3cm data-local-memory(DLM) size.
30+
31+
endif # I3CM_IT51XXX
32+
833
config I3CS_IT51XXX
934
bool "it51xxx i3cs driver"
1035
depends on DT_HAS_ITE_IT51XXX_I3CS_ENABLED

0 commit comments

Comments
 (0)