add support for Delta E50SN12051
Subsystems (3)
v5 cover add support for Delta E50SN12051
Delta E50SN12051 is a 600W non-isolated 1/8th brick DC-DC power module. With this series applied, voltage, current and temperature sensors can be exposed through the standard hwmon interface.
Changes in this series:
- Add Delta E50SN12051 to trivial-devices.yaml
- Add hwmon documentation describing the supported sensors
- Add PMBus driver support for Delta E50SN12051
---
Changes in v5:
- Add Delta E50SN12051 to trivial-devices.yaml instead of introducing a new binding
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Rewrite binding description to be hardware-centric and OS-agnostic.
- Rename example node from hwmon@40 to a generic power-module@40.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Simplify to pass &e50sn12051_info directly to pmbus_do_probe()
to avoid the extra memory allocation
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Add %YAML 1.2 declaration in binding document.
- Use a generic node name in examples in binding document.
- Add MODULE_IMPORT_NS("PMBUS")
- Remove unused / incorrect headers
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Colin Huang (3):
dt-bindings: trivial-devices: Add Delta E50SN12051 Documentation/hwmon: add Delta E50SN12051 documentation
hwmon: (pmbus) add support for Delta E50SN12051
.../devicetree/bindings/trivial-devices.yaml | 2 + Documentation/hwmon/e50sn12051.rst | 81 ++++++++++++++++++++++ Documentation/hwmon/index.rst | 1 + drivers/hwmon/pmbus/Kconfig | 9 +++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/e50sn12051.c | 52 ++++++++++++++ 6 files changed, 146 insertions(+)
---
base-commit: b584e7d50af502462349910bf4ed30057620b69f
change-id: 20260316-add-e50sn12051-ad828ad6777a
Best regards,
Signature · 1 line
Colin Huang <[email protected]>
PATCH v5 1/3 dt-bindings: trivial-devices: Add Delta E50SN12051
Add 600W Non-isolated 1/8th Brick DC/DC Power Modules, E50SN12051.
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
@@ -100,6 +100,8 @@ properties: # Delta Electronics DPS920AB 920W 54V Power Supply - delta,dps920ab # 1/4 Brick DC/DC Regulated Power Module + - delta,e50sn12051 + # 600W Non-isolated 1/8th Brick DC/DC Power Modules - delta,q54sj108a2 # 1300W 1/4 Brick DC/DC Regulated Power Module - delta,q54sn120a1
Signature · 1 line
2.34.1
Re: [PATCH v5 1/3] dt-bindings: trivial-devices: Add Delta E50SN12051
pw-bot: not-applicable
[email protected]
AI reviewRe: [PATCH v5 1/3] dt-bindings: trivial-devices: Add Delta E50SN12051
In reply to Colin HuangThank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] The new compatible string and its description comment are inserted incorrectly, resulting in…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The new compatible string and its description comment are inserted incorrectly, resulting in mismatched descriptions for two devices. --
commit 9996702d5ece9eeefae380c70a0a1d77e2a9cf5a
Author: Colin Huang <[email protected]>
dt-bindings: trivial-devices: Add Delta E50SN12051
This commit adds the Delta E50SN12051 600W Non-isolated 1/8th Brick DC/DC Power Module to the list of trivial devices.
Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 105
Quoted 11 lines
Documentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -100,6 +100,8 @@ properties: # Delta Electronics DPS920AB 920W 54V Power Supply - delta,dps920ab # 1/4 Brick DC/DC Regulated Power Module + - delta,e50sn12051 + # 600W Non-isolated 1/8th Brick DC/DC Power Modules - delta,q54sj108a2
This isn't a bug, but it looks like the comment and the compatible string are inserted in the wrong order. In this file, comments describe the compatible string that immediately follows them.
By inserting the new string before the new comment, the existing "1/4 Brick" comment now appears to describe the new delta,e50sn12051 string, and the new "600W" comment describes the existing delta,q54sj108a2 string.
Should the new comment be placed above delta,e50sn12051 instead to keep the descriptions aligned with their respective devices?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Re: [PATCH v5 1/3] dt-bindings: trivial-devices: Add Delta E50SN12051
In reply to Colin HuangQuoted 6 lines · Colin Huang
From: Colin Huang <[email protected]>
Add 600W Non-isolated 1/8th Brick DC/DC Power Modules, E50SN12051.
Signed-off-by Colin Huang <[email protected]>Acked-by Conor Dooley <[email protected]>
Applied, after swapping the inserted lines below.
Thanks,
Guenter
Quoted 17 lines
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -100,6 +100,8 @@ properties: # Delta Electronics DPS920AB 920W 54V Power Supply - delta,dps920ab # 1/4 Brick DC/DC Regulated Power Module + - delta,e50sn12051 + # 600W Non-isolated 1/8th Brick DC/DC Power Modules - delta,q54sj108a2 # 1300W 1/4 Brick DC/DC Regulated Power Module - delta,q54sn120a1
PATCH v5 2/3 Documentation/hwmon: add Delta E50SN12051 documentation
In reply to Colin HuangDocument the hardware monitoring support for the Delta E50SN12051 device.
The documentation describes the supported sensors exposed via the hwmon subsystem, including voltage, current, and temperature measurements.
--- Documentation/hwmon/e50sn12051.rst | 81 ++++++++++++++++++++++++++++++++++++++ Documentation/hwmon/index.rst | 1 + 2 files changed, 82 insertions(+)
Documentation/hwmon/e50sn12051.rst new file +81 -0
@@ -0,0 +1,81 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +Kernel driver e50sn12051 +======================== + +Supported chips: + + * Delta E50SN12051 + + Prefix: 'e50sn12051' + + Addresses scanned: - + + Datasheet: + + Provided by Delta upon request and NDA + +Description +----------- + +E50SN12051 is a 600W non-isolated 1/8th brick DC-DC power module. + +This driver supports the E50SN12051 PMBus compliant monitor device. + +The device provides measurements for: + +* Input voltage +* Output current +* Output voltage +* Temperature + +The driver is based on the PMBus core and exposes standard hwmon +sysfs attributes. + +Sysfs attributes +---------------- + +======================= ======================================================= +curr1_label "iout1" +curr1_crit Critical maximum current. + From IOUT_OC_FAULT_LIMIT register. +curr1_crit_alarm Current critical high alarm. + From IOUT_OC_FAULT status. +curr1_input Measured current. + From READ_IOUT register. +curr1_max Maximum current. + From IOUT_OC_WARN_LIMIT register. +curr1_max_alarm Current high alarm. + From IOUT_OC_WARN_LIMIT status. + +in1_label "vin" +in1_alarm Input voltage alarm. +in1_input Measured voltage. + From READ_VIN register. + +in2_label "vout1" +in2_crit Critical maximum voltage. + From VOUT_OV_FAULT_LIMIT register. +in2_crit_alarm Voltage critical high alarm. + From VOLTAGE_OV_FAULT status. +in2_input Measured voltage. + From READ_VOUT register. +in2_max Maximum voltage. + From VOUT_OV_WARN_LIMIT register. +in2_max_alarm Voltage high alarm. + From VOLTAGE_OV_WARNING status. + +temp1_crit Critical high temperature. + From OT_FAULT_LIMIT register. +temp1_crit_alarm Module temperature critical high alarm. + Set by comparing READ_TEMPERATURE_1 with OT_FAULT_LIMIT + if TEMP_OT_FAULT status is set. +temp1_input Measured module's hot spot temperature. + From READ_TEMPERATURE_1 register. +temp1_max Maximum temperature. + From OT_WARN_LIMIT register. +temp1_max_alarm Module temperature high alarm. + Set by comparing READ_TEMPERATURE_1 with OT_WARN_LIMIT if + TEMP_OT_WARNING status is set. +======================= ======================================================= +
Documentation/hwmon/index.rst +1 -0
@@ -68,6 +68,7 @@ Hardware Monitoring Kernel Drivers drivetemp ds1621 ds620 + e50sn12051 emc1403 emc2103 emc2305
Signature · 1 line
2.34.1
Re: [PATCH v5 2/3] Documentation/hwmon: add Delta E50SN12051 documentation
Quoted 10 lines · Colin Huang
From: Colin Huang <[email protected]>
Document the hardware monitoring support for the Delta E50SN12051 device.
The documentation describes the supported sensors exposed via the hwmon subsystem, including voltage, current, and temperature measurements.
Signed-off-by Colin Huang <[email protected]>Reviewed-by Guenter Roeck <[email protected]>
Applied.
Thanks,
Guenter
PATCH v5 3/3 hwmon: (pmbus) add support for Delta E50SN12051
In reply to Colin HuangAdd the pmbus driver for Delta E50SN12051 600W Non-isolated 1/8th Brick DCDC Power Modules.
--- drivers/hwmon/pmbus/Kconfig | 9 +++++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/e50sn12051.c | 52 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+)
drivers/hwmon/pmbus/Kconfig +9 -0
@@ -161,6 +161,15 @@ config SENSORS_DPS920AB This driver can also be built as a module. If so, the module will be called dps920ab. +config SENSORS_E50SN12051 + tristate "Delta E50SN12051 Power Modules" + help + If you say yes here you get hardware monitoring support for Delta + E50SN12051 Power Modules. + + This driver can also be built as a module. If so, the module will + be called e50sn12051. + config SENSORS_INA233 tristate "Texas Instruments INA233 and compatibles" help
drivers/hwmon/pmbus/Makefile +1 -0
@@ -17,6 +17,7 @@ obj-$(CONFIG_SENSORS_FSP_3Y) += fsp-3y.o obj-$(CONFIG_SENSORS_HAC300S) += hac300s.o obj-$(CONFIG_SENSORS_IBM_CFFPS) += ibm-cffps.o obj-$(CONFIG_SENSORS_DPS920AB) += dps920ab.o +obj-$(CONFIG_SENSORS_E50SN12051) += e50sn12051.o obj-$(CONFIG_SENSORS_INA233) += ina233.o obj-$(CONFIG_SENSORS_INSPUR_IPSPS) += inspur-ipsps.o obj-$(CONFIG_SENSORS_IR35221) += ir35221.o
drivers/hwmon/pmbus/e50sn12051.c new file +52 -0
52 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH v5 3/3] hwmon: (pmbus) add support for Delta E50SN12051
Quoted 7 lines · Colin Huang
From: Colin Huang <[email protected]>
Add the pmbus driver for Delta E50SN12051 600W Non-isolated 1/8th Brick DCDC Power Modules.
Signed-off-by Colin Huang <[email protected]>Reviewed-by Guenter Roeck <[email protected]>
Applied.
Thanks,
Guenter