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)
commitce0320bd3872038569be360870e2d5251b975692
tree8780c32e27ada3d3b551f230d43df811e0498f09
parent70c55d6be634e5f9894169340f3fe5c73f53ac2d
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