Commit 391008b0 authored by Jianxiong Gu's avatar Jianxiong Gu Committed by Benjamin Cabé
Browse files

drivers: tcpc: Add TCPC driver for RT1715

Add support for RT1715.

Signed-off-by: default avatarJianxiong Gu <jianxiong.gu@outlook.com>
parent 90530cba
Loading
Loading
Loading
Loading
+1 −0
Changes for drivers/usb_c/tcpc/CMakeLists.txt: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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 −0
Changes for drivers/usb_c/tcpc/Kconfig: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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
+28 −0
Changes for drivers/usb_c/tcpc/Kconfig.tcpc_rt1715: 28 added lines, 0 removed lines.
Original line number Diff line number Diff line
# 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 5
	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
+726 −0

File added.

Preview size limit exceeded, changes collapsed.

+88 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading