1fab92884SHeikki KrogerusUSB Type-C port devices (eg. /sys/class/typec/port0/)
2fab92884SHeikki Krogerus
3fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>/data_role
4fab92884SHeikki KrogerusDate:		April 2017
5fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
6fab92884SHeikki KrogerusDescription:
7fab92884SHeikki Krogerus		The supported USB data roles. This attribute can be used for
8fab92884SHeikki Krogerus		requesting data role swapping on the port. Swapping is supported
9fab92884SHeikki Krogerus		as synchronous operation, so write(2) to the attribute will not
10fab92884SHeikki Krogerus		return until the operation has finished. The attribute is
11fab92884SHeikki Krogerus		notified about role changes so that poll(2) on the attribute
12fab92884SHeikki Krogerus		wakes up. Change on the role will also generate uevent
13fab92884SHeikki Krogerus		KOBJ_CHANGE on the port. The current role is show in brackets,
14fab92884SHeikki Krogerus		for example "[host] device" when DRP port is in host mode.
15fab92884SHeikki Krogerus
16fab92884SHeikki Krogerus		Valid values: host, device
17fab92884SHeikki Krogerus
18fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>/power_role
19fab92884SHeikki KrogerusDate:		April 2017
20fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
21fab92884SHeikki KrogerusDescription:
22fab92884SHeikki Krogerus		The supported power roles. This attribute can be used to request
23ae4ba35dSHeikki Krogerus		power role swap on the port. Swapping is supported as
24ae4ba35dSHeikki Krogerus		synchronous operation, so write(2) to the attribute will not
25ae4ba35dSHeikki Krogerus		return until the operation has finished. The attribute is
26ae4ba35dSHeikki Krogerus		notified about role changes so that poll(2) on the attribute
27ae4ba35dSHeikki Krogerus		wakes up. Change on the role will also generate uevent
28ae4ba35dSHeikki Krogerus		KOBJ_CHANGE. The current role is show in brackets, for example
29ae4ba35dSHeikki Krogerus		"[source] sink" when in source mode.
30fab92884SHeikki Krogerus
31fab92884SHeikki Krogerus		Valid values: source, sink
32fab92884SHeikki Krogerus
33bab35480SBadhri Jagan SridharanWhat:           /sys/class/typec/<port>/port_type
34bab35480SBadhri Jagan SridharanDate:           May 2017
35bab35480SBadhri Jagan SridharanContact:	Badhri Jagan Sridharan <[email protected]>
36bab35480SBadhri Jagan SridharanDescription:
37bab35480SBadhri Jagan Sridharan		Indicates the type of the port. This attribute can be used for
38bab35480SBadhri Jagan Sridharan		requesting a change in the port type. Port type change is
39bab35480SBadhri Jagan Sridharan		supported as a synchronous operation, so write(2) to the
40bab35480SBadhri Jagan Sridharan		attribute will not return until the operation has finished.
41bab35480SBadhri Jagan Sridharan
42bab35480SBadhri Jagan Sridharan		Valid values:
4334433332SMauro Carvalho Chehab
4434433332SMauro Carvalho Chehab		======  ==============================================
4534433332SMauro Carvalho Chehab		source  (The port will behave as source only DFP port)
4634433332SMauro Carvalho Chehab		sink    (The port will behave as sink only UFP port)
4734433332SMauro Carvalho Chehab		dual    (The port will behave as dual-role-data and
48bab35480SBadhri Jagan Sridharan			dual-role-power port)
4934433332SMauro Carvalho Chehab		======  ==============================================
50bab35480SBadhri Jagan Sridharan
51fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>/vconn_source
52fab92884SHeikki KrogerusDate:		April 2017
53fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
54fab92884SHeikki KrogerusDescription:
55fab92884SHeikki Krogerus		Shows is the port VCONN Source. This attribute can be used to
56fab92884SHeikki Krogerus		request VCONN swap to change the VCONN Source during connection
57fab92884SHeikki Krogerus		when both the port and the partner support USB Power Delivery.
58fab92884SHeikki Krogerus		Swapping is supported as synchronous operation, so write(2) to
59fab92884SHeikki Krogerus		the attribute will not return until the operation has finished.
60fab92884SHeikki Krogerus		The attribute is notified about VCONN source changes so that
61fab92884SHeikki Krogerus		poll(2) on the attribute wakes up. Change on VCONN source also
62fab92884SHeikki Krogerus		generates uevent KOBJ_CHANGE.
63fab92884SHeikki Krogerus
64fab92884SHeikki Krogerus		Valid values:
6534433332SMauro Carvalho Chehab
66fab92884SHeikki Krogerus		- "no" when the port is not the VCONN Source
67fab92884SHeikki Krogerus		- "yes" when the port is the VCONN Source
68fab92884SHeikki Krogerus
69fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>/power_operation_mode
70fab92884SHeikki KrogerusDate:		April 2017
71fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
72fab92884SHeikki KrogerusDescription:
73fab92884SHeikki Krogerus		Shows the current power operational mode the port is in. The
74fab92884SHeikki Krogerus		power operation mode means current level for VBUS. In case USB
75fab92884SHeikki Krogerus		Power Delivery communication is used for negotiating the levels,
76fab92884SHeikki Krogerus		power operation mode should show "usb_power_delivery".
77fab92884SHeikki Krogerus
78fab92884SHeikki Krogerus		Valid values:
7934433332SMauro Carvalho Chehab
80fab92884SHeikki Krogerus		- default
81fab92884SHeikki Krogerus		- 1.5A
82fab92884SHeikki Krogerus		- 3.0A
83fab92884SHeikki Krogerus		- usb_power_delivery
84fab92884SHeikki Krogerus
85fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>/preferred_role
86fab92884SHeikki KrogerusDate:		April 2017
87fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
88fab92884SHeikki KrogerusDescription:
89fab92884SHeikki Krogerus		The user space can notify the driver about the preferred role.
90fab92884SHeikki Krogerus		It should be handled as enabling of Try.SRC or Try.SNK, as
91fab92884SHeikki Krogerus		defined in USB Type-C specification, in the port drivers. By
92fab92884SHeikki Krogerus		default the preferred role should come from the platform.
93fab92884SHeikki Krogerus
94fab92884SHeikki Krogerus		Valid values: source, sink, none (to remove preference)
95fab92884SHeikki Krogerus
96fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>/supported_accessory_modes
97fab92884SHeikki KrogerusDate:		April 2017
98fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
99fab92884SHeikki KrogerusDescription:
100fab92884SHeikki Krogerus		Space separated list of accessory modes, defined in the USB
101fab92884SHeikki Krogerus		Type-C specification, the port supports.
102fab92884SHeikki Krogerus
103fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>/usb_power_delivery_revision
104fab92884SHeikki KrogerusDate:		April 2017
105fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
106fab92884SHeikki KrogerusDescription:
107fab92884SHeikki Krogerus		Revision number of the supported USB Power Delivery
1081ed8459dSBenson Leung		specification, or 0.0 when USB Power Delivery is not supported.
1091ed8459dSBenson Leung
1101ed8459dSBenson Leung		Example values:
1111ed8459dSBenson Leung		- "2.0": USB Power Delivery Release 2.0
1121ed8459dSBenson Leung		- "3.0": USB Power Delivery Release 3.0
1131ed8459dSBenson Leung		- "3.1": USB Power Delivery Release 3.1
114fab92884SHeikki Krogerus
115f5030e25SBenson LeungWhat:		/sys/class/typec/<port>-{partner|cable}/usb_power_delivery_revision
116f5030e25SBenson LeungDate:		January 2021
117f5030e25SBenson LeungContact:	Benson Leung <[email protected]>
118f5030e25SBenson LeungDescription:
119f5030e25SBenson Leung		Revision number of the supported USB Power Delivery
120f5030e25SBenson Leung		specification of the port partner or cable, or 0.0 when USB
121f5030e25SBenson Leung		Power Delivery is not supported.
122f5030e25SBenson Leung
123f5030e25SBenson Leung		Example values:
124f5030e25SBenson Leung		- "2.0": USB Power Delivery Release 2.0
125f5030e25SBenson Leung		- "3.0": USB Power Delivery Release 3.0
126f5030e25SBenson Leung		- "3.1": USB Power Delivery Release 3.1
127f5030e25SBenson Leung
128fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>/usb_typec_revision
129fab92884SHeikki KrogerusDate:		April 2017
130fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
131fab92884SHeikki KrogerusDescription:
132fab92884SHeikki Krogerus		Revision number of the supported USB Type-C specification.
133fab92884SHeikki Krogerus
13475f81a7fSBadhri Jagan SridharanWhat:		/sys/class/typec/<port>/orientation
13575f81a7fSBadhri Jagan SridharanDate:		February 2020
13675f81a7fSBadhri Jagan SridharanContact:	Badhri Jagan Sridharan <[email protected]>
13775f81a7fSBadhri Jagan SridharanDescription:
13875f81a7fSBadhri Jagan Sridharan		Indicates the active orientation of the Type-C connector.
13975f81a7fSBadhri Jagan Sridharan		Valid values:
14075f81a7fSBadhri Jagan Sridharan		- "normal": CC1 orientation
14175f81a7fSBadhri Jagan Sridharan		- "reverse": CC2 orientation
14275f81a7fSBadhri Jagan Sridharan		- "unknown": Orientation cannot be determined.
143fab92884SHeikki Krogerus
144a7cff92fSHeikki KrogerusWhat:		/sys/class/typec/<port>/select_usb_power_delivery
145a7cff92fSHeikki KrogerusDate:		May 2022
146a7cff92fSHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
147a7cff92fSHeikki KrogerusDescription:
148a7cff92fSHeikki Krogerus		Lists the USB Power Delivery Capabilities that the port can
149a7cff92fSHeikki Krogerus		advertise to the partner. The currently used capabilities are in
150a7cff92fSHeikki Krogerus		brackets. Selection happens by writing to the file.
151a7cff92fSHeikki Krogerus
1528060bcb1SHeikki KrogerusWhat:		/sys/class/typec/<port>/usb_capability
1538060bcb1SHeikki KrogerusDate:		November 2024
1548060bcb1SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
1558060bcb1SHeikki KrogerusDescription:	Lists the supported USB Modes. The default USB mode that is used
1568060bcb1SHeikki Krogerus		next time with the Enter_USB Message is in brackets. The default
1578060bcb1SHeikki Krogerus		mode can be changed by writing to the file when supported by the
1588060bcb1SHeikki Krogerus		driver.
1598060bcb1SHeikki Krogerus
1608060bcb1SHeikki Krogerus		Valid values:
1618060bcb1SHeikki Krogerus		- usb2 (USB 2.0)
1628060bcb1SHeikki Krogerus		- usb3 (USB 3.2)
1638060bcb1SHeikki Krogerus		- usb4 (USB4)
1648060bcb1SHeikki Krogerus
165fab92884SHeikki KrogerusUSB Type-C partner devices (eg. /sys/class/typec/port0-partner/)
166fab92884SHeikki Krogerus
167fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>-partner/accessory_mode
168fab92884SHeikki KrogerusDate:		April 2017
169fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
170fab92884SHeikki KrogerusDescription:
171fab92884SHeikki Krogerus		Shows the Accessory Mode name when the partner is an Accessory.
172fab92884SHeikki Krogerus		The Accessory Modes are defined in USB Type-C Specification.
173fab92884SHeikki Krogerus
174fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>-partner/supports_usb_power_delivery
175fab92884SHeikki KrogerusDate:		April 2017
176fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
177fab92884SHeikki KrogerusDescription:
178fab92884SHeikki Krogerus		Shows if the partner supports USB Power Delivery communication:
179fab92884SHeikki Krogerus		Valid values: yes, no
180fab92884SHeikki Krogerus
181a0ccdc4aSPrashant MalaniWhat:		/sys/class/typec/<port>-partner/number_of_alternate_modes
182a0ccdc4aSPrashant MalaniDate:		November 2020
183a0ccdc4aSPrashant MalaniContact:	Prashant Malani <[email protected]>
184a0ccdc4aSPrashant MalaniDescription:
185a0ccdc4aSPrashant Malani		Shows the number of alternate modes which are advertised by the partner
186a0ccdc4aSPrashant Malani		during Power Delivery discovery. This file remains hidden until a value
187a0ccdc4aSPrashant Malani		greater than or equal to 0 is set by Type C port driver.
188a0ccdc4aSPrashant Malani
189ab37fa85SHeikki KrogerusWhat:		/sys/class/typec/<port>-partner/type
190ab37fa85SHeikki KrogerusDate:		December 2020
191ab37fa85SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
192ab37fa85SHeikki KrogerusDescription:	USB Power Delivery Specification defines a set of product types
193ab37fa85SHeikki Krogerus		for the partner devices. This file will show the product type of
194ab37fa85SHeikki Krogerus		the partner if it is known. Dual-role capable partners will have
195ab37fa85SHeikki Krogerus		both UFP and DFP product types defined, but only one that
196ab37fa85SHeikki Krogerus		matches the current role will be active at the time. If the
197ab37fa85SHeikki Krogerus		product type of the partner is not visible to the device driver,
198ab37fa85SHeikki Krogerus		this file will not exist.
199ab37fa85SHeikki Krogerus
200ab37fa85SHeikki Krogerus		When the partner product type is detected, or changed with role
201ab37fa85SHeikki Krogerus		swap, uvevent is also raised that contains PRODUCT_TYPE=<product
202ab37fa85SHeikki Krogerus		type> (for example PRODUCT_TYPE=hub).
203ab37fa85SHeikki Krogerus
204ab37fa85SHeikki Krogerus		Valid values:
205ab37fa85SHeikki Krogerus
206ab37fa85SHeikki Krogerus		UFP / device role
207ab37fa85SHeikki Krogerus		======================  ==========================
208ab37fa85SHeikki Krogerus		undefined		-
209ab37fa85SHeikki Krogerus		hub			PDUSB Hub
210ab37fa85SHeikki Krogerus		peripheral		PDUSB Peripheral
211ab37fa85SHeikki Krogerus		psd			Power Bank
212ab37fa85SHeikki Krogerus		ama			Alternate Mode Adapter
213ab37fa85SHeikki Krogerus		======================  ==========================
214ab37fa85SHeikki Krogerus
215ab37fa85SHeikki Krogerus		DFP / host role
216ab37fa85SHeikki Krogerus		======================  ==========================
217ab37fa85SHeikki Krogerus		undefined		-
218ab37fa85SHeikki Krogerus		hub			PDUSB Hub
219ab37fa85SHeikki Krogerus		host			PDUSB Host
220ab37fa85SHeikki Krogerus		power_brick		Power Brick
221ab37fa85SHeikki Krogerus		amc			Alternate Mode Controller
222ab37fa85SHeikki Krogerus		======================  ==========================
223ab37fa85SHeikki Krogerus
2244e25928cSMauro Carvalho ChehabWhat:		/sys/class/typec/<port>-partner/identity/
225ab37fa85SHeikki KrogerusDate:		April 2017
226ab37fa85SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
227ab37fa85SHeikki KrogerusDescription:
228ab37fa85SHeikki Krogerus		This directory appears only if the port device driver is capable
229ab37fa85SHeikki Krogerus		of showing the result of Discover Identity USB power delivery
230ab37fa85SHeikki Krogerus		command. That will not always be possible even when USB power
231ab37fa85SHeikki Krogerus		delivery is supported, for example when USB power delivery
232ab37fa85SHeikki Krogerus		communication for the port is mostly handled in firmware. If the
233ab37fa85SHeikki Krogerus		directory exists, it will have an attribute file for every VDO
234ab37fa85SHeikki Krogerus		in Discover Identity command result.
235fab92884SHeikki Krogerus
236*2140a952SHeikki KrogerusWhat:		/sys/class/typec/<port>-partner/usb_mode
237*2140a952SHeikki KrogerusDate:		November 2024
238*2140a952SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
239*2140a952SHeikki KrogerusDescription:	The USB Modes that the partner device supports. The active mode
240*2140a952SHeikki Krogerus		is displayed in brackets. The active USB mode can be changed by
241*2140a952SHeikki Krogerus		writing to this file when the port driver is able to send Data
242*2140a952SHeikki Krogerus		Reset Message to the partner. That requires USB Power Delivery
243*2140a952SHeikki Krogerus		contract between the partner and the port.
244*2140a952SHeikki Krogerus
245*2140a952SHeikki Krogerus		Valid values:
246*2140a952SHeikki Krogerus		- usb2 (USB 2.0)
247*2140a952SHeikki Krogerus		- usb3 (USB 3.2)
248*2140a952SHeikki Krogerus		- usb4 (USB4)
249*2140a952SHeikki Krogerus
250fab92884SHeikki KrogerusUSB Type-C cable devices (eg. /sys/class/typec/port0-cable/)
251fab92884SHeikki Krogerus
252fab92884SHeikki KrogerusNote: Electronically Marked Cables will have a device also for one cable plug
253fab92884SHeikki Krogerus(eg. /sys/class/typec/port0-plug0). If the cable is active and has also SOP
254fab92884SHeikki KrogerusDouble Prime controller (USB Power Deliver specification ch. 2.4) it will have
255fab92884SHeikki Krogerussecond device also for the other plug. Both plugs may have alternate modes as
256fab92884SHeikki Krogerusdescribed in USB Type-C and USB Power Delivery specifications.
257fab92884SHeikki Krogerus
258fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>-cable/type
259fab92884SHeikki KrogerusDate:		April 2017
260fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
261ab37fa85SHeikki KrogerusDescription:	USB Power Delivery Specification defines a set of product types
262ab37fa85SHeikki Krogerus		for the cables. This file will show the product type of the
263ab37fa85SHeikki Krogerus		cable if it is known. If the product type of the cable is not
264ab37fa85SHeikki Krogerus		visible to the device driver, this file will not exist.
265ab37fa85SHeikki Krogerus
266ab37fa85SHeikki Krogerus		When the cable product type is detected, uvevent is also raised
267ab37fa85SHeikki Krogerus		with PRODUCT_TYPE showing the product type of the cable.
268ab37fa85SHeikki Krogerus
269ab37fa85SHeikki Krogerus		Valid values:
270ab37fa85SHeikki Krogerus
271ab37fa85SHeikki Krogerus		======================  ==========================
272ab37fa85SHeikki Krogerus		undefined		-
273ab37fa85SHeikki Krogerus		active			Active Cable
274ab37fa85SHeikki Krogerus		passive			Passive Cable
275ab37fa85SHeikki Krogerus		======================  ==========================
276fab92884SHeikki Krogerus
277fab92884SHeikki KrogerusWhat:		/sys/class/typec/<port>-cable/plug_type
278fab92884SHeikki KrogerusDate:		April 2017
279fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
280fab92884SHeikki KrogerusDescription:
281fab92884SHeikki Krogerus		Shows type of the plug on the cable:
28234433332SMauro Carvalho Chehab
283fab92884SHeikki Krogerus		- type-a - Standard A
284fab92884SHeikki Krogerus		- type-b - Standard B
285fab92884SHeikki Krogerus		- type-c
286fab92884SHeikki Krogerus		- captive
287fab92884SHeikki Krogerus
288e1e52361SPrashant MalaniWhat:		/sys/class/typec/<port>-<plug>/number_of_alternate_modes
289e1e52361SPrashant MalaniDate:		November 2020
290e1e52361SPrashant MalaniContact:	Prashant Malani <[email protected]>
291e1e52361SPrashant MalaniDescription:
292e1e52361SPrashant Malani		Shows the number of alternate modes which are advertised by the plug
293e1e52361SPrashant Malani		associated with a particular cable during Power Delivery discovery.
294e1e52361SPrashant Malani		This file remains hidden until a value greater than or equal to 0
295e1e52361SPrashant Malani		is set by Type C port driver.
296e1e52361SPrashant Malani
297fd2c35b2SPrashant Malani
298fd2c35b2SPrashant MalaniUSB Type-C partner/cable Power Delivery Identity objects
299fd2c35b2SPrashant Malani
300fd2c35b2SPrashant MalaniNOTE: The following attributes will be applicable to both
301fd2c35b2SPrashant Malanipartner (e.g /sys/class/typec/port0-partner/) and
302fd2c35b2SPrashant Malanicable (e.g /sys/class/typec/port0-cable/) devices. Consequently, the example file
303fd2c35b2SPrashant Malanipaths below are prefixed with "/sys/class/typec/<port>-{partner|cable}/" to
304fd2c35b2SPrashant Malanireflect this.
305fd2c35b2SPrashant Malani
306fd2c35b2SPrashant MalaniWhat:		/sys/class/typec/<port>-{partner|cable}/identity/
307fab92884SHeikki KrogerusDate:		April 2017
308fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
309fab92884SHeikki KrogerusDescription:
310fab92884SHeikki Krogerus		This directory appears only if the port device driver is capable
311fab92884SHeikki Krogerus		of showing the result of Discover Identity USB power delivery
312fab92884SHeikki Krogerus		command. That will not always be possible even when USB power
313fd2c35b2SPrashant Malani		delivery is supported, for example when USB power delivery
314fd2c35b2SPrashant Malani		communication for the port is mostly handled in firmware. If the
315fd2c35b2SPrashant Malani		directory exists, it will have an attribute file for every VDO
316fd2c35b2SPrashant Malani		in Discover Identity command result.
317fab92884SHeikki Krogerus
318fd2c35b2SPrashant MalaniWhat:		/sys/class/typec/<port>-{partner|cable}/identity/id_header
319fab92884SHeikki KrogerusDate:		April 2017
320fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
321fab92884SHeikki KrogerusDescription:
322fab92884SHeikki Krogerus		ID Header VDO part of Discover Identity command result. The
323fab92884SHeikki Krogerus		value will show 0 until Discover Identity command result becomes
324fab92884SHeikki Krogerus		available. The value can be polled.
325fab92884SHeikki Krogerus
326fd2c35b2SPrashant MalaniWhat:		/sys/class/typec/<port>-{partner|cable}/identity/cert_stat
327fab92884SHeikki KrogerusDate:		April 2017
328fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
329fab92884SHeikki KrogerusDescription:
330fab92884SHeikki Krogerus		Cert Stat VDO part of Discover Identity command result. The
331fab92884SHeikki Krogerus		value will show 0 until Discover Identity command result becomes
332fab92884SHeikki Krogerus		available. The value can be polled.
333fab92884SHeikki Krogerus
334fd2c35b2SPrashant MalaniWhat:		/sys/class/typec/<port>-{partner|cable}/identity/product
335fab92884SHeikki KrogerusDate:		April 2017
336fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
337fab92884SHeikki KrogerusDescription:
338fab92884SHeikki Krogerus		Product VDO part of Discover Identity command result. The value
339fab92884SHeikki Krogerus		will show 0 until Discover Identity command result becomes
340fab92884SHeikki Krogerus		available. The value can be polled.
341fab92884SHeikki Krogerus
3422e70c495SPrashant MalaniWhat:		/sys/class/typec/<port>-{partner|cable}/identity/product_type_vdo1
3432e70c495SPrashant MalaniDate:		October 2020
3442e70c495SPrashant MalaniContact:	Prashant Malani <[email protected]>
3452e70c495SPrashant MalaniDescription:
3462e70c495SPrashant Malani		1st Product Type VDO of Discover Identity command result.
3472e70c495SPrashant Malani		The value will show 0 until Discover Identity command result becomes
3482e70c495SPrashant Malani		available and a valid Product Type VDO is returned.
3492e70c495SPrashant Malani
3502e70c495SPrashant MalaniWhat:		/sys/class/typec/<port>-{partner|cable}/identity/product_type_vdo2
3512e70c495SPrashant MalaniDate:		October 2020
3522e70c495SPrashant MalaniContact:	Prashant Malani <[email protected]>
3532e70c495SPrashant MalaniDescription:
3542e70c495SPrashant Malani		2nd Product Type VDO of Discover Identity command result.
3552e70c495SPrashant Malani		The value will show 0 until Discover Identity command result becomes
3562e70c495SPrashant Malani		available and a valid Product Type VDO is returned.
3572e70c495SPrashant Malani
3582e70c495SPrashant MalaniWhat:		/sys/class/typec/<port>-{partner|cable}/identity/product_type_vdo3
3592e70c495SPrashant MalaniDate:		October 2020
3602e70c495SPrashant MalaniContact:	Prashant Malani <[email protected]>
3612e70c495SPrashant MalaniDescription:
3622e70c495SPrashant Malani		3rd Product Type VDO of Discover Identity command result.
3632e70c495SPrashant Malani		The value will show 0 until Discover Identity command result becomes
3642e70c495SPrashant Malani		available and a valid Product Type VDO is returned.
3652e70c495SPrashant Malani
366fab92884SHeikki Krogerus
3678a37d87dSHeikki KrogerusUSB Type-C port alternate mode devices.
368fab92884SHeikki Krogerus
3698a37d87dSHeikki KrogerusWhat:		/sys/class/typec/<port>/<alt mode>/supported_roles
370fab92884SHeikki KrogerusDate:		April 2017
371fab92884SHeikki KrogerusContact:	Heikki Krogerus <[email protected]>
372fab92884SHeikki KrogerusDescription:
373fab92884SHeikki Krogerus		Space separated list of the supported roles.
374fab92884SHeikki Krogerus
375fab92884SHeikki Krogerus		Valid values: source, sink
376