File tree Expand file tree Collapse file tree 5 files changed +594
-0
lines changed
include/zephyr/drivers/usb_c Expand file tree Collapse file tree 5 files changed +594
-0
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ zephyr_library()
5
5
zephyr_library_sources_ifdef (CONFIG_USBC_TCPC_SHELL shell.c )
6
6
zephyr_library_sources_ifdef (CONFIG_USBC_TCPC_STM32 ucpd_stm32.c )
7
7
zephyr_library_sources_ifdef (CONFIG_USBC_TCPC_NUMAKER ucpd_numaker.c )
8
+ zephyr_library_sources_ifdef (CONFIG_USBC_TCPC_TCPCI tcpci.c )
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ config USBC_TCPC_SHELL
27
27
28
28
source "drivers/usb_c/tcpc/Kconfig.tcpc_stm32"
29
29
source "drivers/usb_c/tcpc/Kconfig.tcpc_numaker"
30
+ source "drivers/usb_c/tcpc/Kconfig.tcpc_tcpci"
30
31
31
32
module = USBC
32
33
module-str = usbc
Original file line number Diff line number Diff line change
1
+ # USB-C TCPCI-compliant devices configuration options
2
+
3
+ # Copyright 2024 Google LLC
4
+ # SPDX-License-Identifier: Apache-2.0
5
+
6
+ config USBC_TCPC_TCPCI
7
+ bool
8
+ select I2C
9
+ help
10
+ Enable support for Type-C Port Controller Interface.
11
+ This symbol should be selected by TCPCI-compliant drivers to allow the use of generic
12
+ TCPCI functions for registers operations.
13
+
14
+ if USBC_TCPC_TCPCI
15
+
16
+ config USBC_TCPC_TCPCI_I2C_RETRIES
17
+ int "I2C communication retries"
18
+ default 2
19
+ help
20
+ Number of I2C transaction tries that will be performed for each request.
21
+ Some TCPCs are going into deep sleep mode when no charger is connected and won't respond
22
+ to the i2c address immediately. If device won't respond after retries, it means that
23
+ it is not responsible or is not connected.
24
+
25
+ endif
You can’t perform that action at this time.
0 commit comments