]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: tcpm: fusb302: add driver
authorSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 15 Oct 2024 15:26:44 +0000 (17:26 +0200)
committerMarek Vasut <marex@denx.de>
Thu, 17 Oct 2024 01:12:47 +0000 (03:12 +0200)
commit43fdd31cfa6e25d1cd4a1a97913c399c5616bb36
tree0903bb7e4ded7d50d03f754ee976376fcdcec3c7
parent1db4c0ac77e3aad918203c5003856f3d6bb2b44b
usb: tcpm: fusb302: add driver

Now that the TCPM framework exists we can introduce fusb302
driver using it. This chip is a very common USB-C controller
chip with PD support, which can be found in the Radxa Rock 5B
among many other boards. Apart from Power Delivery, it also
handles detection of the cable orientation. That can be used
to control a mux for connecting the right USB3 lane pair to
the USB3 controller.

The driver is originally from the Linux kernel, but has been
adapted to the requirements of U-Boot and its TCPM framework.

Co-developed-by: Wang Jie <dave.wang@rock-chips.com>
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
Tested-by: Soeren Moch <smoch@web.de>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/usb/tcpm/Kconfig
drivers/usb/tcpm/Makefile
drivers/usb/tcpm/fusb302.c [new file with mode: 0644]
drivers/usb/tcpm/fusb302_reg.h [new file with mode: 0644]