nmaggioni opened a new pull request, #16963: URL: https://github.com/apache/nuttx/pull/16963
## Summary This PR adds support for the I2C interface of the [Hynetek HUSB238](https://en.hynetek.com/2421.html) USB Type-C Power Delivery Sink Controller. Since this is, if I'm not mistaken, the first USB-PD driver implemented in NuttX, I tried to apply the conventions used in other types of drivers while extending the power-related headers, IOCTL definitions, and Kconfig keys. I reckon that `drivers/power/supply` is the right place for this driver and the prefix of its config keys should be `USBPD_HUSB238`, but let me know if things should be organized/named differently. I also have an example app ready, I'll open a PR on the apps repo once this one gets out of draft status. ## Impact Users will be able to query the controller for the currently active USB-PD PDO (combined specification of voltage and current), and interactively request different PDOs from the power supply. ## Testing These changes were tested on a Linux host, targeting a custom Cortex-M0+ (RP2040) board using NuttX v12.8.0 as the baseline. They were then manually ported to the current master branch. **Note:** All the read commands have been tested, but I did not fully test the write commands (change active USB-PD voltage range, reset the power supply) as my current hardware is not designed for being exposed to wildly different voltage ranges and I do not have a dedicated breakout/evaluation board for this IC at hand. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
