]> 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)
commit838523af1d0cb6f5b38da934c28d641d5b90ee0e
tree8780c32e27ada3d3b551f230d43df811e0498f09
parent0db807f1b49bdce59445c38babc4e26499f77825
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