Skip to content

Commit 6f413b5

Browse files
Badhri Jagan Sridharangregkh
authored andcommitted
usb: typec: tcpci_maxim: Chip level TCPC driver
Chip level TCPC driver for Maxim's TCPCI implementation. This TCPC implementation does not support the following commands: COMMAND.SinkVbus, COMMAND.SourceVbusDefaultVoltage, COMMAND.SourceVbusHighVoltage. Instead the sinking and sourcing from vbus is supported by writes to custom registers. Signed-off-by: Badhri Jagan Sridharan <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b9358a0 commit 6f413b5

File tree

4 files changed

+476
-7
lines changed

4 files changed

+476
-7
lines changed

drivers/usb/typec/tcpm/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ config TYPEC_MT6360
3535
USB Type-C. It works with Type-C Port Controller Manager
3636
to provide USB PD and USB Type-C functionalities.
3737

38+
config TYPEC_TCPCI_MAXIM
39+
tristate "Maxim TCPCI based Type-C chip driver"
40+
help
41+
MAXIM TCPCI based Type-C/PD chip driver. Works with
42+
with Type-C Port Controller Manager.
43+
3844
endif # TYPEC_TCPCI
3945

4046
config TYPEC_FUSB302

drivers/usb/typec/tcpm/Makefile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
obj-$(CONFIG_TYPEC_TCPM) += tcpm.o
3-
obj-$(CONFIG_TYPEC_FUSB302) += fusb302.o
4-
obj-$(CONFIG_TYPEC_WCOVE) += typec_wcove.o
5-
typec_wcove-y := wcove.o
6-
obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
7-
obj-$(CONFIG_TYPEC_RT1711H) += tcpci_rt1711h.o
8-
obj-$(CONFIG_TYPEC_MT6360) += tcpci_mt6360.o
2+
obj-$(CONFIG_TYPEC_TCPM) += tcpm.o
3+
obj-$(CONFIG_TYPEC_FUSB302) += fusb302.o
4+
obj-$(CONFIG_TYPEC_WCOVE) += typec_wcove.o
5+
typec_wcove-y := wcove.o
6+
obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
7+
obj-$(CONFIG_TYPEC_RT1711H) += tcpci_rt1711h.o
8+
obj-$(CONFIG_TYPEC_MT6360) += tcpci_mt6360.o
9+
obj-$(CONFIG_TYPEC_TCPCI_MAXIM) += tcpci_maxim.o

drivers/usb/typec/tcpm/tcpci.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109

110110
#define TCPC_RX_BYTE_CNT 0x30
111111
#define TCPC_RX_BUF_FRAME_TYPE 0x31
112+
#define TCPC_RX_BUF_FRAME_TYPE_SOP 0
112113
#define TCPC_RX_HDR 0x32
113114
#define TCPC_RX_DATA 0x34 /* through 0x4f */
114115

0 commit comments

Comments
 (0)