Skip to contentSkip to conversation

usb: typec: ucsi: add support for Cypress CCGx

PATCH Superseded Ajay Gupta 1 participant 1 message Aug 24, 2018

Subsystems (2)

v2 of 15 Superseded Latest is v15 →

lore
Share & tools
lore

Ajay Gupta

author
#0 lore raw

PATCH v2 2/2 usb: typec: ucsi: add support for Cypress CCGx

Latest NVIDIA GPU cards have a Cypress CCGx Type-C controller over I2C interface.

This UCSI I2C driver uses I2C bus driver interface for communicating with Type-C controller.

---
Changes from v1 -> v2:
Fixed identation in drivers/usb/typec/ucsi/Kconfig

 drivers/usb/typec/ucsi/Kconfig        |  10 +
 drivers/usb/typec/ucsi/Makefile       |   2 +
 drivers/usb/typec/ucsi/ucsi_i2c_ccg.c | 591 ++++++++++++++++++++++++++++++++++
 3 files changed, 603 insertions(+)
 create mode 100644 drivers/usb/typec/ucsi/ucsi_i2c_ccg.c
drivers/usb/typec/ucsi/Kconfig +10 -0
index e36d6c7..0ce9d48 100644
@@ -23,6 +23,16 @@ config TYPEC_UCSI
 
 if TYPEC_UCSI
 
+config UCSI_I2C_CCG
+	tristate "UCSI I2C Interface Driver for Cypress CCGx"
+	depends on I2C_GPU
+	help
+	  This driver enables UCSI support on NVIDIA GPUs that expose a
+	  Cypress CCGx Type-C controller over I2C interface.
+
+	  To compile the driver as a module, choose M here: the module will be
+	  called ucsi_i2c_ccg.ko.
+
 config UCSI_ACPI
 	tristate "UCSI ACPI Interface Driver"
 	depends on ACPI
drivers/usb/typec/ucsi/Makefile +2 -0
index 7afbea5..4439482 100644
@@ -8,3 +8,5 @@ typec_ucsi-y			:= ucsi.o
 typec_ucsi-$(CONFIG_TRACING)	+= trace.o
 
 obj-$(CONFIG_UCSI_ACPI)		+= ucsi_acpi.o
+
+obj-$(CONFIG_UCSI_I2C_CCG)	+= ucsi_i2c_ccg.o
drivers/usb/typec/ucsi/ucsi_i2c_ccg.c new file +591 -0

591 lines not on this page · raw message