hwmon: (pmbus) MPS mp5990 hsc controller
Subsystems (3)
v3 cover hwmon: (pmbus) MPS mp5990 hsc controller
Add MPS mp5990 hot-swap controller.
Change log:
v2 -> v3:
- Support linear mode.
v1 -> v2:
- Corrected dt-bindings description.
- Added comments for Vout mode command.
- Removed of_match_ptr()
v1:
- Add support for MPS Multi-phase mp5990 Hot-Swap controller.
---
Peter Yin (2):
dt-bindings: hwmon: Add mps mp5990 driver bindings
hwmon: (pmbus) Add support for MPS Multi-phase mp5990
.../devicetree/bindings/trivial-devices.yaml | 2 + Documentation/hwmon/index.rst | 1 + Documentation/hwmon/mp5990.rst | 84 +++++++++ drivers/hwmon/pmbus/Kconfig | 9 + drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/mp5990.c | 177 ++++++++++++++++++ 6 files changed, 274 insertions(+) create mode 100644 Documentation/hwmon/mp5990.rst create mode 100644 drivers/hwmon/pmbus/mp5990.c
Signature · 1 line
2.25.1
PATCH v3 1/2 dt-bindings: hwmon: Add mps mp5990 driver bindings
Add a device tree bindings for mp5990 device.
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
@@ -123,6 +123,8 @@ properties: - mps,mp2888 # Monolithic Power Systems Inc. multi-phase controller mp2975 - mps,mp2975 + # Monolithic Power Systems Inc. multi-phase hot-swap controller mp5990 + - mps,mp5990 # Honeywell Humidicon HIH-6130 humidity/temperature sensor - honeywell,hi6130 # IBM Common Form Factor Power Supply Versions (all versions)
Signature · 1 line
2.25.1
Re: [PATCH v3 1/2] dt-bindings: hwmon: Add mps mp5990 driver bindings
Quoted 3 lines · Peter Yin
Add a device tree bindings for mp5990 device.
Signed-off-by Peter Yin <[email protected]>
Thanks,
Conor,
Quoted 20 lines
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -123,6 +123,8 @@ properties: - mps,mp2888 # Monolithic Power Systems Inc. multi-phase controller mp2975 - mps,mp2975 + # Monolithic Power Systems Inc. multi-phase hot-swap controller mp5990 + - mps,mp5990 # Honeywell Humidicon HIH-6130 humidity/temperature sensor - honeywell,hi6130 # IBM Common Form Factor Power Supply Versions (all versions)Signature · 1 line
2.25.1
Guenter Roeck
maintainerRe: [PATCH v3 1/2] dt-bindings: hwmon: Add mps mp5990 driver bindings
In reply to Peter YinQuoted 4 lines · Peter Yin
Add a device tree bindings for mp5990 device.
Signed-off-by Peter Yin <[email protected]>Acked-by Conor Dooley <[email protected]>
What branch is this patch based on ? git fails to apply it.
Guenter
Re: [PATCH v3 1/2] dt-bindings: hwmon: Add mps mp5990 driver bindings
Guenter Roeck 於 11/16/23 06:27 寫道:
Quoted 9 lines · Peter Yin
Quoted 4 lines
Add a device tree bindings for mp5990 device.
Signed-off-by Peter Yin <[email protected]>Acked-by Conor Dooley <[email protected]>What branch is this patch based on ? git fails to apply it.
Guenter
I think I don't pull the last version. I can rebase it and push the new version. Thanks for your feedback.
Guenter Roeck
maintainerRe: [PATCH v3 1/2] dt-bindings: hwmon: Add mps mp5990 driver bindings
Quoted 6 lines · PeterYin
Guenter Roeck 於 11/16/23 06:27 寫道:
Quoted 3 lines · Peter Yin
Quoted 2 lines
Add a device tree bindings for mp5990 device.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Signed-off-by Peter Yin <[email protected]>Acked-by Conor Dooley <[email protected]>What branch is this patch based on ? git fails to apply it.
Guenter
I think I don't pull the last version. I can rebase it and push the new version. Thanks for your feedback.
Question is: Last version of what ? Best would be if it was based on mainline.
Thanks,
Guenter
Re: [PATCH v3 1/2] dt-bindings: hwmon: Add mps mp5990 driver bindings
Guenter Roeck 於 11/17/23 12:16 寫道:
Quoted 13 lines · PeterYin
Quoted 12 lines
Guenter Roeck 於 11/16/23 06:27 寫道:
Quoted 9 lines · Peter Yin
Quoted 4 lines
Add a device tree bindings for mp5990 device.
Signed-off-by Peter Yin <[email protected]>Acked-by Conor Dooley <[email protected]>What branch is this patch based on ? git fails to apply it.
Guenter
Quoted 8 lines
Quoted 2 lines
I think I don't pull the last version. I can rebase it and push the new version. Thanks for your feedback.
Question is: Last version of what ? Best would be if it was based on mainline.
Thanks,
Guenter
It is base on Linux 6.5.4, OpenBMC Kernel tree
https://github.com/openbmc/linux/commit/2ba0babe7865cd5f4fac3d76ad15d9b6131bd283
I can regenerate it on mainline.
Thanks,
Peter.
Guenter Roeck
maintainerRe: [PATCH v3 1/2] dt-bindings: hwmon: Add mps mp5990 driver bindings
Quoted 22 lines · PeterYin
Guenter Roeck 於 11/17/23 12:16 寫道:
Quoted 19 lines · PeterYin
Quoted 6 lines
Guenter Roeck 於 11/16/23 06:27 寫道:
Quoted 3 lines · Peter Yin
Quoted 2 lines
Add a device tree bindings for mp5990 device.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Signed-off-by Peter Yin <[email protected]>Acked-by Conor Dooley <[email protected]>What branch is this patch based on ? git fails to apply it.
Guenter
I think I don't pull the last version. I can rebase it and push the new version. Thanks for your feedback.
Question is: Last version of what ? Best would be if it was based on mainline.
Quoted 8 lines
Quoted 2 lines
Thanks,
GuenterIt is base on Linux 6.5.4, OpenBMC Kernel tree
https://github.com/openbmc/linux/commit/2ba0babe7865cd5f4fac3d76ad15d9b6131bd283I can regenerate it on mainline.
No need; git was able to apply it after I aded the openbmc tree as remote. It would be great if you can base future patches on Linux mainline.
Thanks,
Guenter
PATCH v3 2/2 hwmon: (pmbus) Add support for MPS Multi-phase mp5990
In reply to Peter YinAdd support for mp5990 device from Monolithic Power Systems, Inc. (MPS) vendor. This is a Hot-Swap Controller.
--- Documentation/hwmon/index.rst | 1 + Documentation/hwmon/mp5990.rst | 84 ++++++++++++++++ drivers/hwmon/pmbus/Kconfig | 9 ++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/mp5990.c | 177 +++++++++++++++++++++++++++++++++ 5 files changed, 272 insertions(+) create mode 100644 Documentation/hwmon/mp5990.rst create mode 100644 drivers/hwmon/pmbus/mp5990.c
Documentation/hwmon/index.rst +1 -0
@@ -157,6 +157,7 @@ Hardware Monitoring Kernel Drivers mp2888 mp2975 mp5023 + mp5990 nct6683 nct6775 nct7802
Documentation/hwmon/mp5990.rst new file +84 -0
84 lines not on this page · raw message
drivers/hwmon/pmbus/Kconfig +9 -0
@@ -326,6 +326,15 @@ config SENSORS_MP5023 This driver can also be built as a module. If so, the module will be called mp5023. +config SENSORS_MP5990 + tristate "MPS MP5990" + help + If you say yes here you get hardware monitoring support for MPS + MP5990. + + This driver can also be built as a module. If so, the module will + be called mp5990. + config SENSORS_MPQ7932_REGULATOR bool "Regulator support for MPQ7932" depends on SENSORS_MPQ7932 && REGULATOR
drivers/hwmon/pmbus/Makefile +1 -0
@@ -35,6 +35,7 @@ obj-$(CONFIG_SENSORS_MAX8688) += max8688.o obj-$(CONFIG_SENSORS_MP2888) += mp2888.o obj-$(CONFIG_SENSORS_MP2975) += mp2975.o obj-$(CONFIG_SENSORS_MP5023) += mp5023.o +obj-$(CONFIG_SENSORS_MP5990) += mp5990.o obj-$(CONFIG_SENSORS_MPQ7932) += mpq7932.o obj-$(CONFIG_SENSORS_PLI1209BC) += pli1209bc.o obj-$(CONFIG_SENSORS_PM6764TR) += pm6764tr.o
drivers/hwmon/pmbus/mp5990.c new file +177 -0
177 lines not on this page · raw message
Signature · 1 line
2.25.1
Guenter Roeck
maintainerRe: [PATCH v3 2/2] hwmon: (pmbus) Add support for MPS Multi-phase mp5990
Quoted 4 lines · Peter Yin
Add support for mp5990 device from Monolithic Power Systems, Inc. (MPS) vendor. This is a Hot-Swap Controller.
Signed-off-by Peter Yin <[email protected]>
Applied together with the first patch of the series.
Guenter