]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
extcon: ptn5150: Add Type-C orientation switch support
authorXu Yang <xu.yang_2@nxp.com>
Fri, 26 Sep 2025 02:53:08 +0000 (10:53 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 20 Mar 2026 02:20:43 +0000 (11:20 +0900)
commit842546c56345eebc2396927df5b4e933d90de43a
tree6c276ad74a3ab9937adadb79d46e73583f8dcd51
parent086d7f1e063b3f7bbc6c54bbbabf1fa842be289f
extcon: ptn5150: Add Type-C orientation switch support

PTN5150 is able to detect CC polarity. The field[1:0] of CC status
register (04H) will keep the result.

  00: Cable Not Attached
  01: CC1 is connected (normal orientation)
  10: CC2 is connected (reversed orientation)
  11: Reserved

Add orientation switch support to correctly set orientation of
multiplexer according to CC status.

Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://lore.kernel.org/lkml/20250926025309.24267-2-xu.yang_2@nxp.com/
drivers/extcon/Kconfig
drivers/extcon/extcon-ptn5150.c