From nobody Fri Jun 12 20:21:59 2026 Received: from mail-dl1-f44.google.com (mail-dl1-f44.google.com [74.125.82.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67BDB38236F for ; Tue, 12 May 2026 22:45:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778625958; cv=none; b=D/MabCnyfQTW1k15FPny+U6LUbxE6/XLLFhoFOKbZ0bH4kj23ec/XeZGjhJk6jg6mNPXM92tsMMDYUMPZNk+4jsbYGWFxF2oDGBAFAoyevoyKaG6GKNmD66xjxYrzmgBiDf7w3SWBeMJvT+s1abP3s787u5KDR+6jq1CZTm/vsQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778625958; c=relaxed/simple; bh=vfdsOfPIN4ax8m0jl3BhSnngPUkt47sIt8pYap0c9gs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BAbHP6J+ftIjBSnJALFFpkPhDkPFakIUVWp+ictBivNqaGV2FFGmuqqrROjxwlScvMwzOAaXWiDJK9Co6a545OrOccj+hbzpHvuw36/er4AvaFKfdY7P/gKWPf/xMT/6hvG26Xtbp7S6dn7Kq+uw4VAuFiL0PlS2TMYWF4WIv5E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nexthop.ai; spf=pass smtp.mailfrom=nexthop.ai; dkim=pass (2048-bit key) header.d=nexthop.ai header.i=@nexthop.ai header.b=cgyS765U; arc=none smtp.client-ip=74.125.82.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nexthop.ai Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nexthop.ai Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nexthop.ai header.i=@nexthop.ai header.b="cgyS765U" Received: by mail-dl1-f44.google.com with SMTP id a92af1059eb24-12c19d23b19so10260262c88.0 for ; Tue, 12 May 2026 15:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexthop.ai; s=google; t=1778625957; x=1779230757; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=QnjBg15osgUc/DHul0dxc7zos8A55rHk0TXyJ9kh9iM=; b=cgyS765UtTuBPjG5V9M+qwpbGx28Y3D1flm2UmBUVM8cq7NNere1Xmz77864vPlbH8 o5SQortpWlo2MT+Ph0AKSiB5pQjRENrVBmFc2LdZL7fajEA0twpeDOXvZ5+XS1U2LZhz iZ2I4wG9y0F8Dzv2OBVuAgDTiIz+gimr3HK318PxrUffFJ41YG3JHy9XpuN/e7s+Nsx3 /PrRERL8E3u3aUK1hTyWW+AnYb/00l+FqxOp2ucDecUi38AQoDVbSHyV9pxGngpV3Y2p U/dW58tOceWaEcjr6w0rqI7KuFE2oQnVwIloV8wtgAVS4bmwrT7xHrq2mXs6qp2edz+B hvhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778625957; x=1779230757; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=QnjBg15osgUc/DHul0dxc7zos8A55rHk0TXyJ9kh9iM=; b=qIvjdhOU9JTC9rj/Bw+e1WxyshSoAGPeCV7jhN9gNI6fTMdqUjP3LdxZZX9jec5BFK IkBFXZjRPwSq3mnxDN8zLQQdi5bFlIpYdwYW9P0Sofr7JnAsFpog8hLB/9P47UOY6MhQ 5yLacbiYMAjDCNoCWD7CSgKWAledI9jRJdMb1dkBGDN5Rxl4ja74R3Mbt+YzsJ0iEyvw xPeQe/pY2GWjJWy2NAeMZYG8HkB1690U467XTJX1Hr1BuLygf1FGcK8MaCWUGkFp0mDG Iz2KR6W14Qn7YqX7nmmXO7IDqFy/W8l/iMjUyhUP3sgNNe7YghEyde9W1noduPj0IroQ JS7g== X-Forwarded-Encrypted: i=1; AFNElJ+f2OvEnH0lkDJPKuFaYmp+oeiW00LmKuzqrmv5y80hUNdODSAUv2rDzyM8cS9uCt3y9xdktaIA9PktkQ8=@vger.kernel.org X-Gm-Message-State: AOJu0YzyZJIxoudR2bLofe0FdMjAPZo/0+xcmdOxJcGxCnCvcfRXhhiP d7mpfQi97eUyJ3MywQJJojHYt8HiFj9McDm8lr3qwaUC1GLIyAS2FXk9DTUpEOjswz0= X-Gm-Gg: Acq92OF0zLvKgQsfZURzuNlNTuHzghEulpumUstXNbVXu7M6cyN0XfIJAMXbg7ITorw J1NvJgi6Hg+AyK4qX/4O543I6o+lXqhm2S+d1VZtpebi67umXKXrejaf2n407YLDviy72bzz6Ng QulRtFK6XhmaaRMg1/ctNW05RjpApMwiRw1Fth7QMCtlCu98xPF0B5oBXBWQCgJ072yH1z5v/jB IfgXyAbWpWfNb4/z/O4FVubvFtcS3VGWNUMvYb49Mu8fyeJT9E31hjpi5HB0RJyzF2yC+znFBzj Y40VxkVcVh+DgLSX35Zb2PXq7QKI0yIEsC7Zy+bUNAzP+RpGbX8wqZF2KnmGdFzoRbSp1+rsv3y OlxQ1X39IMYGvAyflBnKpmVT0Qvu8K3ZqMeL4sYPBFEDZ0GYaQr0NB/9QsfLct91zQSylLxePcN 1hS/XsvDv+oXyqMPVaXobRyoH80A== X-Received: by 2002:a05:7022:2527:b0:128:d577:dc21 with SMTP id a92af1059eb24-1349a80df0bmr195310c88.13.1778625956588; Tue, 12 May 2026 15:45:56 -0700 (PDT) Received: from [127.0.0.2] ([50.145.100.174]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1327821fd00sm25351543c88.8.2026.05.12.15.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2026 15:45:56 -0700 (PDT) From: Abdurrahman Hussain Date: Tue, 12 May 2026 15:45:52 -0700 Subject: [PATCH v2 1/2] dt-bindings: trivial-devices: Add Murata D1U74T PSU Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260512-d1u74t-v2-1-431d00fbb1c4@nexthop.ai> References: <20260512-d1u74t-v2-0-431d00fbb1c4@nexthop.ai> In-Reply-To: <20260512-d1u74t-v2-0-431d00fbb1c4@nexthop.ai> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Abdurrahman Hussain X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778625955; l=1143; i=abdurrahman@nexthop.ai; s=20260510; h=from:subject:message-id; bh=vfdsOfPIN4ax8m0jl3BhSnngPUkt47sIt8pYap0c9gs=; b=7UcDf9RP+aa2HbAiVnF4yt2aJpKq6u1pfzXLnY9sMccJUQKWdmuDb+TEoszSTCMjhukHvXWXP tNkJjIBEp/zAjCaAL7dWniJOyfYu/BQKVt9T6SAMBvMtmlRjtJOrYaA X-Developer-Key: i=abdurrahman@nexthop.ai; a=ed25519; pk=omTm9cCAbO0ZhS32aKfJDKue0W3sQGpG9ub5eYHif8I= The Murata D1U74T-W is a PMBus-compliant AC/DC power supply unit. The binding only declares the compatible string and i2c reg, with no additional properties (no regulators, no supplies), so add it to trivial-devices.yaml rather than carrying a standalone binding file. Signed-off-by: Abdurrahman Hussain Acked-by: Conor Dooley --- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Docum= entation/devicetree/bindings/trivial-devices.yaml index 23fd4513933a..19c8c7220858 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -352,6 +352,8 @@ properties: - mps,mp9941 # Monolithic Power Systems Inc. digital step-down converter mp= 9945 - mps,mp9945 + # Murata D1U74T-W power supply unit + - murata,d1u74t # Temperature sensor with integrated fan control - national,lm63 # Temperature sensor with integrated fan control --=20 2.53.0 From nobody Fri Jun 12 20:21:59 2026 Received: from mail-dl1-f54.google.com (mail-dl1-f54.google.com [74.125.82.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9479C3A383E for ; Tue, 12 May 2026 22:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778625960; cv=none; b=CBFUOZclXSOf+ltc7ET+UDikutvlOZt2Qpk8/uAHRBmPTNa1qznmUFlcwj409wwExrn+GhB52xigbrVE5zW0n9PW659FGP3BuXMdS45yX2jmHnh9NtTAJPdakGJkmHqOMhxkmVJd+NE1vF2ZStdJ5rDGMYEHf7w1cRBXtuZzVB0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778625960; c=relaxed/simple; bh=pUiEfcCfnEGpaYyu1itUP1RAq5pOXa7mpRzkPvwUdpA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rmy66b6qnl6O2fW3dquqMbr3PdB6YEKL/Gayta25U9wJKdNF1bC19VvmGzKoAmRdBjlSv9kJ+m5/2WfDkq0yBbil2va6bTuX0CVTSepS5/BpOwg8IEYQcuaal5EaWluwpI0WRNuBbPNKCdkfp9AYtIE6DIHj0OdJm+hfa8/YuKI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nexthop.ai; spf=pass smtp.mailfrom=nexthop.ai; dkim=pass (2048-bit key) header.d=nexthop.ai header.i=@nexthop.ai header.b=Lw6/OliU; arc=none smtp.client-ip=74.125.82.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nexthop.ai Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nexthop.ai Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nexthop.ai header.i=@nexthop.ai header.b="Lw6/OliU" Received: by mail-dl1-f54.google.com with SMTP id a92af1059eb24-12c1a170a50so8352246c88.0 for ; Tue, 12 May 2026 15:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexthop.ai; s=google; t=1778625958; x=1779230758; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=GT/mutnGmK8Up0UnCY7rXFLVvKBtcvY8x5SL6VqMtVI=; b=Lw6/OliULw0YzkDMLnw8i5QFGoO1I29YJY+DSJqDc7WMir3iJi5i5gO1tzw7v60/31 vsXGrM92mr0wzrsdor9W0QkEDkoSf5c0RpGHI9U6Up4QweLp3zP8OQ0ES5PRYaJnBTI7 jrT9SARrhzPVHky92jOWlKBjvZJyw8qmyK2ZUCV6kSE1Cj+fWHHEQoYxF4cx3bC2LZcg DzKMoMJGY9vWUHt/ABqmyqu7akE8r1mF7hJ1qhRfsSdT+4ovClrJwUh6TtohtAaKEHNK A7efjYpk/nrDs47Y0vF4nux99PcqipuGlmgvGPgIAU5idyXk+nrhyJe1aUogOpxS6qsZ yWJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778625958; x=1779230758; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=GT/mutnGmK8Up0UnCY7rXFLVvKBtcvY8x5SL6VqMtVI=; b=IgXWQwrk6J/JxtE6eEPXH/fxBt0T4GSSni4fNxiAMGJ7mOgNrBXHjA4Paxtq2HdiQq 7cFi2xfFVUjo/XWWQ1jXN6nCLkAS1PeTyaFQltrBp7rtr9aYHQoS8s66g5SE+UdaFViB RbAeFgwmOZXJ1IuFpfd87ZcIiNMTG80ogwWUrWTi9y+DaC0ATvxr5esjdPGwrHcMd+yB Ep0TkU/039XDse1jVbm0zUomkUP20dCwZD0/C6mQ5EsaBwGJ1sJvHD+Nhee5Ze3ICDKL tk6EohN37FJnvgQqFB6Sh3W7nkLSD05xKXBbemZrF5a/Rovr7m1rA7jl2l8mg/iCwqws CP/Q== X-Forwarded-Encrypted: i=1; AFNElJ9pbqvR8ksa2VGMPcuHRBdcaHmLBjOk3wUHCGA1xYLj+pNoNrmTo07C5xwwGYUPXdqrvDnoA68YYhKGpkU=@vger.kernel.org X-Gm-Message-State: AOJu0YxElTvFcX6mUyK0vuL9iKkTWxbhDIl/jchENO/+u5UBvlxzhG+Z DnbeY+SyE+9iCxKEjD4X8Q/n+q0zOgVlwH3XbLzTpw44NsOkJeBQb5LDLbgSunlZ/24= X-Gm-Gg: Acq92OG7k4xuAkrcDyR0yeiXwZOIpyEMXZiaTUcWH6FTD4heeFyBn7Vxau2Y6Y+HL7L hdd7FlQxaXEMT/64dx5xUxn8uQ3w/8HPP9Dyz2accKAUx9u7zZHAPaFcZVrxwAe+wbzdbB8ao7m cYW+xi0Z64Tm2N5O+uwDVPhU8AlmJ336ZQM32j8aCQ3R0OK3yvPIQWJ+Yu9n9Ou33a8Kslsy4Qw DsUkSH/xDMrUl83J4XHWb8Jk/V9fqnZhdGJUPf6XgvZNeT3nw0EEUIXhgIupDW36QFlk1cURn3Z KY62lthPqz8cO7lIuuhmJrOgewrJ+JR/AUaetVpifamWl+kymxSF6Z7wlMQ9z2pCQF9u/X82JwS Jn2RnHXaFbNu6jDLr4cdG5rsURozCAfyfATQyLVqtad5L+F4wCRbOSvaT0GaUugTTrMCl2PPST6 AkVVs44AZndagOp1ZH01Kzcx86Cg== X-Received: by 2002:a05:7022:fa9:b0:12c:8b9:71d9 with SMTP id a92af1059eb24-1349ac708b6mr205908c88.27.1778625957697; Tue, 12 May 2026 15:45:57 -0700 (PDT) Received: from [127.0.0.2] ([50.145.100.174]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1327821fd00sm25351543c88.8.2026.05.12.15.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2026 15:45:57 -0700 (PDT) From: Abdurrahman Hussain Date: Tue, 12 May 2026 15:45:53 -0700 Subject: [PATCH v2 2/2] hwmon: (pmbus/d1u74t) Add Murata D1U74T PSU driver Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260512-d1u74t-v2-2-431d00fbb1c4@nexthop.ai> References: <20260512-d1u74t-v2-0-431d00fbb1c4@nexthop.ai> In-Reply-To: <20260512-d1u74t-v2-0-431d00fbb1c4@nexthop.ai> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Abdurrahman Hussain , kernel test robot X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778625955; l=8281; i=abdurrahman@nexthop.ai; s=20260510; h=from:subject:message-id; bh=pUiEfcCfnEGpaYyu1itUP1RAq5pOXa7mpRzkPvwUdpA=; b=A29rSO/7fq7BJIVxEMiBEcKASvHDtimAaXDcaMBRB0vwWcxbYxeQJvCobBHpquKHfYIgmZDuu Nnx7FP++pBRA9pv8MGPGKEhSgb3Ug2RCEwAQsjigPh6sgQ9zaYmvqqS X-Developer-Key: i=abdurrahman@nexthop.ai; a=ed25519; pk=omTm9cCAbO0ZhS32aKfJDKue0W3sQGpG9ub5eYHif8I= Add PMBUS driver for Murata D1U74T power supplies. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202605122253.zInzmUeX-lkp@int= el.com/ Signed-off-by: Abdurrahman Hussain --- Documentation/hwmon/d1u74t.rst | 97 ++++++++++++++++++++++++++++++++++++++= ++++ Documentation/hwmon/index.rst | 1 + MAINTAINERS | 7 +++ drivers/hwmon/pmbus/Kconfig | 9 ++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/d1u74t.c | 85 ++++++++++++++++++++++++++++++++++++ 6 files changed, 200 insertions(+) diff --git a/Documentation/hwmon/d1u74t.rst b/Documentation/hwmon/d1u74t.rst new file mode 100644 index 000000000000..7362e56e76a7 --- /dev/null +++ b/Documentation/hwmon/d1u74t.rst @@ -0,0 +1,97 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +Kernel driver d1u74t +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Supported chips: + + * Murata D1U74T + + Prefix: 'd1u74t' + + Addresses scanned: - + + Datasheet: Only available under NDA. + +Authors: + Abdurrahman Hussain + + +Description +----------- + +This driver implements support for Murata D1U74T Power Supply with +PMBus support. + +The driver is a client driver to the core PMBus driver. +Please see Documentation/hwmon/pmbus.rst for details on PMBus client drive= rs. + + +Usage Notes +----------- + +This driver does not auto-detect devices. You will have to instantiate the +devices explicitly. Please see Documentation/i2c/instantiating-devices.rst= for +details. + + +Sysfs entries +------------- + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D +curr1_label "iin" +curr1_input Measured input current +curr1_max Maximum input current +curr1_max_alarm Input maximum current high alarm +curr1_crit Critical high input current +curr1_crit_alarm Input critical current high alarm +curr1_rated_max Maximum rated input current + +curr2_label "iout1" +curr2_input Measured output current +curr2_max Maximum output current +curr2_max_alarm Output maximum current high alarm +curr2_crit Critical high output current +curr2_crit_alarm Output critical current high alarm +curr2_rated_max Maximum rated output current + +in1_label "vin" +in1_input Measured input voltage +in1_crit Critical input over voltage +in1_crit_alarm Critical input over voltage alarm +in1_max Maximum input over voltage +in1_max_alarm Maximum input over voltage alarm +in1_rated_min Minimum rated input voltage +in1_rated_max Maximum rated input voltage + +in2_label "vout1" +in2_input Measured input voltage +in2_crit Critical input over voltage +in2_crit_alarm Critical input over voltage alarm +in2_lcrit Critical input under voltage fault +in2_lcrit_alarm Critical input under voltage fault alarm +in2_max Maximum input over voltage +in2_max_alarm Maximum input over voltage alarm +in2_min Minimum input under voltage warning +in2_min_alarm Minimum input under voltage warning alarm +in2_rated_min Minimum rated input voltage +in2_rated_max Maximum rated input voltage + +power1_label "pin" +power1_input Measured input power +power1_alarm Input power high alarm +power1_max Maximum input power +power1_rated_max Maximum rated input power + +temp[1-3]_input Measured temperature +temp[1-3]_crit Critical temperature +temp[1-3]_crit_alarm Critical temperature alarm +temp[1-3]_max Maximum temperature +temp[1-3]_max_alarm Maximum temperature alarm +temp[1-3]_rated_max Maximum rated temperature + +fan1_alarm Fan 1 warning. +fan1_fault Fan 1 fault. +fan1_input Fan 1 speed in RPM. +fan1_target Fan 1 target. +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst index 8b655e5d6b68..97b1ef65b1c1 100644 --- a/Documentation/hwmon/index.rst +++ b/Documentation/hwmon/index.rst @@ -60,6 +60,7 @@ Hardware Monitoring Kernel Drivers corsair-psu cros_ec_hwmon crps + d1u74t da9052 da9055 dell-smm-hwmon diff --git a/MAINTAINERS b/MAINTAINERS index b2040011a386..28ca8e035312 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6803,6 +6803,13 @@ S: Maintained F: Documentation/hwmon/crps.rst F: drivers/hwmon/pmbus/crps.c =20 +MURATA D1U74T PSU DRIVER +M: Abdurrahman Hussain +L: linux-hwmon@vger.kernel.org +S: Maintained +F: Documentation/hwmon/d1u74t.rst +F: drivers/hwmon/pmbus/d1u74t.c + CRYPTO API M: Herbert Xu M: "David S. Miller" diff --git a/drivers/hwmon/pmbus/Kconfig b/drivers/hwmon/pmbus/Kconfig index 8f4bff375ecb..ee93b22d2887 100644 --- a/drivers/hwmon/pmbus/Kconfig +++ b/drivers/hwmon/pmbus/Kconfig @@ -113,6 +113,15 @@ config SENSORS_CRPS This driver can also be built as a module. If so, the module will be called crps. =20 +config SENSORS_D1U74T + tristate "Murata D1U74T Power Supply" + help + If you say yes here you get hardware monitoring support for the Murata + D1U74T Power Supply. + + This driver can also be built as a module. If so, the module will + be called d1u74t. + config SENSORS_DELTA_AHE50DC_FAN tristate "Delta AHE-50DC fan control module" help diff --git a/drivers/hwmon/pmbus/Makefile b/drivers/hwmon/pmbus/Makefile index 7129b62bc00f..8cf7d3075371 100644 --- a/drivers/hwmon/pmbus/Makefile +++ b/drivers/hwmon/pmbus/Makefile @@ -76,3 +76,4 @@ obj-$(CONFIG_SENSORS_XDPE1A2G7B) +=3D xdpe1a2g7b.o obj-$(CONFIG_SENSORS_ZL6100) +=3D zl6100.o obj-$(CONFIG_SENSORS_PIM4328) +=3D pim4328.o obj-$(CONFIG_SENSORS_CRPS) +=3D crps.o +obj-$(CONFIG_SENSORS_D1U74T) +=3D d1u74t.o diff --git a/drivers/hwmon/pmbus/d1u74t.c b/drivers/hwmon/pmbus/d1u74t.c new file mode 100644 index 000000000000..3127e0e5a23d --- /dev/null +++ b/drivers/hwmon/pmbus/d1u74t.c @@ -0,0 +1,85 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright 2026 Nexthop Systems. + */ + +#include +#include +#include + +#include "pmbus.h" + +static const struct i2c_device_id d1u74t_id[] =3D { + { "d1u74t" }, + {}, +}; +MODULE_DEVICE_TABLE(i2c, d1u74t_id); + +static struct pmbus_driver_info d1u74t_info =3D { + .pages =3D 1, + /* PSU uses default linear data format. */ + .func[0] =3D PMBUS_HAVE_PIN | PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT | + PMBUS_HAVE_IIN | PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT | + PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT | PMBUS_HAVE_TEMP | + PMBUS_HAVE_TEMP2 | PMBUS_HAVE_TEMP3 | + PMBUS_HAVE_STATUS_TEMP | PMBUS_HAVE_FAN12 | + PMBUS_HAVE_STATUS_FAN12, +}; + +static int d1u74t_probe(struct i2c_client *client) +{ + char buf[I2C_SMBUS_BLOCK_MAX + 2] =3D { 0 }; + struct device *dev =3D &client->dev; + int rc; + + rc =3D i2c_smbus_read_block_data(client, PMBUS_MFR_ID, buf); + if (rc < 0) + return dev_err_probe(dev, rc, "Failed to read PMBUS_MFR_ID\n"); + + if (rc !=3D 9 || strncmp(buf, "Murata-PS", 9)) { + buf[rc] =3D '\0'; + dev_err(dev, "Unsupported Manufacturer ID '%s'\n", buf); + return -ENODEV; + } + + rc =3D i2c_smbus_read_block_data(client, PMBUS_MFR_MODEL, buf); + if (rc < 0) + return dev_err_probe(dev, rc, + "Failed to read PMBUS_MFR_MODEL\n"); + + if (strncmp(buf, "D1U74T-W", 8)) { + buf[rc] =3D '\0'; + return dev_err_probe(dev, -ENODEV, "Model '%s' not supported\n", + buf); + } + + rc =3D pmbus_do_probe(client, &d1u74t_info); + if (rc) + return dev_err_probe(dev, rc, "Failed to probe\n"); + + return 0; +} + +static const struct of_device_id d1u74t_of_match[] =3D { + { + .compatible =3D "murata,d1u74t", + }, + {}, +}; +MODULE_DEVICE_TABLE(of, d1u74t_of_match); + +static struct i2c_driver d1u74t_driver =3D { + .driver =3D { + .name =3D "d1u74t", + .of_match_table =3D d1u74t_of_match, + }, + .probe =3D d1u74t_probe, + .id_table =3D d1u74t_id, +}; + +module_i2c_driver(d1u74t_driver); + +MODULE_AUTHOR("Abdurrahman Hussain"); +MODULE_DESCRIPTION("PMBus driver for Murata D1U74T-W power supplies"); +MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS("PMBUS"); --=20 2.53.0