Skip to content

Commit

Permalink
staging: typec: Fairchild FUSB302 Type-c chip driver
Browse files Browse the repository at this point in the history
Fairchild FUSB302 Type-C chip driver that works with
Type-C Port Controller Manager to provide USB PD and
USB Type-C functionalities.

Signed-off-by: Yueyao Zhu <yueyao.zhu@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Yueyao Zhu authored and Greg Kroah-Hartman committed Apr 28, 2017
1 parent 74e656d commit c034a43
Show file tree
Hide file tree
Showing 7 changed files with 2,018 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/typec/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ config TYPEC_TCPCI
help
Type-C Port Controller driver for TCPCI-compliant controller.

source "drivers/staging/typec/fusb302/Kconfig"

endif

endmenu
1 change: 1 addition & 0 deletions drivers/staging/typec/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
obj-$(CONFIG_TYPEC_TCPM) += tcpm.o
obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
obj-y += fusb302/
7 changes: 7 additions & 0 deletions drivers/staging/typec/fusb302/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
config TYPEC_FUSB302
tristate "Fairchild FUSB302 Type-C chip driver"
depends on I2C
help
The Fairchild FUSB302 Type-C chip driver that works with
Type-C Port Controller Manager to provide USB PD and USB
Type-C functionalities.
1 change: 1 addition & 0 deletions drivers/staging/typec/fusb302/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-$(CONFIG_TYPEC_FUSB302) += fusb302.o
6 changes: 6 additions & 0 deletions drivers/staging/typec/fusb302/TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fusb302:
- Find a better logging scheme, at least not having the same debugging/logging
code replicated here and in tcpm
- Find a non-hacky way to coordinate between PM and I2C access
- Documentation? The FUSB302 datasheet provides information on the chip to help
understand the code. But it may still be helpful to have a documentation.
Loading

0 comments on commit c034a43

Please sign in to comment.