- Mar 09, 2025
-
-
Xin Li authored
Bug: 385190204 Merged-In: I5dd0be242b0e769f961282ece4bc6d8f9d2cb5d5 Change-Id: I6a5ccdb17f7a8d757d5b6f969469bbe57ef3444d
-
- Feb 10, 2025
-
-
Xin Li authored
Bug: 385190204 Merged-In: If3465d3d2f2465ae33d8a3e1a80262d319e4f90c Change-Id: I431e605655574d8e696e07ce46e2bccdce90aad8
-
- Dec 05, 2024
-
-
Radu authored
Add information about the physical location, USB and DRM subsystems for all Type-C ports. Sample Output: physical_location panel: right horizontal_position: right usb_device busnum: 3 devnum: 99 devpath: 1 usb_device busnum: 3 devnum: 100 devpath: 1.1 usb_device busnum: 3 devnum: 101 devpath: 1.2 usb_device busnum: 3 devnum: 102 devpath: 1.2.4 dp_connector connector_id: 258 status: disconnected Bug: 377832895 Test: atest typec_connector_class_test Change-Id: If3465d3d2f2465ae33d8a3e1a80262d319e4f90c
-
- Dec 03, 2024
-
-
George-Daniel Matei authored
Output should look like: port1-cable plug_type: type-c type: passive uevent: DEVTYPE=typec_cable usb_power_delivery_revision: 3.0 identity id_header: 0x1c6003f0 USB Vendor ID: 0x3f0 Reserved: 0x60 Product Type (DFP): 0x0 Modal Operation Supported: 0x1 Product Type (UFP/Cable Plug): 0x3 USB Capable as a USB Device: 0x0 USB Capable as a USB Host: 0x0 cert_stat: 0x0 XID: 0x0 product: 0x94880001 bcdDevice: 0x1 USB Product ID: 0x9488 product_type_vdo1: 0x11082043 USB Speed: 0x3 Reserved: 0x0 Vbus Current Handling: 0x2 Reserved: 0x0 Maximum Vbus Voltage: 0x0 Cable Termination Type: 0x0 Cable Latency: 0x1 Reserved: 0x0 USB Type-C Plug to USB Type: 0x2 Reserved: 0x0 VDO Version: 0x0 Firmware Version: 0x1 HW Version: 0x1 product_type_vdo2: 0x0 product_type_vdo3: 0x0 port1-plug0 number_of_alternate_modes: 2 uevent: DEVTYPE=typec_plug port1-plug0.0 active: no mode: 1 svid: 1e4e uevent: DEVTYPE=typec_alternate_mode vdo: 0x9031011c mode1 active: no description: vdo: 0x9031011c port1-plug0.1 active: no mode: 1 svid: 8087 uevent: DEVTYPE=typec_alternate_mode vdo: 0x00030001 mode1 active: no description: vdo: 0x00030001 Bug: 377832739 Test: atest typec_connector_class_test Change-Id: Ia4411183d3a32457a4a7eb78047acd156c0f37bc
-
- Dec 02, 2024
-
-
Radu authored
Add information about alternate modes and Power Data Objects for each Type-C port partner. Sample output for port information: port0-partner accessory_mode: none number_of_alternate_modes: 1 supports_usb_power_delivery: yes type: hub uevent: DEVTYPE=typec_partner usb_power_delivery_revision: 3.0 identity id_header: 0x4c400bda USB Vendor ID: 0xbda Reserved: 0x40 Product Type (DFP): 0x0 Modal Operation Supported: 0x1 Product Type (UFP/Cable Plug): 0x1 USB Capable as a USB Device: 0x1 USB Capable as a USB Host: 0x0 cert_stat: 0x0 XID: 0x0 product: 0x136 bcdDevice: 0x136 USB Product ID: 0x0 product_type_vdo1: 0x44800191 USB Highest Speed: 0x1 Alternate Modes: 0x2 Reserved: 0x20006 Device Capability: 0x4 Reserved: 0x0 UFP VDO Version: 0x2 product_type_vdo2: 0x0 USB3 Max Power: 0x0 USB3 Min Power: 0x0 Reserved: 0x0 USB4 Max Power: 0x0 USB4 Min Power: 0x0 Reserved: 0x0 product_type_vdo3: 0x0 port0-partner.0 active: no description: mode: 1 svid: ff01 uevent: DEVTYPE=typec_alternate_mode SVID=FF01 MODE=1 MODALIAS=typec:idFF01m01 vdo: 0x00140045 mode1 active: no description: vdo: 0x00140045 pd1 revision: 3.0 uevent: DEVTYPE=usb_power_delivery sink-capabilities uevent: 1:fixed_supply dual_role_data: 1 dual_role_power: 1 fast_role_swap_current: 0 higher_capability: 0 operational_current: 100mA uevent: unchunked_extended_messages_supported: 0 unconstrained_power: 1 usb_communication_capable: 1 voltage: 5000mV source-capabilities uevent: 1:fixed_supply dual_role_data: 1 dual_role_power: 1 maximum_current: 3000mA uevent: unchunked_extended_messages_supported: 1 unconstrained_power: 1 usb_communication_capable: 1 usb_suspend_supported: 1 voltage: 5000mV 2:fixed_supply maximum_current: 3000mA uevent: voltage: 9000mV 3:fixed_supply maximum_current: 3000mA uevent: voltage: 15000mV 4:fixed_supply maximum_current: 3000mA uevent: voltage: 20000mV Bug: 377831694 Test: atest typec_connector_class_test Change-Id: Ie808121d1bab6e970cd63316906ed52f44b2a490
-
- Nov 29, 2024
-
-
Radu authored
Determine product type from id_header VDO and print decoded product type VDOs as part of partner information. Updated sample output for partner information: port0-partner accessory_mode: none number_of_alternate_modes: 1 supports_usb_power_delivery: yes type: hub uevent: DEVTYPE=typec_partner usb_power_delivery_revision: 3.0 identity id_header: 0x4c400bda USB Vendor ID: 0xbda Reserved: 0x40 Product Type (DFP): 0x0 Modal Operation Supported: 0x1 Product Type (UFP/Cable Plug): 0x1 USB Capable as a USB Device: 0x1 USB Capable as a USB Host: 0x0 cert_stat: 0x0 XID: 0x0 product: 0x136 bcdDevice: 0x136 USB Product ID: 0x0 product_type_vdo1: 0x44800191 USB Highest Speed: 0x1 Alternate Modes: 0x2 Reserved: 0x20006 Device Capability: 0x4 Reserved: 0x0 UFP VDO Version: 0x2 product_type_vdo2: 0x0 USB3 Max Power: 0x0 USB3 Min Power: 0x0 Reserved: 0x0 USB4 Max Power: 0x0 USB4 Min Power: 0x0 Reserved: 0x0 product_type_vdo3: 0x0 Bug: 377831694 Test: atest typec_connector_class_test Change-Id: Ic20999d816b2337bdd8394297c8ee8a0a09715aa
-
- Nov 28, 2024
-
-
Radu authored
Add partner identity info, to the output of typec_connector_class_helper as part of porting the Type-C Connector Class helper from C++ to rust. (see https://chromium.googlesource.com/chromiumos/platform2/+/refs/ \ heads/main/debugd/src/helpers/typec_connector_class_helper.cc) The partner identity information includes: * the contents of the files in the /portX/portX-partner directory * partner identity information (including decoded Vendor Data Objects - VDOs: id_header, cert_stat, product) An example of the partner information in the output of the typec_connector_class command is: port0-partner accessory_mode: none number_of_alternate_modes: 1 supports_usb_power_delivery: yes type: hub uevent: DEVTYPE=typec_partner usb_power_delivery_revision: 3.0 identity id_header: 0x4c400bda USB Vendor ID: 0xbda Reserved: 0x40 Product Type (DFP): 0x0 Modal Operation Supported: 0x1 Product Type (UFP/Cable Plug): 0x1 USB Capable as a USB Device: 0x1 USB Capable as a USB Host: 0x0 cert_stat: 0x0 XID: 0x0 product: 0x136 bcdDevice: 0x136 USB Product ID: 0x0 Bug: 377831694 Test: atest typec_connector_class_test Change-Id: I6197c8c2fdeeae1f7c1ca0be87d3f61f5e6c5680
-
- Nov 20, 2024
-
-
George-Daniel Matei authored
Bug: None Test: None Change-Id: Iba896610453e12357e18c384aa2f2e396a0c414b
-
- Oct 17, 2024
-
-
Radu Vele authored
Initial type-c connector class helper functionality - print the contents of files from the port directories Add starter functionality for the type-c connector class helper ported from https://chromium.googlesource.com/chromiumos/platform2/+/refs/heads/main/debugd/src/helpers/typec_connector_class_helper.cc (see also typec_connector_class_helper_utils.cc). The helper pretty-prints information provided by the USB Type-C Connector Class (Linux) in the sysfs and is mainly used for debugging Type-C-related issues. An example of the output format expected at this stage is: port0 uevent: DEVTYPE=typec_port TYPEC_PORT=port0 vconn_source: no supported_accessory_modes: none power_role: source [sink] data_role: host [device] preferred_role: source power_operation_mode: default usb_power_delivery_revision: 0.0 usb_typec_revision: 0.0 waiting_for_supplier: 0 port1 [...port1 info] Bug: 367613400 Test: (host) m typec_connector_class (DUT) adb push "$ANDROID_PRODUCT_OUT/system/bin/typec_connector_class" /data/local/tmp (DUT) /data/local/tmp/typec_connector_class (DUT) manually check the contents of the port directories (e.g. port0/) under /sys/class/typec/ match the command's output. Change-Id: Ie30221e1c4e46770bc07051b038984d204fb5588
-
- Oct 01, 2024
-
-
Roman Yepishev authored
-