Skip to content

Commit 70275fc

Browse files
committed
--pdports: Add examples
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent d415409 commit 70275fc

1 file changed

Lines changed: 107 additions & 0 deletions

File tree

EXAMPLES.md

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,3 +719,110 @@ It's not controlled by the EC, use https://keyboard.frame.work.
719719
Mostly for debugging firmware.
720720

721721
See [EXAMPLES_ADVANCED.md](EXAMPLES_ADVANCED.md)
722+
723+
## PD Ports
724+
725+
### Power Adapters
726+
727+
A 240W EPR (Framework) power adapter connected.
728+
Alongside a 65W SDR adapter - which is not active, because the EC firmware switches to the higher power adapter.
729+
730+
```
731+
USB-C Port 0 (Right Back):
732+
Type-C State: Source
733+
PD Contract: Yes
734+
Power Role: Sink
735+
Data Role: Dfp
736+
VCONN: Off
737+
Negotiated: 48.000 V, 5000 mA, 240.0 W
738+
EPR: Active (Supported)
739+
CC Polarity: CC1
740+
Active Port: Yes
741+
USB-C Port 1 (Right Middle):
742+
Type-C State: Source
743+
PD Contract: Yes
744+
Power Role: Sink
745+
Data Role: Ufp
746+
VCONN: Off
747+
Negotiated: 20.000 V, 3000 mA, 60.0 W
748+
EPR: Inactive
749+
CC Polarity: CC1
750+
Active Port: No
751+
```
752+
753+
A 100W SDR power adapter connected:
754+
755+
```
756+
USB-C Port 0 (Right Back):
757+
Type-C State: Source
758+
PD Contract: Yes
759+
Power Role: Sink
760+
Data Role: Ufp
761+
VCONN: Off
762+
Negotiated: 20.000 V, 5000 mA, 100.0 W
763+
EPR: Inactive
764+
CC Polarity: CC1
765+
Active Port: Yes
766+
```
767+
768+
A 65W (Framework) power adapter connected:
769+
770+
```
771+
USB-C Port 0 (Right Back):
772+
Type-C State: Source
773+
PD Contract: Yes
774+
Power Role: Sink
775+
Data Role: Dfp
776+
VCONN: On
777+
Negotiated: 20.000 V, 3250 mA, 65.0 W
778+
EPR: Inactive
779+
CC Polarity: CC2
780+
Active Port: Yes
781+
```
782+
783+
### Devices
784+
785+
A USB2/3 device connected (even USB-A Expansion Card):
786+
787+
```
788+
USB-C Port 2 (Left Middle):
789+
Type-C State: Sink
790+
PD Contract: No
791+
Power Role: Source
792+
Data Role: Dfp
793+
VCONN: Off
794+
Negotiated: 5.000 V, 3000 mA, 15.0 W
795+
EPR: Inactive
796+
CC Polarity: CC1
797+
Active Port: No
798+
```
799+
800+
A Display connected through Framework DisplayPort Expansion card:
801+
802+
```
803+
USB-C Port 1 (Right Middle):
804+
Type-C State: Sink
805+
PD Contract: Yes
806+
Power Role: Source
807+
Data Role: Dfp
808+
VCONN: On
809+
Negotiated: 5.000 V, 410 mA, 2.50 W
810+
EPR: Inactive
811+
CC Polarity: CC1
812+
Active Port: No
813+
DP Alt Mode: DFP_D Connected, HPD High (0x81)
814+
```
815+
816+
Nothing connected (or Type-C Expansion Card):
817+
818+
```
819+
USB-C Port 3 (Left Back):
820+
Type-C State: Nothing
821+
PD Contract: No
822+
Power Role: Sink
823+
Data Role: Ufp
824+
VCONN: Off
825+
Negotiated: 0.000 V, 0 mA, 0.0 W
826+
EPR: Inactive
827+
Active Port: No
828+
```

0 commit comments

Comments
 (0)