Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draft driver for STUSB4500 #14895

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions drivers/usbmisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,33 @@ config FUSB303_NPOLLWAITERS

endif

config STUSB4500
bool "ST standalone USB PD sink controller"
default n
select I2C
---help---
Enable device driver for ST standalone USB PD (power delivery) sink
controller that addresses sink up to 100 W (20 V; 5 A).

if STUSB4500

config STUSB4500_I2C_FREQUENCY
int "STUSB4500 I2C frequency"
default 400000
range 1 400000

config DEBUG_STUSB4500
bool "Enable debug support for the STUSB4500"
default n
---help---
Enables debug support for the STUSB4500

config STUSB4500_NPOLLWAITERS
int "Number of waiters to poll"
default 2
---help---
Maximum number of threads that can be waiting on poll()

endif

endif # USBMISC
4 changes: 4 additions & 0 deletions drivers/usbmisc/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ ifeq ($(CONFIG_FUSB303),y)
CSRCS += fusb303.c
endif

ifeq ($(CONFIG_STUSB4500),y)
CSRCS += stusb4500.c
endif

# Include USB miscellaneous build support

DEPPATH += --dep-path usbmisc
Expand Down
Loading
Loading