162306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery
262306a36Sopenharmony_ciDate:		May 2022
362306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
462306a36Sopenharmony_ciDescription:
562306a36Sopenharmony_ci		Directory for USB Power Delivery devices.
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../revision
862306a36Sopenharmony_ciDate:		May 2022
962306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
1062306a36Sopenharmony_ciDescription:
1162306a36Sopenharmony_ci		File showing the USB Power Delivery Specification Revision used
1262306a36Sopenharmony_ci		in communication.
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../version
1562306a36Sopenharmony_ciDate:		May 2022
1662306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
1762306a36Sopenharmony_ciDescription:
1862306a36Sopenharmony_ci		This is an optional attribute file showing the version of the
1962306a36Sopenharmony_ci		specific revision of the USB Power Delivery Specification. In
2062306a36Sopenharmony_ci		most cases the specification version is not known and the file
2162306a36Sopenharmony_ci		is not available.
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../source-capabilities
2462306a36Sopenharmony_ciDate:		May 2022
2562306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
2662306a36Sopenharmony_ciDescription:
2762306a36Sopenharmony_ci		The source capabilities message "Source_Capabilities" contains a
2862306a36Sopenharmony_ci		set of Power Data Objects (PDO), each representing a type of
2962306a36Sopenharmony_ci		power supply. The order of the PDO objects is defined in the USB
3062306a36Sopenharmony_ci		Power Delivery Specification. Each PDO - power supply - will
3162306a36Sopenharmony_ci		have its own device, and the PDO device name will start with the
3262306a36Sopenharmony_ci		object position number as the first character followed by the
3362306a36Sopenharmony_ci		power supply type name (":" as delimiter).
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci			/sys/class/usb_power_delivery/.../source_capabilities/<position>:<type>
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../sink-capabilities
3862306a36Sopenharmony_ciDate:		May 2022
3962306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
4062306a36Sopenharmony_ciDescription:
4162306a36Sopenharmony_ci		The sink capability message "Sink_Capabilities" contains a set
4262306a36Sopenharmony_ci		of Power Data Objects (PDO) just like with source capabilities,
4362306a36Sopenharmony_ci		but instead of describing the power capabilities, these objects
4462306a36Sopenharmony_ci		describe the power requirements.
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci		The order of the objects in the sink capability message is the
4762306a36Sopenharmony_ci		same as with the source capabilities message.
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciFixed Supplies
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:fixed_supply
5262306a36Sopenharmony_ciDate:		May 2022
5362306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
5462306a36Sopenharmony_ciDescription:
5562306a36Sopenharmony_ci		Devices containing the attributes (the bit fields) defined for
5662306a36Sopenharmony_ci		Fixed Supplies.
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ci		The device "1:fixed_supply" is special. USB Power Delivery
5962306a36Sopenharmony_ci		Specification dictates that the first PDO (at object position
6062306a36Sopenharmony_ci		1), and the only mandatory PDO, is always the vSafe5V Fixed
6162306a36Sopenharmony_ci		Supply Object. vSafe5V Object has additional fields defined for
6262306a36Sopenharmony_ci		it that the other Fixed Supply Objects do not have and that are
6362306a36Sopenharmony_ci		related to the USB capabilities rather than power capabilities.
6462306a36Sopenharmony_ci
6562306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/1:fixed_supply/dual_role_power
6662306a36Sopenharmony_ciDate:		May 2022
6762306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
6862306a36Sopenharmony_ciDescription:
6962306a36Sopenharmony_ci		This file contains boolean value that tells does the device
7062306a36Sopenharmony_ci		support both source and sink power roles.
7162306a36Sopenharmony_ci
7262306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../source-capabilities/1:fixed_supply/usb_suspend_supported
7362306a36Sopenharmony_ciDate:		May 2022
7462306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
7562306a36Sopenharmony_ciDescription:
7662306a36Sopenharmony_ci		This file shows the value of the USB Suspend Supported bit in
7762306a36Sopenharmony_ci		vSafe5V Fixed Supply Object. If the bit is set then the device
7862306a36Sopenharmony_ci		will follow the USB 2.0 and USB 3.2 rules for suspend and
7962306a36Sopenharmony_ci		resume.
8062306a36Sopenharmony_ci
8162306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../sink-capabilities/1:fixed_supply/higher_capability
8262306a36Sopenharmony_ciDate:		February 2023
8362306a36Sopenharmony_ciContact:	Saranya Gopal <saranya.gopal@linux.intel.com>
8462306a36Sopenharmony_ciDescription:
8562306a36Sopenharmony_ci		This file shows the value of the Higher capability bit in
8662306a36Sopenharmony_ci		vsafe5V Fixed Supply Object. If the bit is set, then the sink
8762306a36Sopenharmony_ci		needs more than vsafe5V(eg. 12 V) to provide full functionality.
8862306a36Sopenharmony_ci		Valid values: 0, 1
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/1:fixed_supply/unconstrained_power
9162306a36Sopenharmony_ciDate:		May 2022
9262306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
9362306a36Sopenharmony_ciDescription:
9462306a36Sopenharmony_ci		This file shows the value of the Unconstrained Power bit in
9562306a36Sopenharmony_ci		vSafe5V Fixed Supply Object. The bit is set when an external
9662306a36Sopenharmony_ci		source of power, powerful enough to power the entire system on
9762306a36Sopenharmony_ci		its own, is available for the device.
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/1:fixed_supply/usb_communication_capable
10062306a36Sopenharmony_ciDate:		May 2022
10162306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
10262306a36Sopenharmony_ciDescription:
10362306a36Sopenharmony_ci		This file shows the value of the USB Communication Capable bit in
10462306a36Sopenharmony_ci		vSafe5V Fixed Supply Object.
10562306a36Sopenharmony_ci
10662306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/1:fixed_supply/dual_role_data
10762306a36Sopenharmony_ciDate:		May 2022
10862306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
10962306a36Sopenharmony_ciDescription:
11062306a36Sopenharmony_ci		This file shows the value of the Dual-Role Data bit in vSafe5V
11162306a36Sopenharmony_ci		Fixed Supply Object. Dual role data means ability act as both
11262306a36Sopenharmony_ci		USB host and USB device.
11362306a36Sopenharmony_ci
11462306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/1:fixed_supply/unchunked_extended_messages_supported
11562306a36Sopenharmony_ciDate:		May 2022
11662306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
11762306a36Sopenharmony_ciDescription:
11862306a36Sopenharmony_ci		This file shows the value of the Unchunked Extended Messages
11962306a36Sopenharmony_ci		Supported bit in vSafe5V Fixed Supply Object.
12062306a36Sopenharmony_ci
12162306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:fixed_supply/voltage
12262306a36Sopenharmony_ciDate:		May 2022
12362306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
12462306a36Sopenharmony_ciDescription:
12562306a36Sopenharmony_ci		The voltage the supply supports in millivolts.
12662306a36Sopenharmony_ci
12762306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../source-capabilities/<position>:fixed_supply/maximum_current
12862306a36Sopenharmony_ciDate:		May 2022
12962306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
13062306a36Sopenharmony_ciDescription:
13162306a36Sopenharmony_ci		Maximum current of the fixed source supply in milliamperes.
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../sink-capabilities/<position>:fixed_supply/operational_current
13462306a36Sopenharmony_ciDate:		May 2022
13562306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
13662306a36Sopenharmony_ciDescription:
13762306a36Sopenharmony_ci		Operational current of the sink in milliamperes.
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../sink-capabilities/<position>:fixed_supply/fast_role_swap_current
14062306a36Sopenharmony_ciDate:		May 2022
14162306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
14262306a36Sopenharmony_ciDescription:
14362306a36Sopenharmony_ci		This file contains the value of the "Fast Role Swap USB Type-C
14462306a36Sopenharmony_ci		Current" field that tells the current level the sink requires
14562306a36Sopenharmony_ci		after a Fast Role Swap.
14662306a36Sopenharmony_ci		0 - Fast Swap not supported"
14762306a36Sopenharmony_ci		1 - Default USB Power"
14862306a36Sopenharmony_ci		2 - 1.5A@5V"
14962306a36Sopenharmony_ci		3 - 3.0A@5V"
15062306a36Sopenharmony_ci
15162306a36Sopenharmony_ciVariable Supplies
15262306a36Sopenharmony_ci
15362306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:variable_supply
15462306a36Sopenharmony_ciDate:		May 2022
15562306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
15662306a36Sopenharmony_ciDescription:
15762306a36Sopenharmony_ci		Variable Power Supply PDO.
15862306a36Sopenharmony_ci
15962306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:variable_supply/maximum_voltage
16062306a36Sopenharmony_ciDate:		May 2022
16162306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
16262306a36Sopenharmony_ciDescription:
16362306a36Sopenharmony_ci		Maximum Voltage in millivolts.
16462306a36Sopenharmony_ci
16562306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:variable_supply/minimum_voltage
16662306a36Sopenharmony_ciDate:		May 2022
16762306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
16862306a36Sopenharmony_ciDescription:
16962306a36Sopenharmony_ci		Minimum Voltage in millivolts.
17062306a36Sopenharmony_ci
17162306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../source-capabilities/<position>:variable_supply/maximum_current
17262306a36Sopenharmony_ciDate:		May 2022
17362306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
17462306a36Sopenharmony_ciDescription:
17562306a36Sopenharmony_ci		The maximum current in milliamperes that the source can supply
17662306a36Sopenharmony_ci		at the given Voltage range.
17762306a36Sopenharmony_ci
17862306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../sink-capabilities/<position>:variable_supply/operational_current
17962306a36Sopenharmony_ciDate:		May 2022
18062306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
18162306a36Sopenharmony_ciDescription:
18262306a36Sopenharmony_ci		The operational current in milliamperes that the sink requires
18362306a36Sopenharmony_ci		at the given Voltage range.
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ciBattery Supplies
18662306a36Sopenharmony_ci
18762306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:battery
18862306a36Sopenharmony_ciDate:		May 2022
18962306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
19062306a36Sopenharmony_ciDescription:
19162306a36Sopenharmony_ci		Battery PDO.
19262306a36Sopenharmony_ci
19362306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:battery/maximum_voltage
19462306a36Sopenharmony_ciDate:		May 2022
19562306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
19662306a36Sopenharmony_ciDescription:
19762306a36Sopenharmony_ci		Maximum Voltage in millivolts.
19862306a36Sopenharmony_ci
19962306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:battery/minimum_voltage
20062306a36Sopenharmony_ciDate:		May 2022
20162306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
20262306a36Sopenharmony_ciDescription:
20362306a36Sopenharmony_ci		Minimum Voltage in millivolts.
20462306a36Sopenharmony_ci
20562306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../source-capabilities/<position>:battery/maximum_power
20662306a36Sopenharmony_ciDate:		May 2022
20762306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
20862306a36Sopenharmony_ciDescription:
20962306a36Sopenharmony_ci		Maximum allowable Power in milliwatts.
21062306a36Sopenharmony_ci
21162306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../sink-capabilities/<position>:battery/operational_power
21262306a36Sopenharmony_ciDate:		May 2022
21362306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
21462306a36Sopenharmony_ciDescription:
21562306a36Sopenharmony_ci		The operational power that the sink requires at the given
21662306a36Sopenharmony_ci		voltage range.
21762306a36Sopenharmony_ci
21862306a36Sopenharmony_ciStandard Power Range (SPR) Programmable Power Supplies
21962306a36Sopenharmony_ci
22062306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:programmable_supply
22162306a36Sopenharmony_ciDate:		May 2022
22262306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
22362306a36Sopenharmony_ciDescription:
22462306a36Sopenharmony_ci		Programmable Power Supply (PPS) Augmented PDO (APDO).
22562306a36Sopenharmony_ci
22662306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:programmable_supply/maximum_voltage
22762306a36Sopenharmony_ciDate:		May 2022
22862306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
22962306a36Sopenharmony_ciDescription:
23062306a36Sopenharmony_ci		Maximum Voltage in millivolts.
23162306a36Sopenharmony_ci
23262306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:programmable_supply/minimum_voltage
23362306a36Sopenharmony_ciDate:		May 2022
23462306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
23562306a36Sopenharmony_ciDescription:
23662306a36Sopenharmony_ci		Minimum Voltage in millivolts.
23762306a36Sopenharmony_ci
23862306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../<capability>/<position>:programmable_supply/maximum_current
23962306a36Sopenharmony_ciDate:		May 2022
24062306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
24162306a36Sopenharmony_ciDescription:
24262306a36Sopenharmony_ci		Maximum Current in milliamperes.
24362306a36Sopenharmony_ci
24462306a36Sopenharmony_ciWhat:		/sys/class/usb_power_delivery/.../source-capabilities/<position>:programmable_supply/pps_power_limited
24562306a36Sopenharmony_ciDate:		May 2022
24662306a36Sopenharmony_ciContact:	Heikki Krogerus <heikki.krogerus@linux.intel.com>
24762306a36Sopenharmony_ciDescription:
24862306a36Sopenharmony_ci		The PPS Power Limited bit indicates whether or not the source
24962306a36Sopenharmony_ci		supply will exceed the rated output power if requested.
250