no-OS icon indicating copy to clipboard operation
no-OS copied to clipboard

Add support for MAX17616

Open cjones-adi opened this issue 3 months ago • 34 comments

Pull Request Description

The MAX17616/MAX17616A offers highly versatile and programmable protection boundaries for systems against input voltage faults and output overcurrent faults. Input-voltage faults (with positive polarity) are protected up to +80V (without Reverse Current Protection)/+75V (with Reverse Current Protection), by an internal nFET featuring low ON-resistance (20mΩ typ). The devices feature a programmable undervoltage-lockout (UVLO) thresholds by using external voltage- dividers. The MAX17616 features a programmable overvoltage-lockout (OVLO) while MAX17616A offers a programmable output voltage clamp function through the OVFB pin that features an output voltage limiting regulation during input transient surge events. Input undervoltage and overvoltage protection (MAX17616)/output voltage clamp function (MAX17616A) can be programmed across the entire 3V to 80V operating range.

PR Type

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

PR Checklist

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

cjones-adi avatar Sep 25 '25 04:09 cjones-adi

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 25 '25 04:09 CLAassistant

/AzurePipelines run

buha avatar Sep 29 '25 12:09 buha

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Sep 29 '25 12:09 azure-pipelines[bot]

/AzurePipelines run

kister-jimenez avatar Sep 30 '25 01:09 kister-jimenez

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Sep 30 '25 01:09 azure-pipelines[bot]

V2:

Rebase to latest main Move max17616.rst to respective doc/sphinx/source directory Fix astyle errors on identified files

cjones-adi avatar Sep 30 '25 04:09 cjones-adi

/AzurePipelines run

kister-jimenez avatar Sep 30 '25 06:09 kister-jimenez

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Sep 30 '25 06:09 azure-pipelines[bot]

V3:

Resolve identified Sphinx documentation errors

cjones-adi avatar Oct 01 '25 02:10 cjones-adi

/AzurePipelines run

jemfgeronimo avatar Oct 01 '25 02:10 jemfgeronimo

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Oct 01 '25 02:10 azure-pipelines[bot]

V4:

Remove diff headers included in max17616.h

cjones-adi avatar Oct 01 '25 04:10 cjones-adi

/AzurePipelines run

cjones-adi avatar Oct 01 '25 22:10 cjones-adi

Commenter does not have sufficient privileges for PR 2734 in repo analogdevicesinc/no-OS

azure-pipelines[bot] avatar Oct 01 '25 22:10 azure-pipelines[bot]

/AzurePipelines run

kister-jimenez avatar Oct 02 '25 02:10 kister-jimenez

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Oct 02 '25 02:10 azure-pipelines[bot]

V5:

  • Improve error handling on max17616.c.
  • Move variable declaration to top of function.
  • Use macros in switch cases.
  • Remove explicit value assignments in enum declarations.
  • Change to new example infrastructure.
  • Remove redundant comments on self-explanatory function names.
  • Remove magic numbers by adding descriptive macros.
  • Fix file content in commit.

cjones-adi avatar Oct 31 '25 11:10 cjones-adi

/AzurePipelines run

kister-jimenez avatar Oct 31 '25 11:10 kister-jimenez

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Oct 31 '25 11:10 azure-pipelines[bot]

V6:

  • Fix error in builds.json (was iio instead of iio_example)

cjones-adi avatar Oct 31 '25 14:10 cjones-adi

V7:

  • Fix bug in device driver calloc
  • Use .priv in iio attributes
  • Fix indentations in build file
  • Remove extra underscore in docs

cjones-adi avatar Nov 03 '25 02:11 cjones-adi

V5:

  • Improve error handling on max17616.c.
  • Move variable declaration to top of function.
  • Use macros in switch cases.
  • Remove explicit value assignments in enum declarations.
  • Change to new example infrastructure.
  • Remove redundant comments on self-explanatory function names.
  • Remove magic numbers by adding descriptive macros.
  • Fix file content in commit.

Some of these changes were reverted from the latest push.

jemfgeronimo avatar Nov 03 '25 02:11 jemfgeronimo

V8:

  • Replay V5 changes

cjones-adi avatar Nov 03 '25 07:11 cjones-adi

LGTM

jemfgeronimo avatar Nov 05 '25 06:11 jemfgeronimo

/AzurePipelines run

jemfgeronimo avatar Nov 06 '25 06:11 jemfgeronimo

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Nov 06 '25 06:11 azure-pipelines[bot]

LGTM

kister-jimenez avatar Nov 07 '25 13:11 kister-jimenez

V9:

  • Replace returned data of DIRECT conversions from int to float to preserve precision.

cjones-adi avatar Nov 18 '25 10:11 cjones-adi

/AzurePipelines run

kister-jimenez avatar Nov 18 '25 10:11 kister-jimenez

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Nov 18 '25 10:11 azure-pipelines[bot]