Skip to content

Commit 8a590d7

Browse files
Stanley Changchanwoochoi
authored andcommitted
extcon: add Realtek DHC RTD SoC Type-C driver
This patch adds the extcon driver for Realtek DHC (digital home center) RTD SoCs type-c module. This can be used to detect whether the port is configured as a downstream or upstream facing port. And notify the status of extcon to listeners. Link: https://lore.kernel.org/lkml/20230904051253.23208-2-stanley_chang@realtek.com/ Signed-off-by: Stanley Chang <stanley_chang@realtek.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent 8a749fd commit 8a590d7

3 files changed

Lines changed: 1804 additions & 0 deletions

File tree

drivers/extcon/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,15 @@ config EXTCON_USBC_TUSB320
191191
Say Y here to enable support for USB Type C cable detection extcon
192192
support using a TUSB320.
193193

194+
config EXTCON_RTK_TYPE_C
195+
tristate "Realtek RTD SoC extcon Type-C Driver"
196+
depends on ARCH_REALTEK || COMPILE_TEST
197+
depends on TYPEC
198+
select USB_COMMON
199+
help
200+
Say Y here to enable extcon support for USB Type C cable detection
201+
when using the Realtek RTD SoC USB Type-C port.
202+
The DHC (Digital Home Hub) RTD series SoC contains a type c module.
203+
This driver will detect the status of the type-c port.
204+
194205
endif

drivers/extcon/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ obj-$(CONFIG_EXTCON_SM5502) += extcon-sm5502.o
2525
obj-$(CONFIG_EXTCON_USB_GPIO) += extcon-usb-gpio.o
2626
obj-$(CONFIG_EXTCON_USBC_CROS_EC) += extcon-usbc-cros-ec.o
2727
obj-$(CONFIG_EXTCON_USBC_TUSB320) += extcon-usbc-tusb320.o
28+
obj-$(CONFIG_EXTCON_RTK_TYPE_C) += extcon-rtk-type-c.o

0 commit comments

Comments
 (0)