Skip to content

Commit bf9a339

Browse files
Xu Yanggregkh
authored andcommitted
arm64: dts: imx8qm-mek: switch Type-C connector power-role to dual
[ Upstream commit e3d3d19 ] 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: b237975 ("arm64: dts: imx8qm-mek: add usb 3.0 and related type C nodes") Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 3341ca4 commit bf9a339

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,17 @@
593593
usb_con1: connector {
594594
compatible = "usb-c-connector";
595595
label = "USB-C";
596-
power-role = "source";
596+
power-role = "dual";
597597
data-role = "dual";
598+
try-power-role = "sink";
598599
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
600+
/*
601+
* Set operational current to 0mA as we don't want EN_SNK
602+
* enable 12V VBUS switch when it work as a sink.
603+
*/
604+
sink-pdos = <PDO_FIXED(5000, 0, PDO_FIXED_USB_COMM)>;
605+
op-sink-microwatt = <0>;
606+
self-powered;
599607

600608
ports {
601609
#address-cells = <1>;

0 commit comments

Comments
 (0)