Skip to content

Commit

Permalink
drivers: tcpc: Add TCPC driver for RT1715
Browse files Browse the repository at this point in the history
Add support for RT1715.

Signed-off-by: Jianxiong Gu <jianxiong.gu@outlook.com>
  • Loading branch information
recalci committed Dec 10, 2024
1 parent f2f8cda commit 5d3b6b4
Show file tree
Hide file tree
Showing 6 changed files with 906 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb_c/tcpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_STM32 ucpd_stm32.c)
zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_NUMAKER ucpd_numaker.c)
zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_TCPCI tcpci.c)
zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_PS8XXX ps8xxx.c)
zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_RT1715 rt1715.c)
1 change: 1 addition & 0 deletions drivers/usb_c/tcpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ source "drivers/usb_c/tcpc/Kconfig.tcpc_stm32"
source "drivers/usb_c/tcpc/Kconfig.tcpc_numaker"
source "drivers/usb_c/tcpc/Kconfig.tcpc_tcpci"
source "drivers/usb_c/tcpc/Kconfig.tcpc_ps8xxx"
source "drivers/usb_c/tcpc/Kconfig.tcpc_rt1715"

module = USBC
module-str = usbc
Expand Down
28 changes: 28 additions & 0 deletions drivers/usb_c/tcpc/Kconfig.tcpc_rt1715
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# USB-C RT1715 TCPC configuration options

# Copyright (c) 2024 Jianxiong Gu <jianxiong.gu@outlook.com>
# SPDX-License-Identifier: Apache-2.0

config USBC_TCPC_RT1715
bool "USB-C TCPC device controller driver"
select USBC_TCPC_TCPCI
default y
depends on DT_HAS_RICHTEK_RT1715_ENABLED
help
Enable USB-C TCPC support for the Richtek RT1715

if USBC_TCPC_RT1715

config USBC_TCPC_RT1715_INIT_DELAY
int "RT1715 init delay"
default 25
help
Delay between each try of the TCPC initialization

config USBC_TCPC_RT1715_INIT_RETRIES
int "RT1715 init retries"
default 10
help
Number of initialization tries that will be performed

endif
Loading

0 comments on commit 5d3b6b4

Please sign in to comment.