From patchwork Mon May 18 08:10:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Huang via B4 Relay X-Patchwork-Id: 2240112 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=gR/SgE9c; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org; envelope-from=openbmc+bounces-1956-incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:21b9:f100::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4gKF3K4Tynz1yFD for ; Tue, 19 May 2026 09:52:29 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4gKF2P03TJz3brB; Tue, 19 May 2026 09:51:40 +1000 (AEST) X-Original-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.234.252.31 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1779091832; cv=none; b=dCIjUuU06XCjTlhCatu9DVvEU/8EwQ1jereT+2oJtN+W4uGOOJJ9p7w63aBZAyQi5t7uwdrg/fFTz19mtm3MZUYLv4eQdcZtGuV4Y1posEtfFgkfJuCtU69gsHfKEYtYb56y1VVMM9wrtTe+kvgZ1rc7pDiTDdpaGAfAMucQ2xwFMpMv2APrbzsaoTSgi6M3Jbn6kQ4qI3cJFaWiIt/WygD3nbrS4NWzRt05qOkLoeREabgHYt0rxeoq565ON3NQxjsbyIDmiROts0yN+Nq2e4iPF4tTx1PyxnmtcVbJdM1E1+3zcUw7Ijk+xEG6E/OqPJdy7OcA+ApI2OtxlhW8/A== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1779091832; c=relaxed/relaxed; bh=stuJ/2UMNkoGGdoVzo0ThO5i8MRO0lfwI+A5vn95bhY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bI3B9NhtQSwz4Uq30UcZeg5glVVv/c2RK2NXm/ydg29jmN2mrPUg2DEL+x2Fk34ltY3PQK+5/hfnp8UvCWIf+NYdVm47GEDSDon5eUrrjbzarBn4OxOMSjLp7Q5WT53uyyylatnJ9ulAqrCnujpsGt28ZAJPHBXUjn7rxHNXC+7yBIPG7hCyVKilvSdxHzm4H+/knGBok8HDGT6ZVzpPnXnKJS2150mi9L0t1Rpt+Ql4SVVC3bl5XJuf/7orT7XgnjX/PgnKGJU/YWYFCi8EeV5yQjYwD6twVYiIhsy8F4KjZ3UpWvYIX1x45brvilWWHAJRy6nIB8DkbRTSS2k5yQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=gR/SgE9c; dkim-atps=neutral; spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=devnull+u8813345.gmail.com@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=gR/SgE9c; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=devnull+u8813345.gmail.com@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4gJr8S08fRz3bqs for ; Mon, 18 May 2026 18:10:31 +1000 (AEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 699B5406A2; Mon, 18 May 2026 08:10:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 4C34FC2BCC9; Mon, 18 May 2026 08:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779091830; bh=4m6mUST+WFNScEeSgkHJz8fBHkgwpivwsm2zZx1h4Eo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=gR/SgE9cn4xdpSTQ6zxi8L3n1TQrPaWxyMLGLOfcbS/fRs/uPwekj7KR3Drs5hHLp 8HugSK6rlUpL64wxcC6VooEL+51+cUyUobdPnoI9HX+nyg2W9ctjY3r7Pp4UmzlX1z SNJLcWAkYFPMhRrGhEn8rLmOtaWMe4iaGcI6/T9ma/qGdP1d8BcqZ46bWHhpl8Go8E TguKegykTZdtbvgVDzib2NQhsJ9oGWkaKYBYjoB9/XC7gh1n33Lwn/XzEJdX6PNl3m b5I2FLfsVROqu+ojYLq6YN45K4U7DW1fvzX4YRWRjrVWZOIADP9kOKm+ALv+86XWMm s/tW3wPdhc11w== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BDE7CD4F49; Mon, 18 May 2026 08:10:30 +0000 (UTC) From: Colin Huang via B4 Relay Date: Mon, 18 May 2026 16:10:17 +0800 Subject: [PATCH linux dev-6.6 1/3] dt-bindings: trivial-devices: Add Delta E50SN12051 X-Mailing-List: openbmc@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Message-Id: <20260518-dev-6-6-e50sn12051-driver-v1-1-8025fb61706e@gmail.com> References: <20260518-dev-6-6-e50sn12051-driver-v1-0-8025fb61706e@gmail.com> In-Reply-To: <20260518-dev-6-6-e50sn12051-driver-v1-0-8025fb61706e@gmail.com> To: openbmc@lists.ozlabs.org, joel@jms.id.au, andrew@codeconstruct.com.au Cc: Colin Huang , Colin Huang X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779091827; l=1160; i=u8813345@gmail.com; s=20260202; h=from:subject:message-id; bh=dL4vhMXFrasZpErKAdl5LN0MNubz6LqrPWme1lMtYIU=; b=jXFsGX1dQxjMUg/0kNFL7PvNHnVuxqIHLiymT/swrl7FJh7NyrMgFgcwWMTxJHN4V5iPnGgMl k8SWsUIzTnRCcE0aDllQtCANugkBvVnl9QCKy5P7t0BvdhQ4V6c9oAr X-Developer-Key: i=u8813345@gmail.com; a=ed25519; pk=Zlg0WqpCw4qbswOqamTBTXIchwR/3SnYZpy7rjaGMdQ= X-Endpoint-Received: by B4 Relay for u8813345@gmail.com/20260202 with auth_id=761 X-Original-From: Colin Huang Reply-To: u8813345@gmail.com X-Spam-Status: No, score=2.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_REPLYTO, FREEMAIL_REPLYTO_END_DIGIT,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org From: Colin Huang Add 600W Non-isolated 1/8th Brick DC/DC Power Modules, E50SN12051. Signed-off-by: Colin Huang Acked-by: Conor Dooley Link: https://lore.kernel.org/r/20260508-add-e50sn12051-v5-1-abebdcc29665@gmail.com [groeck: Swapped comment and definition] Signed-off-by: Guenter Roeck --- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 4f291690420f..266e3c316c9c 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -91,6 +91,8 @@ properties: - delta,dps650ab # Delta Electronics DPS920AB 920W 54V Power Supply - delta,dps920ab + # 600W Non-isolated 1/8th Brick DC/DC Power Modules + - delta,e50sn12051 # 1/4 Brick DC/DC Regulated Power Module - delta,q54sj108a2 # Devantech SRF02 ultrasonic ranger in I2C mode From patchwork Mon May 18 08:10:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Huang via B4 Relay X-Patchwork-Id: 2240117 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=gdT5Ktsa; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=openbmc+bounces-1958-incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4gKF3d4f68z1yFD for ; Tue, 19 May 2026 09:52:45 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4gKF2Q2cwpz3brM; Tue, 19 May 2026 09:51:42 +1000 (AEST) X-Original-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.234.252.31 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1779091833; cv=none; b=U3xknrJVbUQMZnypYN4KqE5TsTfs01EeVQWA8ptPt7gU4GP4bc9MAYuvdQTAQG2m7H9waXA/rVdXqxaNNDnoLwz2PbvuCN9kJg//tuCecNoN0M8eNAigovo+x1xV2WckpDzBzkhQAJJnU25qIzoavCwPuR8N8ULEQm34q/kk1nsAVsHJ7cCzsK36YjqZ0JRZdYrDBXZq4h1Tdf81xr6/JtvYj7vk61bujHuiHIUF++HSmF3dKrYFA8F9LBYfGbwqoG3W4m57OL8AdO9cMV3etAMSpXZnTIGehnfmpHQnpwi5+9TUyHswsGuV9BNOtKFdCp9goYk8x1rQZVtww90P6A== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1779091833; c=relaxed/relaxed; bh=WxfwxuUyJjYWU9h00n/B9xY2ogvpoaKhiqGpdQfp7wI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Rn0rYEaUx7hkokRjRgMSY5Cs6wjRsHis1/uwP5TqxCu8dLVu+34IKtjy4bHmhNODLm4rUdi0VeilTsz4nKoFZChgN+mZ8rtd/SonFPvgRxhJ6i8hJhmCDnHjvzrKSEYpcA0BOfGc3XQYJhPJbNS0lkCeOOW3sOTEacKgNNnkMstDtQ/nVuO8FyDdXmAIo1ARdse0Sw7LwtNiCDfSvsTfrVrxqULty79Oa1d5ZDBA6mDIoDwUIUctiTqQT7hClorTAxdEN0UJzpfMubq8pDnpJOZ6Bx07sK2YNw29lZ6SeglHJg0Hgt5e61ewRubfePEP4sVzdQvOLMfjj9vpzikwEA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=gdT5Ktsa; dkim-atps=neutral; spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=devnull+u8813345.gmail.com@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=gdT5Ktsa; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=devnull+u8813345.gmail.com@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4gJr8S06pcz2yF7 for ; Mon, 18 May 2026 18:10:31 +1000 (AEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 726BF4444D; Mon, 18 May 2026 08:10:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 54F40C2BCB7; Mon, 18 May 2026 08:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779091830; bh=PT+wU4CGmhGvqNfzHRNY7/CbTLVzhTofyOFU411q0G0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=gdT5KtsaFl5uF0+Me55QP+VgBup/eJa9CiwC4U+AKPqLsOa8A6xku9gOW2Atl3XpE lFPlwfvzsx7fdPC0jwpYNzaYosiYFlKkwrcWXpdXgqJ0xOGaEAVLKcWWlEAVma7Xqe JjESirTksVhAtgB1ISAEQ0x7FVa+w7HEYY3M+NX/lBjB6yTu115RCaHU7fb7L7balf WJ2UhdAyyuOqJYFasdlwediKkgKNC1i9PCAAMDTSfKVgZQyGc1daQ9CAh3761s98Fq yrW0j/A8vDtFJI1lFf5SctQu4ERRAaaml80/gfgtsqjp9XtrULqX8Zr0tUOT2CtYZv sPHrLNEqegPCQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A154CD4F3C; Mon, 18 May 2026 08:10:30 +0000 (UTC) From: Colin Huang via B4 Relay Date: Mon, 18 May 2026 16:10:18 +0800 Subject: [PATCH linux dev-6.6 2/3] Documentation/hwmon: add Delta E50SN12051 documentation X-Mailing-List: openbmc@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Message-Id: <20260518-dev-6-6-e50sn12051-driver-v1-2-8025fb61706e@gmail.com> References: <20260518-dev-6-6-e50sn12051-driver-v1-0-8025fb61706e@gmail.com> In-Reply-To: <20260518-dev-6-6-e50sn12051-driver-v1-0-8025fb61706e@gmail.com> To: openbmc@lists.ozlabs.org, joel@jms.id.au, andrew@codeconstruct.com.au Cc: Colin Huang , Colin Huang X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779091827; l=4111; i=u8813345@gmail.com; s=20260202; h=from:subject:message-id; bh=Ej67JXCMI61DnuwfUwQZbBhhgaxfYaDiAMLiF/gPXT8=; b=BPDYeY35kxTIV3wbhxBK9zgVSSokfEVC8Ua8I3h3W3u4vaxbnzwEFkKl4GzZz+rLtRIrz9HA3 /B6FL20Q7a6B3i4UAktLOBIB4nV564hfJh0sjNhLfd9ZxBKZE1/nvmw X-Developer-Key: i=u8813345@gmail.com; a=ed25519; pk=Zlg0WqpCw4qbswOqamTBTXIchwR/3SnYZpy7rjaGMdQ= X-Endpoint-Received: by B4 Relay for u8813345@gmail.com/20260202 with auth_id=761 X-Original-From: Colin Huang Reply-To: u8813345@gmail.com X-Spam-Status: No, score=2.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_REPLYTO, FREEMAIL_REPLYTO_END_DIGIT,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org From: Colin Huang 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 Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20260508-add-e50sn12051-v5-2-abebdcc29665@gmail.com Signed-off-by: Guenter Roeck --- Documentation/hwmon/e50sn12051.rst | 81 ++++++++++++++++++++++++++++++++++++++ Documentation/hwmon/index.rst | 1 + 2 files changed, 82 insertions(+) diff --git a/Documentation/hwmon/e50sn12051.rst b/Documentation/hwmon/e50sn12051.rst new file mode 100644 index 000000000000..cbbfa7895d82 --- /dev/null +++ b/Documentation/hwmon/e50sn12051.rst @@ -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. +======================= ======================================================= + diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst index c89bd6063e88..e97dd2527dce 100644 --- a/Documentation/hwmon/index.rst +++ b/Documentation/hwmon/index.rst @@ -64,6 +64,7 @@ Hardware Monitoring Kernel Drivers drivetemp ds1621 ds620 + e50sn12051 emc1403 emc2103 emc2305 From patchwork Mon May 18 08:10:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Huang via B4 Relay X-Patchwork-Id: 2240121 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=s93eHZZP; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org; envelope-from=openbmc+bounces-1959-incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:21b9:f100::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4gKF3t6N7Vz1yFD for ; Tue, 19 May 2026 09:52:58 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4gKF2R1phjz3brc; Tue, 19 May 2026 09:51:43 +1000 (AEST) X-Original-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2600:3c04:e001:324:0:1991:8:25" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1779091833; cv=none; b=V9ZXTP8JydvTyqL11yKKQcVveH/kapfyS+NNV8Xxv7O+jYtZbVxjKeqFyzFflCIgCwEzYN0xo+sikfGGW9kBJEl003fW8Ugd5lLhgFs/AqZ6OHjXpBjpXkNLjDw2NxOfNG14FE8og56EIAQUjha4cSbkSsjnxkY8rkUictTJ/JRO9Cz0yQ5M2/p/KysQwnOCBLkRrDpLpXwbeKjuSHpcJbNPQ+WRsrdha1dKGhBC86ZEA3rdu5vR+JII/Fj3hd1OkpfuLVi4bYaZNgqOhsqU5X5P5cbRxfT088DvChTWFFXfYM/l08DphG22rx44nTlwSb0y7+Vb30SK/rdB80VcSQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1779091833; c=relaxed/relaxed; bh=wqfSH+ay3fv/3RlfxRBewJa3JpOS/vBtw+G1teJi+/M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OA3LtxFK0IohX3ZjkkXJ9rnp1oNHPGRdWJT2eLyszwBU4QjChl+O2u1LzRDdLfZgIPhXkQJ4qa7fK+NMNokSYecmTH1ugs/ABBTZ/SQ1tNzqzyslntIknMSJwOebHoDT6Huty9AZHcbVyjXDYhlVBA2E7fX4vB0trQqxlgCfG2bUel6/snS5vtDWXS1U/EcoGOjntixRZ3+owp4p1wY4+mUv9lUlqzJaNwd+WHw2StbXcBBbGbAT9OL0lMo/xb7IG9a+qLTOIRzqBbgAydK9k9W0YHsJGXval8VLCzjhvt7FdbNnPSExoZZB1VLIK/QExLkBgb8M0E9kDzyDdagqtw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=s93eHZZP; dkim-atps=neutral; spf=pass (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org; envelope-from=devnull+u8813345.gmail.com@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=s93eHZZP; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org; envelope-from=devnull+u8813345.gmail.com@kernel.org; receiver=lists.ozlabs.org) Received: from tor.source.kernel.org (tor.source.kernel.org [IPv6:2600:3c04:e001:324:0:1991:8:25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4gJr8S59KCz3br5 for ; Mon, 18 May 2026 18:10:32 +1000 (AEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id ACCCE6001A; Mon, 18 May 2026 08:10:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 619AAC2BCF5; Mon, 18 May 2026 08:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779091830; bh=2OCIpw46UIOg+ZoPCSiRRexVF+vsoKHmgY/B3U4IpWQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=s93eHZZPle7DvYGZnxEbJy44Qg9At4oL5Lu4Ok10LxRvH/HmKQoxX3fIh2F0TGt7O vRQHa7s1jroJglb1lvjAooyS2FKt/OuCgQxACmvJYkGF3a2Z29OsO7czNCBhJer1cR q304yzPYF5OSmwmfw5bOm9Hs0YyalbH6U4tuP7IuQ49gq6bikRlxTb9vRcIFnWfYME 5viIqNjINfKhjfz5zGb0bXoqbyzKzaeUWLWxRIJh5kJ7x5K2IVO4MbJjslZnVp2dC5 kWulxYTk4KSzSXJ1Y3LsK9bkL4qS2wVuysLEb3OkQjb1ptXKE/Yhe/97a9uxaA2Fmk 5LKLprS0WE79Q== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59147CD4F54; Mon, 18 May 2026 08:10:30 +0000 (UTC) From: Colin Huang via B4 Relay Date: Mon, 18 May 2026 16:10:19 +0800 Subject: [PATCH linux dev-6.6 3/3] hwmon: (pmbus) add support for Delta E50SN12051 X-Mailing-List: openbmc@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Message-Id: <20260518-dev-6-6-e50sn12051-driver-v1-3-8025fb61706e@gmail.com> References: <20260518-dev-6-6-e50sn12051-driver-v1-0-8025fb61706e@gmail.com> In-Reply-To: <20260518-dev-6-6-e50sn12051-driver-v1-0-8025fb61706e@gmail.com> To: openbmc@lists.ozlabs.org, joel@jms.id.au, andrew@codeconstruct.com.au Cc: Colin Huang , Colin Huang X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779091827; l=3559; i=u8813345@gmail.com; s=20260202; h=from:subject:message-id; bh=2rz+C1dqYzxrgqZAGjitlJyEgxXTPBWZesnlebJDpVg=; b=JRZ2k8ytZw9k5mGkI5yGN33wK9lHf4/WCgCKCucRGAA1IZEMjNUBd6z8GNwaBJJrCDuPiElRS MZ/YNcQiwGXDNTvEf4GA9R66VaMTjZPqgMX/m/q4wjQmBuVIAr4iI10 X-Developer-Key: i=u8813345@gmail.com; a=ed25519; pk=Zlg0WqpCw4qbswOqamTBTXIchwR/3SnYZpy7rjaGMdQ= X-Endpoint-Received: by B4 Relay for u8813345@gmail.com/20260202 with auth_id=761 X-Original-From: Colin Huang Reply-To: u8813345@gmail.com X-Spam-Status: No, score=2.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_REPLYTO, FREEMAIL_REPLYTO_END_DIGIT,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org From: Colin Huang Add the pmbus driver for Delta E50SN12051 600W Non-isolated 1/8th Brick DCDC Power Modules. Signed-off-by: Colin Huang Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20260508-add-e50sn12051-v5-3-abebdcc29665@gmail.com Signed-off-by: Guenter Roeck --- drivers/hwmon/pmbus/Kconfig | 9 +++++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/e50sn12051.c | 52 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) diff --git a/drivers/hwmon/pmbus/Kconfig b/drivers/hwmon/pmbus/Kconfig index 60e74ced989a..a17050857da2 100644 --- a/drivers/hwmon/pmbus/Kconfig +++ b/drivers/hwmon/pmbus/Kconfig @@ -123,6 +123,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 diff --git a/drivers/hwmon/pmbus/Makefile b/drivers/hwmon/pmbus/Makefile index 741eee9128b7..80e9d3a72906 100644 --- a/drivers/hwmon/pmbus/Makefile +++ b/drivers/hwmon/pmbus/Makefile @@ -14,6 +14,7 @@ obj-$(CONFIG_SENSORS_DELTA_AHE50DC_FAN) += delta-ahe50dc-fan.o obj-$(CONFIG_SENSORS_FSP_3Y) += fsp-3y.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 diff --git a/drivers/hwmon/pmbus/e50sn12051.c b/drivers/hwmon/pmbus/e50sn12051.c new file mode 100644 index 000000000000..efb4d62b2603 --- /dev/null +++ b/drivers/hwmon/pmbus/e50sn12051.c @@ -0,0 +1,52 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Hardware monitoring driver for E50SN12051 + */ + +#include +#include +#include +#include "pmbus.h" + +static struct pmbus_driver_info e50sn12051_info = { + .pages = 1, + .format[PSC_VOLTAGE_IN] = linear, + .format[PSC_VOLTAGE_OUT] = linear, + .format[PSC_CURRENT_OUT] = linear, + .format[PSC_TEMPERATURE] = linear, + .func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT | + PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT | + PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT | + PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, +}; + +static const struct i2c_device_id e50sn12051_id[] = { { "e50sn12051", 0 }, {} }; +MODULE_DEVICE_TABLE(i2c, e50sn12051_id); + +static const struct of_device_id e50sn12051_of_match[] = { + { .compatible = "delta,e50sn12051" }, + {}, +}; +MODULE_DEVICE_TABLE(of, e50sn12051_of_match); + +static int e50sn12051_probe(struct i2c_client *client) +{ + return pmbus_do_probe(client, &e50sn12051_info); +} + +static struct i2c_driver e50sn12051_driver = { + .driver = { + .name = "e50sn12051", + .of_match_table = e50sn12051_of_match, + }, + .probe = e50sn12051_probe, + + .id_table = e50sn12051_id, +}; + +module_i2c_driver(e50sn12051_driver); + +MODULE_AUTHOR("Kevin Chang "); +MODULE_DESCRIPTION("PMBus driver for E50SN12051"); +MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS("PMBUS");