typec_connector_class_helper: Add typec class cable info

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
3 files changed
tree: 1c2a1c162a709c97ce9647e18a11ca714bbcc60b
  1. typec_connector_class_helper/
  2. .gitignore
  3. OWNERS
  4. PREUPLOAD.cfg