Skip to content

Commit 825b8c7

Browse files
Xu Yangnxpfrankli
authored andcommitted
arm64: dts: imx8qxp-mek: switch Type-C connector power-role to dual
When attach to PC Type-A port, the USB device controller does not function at all. Because it is configured as source-only and a Type-A port doesn't support PD capability, a data role swap is impossible. Actually, PTN5110THQ is configured for Source role only at POR, but after POR it can operate as a DRP (Dual-Role Power). By switching the power-role to dual, the port can operate as a sink and enter device mode when attach to Type-A port. Since the board design uses EN_SRC to control the 5V VBUS path and EN_SNK to control the 12V VBUS output, to avoid outputting a higher VBUS when in sink role, we set the operation current limit to 0mA so that SW will not control EN_SNK at all. Fixes: 2faf4eb ("arm64: dts: freescale: imx8qxp-mek: enable cadence usb3") Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Signed-off-by: Frank Li <Frank.Li@nxp.com>
1 parent e3d3d19 commit 825b8c7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

arch/arm64/boot/dts/freescale/imx8qxp-mek.dts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,17 @@
566566
usb_con1: connector {
567567
compatible = "usb-c-connector";
568568
label = "USB-C";
569-
power-role = "source";
569+
power-role = "dual";
570570
data-role = "dual";
571+
try-power-role = "sink";
571572
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
573+
/*
574+
* Set operational current to 0mA as we don't want EN_SNK
575+
* enable 12V VBUS switch when it work as a sink.
576+
*/
577+
sink-pdos = <PDO_FIXED(5000, 0, PDO_FIXED_USB_COMM)>;
578+
op-sink-microwatt = <0>;
579+
self-powered;
572580

573581
ports {
574582
#address-cells = <1>;

0 commit comments

Comments
 (0)