From nobody Fri Jun 12 12:48:12 2026 Received: from mail-dl1-f43.google.com (mail-dl1-f43.google.com [74.125.82.43]) (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 1BA503C9EE9 for ; Fri, 15 May 2026 03:03:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778814214; cv=none; b=TyWzOdevR9OpkmJLCP6apEI7t2Uohp+A67biLNEjbRXnjbWh5FMdpyd2I6baN6JrjGqMmy+hweo4f8MXgNbg9Sc8TN9hcuyT84+sxgejWe9Urp7zvACu0UQ+x7B24O8d7Y4ryHcIFWxF8pyHTdH0Oa6DT7M36UZGNdGeEIycycU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778814214; c=relaxed/simple; bh=LE4iHKm4t9UfoFq/JD7py44dDWXkdwherx2HuxZ/YYA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qqa2qsXNPmyvulYIy1uNpicWRdXx4V/oygjhK6ptcT1pJDrnjzFQI7HtZAN+Mc1vpXXM8cVQ2fRb+ACkclwZLOmUsESJuwPiyeYqliZo7ActpooA+uO8tWJ64BWMq2g2puIGeWa2enyNKfwotqEgoLIIddNSo8kZc13LCaiArz8= 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=ZXjIE5k5; arc=none smtp.client-ip=74.125.82.43 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="ZXjIE5k5" Received: by mail-dl1-f43.google.com with SMTP id a92af1059eb24-1332772f6b3so7922026c88.1 for ; Thu, 14 May 2026 20:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexthop.ai; s=google; t=1778814211; x=1779419011; 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=sukG3LK43QSVOar4Qmd0GrtT53PCwKZDghqzgcwbn4w=; b=ZXjIE5k5n0agMDMRvIPITxpS2a7lzo4iCsib8uPY6EEfFWQEFEu2fjVgEHtMCEQ2dk JSb1JhWJ02Z9BGpE1XQxRSVKa+53WEbfXJRZtwWgJOHY0hml7PtmfKvHqHDv9j94s4kf vZK1TkA3/VYB+XgKCzzLIBkqDOaB8gYZjrsSC6mVmrhHdG14trGFCHqmMURqCUEN/Dkn xrX2W+2/HQMblrCBrrNOsk4oXOLvSCF20Q27hArnSrUdSFtez4g6eoSlEU26KeVM/DbP Z9qXi7W4f5NbLOI2aR6djCne6nx78CWgySHA7H6IejTUHokX4+lr8EL6Xjj1mTLO8Sb1 BAhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778814211; x=1779419011; 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=sukG3LK43QSVOar4Qmd0GrtT53PCwKZDghqzgcwbn4w=; b=K+ym67sZgd61snJhAhkuATj2l428XzjGzV0fimM+tZRz/r5lhbmHqsRZBJIksHnna7 UlplmDT9T8GddDazMGXpZAV7ee+S2hVw6J88yPfntGrzd8olrR4yyewoQ5AHvXOT1Hvf VbD5a8z7arDZT5yTMvC4RTcfyrjMoRVV/0Zq6HlXjyToicNg3eoafocQVxot0UxOo/rm hVvkGHjFwmYry11W8zn7R6zOQIYQeq6gkRPEXvcnOWOBQf/VNZK/PWskZPrPFommrsfZ Y+PefFTFc0SbzKKbYdd+VZUDoRsbSnQZ0sWeZVPqn43WtTaEuTs09zHFRfhUbSejICo3 TU+A== X-Forwarded-Encrypted: i=1; AFNElJ9BkUQYzra/QNBPUdUzy7vOXviliakp7q+RLIxB0H8DE7/7c0CjwdK9S5liHmiwhZlZcSvltHF3TgZQxvU=@vger.kernel.org X-Gm-Message-State: AOJu0YzNgVz1ufqT7nVflqWLAzghRH9j/9sQAb9dlRa+RcdIY8j9IoX9 9+gA3c591zqNFk4upXukboS4ninXnN/PR84KIPgmgGtW/IvEKNECIkKgi34HKD7/oAY= X-Gm-Gg: Acq92OFY/giYwQEGRP98HbAMKp//DRFOlvBSAi4kkO1lhG6zI9XzNJ0lnvXWWwkCU5M k29m9zwEq6NGZ5NW6KpIxemSTZuY/rJK0SoER6FD4W/14AbnfiuhoyPWg97jo34ay5wCfgQy0xz 2ucV2ix/828dsqIi8vikGdiorrCcqf5QKxUIieRMo60V3+5TAQTXChJJYAvaPm2FDqbMcFb7bwP 6Is6i0uNCtP+YwY+fCPcKQDeEwFPnYCaYRCNBl4M0SE2gsMnHcnh7+UdlTYgUg2dSy+sBkxkMik kEoC6OL4ljfqmbjcUlHEy400g8jGRkm8+/MqthQZS6mZiHA7wSVNTX3vhrDIMOtkKbqxFbDnoGY kvSjN4Mca2kyVk9+1gHoInBCYTWj1edoj/AyC6zlzZ6e518P2YObSj2BIpU0A4B4F2+5KTCRHoU 1u/gdGZ6ZysYj7/9gfQosF3yFF0Q== X-Received: by 2002:a05:7301:608c:b0:2ed:e14:7f5f with SMTP id 5a478bee46e88-303986b4534mr1062366eec.35.1778814211151; Thu, 14 May 2026 20:03:31 -0700 (PDT) Received: from [127.0.0.2] ([50.145.100.174]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-30296dcb6f6sm6347011eec.17.2026.05.14.20.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2026 20:03:30 -0700 (PDT) From: Abdurrahman Hussain Date: Thu, 14 May 2026 20:03:25 -0700 Subject: [PATCH v4 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: <20260514-d1u74t-v4-1-1f1ee7b002ec@nexthop.ai> References: <20260514-d1u74t-v4-0-1f1ee7b002ec@nexthop.ai> In-Reply-To: <20260514-d1u74t-v4-0-1f1ee7b002ec@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=1778814209; l=1648; i=abdurrahman@nexthop.ai; s=20260510; h=from:subject:message-id; bh=LE4iHKm4t9UfoFq/JD7py44dDWXkdwherx2HuxZ/YYA=; b=/kCOYXl8ifIU2EnFxiX85D74yslO3ujA62IYMCclljKZkjlF8kisal3nsSXsDFuMMjCnbaVxC e+AZaPkft32BDikpqNhgtfb+pfX+iMQrzBsYQZnqdhXgpoiMCwTv8kd X-Developer-Key: i=abdurrahman@nexthop.ai; a=ed25519; pk=omTm9cCAbO0ZhS32aKfJDKue0W3sQGpG9ub5eYHif8I= The Murata D1U74T-W series are hot-pluggable 1U AC/DC front-end power supplies in the Intel CRPS-185 / OCP M-CRPS form factor. Each variant delivers a 12 V main output plus a 12 V standby output from a wide AC input (90-264 Vac) or HVDC supply, and includes an internal variable-speed cooling fan and on-board voltage, current, power, fan-speed, and temperature telemetry. The host-side digital interface is a PMBus 1.2 port on I2C. The PSU's other electrical signals (status, alert, current-share) live on the CRPS edge connector and are consumed by the chassis controller rather than the host SoC, so there are no host-described supplies, GPIOs, clocks, or interrupts. Add the compatible to trivial-devices.yaml rather than carrying a standalone binding file. Signed-off-by: Abdurrahman Hussain Acked-by: Krzysztof Kozlowski --- 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 12:48:12 2026 Received: from mail-dy1-f179.google.com (mail-dy1-f179.google.com [74.125.82.179]) (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 226BF3CAE80 for ; Fri, 15 May 2026 03:03:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778814214; cv=none; b=HrLeYI3fCRqP/SOCo6YemnATogXeLwJIzKSurKkVzEctEVs6VvxRoM3PG2xRYkaFC/ceZx6xu1YgjmnNmWGmJWTemHaFDa3NEa9PreuWcuR+wDk6f9EIWb5vD2ykA56imaU36aUrFqGWs4riWD9nuhkswFAyJu+kTvWhZSrIDpU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778814214; c=relaxed/simple; bh=jt1pcuf39jTjOp/CprE2VknkJYWSRf1cDSthp+6L81c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HKc6JAwRzyaHn50U58iJ+eJI2udJufjsRyZCGHVcJeHGvFPN1J1wi7d853MtMugSSq8T4UguRyqPTePvPuwEeBBg0prL5aPwqePf6eIQaUxNGj/WOdyrCvl6Aenwu5aaN7IM4vJxITP+0R6Ky6i2MNAOWqLiGvmWpBVaV3yrErg= 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=bfWvznq6; arc=none smtp.client-ip=74.125.82.179 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="bfWvznq6" Received: by mail-dy1-f179.google.com with SMTP id 5a478bee46e88-2f0d3e07e30so20597921eec.0 for ; Thu, 14 May 2026 20:03:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexthop.ai; s=google; t=1778814212; x=1779419012; 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=RSmQiZH+KFPr73qb2DgqirdV6BoUGNU/diBKQVP+P04=; b=bfWvznq6JWxrDtYAQEHy3uFGgClWpDny0M1Kb3QcnAvNndS6GBPpEEjeCMr7qKN78h efdCnlHWGYWGwQdYOO6LThZCTBrWWgo3kdQckF/U20mae1TaJUd31HkJjFD+/buF6j8X LdLoAc1VSN3OcWtagYv086fpdn4Cmym95dcf61KZjhRlxMzwrBWc9LLQKat6QHBOr973 kDlkhlQOwAU715VPrZwC3bKBTzUdq40vK75BnJE+Zsrjxqsar30UHu60hlHeJmi0B9IB Mr5oXkKibhqGtCOZzQ+zh0/bVb2kAgPxGMtOYxVC1HfZHHvesm9pZ8+iTxU4/+PhwMMO A9kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778814212; x=1779419012; 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=RSmQiZH+KFPr73qb2DgqirdV6BoUGNU/diBKQVP+P04=; b=dIgfs5ztoxRsubnGefRZrW2Zp8XHReanBnusHZo1iWGRuP8ngzoncWHgGgOA35Z4FQ OqRzn8E4krhJDZZOe/adWjIb1qkoM6fUBU5FsX41hgkPQudJMs7eaQJ1lEpmdN5vjosd tgUVDwGuW5q08cTghnLPBGWlmuWg3f53uoUoPJOiM+E66V0YwHOJPV06COD1gae+yKMq FmSDE7ZRYKh4iqIL4o1rZBd7FEDJ5racxi/BUY+tDc1TnNGg30WAeI2QXEG7Y+67x2M3 nQs0fA1QCCq38N/dQSI6Uxwoc+FsoNJSXJpMNb1va9NpHPXL7dmay04rTNH5WJdMYrpe uDfg== X-Forwarded-Encrypted: i=1; AFNElJ80fJdclke35auj9KV11vkiSxjV1VVcwyIuCzan4XW8XJ3jXxproJCATmZGrd6+OSTekmSJ9GFCBQHi1tU=@vger.kernel.org X-Gm-Message-State: AOJu0YwjSDctpXscPKFgBvRu6FlS9YippLDv+YjTegEm69hJR+dlRwrb /Yhd9ivaQ6qMYO1SVqHxGDnLHAirJi20eXspCZSgpaHP+qCzYqwPnvF7PTl5biDkB8I= X-Gm-Gg: Acq92OFjH4vkOiN2sodKmoCsbD1MR6pi57we+ruudpE9sw2Itj1m3+ZdZITuBbIb5bj 8yM5R7nZSbsJzN0y6b+6dXHODBCnDNX6dl2bdc2Q4XoM6nAd2oZ+DG9Jbq6AY5piZOzdIXhSTMv I9z9kOW1ntmzyLgwC3eIlDz5AHhS4f6yoX7vgKjQItEJ6C9MMGGmOnthlSZWxSanXQN2QN+J9TN 7YSBpshyn6rrvO2yTcSJ+eZOxkbC0/qvMMVrtOaAlySwiXTgjzR6AYknDHY/5pgDgi4gR9Qm7Yx R75RE5Ob5njYEpTiZNoXCGVqD0V21wOiVZWTM0zCd7UHnxB29JBIVN1vSajB0l+nUllLQf32gnk Hq1vU0N+3yrc4UsWG9Tl5aNDZ0ZYRaxA7ELK4H69XuaSttQcaNSRjRVZgkPuUMcDwQ25Lyf4MdT 2f4Pm/g2DltFA+0HXY92c4lfBVUV9c1r8Ad64m X-Received: by 2002:a05:7301:2901:b0:2c0:e404:8b08 with SMTP id 5a478bee46e88-303986b4529mr1054564eec.29.1778814212159; Thu, 14 May 2026 20:03:32 -0700 (PDT) Received: from [127.0.0.2] ([50.145.100.174]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-30296dcb6f6sm6347011eec.17.2026.05.14.20.03.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2026 20:03:31 -0700 (PDT) From: Abdurrahman Hussain Date: Thu, 14 May 2026 20:03:26 -0700 Subject: [PATCH v4 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: <20260514-d1u74t-v4-2-1f1ee7b002ec@nexthop.ai> References: <20260514-d1u74t-v4-0-1f1ee7b002ec@nexthop.ai> In-Reply-To: <20260514-d1u74t-v4-0-1f1ee7b002ec@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=1778814209; l=7535; i=abdurrahman@nexthop.ai; s=20260510; h=from:subject:message-id; bh=jt1pcuf39jTjOp/CprE2VknkJYWSRf1cDSthp+6L81c=; b=r9wkpVc0tUwEPWbAgpAvW/1MJ2aTHq753sL24j8d9WAUIcKGHbaIV3r+xL01qn8q31/RCdDWI Fgjr76WHUuND/XASwKf8suLejsNLxYD1uye7YQ97x4F7Ppg+D/H5COK 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 | 81 +++++++++++++++++++++++++++++++++++++++ Documentation/hwmon/index.rst | 1 + MAINTAINERS | 7 ++++ drivers/hwmon/pmbus/Kconfig | 9 +++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/d1u74t.c | 86 ++++++++++++++++++++++++++++++++++++++= ++++ 6 files changed, 185 insertions(+) diff --git a/Documentation/hwmon/d1u74t.rst b/Documentation/hwmon/d1u74t.rst new file mode 100644 index 000000000000..3a9eedbda483 --- /dev/null +++ b/Documentation/hwmon/d1u74t.rst @@ -0,0 +1,81 @@ +.. 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: Publicly available at the Murata website + +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_alarm Input current 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 current high alarm +curr2_crit Critical high output current +curr2_crit_alarm Output current critical high alarm +curr2_rated_max Maximum rated output current + +in1_label "vin" +in1_input Measured input voltage +in1_alarm Input voltage alarm +in1_rated_min Minimum rated input voltage +in1_rated_max Maximum rated input voltage + +in2_label "vout1" +in2_input Measured output voltage +in2_alarm Output voltage alarm +in2_rated_min Minimum rated output voltage +in2_rated_max Maximum rated output voltage + +power1_label "pin" +power1_input Measured input power +power1_alarm Input power alarm +power1_rated_max Maximum rated input power + +temp[1-3]_input Measured temperature +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..3106cf725dfc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18249,6 +18249,13 @@ F: drivers/mux/ F: include/dt-bindings/mux/ F: include/linux/mux/ =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 + MUSB MULTIPOINT HIGH SPEED DUAL-ROLE CONTROLLER M: Bin Liu L: linux-usb@vger.kernel.org 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..286ba492e336 --- /dev/null +++ b/drivers/hwmon/pmbus/d1u74t.c @@ -0,0 +1,86 @@ +// 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'; + return dev_err_probe(dev, -ENODEV, + "Unsupported Manufacturer ID '%s'\n", + buf); + } + + 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 (rc < 8 || 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