commit | cad33a50eb6613d399666fe70848994d03b16b81 | [log] [tgz] |
---|---|---|
author | Jameson Thies <jthies@google.com> | Thu Jan 18 02:05:56 2024 |
committer | Jameson Thies <jthies@google.com> | Thu Jan 18 22:04:15 2024 |
tree | 48f0d1fb207ec0b6f94e22aa8552ddad20810b6e | |
parent | 5178dd053d219289bae70e9b9f6529b62249e863 [diff] |
Add placeholder identity response for GET_PD_MESSAGE The RTS545X is currently not capable supplying all information required for SOP, SOP' or SOP'' identity responses. But, it provides access to some VDOs. This adds a placeholder GET_PD_MESSAGE response with 6 VDOs to mimic a discover identity response so the UCSI driver can test partner/cable identity discovery. BUG=b:319302484 TEST=make local_tests, GET_VDO response correctly enumerated as partner identity with modified UCSI driver. Change-Id: I49e145f1474967bd21ea13da0d03017cd559dc3e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/usb/um_ppm/+/5208532 Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@google.com> Tested-by: Jameson Thies <jthies@google.com>
Usermode UCSI PPM implementation for evaluation and testing usage. Try using this with the ucsi_um_test
kernel driver.
For usermode implementations, we use libi2c and libgpiod to provide an smbus implementation. You will need the right libraries to build:
sudo apt-get install libi2c-dev libgpiod-dev
┌─────────┐ │OPM │ │kernel or│ │cli │ └────┬────┘ │ │ ▼ ┌───────────┐ ┌────────┐ │ PD Driver │ │ ├────►│ │ │ PPM │ ├───────────┤ │ │ │ │ └────────┘ │ I2C Driver│ └───────────┘
The usermode ppm implementation consists of the PPM task, the PD driver and the I2C driver backing it. The OPM will either be a CLI (for locally triggering some functionality) or the ucsi_um_test
kernel module.