-
Notifications
You must be signed in to change notification settings - Fork 904
add MAX17616/MAX17616A driver #2949
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
base: main
Are you sure you want to change the base?
Conversation
c3062cc to
4b58025
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also missing kconfig.adi patch. And you know the drill already :). Please send this upstream.
Documentation/devicetree/bindings/hwmon/pmbus/adi,max17616.yaml
Outdated
Show resolved
Hide resolved
|
Series applied upstream, add ADI compliant version. |
|
Follow up patch and updates added |
| in1_label "vin" | ||
| in1_input Measured input voltage | ||
| in1_alarm Input voltage alarm | ||
| in2_label "vout1" | ||
| in2_input Measured output voltage | ||
| curr1_label "iout1" | ||
| curr1_input Measured output current. | ||
| curr1_alarm Output current alarm | ||
| temp1_input Measured temperature | ||
| temp1_alarm Chip temperature alarm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you mixing tabs and spaces here?
Consider just using spaces
| * Analog Devices MAX17616/MAX17616A | ||
|
|
||
| Prefix: 'max17616' | ||
|
|
||
| Addresses scanned: - | ||
|
|
||
| Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max17616-max17616a.pdf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Analog Devices MAX17616/MAX17616A | |
| Prefix: 'max17616' | |
| Addresses scanned: - | |
| Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max17616-max17616a.pdf | |
| - | Analog Devices MAX17616/MAX17616A | |
| | Prefix: 'max17616' | |
| | Addresses scanned: - | |
| | Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max17616-max17616a.pdf |
You can force linebreaks using this syntax
Documentation/hwmon/max17616.rst
Outdated
|
|
||
| Author: | ||
|
|
||
| - Kim Seer Paller <kimseer.paller@analog.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leading whitespace has a meaning in rst, it will nest the list in a block.
It is not a big deal, but does have an effect.
| ----------- | ||
|
|
||
| This driver does not auto-detect devices. You will have to instantiate | ||
| the devices explicitly. Please see Documentation/i2c/instantiating-devices.rst |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| the devices explicitly. Please see Documentation/i2c/instantiating-devices.rst | |
| the devices explicitly. Please see :doc:`/i2c/instantiating-devices` |
https://www.sphinx-doc.org/en/master/usage/referencing.html#role-doc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note these are patches already applied upstream. So any change needs to go first there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used existing driver's rst as template. Should I update to consistent spacing/syntax or keep the current format for consistency with other docs?
Add device tree documentation for MAX17616/MAX17616A current-limiter with overvoltage/surge, undervoltage, reverse polarity, loss of ground protection with PMBus interface. Signed-off-by: Kim Seer Paller <kimseer.paller@analog.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20250930-upstream-max17616-v1-1-1525a85f126c@analog.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Add interrupt property to document the SMBALERT pin functionality for fault condition signal. Suggested-by: Marcelo Schmitt <marcelo.schmitt@analog.com> Signed-off-by: Kim Seer Paller <kimseer.paller@analog.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20251013-upstream-max17616-v1-1-0e15002479c3@analog.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Add support for MAX17616/MAX17616A current-limiter with overvoltage/surge, undervoltage, reverse polarity, loss of ground protection with PMBus interface. The PMBus interface allows monitoring of input/output voltages, output current and temperature. Signed-off-by: Kim Seer Paller <kimseer.paller@analog.com> Link: https://lore.kernel.org/r/20250930-upstream-max17616-v1-2-1525a85f126c@analog.com [groeck: Fixed htmldocs 'WARNING: Title underline too short' as reported by Kriish Sharma <kriish.sharma2006@gmail.com>] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Add MAX17616 to the ADI Kconfig. Signed-off-by: Kim Seer Paller <kimseer.paller@analog.com>
|
changelog:
|
PR Description
Add MAX17616/MAX17616A Current-Limiter with Overvoltage/Surge, Undervoltage, Reverse Polarity, Loss of Ground Protection with PMBus Interface
Lore: https://patchew.org/linux/20250930-upstream-max17616-v1-0-1525a85f126c@analog.com/
PR Type
PR Checklist