I can't get the option Advertise only if Externally Powered to work. I'm using two TPS65987EVM evaluation modules:
- One called Host: EVM with the default out of the box configuration
- One called Device: EVM that is optionally externally powered, custom configuration. Dual power role, default role is sink, Barrel Jack Detect Event is enabled to make it a source when externally powerd.
My Transmit Source Capabilities are as follows (0x32):
- Without an external power supply, only PDO1 is advertised. The settings 5 V, 0 A for a sink only should be in accordance with USB PD 3.1 specification (section 6.4.1.2.2)
- With an external power supply (20 V), PDO2 to PDO4 should also be advertised. But they aren't. Only PDO1 is advertised (which leads to a CapabilityMismatch during PD conctract renegotiation because of the 0 A). And it doesn't matter if the Device is externally powered before or after the USB-C connection is established. The Barrel Jack Detect Event is triggerd, since the Externally Powered flag is set properly.
There's a different way of changing configurations described in slvae11a section 3.2 which is much more complicated. I've not tested it yet, because I would prefer the simpler solution (because of KISS: "Keep it simple, stupid!")
Best regards,
Florian