]> git.baikalelectronics.ru Git - kernel.git/commit
extcon: usbc-tusb320: Add support for TUSB320L
authorYassine Oudjana <y.oudjana@protonmail.com>
Sat, 25 Sep 2021 05:45:54 +0000 (05:45 +0000)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 27 Oct 2021 05:13:39 +0000 (14:13 +0900)
commite2e0ae98a5088a33efc5284feca854ec374c4a66
tree8780c32e27ada3d3b551f230d43df811e0498f09
parentfd59fb5ef3a126e48cf1aded2bb060831935a31c
extcon: usbc-tusb320: Add support for TUSB320L

TUSB320L is a newer chip with additional features, and it has additional steps
in its mode changing sequence:
 - Disable CC state machine,
 - Write to mode register,
 - Wait for 5 ms,
 - Re-enable CC state machine.
It also has an additional register that a revision number can be read from.

Add support for the mode changing sequence, and read the revision number during
probe and print it as info.

Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-usbc-tusb320.c