hwmon: Add support for pmbus max20754 device
Subsystems (3)
v2 cover hwmon: Add support for pmbus max20754 device
From: Debjit Ghosh <[email protected]>
This series add support for max20754 device. max20754 is very similar to existing max20751 with few differences (details in the code). The datasheet can be found here:
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX20754.pdf
Changes in v2:
- add documenting the max20754 in the Kconfig help text to patch 1/3
- add documentation of sysfs entries specific to max20754 in Documentation/hwmon/max20751.rst to patch 1/3
- no changes to patch 2/3
- changed subject to reflect trivial-devices instead of hwmon in patch 3/3.
Debjit Ghosh (2):
hwmon: (max20751): Add OF device ID table
dt-bindings: trivial-devices: add maxim,max20754 compatible
Georgi Vlaev (1):
hwmon: (max20751): Add support for MAX20754
.../devicetree/bindings/trivial-devices.yaml | 2 + Documentation/hwmon/index.rst | 1 + Documentation/hwmon/max20751.rst | 24 +++++++- drivers/hwmon/pmbus/Kconfig | 2 +- drivers/hwmon/pmbus/max20751.c | 59 ++++++++++++++----- 5 files changed, 71 insertions(+), 17 deletions(-)
base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c
Signature · 1 line
2.25.4
PATCH v2 1/3 hwmon: (max20751): Add support for MAX20754
From: Georgi Vlaev <[email protected]>
MAX20754 is a dual output, configurable multiphase power controller with internal buck converter with PMBus(1.3).
---
Changes in v2:
- add documenting the max20754 in the Kconfig help text
- add documentation of sysfs entries specific to max20754 in Documentation/hwmon/max20751.rst
Documentation/hwmon/index.rst | 1 + Documentation/hwmon/max20751.rst | 24 ++++++++++++++- drivers/hwmon/pmbus/Kconfig | 2 +- drivers/hwmon/pmbus/max20751.c | 50 ++++++++++++++++++++++---------- 4 files changed, 60 insertions(+), 17 deletions(-)
Documentation/hwmon/index.rst +1 -0
@@ -173,6 +173,7 @@ Hardware Monitoring Kernel Drivers max17616 max20730 max20751 + max20754 max20826 max20830 max20860a
Documentation/hwmon/max20751.rst +23 -1
@@ -13,13 +13,21 @@ Supported chips: Application note: https://pdfserv.maximintegrated.com/en/an/AN5941.pdf + * maxim MAX20754 + + Prefix: 'max20754' + + Addresses scanned: - + + Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX20754.pdf + Author: Guenter Roeck <[email protected]> Description ----------- -This driver supports MAX20751 Multiphase Master with PMBus Interface +This driver supports MAX20751 and MAX20754 Multiphase Master with PMBus Interface and Internal Buck Converter. The driver is a client driver to the core PMBus driver.
@@ -78,7 +86,21 @@ temp1_max Maximum temperature. temp1_crit Critical high temperature. temp1_max_alarm Chip temperature high alarm. temp1_crit_alarm Chip temperature critical high alarm. +======================= ======================================================= +- MAX20754 only: + +======================= ======================================================= +temp2_input Measured temperature at TSx input. +temp2_max Maximum temperature. +temp2_crit Critical temp2 high temperature. +temp2_max_alarm Chip temp2 temperature high alarm. +temp2_crit_alarm Chip temp2 temperature critical high alarm. +======================= ======================================================= + +- MAX20751 only: + +======================= ======================================================= power1_input Output power. power1_label "pout1" ======================= =======================================================
drivers/hwmon/pmbus/Kconfig +1 -1
@@ -397,7 +397,7 @@ config SENSORS_MAX20751 tristate "Maxim MAX20751" help If you say yes here you get hardware monitoring support for Maxim - MAX20751. + MAX20751 and MAX20754. This driver can also be built as a module. If so, the module will be called max20751.
drivers/hwmon/pmbus/max20751.c +35 -15
68 lines not on this page · raw message
Signature · 1 line
2.25.4
PATCH v2 2/3 hwmon: (max20751): Add OF device ID table
In reply to Debjit GhoshFrom: Debjit Ghosh <[email protected]>
Add OF device ID table and module alias information to instantiate devices through device tree entries.
---
Changes in v2:
- no changes to this patch
drivers/hwmon/pmbus/max20751.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/hwmon/pmbus/max20751.c +9 -0
@@ -58,9 +58,18 @@ static const struct i2c_device_id max20751_id[] = {MODULE_DEVICE_TABLE (i2c, max20751_id); +static const struct of_device_id max20751_of_match[] = { + { .compatible ="maxim,max20751" , .data = (void *)max20751 }, + { .compatible ="maxim,max20754" , .data = (void *)max20754 }, + { }, +}; + +MODULE_DEVICE_TABLE (of, max20751_of_match); +static struct i2c_driver max20751_driver = { .driver = { .name ="max20751" , + .of_match_table =of_match_ptr (max20751_of_match), }, .probe = max20751_probe, .id_table = max20751_id,
Signature · 1 line
2.25.4
PATCH v2 3/3 dt-bindings: trivial-devices: add maxim,max20754 compatible
In reply to Debjit GhoshFrom: Debjit Ghosh <[email protected]>
Add maxim,max20754 compatible to documentation.
---
Changes in v2:
- changed subject to reflect trivial-devices instead of hwmon patch
Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
@@ -237,6 +237,8 @@ properties: - maxim,max15303 # Multiphase Master with PMBus Interface and Internal Buck Converter - maxim,max20751 + # Dual Output, Multiphase Master with PMBus Interface and Internal Buck Converter + - maxim,max20754 # mCube 3-axis 8-bit digital accelerometer - mcube,mc3230 # mCube 3-axis 8-bit digital accelerometer
Signature · 1 line
2.25.4
[email protected]
AI reviewRe: [PATCH v2 1/3] hwmon: (max20751): Add support for MAX20754
In reply to Debjit GhoshThank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] docs: hwmon: broken max20754 toctree entry in Documentation/hwmon/index.rst --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] docs: hwmon: broken max20754 toctree entry in Documentation/hwmon/index.rst
--
commit 966f7c3c803bb7db9f03335afeb7092a417db04b
Author: Georgi Vlaev <[email protected]>
hwmon: (max20751): Add support for MAX20754
This commit adds hardware monitoring support and documentation for the Maxim MAX20754 PMBus multiphase power controller to the max20751 driver.
Documentation/hwmon/index.rst Hardware Monitoring Kernel Drivers · line 179
Quoted 12 lines
Documentation/hwmon/index.rst +1
-0@@ -173,6 +173,7 @@ Hardware Monitoring Kernel Drivers max17616 max20730 max20751 + max20754 max20826 max20830 max20860a
[Severity: Low]
Does adding max20754 to the toctree in Documentation/hwmon/index.rst break the documentation build? MAX20754 is documented inside Documentation/hwmon/max20751.rst rather than in a standalone Documentation/hwmon/max20754.rst file, so Sphinx will report a missing toctree document when building htmldocs.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
[email protected]
AI reviewSashiko has finished reviewing this 3-patch series:
Sashiko has finished reviewing this 3-patch series:
- Patches 2 and 3: no issues found.
- Patch 1 ("hwmon: (max20751): Add support for MAX20754"): 1 potential issue (1 Low)
A detailed review has been sent as a separate reply to patch 1.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]
Guenter Roeck
maintainerRe: [PATCH v2 1/3] hwmon: (max20751): Add support for MAX20754
In reply to [email protected]Quoted 25 lines · On 12/1/26 16:02, [email protected] wrote:
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] docs: hwmon: broken max20754 toctree entry inDocumentation/hwmon/index.rst
--commit
966f7c3c803bb7db9f03335afeb7092a417db04b
Author: Georgi Vlaev <[email protected]>hwmon: (max20751): Add support for MAX20754
This commit adds hardware monitoring support and documentation for the Maxim MAX20754 PMBus multiphase power controller to the max20751 driver.
Quoted 11 lines
Documentation/hwmon/index.rst +1
-0@@ -173,6 +173,7 @@ Hardware Monitoring Kernel Drivers max17616 max20730 max20751 + max20754 max20826 max20830
Quoted 9 lines
Documentation/hwmon/index.rst Hardware Monitoring Kernel Drivers · line 179
Quoted 1 line
Documentation/hwmon/index.rst +0
-0max20860a[Severity: Low]
Does adding max20754 to the toctree inDocumentation/hwmon/index.rstbreak the documentation build? MAX20754 is documented insideDocumentation/hwmon/max20751.rstrather than in a standaloneDocumentation/hwmon/max20754.rstfile, so Sphinx will report a missing toctree document when building htmldocs.
Debjit - Did you forget this or is there some reason why you did not drop it ?
Guenter
Re: [PATCH v2 1/3] hwmon: (max20751): Add support for MAX20754
Hi Guenter,
Quoted 32 lines · Guenter Roeck
Quoted 20 lines · On 12/1/26 16:02, [email protected] wrote:
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] docs: hwmon: broken max20754 toctree entry inDocumentation/hwmon/index.rst
--
commit966f7c3c803bb7db9f03335afeb7092a417db04b
Author: Georgi Vlaev <[email protected]>
hwmon: (max20751): Add support for MAX20754
This commit adds hardware monitoring support and documentation for the Maxim MAX20754 PMBus multiphase power controller to the max20751 driver.Quoted 10 lines
Documentation/hwmon/index.rst +1
-0@@ -173,6 +173,7 @@ Hardware Monitoring Kernel Drivers max17616 max20730 max20751 + max20754 max20826Quoted 8 lines
Documentation/hwmon/index.rst Hardware Monitoring Kernel Drivers · line 179
Quoted 2 lines
Documentation/hwmon/index.rst +0
-0max20830 max20860a[Severity: Low]
Does adding max20754 to the toctree inDocumentation/hwmon/index.rstbreak the documentation build? MAX20754 is documented insideDocumentation/hwmon/max20751.rstrather than in a standaloneDocumentation/hwmon/max20754.rstfile, so Sphinx will report a missing toctree document when building htmldocs.
Quoted 2 lines
Debjit - Did you forget this or is there some reason why you did not drop it ?
I did not realize until I ran 'make htmldocs’ now. It's now taken care in v3
https://lore.kernel.org/all/[email protected]/
Regards,
—Debjit