Skip to content

Commit 82a6e9f

Browse files
barnas-michalcarlescufi
authored andcommitted
usbc: add TCPC driver for Parade PS8815 chip
Add support for the PS8815 and used with other PS8xxx family chips. Signed-off-by: Michał Barnaś <[email protected]>
1 parent 90c65cf commit 82a6e9f

File tree

6 files changed

+804
-0
lines changed

6 files changed

+804
-0
lines changed

drivers/usb_c/tcpc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_SHELL shell.c)
66
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)
9+
zephyr_library_sources_ifdef(CONFIG_USBC_TCPC_PS8XXX ps8xxx.c)

drivers/usb_c/tcpc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ config USBC_TCPC_SHELL
2828
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"
31+
source "drivers/usb_c/tcpc/Kconfig.tcpc_ps8xxx"
3132

3233
module = USBC
3334
module-str = usbc
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# USB-C PS8xxx TCPC configuration options
2+
3+
# Copyright 2024 Google LLC
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config USBC_TCPC_PS8XXX
7+
bool "USB-C TCPC device controller driver"
8+
select USBC_TCPC_TCPCI
9+
default y
10+
depends on DT_HAS_PARADE_PS8XXX_ENABLED
11+
help
12+
Enable USB-C TCPC support for the Parade PS8xxx chip family
13+
14+
if USBC_TCPC_PS8XXX
15+
16+
config USBC_TCPC_PS8XXX_INIT_DELAY
17+
int "PS8xxx init delay"
18+
default 25
19+
help
20+
Delay between each try of the TCPC initialization
21+
22+
config USBC_TCPC_PS8XXX_INIT_RETRIES
23+
int "PS8xxx init retries"
24+
default 10
25+
help
26+
Number of initialization tries that will be performed
27+
28+
endif

0 commit comments

Comments
 (0)