Skip to content

Commit 7718754

Browse files
barnas-michalcarlescufi
authored andcommitted
usbc: add driver for nx20p3483 PPC chip
Add driver for NXP nx20p3483 power path controller that can be used to control and protect sink and source path of USB-C connector. Signed-off-by: Michał Barnaś <[email protected]>
1 parent 551c765 commit 7718754

File tree

7 files changed

+708
-0
lines changed

7 files changed

+708
-0
lines changed

drivers/usb_c/ppc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
zephyr_library()
44

55
zephyr_library_sources_ifdef(CONFIG_USBC_PPC_SHELL shell.c)
6+
zephyr_library_sources_ifdef(CONFIG_USBC_PPC_NX20P3483 nxp_nx20p3483.c)

drivers/usb_c/ppc/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ config USBC_PPC_SHELL
2121
help
2222
Add useful shell commands to manipulate and debug the PPCs
2323

24+
source "drivers/usb_c/ppc/Kconfig.nxp"
25+
2426
module = USBC_PPC
2527
module-str = usbc-ppc
2628
source "subsys/logging/Kconfig.template.log_config"

drivers/usb_c/ppc/Kconfig.nxp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# NXP NX20P3483 Configuration menu
2+
3+
# Copyright 2023 Google LLC
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config USBC_PPC_NX20P3483
7+
bool "NXP NX20P3483 support"
8+
default y
9+
depends on DT_HAS_NXP_NX20P3483_ENABLED
10+
help
11+
Enable USB-C PPC support for NXP nx20p3483 chip
12+
13+
if USBC_PPC_NX20P3483
14+
15+
config USBC_PPC_NX20P3483_DUMP_FULL_REG_NAMES
16+
bool "Dump full register names"
17+
help
18+
Dump human-readable names instead of offsets of registers
19+
20+
endif

0 commit comments

Comments
 (0)