]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
extcon: ptn5150: Support USB role switch via connector fwnode
authorXu Yang <xu.yang_2@nxp.com>
Fri, 26 Sep 2025 02:53:09 +0000 (10:53 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 20 Mar 2026 02:20:43 +0000 (11:20 +0900)
commit9c98fdec70ec15c46610464366d414df1d6a0bee
treedb70837ec0fef89bf36c0358f0d94b96c9b7614e
parent842546c56345eebc2396927df5b4e933d90de43a
extcon: ptn5150: Support USB role switch via connector fwnode

Since the PTN5150 is a Type-C chip, it's common to describe related
properties under the connector node. To align with this, the port
node will be located under the connector node in the future.

To support this layout, retrieve the USB role switch using the
connector's fwnode. For compatibility with existing device trees,
keep the usb_role_switch_get() function.

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-3-xu.yang_2@nxp.com/
drivers/extcon/extcon-ptn5150.c