Skip to content

Commit 391008b

Browse files
recalcikartben
authored andcommitted
drivers: tcpc: Add TCPC driver for RT1715
Add support for RT1715. Signed-off-by: Jianxiong Gu <[email protected]>
1 parent 90530cb commit 391008b

File tree

6 files changed

+918
-0
lines changed

6 files changed

+918
-0
lines changed

drivers/usb_c/tcpc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_STM32 ucpd_stm32.c)
77
zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_NUMAKER ucpd_numaker.c)
88
zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_TCPCI tcpci.c)
99
zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_PS8XXX ps8xxx.c)
10+
zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_RT1715 rt1715.c)

drivers/usb_c/tcpc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ source "drivers/usb_c/tcpc/Kconfig.tcpc_stm32"
2929
source "drivers/usb_c/tcpc/Kconfig.tcpc_numaker"
3030
source "drivers/usb_c/tcpc/Kconfig.tcpc_tcpci"
3131
source "drivers/usb_c/tcpc/Kconfig.tcpc_ps8xxx"
32+
source "drivers/usb_c/tcpc/Kconfig.tcpc_rt1715"
3233

3334
module = USBC
3435
module-str = usbc
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# USB-C RT1715 TCPC configuration options
2+
3+
# Copyright (c) 2024 Jianxiong Gu <[email protected]>
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config USBC_TCPC_RT1715
7+
bool "USB-C TCPC device controller driver"
8+
select USBC_TCPC_TCPCI
9+
default y
10+
depends on DT_HAS_RICHTEK_RT1715_ENABLED
11+
help
12+
Enable USB-C TCPC support for the Richtek RT1715
13+
14+
if USBC_TCPC_RT1715
15+
16+
config USBC_TCPC_RT1715_INIT_DELAY
17+
int "RT1715 init delay"
18+
default 5
19+
help
20+
Delay between each try of the TCPC initialization
21+
22+
config USBC_TCPC_RT1715_INIT_RETRIES
23+
int "RT1715 init retries"
24+
default 10
25+
help
26+
Number of initialization tries that will be performed
27+
28+
endif

0 commit comments

Comments
 (0)