Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: power: lt3074: add driver for LT3074 #2408

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

cencarna
Copy link
Contributor

@cencarna cencarna commented Jan 6, 2025

Pull Request Description

The LT3074 is a low voltage, ultralow noise, and ultrafast transient
response linear regulator with a PMBus serial interface. The device
supplies up to 3A with a typical dropout voltage of 45mV.

This pull request adds the no-OS and IIO driver, as well as examples
and documentations, to quickly evaluate the LT3074.

PR Type

  • Bug fix (change that fixes an issue)
  • New feature (change that adds new functionality)
  • Breaking change (has dependencies in other repos or will cause CI to fail)

PR Checklist

  • I have followed the Coding style guidelines
  • I have performed a self-review of the changes
  • I have commented my code, at least hard-to-understand parts
  • I have build all projects affected by the changes in this PR
  • I have tested in hardware affected projects, at the relevant boards
  • I have signed off all commits from this PR
  • I have updated the documentation (wiki pages, ReadMe etc), if applies

The LT3074 is a low voltage, ultralow noise, and ultrafast
transient response linear regulator with a PMBus serial
interface. The device supplies up to 3A with a typical
dropout voltage of 45mV.

Signed-off-by: Cedric Encarnacion <[email protected]>
This adds tinyIIO support for the LT3074 device. This exposes output
voltage and current, temperature, and bias voltage channels.

Signed-off-by: Cedric Encarnacion <[email protected]>
Add initial project files for both basic and IIO examples for LT3074.

Signed-off-by: Cedric Encarnacion <[email protected]>
Add README.rst documentation file for LT3074 alongside other
documentation related files.

Signed-off-by: Cedric Encarnacion <[email protected]>
Add README.rst documentation file for project alongside other
documentation related files.

Signed-off-by: Cedric Encarnacion <[email protected]>
* @return ret - Result of the reading procedure.
* In case of success, the size of the read data is returned.
*/
static int32_t lt3074_iio_reg_read(void *dev, uint32_t reg, uint32_t *readval)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually there is one comment: the return type of the functions should be int.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants