From nobody Mon Feb 9 22:26:29 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE2D13644D2; Thu, 5 Feb 2026 10:01:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770285702; cv=none; b=BKKb4/9NbIMIXZ5OyQ8ZR11X4gJyPxRUyqzBBk9uAbUkfpWXCqPi64MdbNhFflYsKjKu/y6EQ+2yIey/9oO3x4K4VFNfSytHvSrz9gCcd3k8a5YqcfaMqc6sUFJ+499hUHpd/FCihEw1BSIiZv7U/yj9ok2xE/dbjzK/rZd+zf8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770285702; c=relaxed/simple; bh=devR7VJmr/xn8ktgzpu6/1ed8rMHKTcaVA5kSFwJ7Jk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Fi3WdS5Ckbo9g6bav6eANNO1PiYVOphcEnEjuz7IPWCV1zdfeohAkbdarVZujtD5DDdYTJ/EZcL+Hh1l8ZYOrmZ7W04IG+NMYD7scpIR0Qvp88HGqMfodXwyBYYXVdw0Np1A2jr1biLuV1rdnuw+Q/VYDjHjWXdxOAftYmRPsZ4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ffpYEEa3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ffpYEEa3" Received: by smtp.kernel.org (Postfix) with ESMTPS id AB626C19423; Thu, 5 Feb 2026 10:01:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770285701; bh=devR7VJmr/xn8ktgzpu6/1ed8rMHKTcaVA5kSFwJ7Jk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ffpYEEa3r2u8D8tBKxCo/Tv4wF2Di/1EhYPTBO5FwUNHZN5pf+q5xFUp5PNoenwQ6 k7UshnU02nbyTFdTRw3LkDlhHERxcf81I21zQ/PCn76rzMCwwBqdmWR5rPaneQJEKZ 3ymTnfO7OghaNIbcdgU2Ui3bJUjLYpXORaW0JS4BYF0CBg6O/gD8eD4Nvqfb83gn6S d+kkDjWu9rh9EVJ7292uk0Jssl0kXcwLZXJJmZ7AQ9Jpdh78rOBf5XlnR2fMGlsB7E RQWi+JY38ABXAg0a8cz/cf7Y0IVEq9DsZiC/AMgOOQu/79A5CQ+ZwRsBpyFA7HZmEv fKcAZwdOxJLeQ== 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 99485EC1E8F; Thu, 5 Feb 2026 10:01:41 +0000 (UTC) From: Carl Lee via B4 Relay Date: Thu, 05 Feb 2026 18:01:37 +0800 Subject: [PATCH v2 1/3] dt-bindings: hwmon: pmbus: mpq8785: add MPQ8786 support 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: <20260205-dt-bindings-hwmon-pmbus-mpq8785-add-mpq8786-support-v2-1-3744cd9b2850@amd.com> References: <20260205-dt-bindings-hwmon-pmbus-mpq8785-add-mpq8786-support-v2-0-3744cd9b2850@amd.com> In-Reply-To: <20260205-dt-bindings-hwmon-pmbus-mpq8785-add-mpq8786-support-v2-0-3744cd9b2850@amd.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Charles Hsu Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, carl.lee@amd.com, peter.shen@amd.com, colin.huang2@amd.com X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1770285700; l=966; i=carl.lee@amd.com; s=20260203; h=from:subject:message-id; bh=4VP7aSutSEVwewHFNXv1YMwo/Z3h/7GGV0DuOQPQ1hM=; b=4jLL+R19hP5vpToXhZfcy/anjN+etq253OapCqYxfFxIg0yFgaN2yMvQAHo8pIGdG+N8k2G9/ VWaukCD/QVTBm3hbpYicZPWu/IWKXSHi2dAlk7hTqT3ZRTsGTRcuLXo X-Developer-Key: i=carl.lee@amd.com; a=ed25519; pk=pyq7QaQvoxMg806KVkRwpCbiah+7ncWr4MBpK1AEyjA= X-Endpoint-Received: by B4 Relay for carl.lee@amd.com/20260203 with auth_id=623 X-Original-From: Carl Lee Reply-To: carl.lee@amd.com From: Carl Lee Add device type support for MPQ8786 Signed-off-by: Carl Lee --- Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml= b/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml index 90970a0433e9..aec7397a29f9 100644 --- a/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml +++ b/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml @@ -19,6 +19,7 @@ properties: - mps,mpm3695-25 - mps,mpm82504 - mps,mpq8785 + - mps,mpq8786 =20 reg: maxItems: 1 @@ -52,7 +53,9 @@ allOf: - if: properties: compatible: - const: mps,mpq8785 + enum: + - mps,mpq8785 + - mps,mpq8786 then: properties: mps,vout-fb-divider-ratio-permille: --=20 2.34.1 From nobody Mon Feb 9 22:26:30 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE1BC31A565; Thu, 5 Feb 2026 10:01:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770285702; cv=none; b=iFBQiBxvagOfxwzwGbhURE5Q4LKyPbp+KLaPB+SDrAnM7SUllHDDp+soTud9whrVp4+N4+/vQlJ4ExWriQ9M5Nlcqws2Y/Z5sQORNMs0QHtgqKe25Gwk09S9jppef+LhozLpFJSlC6IMJvCslGE4/9aYFo3H7kE0C/sA8T2Xj7w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770285702; c=relaxed/simple; bh=G57zK63vvGtgsDfzaPgCE/xYaH1Z2/holtmBYCABzvM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CmiITNZ0v22cUpQxQnwSlxPcFmjvNPFODpvbtZIQoOqidqqiflBE5Y6RPs/fVugS52kQdFNFgNgWUYgTqS6C5AAvC3+XKgtWR6UfNmd8CkZECBLmPfYFM0dowULEKA5BUDGzCvg7n+n2Va709wB5MJ1M0YRp+A/4saagwyDB4Ew= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bU3AtEK+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bU3AtEK+" Received: by smtp.kernel.org (Postfix) with ESMTPS id BF4F0C19425; Thu, 5 Feb 2026 10:01:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770285701; bh=G57zK63vvGtgsDfzaPgCE/xYaH1Z2/holtmBYCABzvM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=bU3AtEK+CGn+Ir4NdI6BiIzU3K/pMnWlKtghZEM3yScgQyqBinmqc3jx9HWeIYl2F JpRH3crrs9z/NXSX7c9JU6S3D0+e/ntLyOh4YvKlbAlUWWLh6+17tuXTOn4o/LQZ47 JUDnQNH6a047X/DrKI9JM9qLR/DK7PkHAtP5FtUHwIiDDq0i4hdEhq0yTuXvsEgYeo +TglLqxkY3Y5iTt4oC3kH+pBblHF6OoFl8QNOwmrMfx2AjrDNke7LWMXLncfr0EiR8 3A45PZw+Wu2yAowc263DwLGpHCrYfZb3ZN44RCHws5+M9u+J4AsGAmvlp4VPiZ0Y6K LHtA+iGYu9Q2g== 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 B1C4CEC1E91; Thu, 5 Feb 2026 10:01:41 +0000 (UTC) From: Carl Lee via B4 Relay Date: Thu, 05 Feb 2026 18:01:38 +0800 Subject: [PATCH v2 2/3] hwmon: pmbus: mpq8785: add support for MPQ8786 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: <20260205-dt-bindings-hwmon-pmbus-mpq8785-add-mpq8786-support-v2-2-3744cd9b2850@amd.com> References: <20260205-dt-bindings-hwmon-pmbus-mpq8785-add-mpq8786-support-v2-0-3744cd9b2850@amd.com> In-Reply-To: <20260205-dt-bindings-hwmon-pmbus-mpq8785-add-mpq8786-support-v2-0-3744cd9b2850@amd.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Charles Hsu Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, carl.lee@amd.com, peter.shen@amd.com, colin.huang2@amd.com X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1770285700; l=2876; i=carl.lee@amd.com; s=20260203; h=from:subject:message-id; bh=RJRo1UlIAD5Na+x5KlUjzgyX3K81PgptdiZZtQGDLQg=; b=Moi4leam1a/lz1BX25DF2RYSxY3ZhMmuotWye7pZWpalDxga6mMrmJEVZ1CwbhoaThEZ6V9ve VC7TINzKVbOCYYsObg46wq9Dys29d88t4e0AS7ohgsu9sNM+2piUWYa X-Developer-Key: i=carl.lee@amd.com; a=ed25519; pk=pyq7QaQvoxMg806KVkRwpCbiah+7ncWr4MBpK1AEyjA= X-Endpoint-Received: by B4 Relay for carl.lee@amd.com/20260203 with auth_id=623 X-Original-From: Carl Lee Reply-To: carl.lee@amd.com From: Carl Lee Add support for the Monolithic Power Systems MPQ8786 digital voltage regulator. Signed-off-by: Carl Lee --- Documentation/hwmon/mpq8785.rst | 7 +++++++ drivers/hwmon/pmbus/mpq8785.c | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/hwmon/mpq8785.rst b/Documentation/hwmon/mpq8785.= rst index 198d5dfd7c30..39306033990f 100644 --- a/Documentation/hwmon/mpq8785.rst +++ b/Documentation/hwmon/mpq8785.rst @@ -8,6 +8,7 @@ Supported chips: * MPS MPM3695 family * MPS MPM82504 * MPS MPQ8785 + * MPS MPQ8786 =20 Prefix: 'mpq8785' =20 @@ -38,6 +39,12 @@ buck converter. The MPQ8785 offers a very compact soluti= on that achieves up to wide input supply range. The MPQ8785 operates at high efficiency over a wi= de output current load range. =20 +The MPQ8786 is a fully integrated, PMBus-compatible, high-frequency, synch= ronous +buck converter. The device shares the same PMBus interface and register be= havior +as the MPQ8785, but provides a lower output current capability of up to 25= A per +phase. It offers excellent load and line regulation over a wide input supp= ly +range and operates at high efficiency over a wide output current load rang= e. + The PMBus interface provides converter configurations and key parameters monitoring. =20 diff --git a/drivers/hwmon/pmbus/mpq8785.c b/drivers/hwmon/pmbus/mpq8785.c index 1f56aaf4dde8..f35534836cb8 100644 --- a/drivers/hwmon/pmbus/mpq8785.c +++ b/drivers/hwmon/pmbus/mpq8785.c @@ -12,13 +12,14 @@ =20 #define MPM82504_READ_TEMPERATURE_1_SIGN_POS 9 =20 -enum chips { mpm3695, mpm3695_25, mpm82504, mpq8785 }; +enum chips { mpm3695, mpm3695_25, mpm82504, mpq8785, mpq8786 }; =20 static u16 voltage_scale_loop_max_val[] =3D { [mpm3695] =3D GENMASK(9, 0), [mpm3695_25] =3D GENMASK(11, 0), [mpm82504] =3D GENMASK(9, 0), [mpq8785] =3D GENMASK(10, 0), + [mpq8786] =3D GENMASK(10, 0), }; =20 static int mpq8785_identify(struct i2c_client *client, @@ -87,6 +88,7 @@ static const struct i2c_device_id mpq8785_id[] =3D { { "mpm3695-25", mpm3695_25 }, { "mpm82504", mpm82504 }, { "mpq8785", mpq8785 }, + { "mpq8786", mpq8786 }, { }, }; MODULE_DEVICE_TABLE(i2c, mpq8785_id); @@ -96,6 +98,7 @@ static const struct of_device_id __maybe_unused mpq8785_o= f_match[] =3D { { .compatible =3D "mps,mpm3695-25", .data =3D (void *)mpm3695_25 }, { .compatible =3D "mps,mpm82504", .data =3D (void *)mpm82504 }, { .compatible =3D "mps,mpq8785", .data =3D (void *)mpq8785 }, + { .compatible =3D "mps,mpq8786", .data =3D (void *)mpq8786 }, {} }; MODULE_DEVICE_TABLE(of, mpq8785_of_match); @@ -128,6 +131,7 @@ static int mpq8785_probe(struct i2c_client *client) info->read_word_data =3D mpm82504_read_word_data; break; case mpq8785: + case mpq8786: info->identify =3D mpq8785_identify; break; default: --=20 2.34.1 From nobody Mon Feb 9 22:26:30 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0577738B7BF; Thu, 5 Feb 2026 10:01:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770285702; cv=none; b=Uh7pIOtdHJz6Vzoshjm4DUazV72OmPEZzaSH6FFFklj/b72cHu2R7t7ktie2MOMXNyJj3N8/ko6Jgm7UhFk9HJuMWOYEO8JNylI++R8BrLlxxCKMwidnf24ZbCEVM2qbLhm0wUgDvtvDnLsQAba9+ndY7VhLiA6M1VuJCredYoc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770285702; c=relaxed/simple; bh=o0ItWJn4Gc69vs+y1KGlWH+HnTAkK6kWITna6jXpUxg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nunpMK2eosRhTCoj5F+lC1EVJgb7oI8wJIMnFo2mhJRxc+QF7AoWJyIez25anrllkWbT73jonRVFdBvN07RyGJhNhIAOQZFjwbirsyJUf+IkZm3iHyUdX6AaiZ68XGcy8nxzXMyB1ex5+tk8d/qx0VHIbBwUKP7ffY6Ci9XqwpY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NX6Ewovs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NX6Ewovs" Received: by smtp.kernel.org (Postfix) with ESMTPS id D3FD9C16AAE; Thu, 5 Feb 2026 10:01:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770285701; bh=o0ItWJn4Gc69vs+y1KGlWH+HnTAkK6kWITna6jXpUxg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=NX6Ewovs4wr37a4lxHnW+fAyFZ4+mkxiOZx41D06lZLmmA2SvmqJHykqMi2WQ82vR CvCSllCpiKRv08hyovNE7llDE9e1A9t3vsO/FrQFNabmmNBNIQRpIaNPQKDNR9y2Gc NRZ92DOQpw9alz+ZWicN5igXVaHEuIbepOYtFAgdNSeu5d4zaRTxjTY2vMU42rMuBs mW5R+djtgWTExIaEcHROz5TbnaWt0ASWN4ZjO51lb2HwY6ungoWL+JW2QSntlhLLQo qsBEcD9zm2oR0MFRgsj+oIKbGzzgCYHYpWqXc7O9txGg4k785T9jcWzKrxKh6hA/5t icQlZ0AZP0Yag== 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 C8DD1EC1E89; Thu, 5 Feb 2026 10:01:41 +0000 (UTC) From: Carl Lee via B4 Relay Date: Thu, 05 Feb 2026 18:01:39 +0800 Subject: [PATCH v2 3/3] hwmon: pmbus: mpq8785: force direct mode for VID VOUT on MPQ8785/MPQ8786 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: <20260205-dt-bindings-hwmon-pmbus-mpq8785-add-mpq8786-support-v2-3-3744cd9b2850@amd.com> References: <20260205-dt-bindings-hwmon-pmbus-mpq8785-add-mpq8786-support-v2-0-3744cd9b2850@amd.com> In-Reply-To: <20260205-dt-bindings-hwmon-pmbus-mpq8785-add-mpq8786-support-v2-0-3744cd9b2850@amd.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Charles Hsu Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, carl.lee@amd.com, peter.shen@amd.com, colin.huang2@amd.com X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1770285700; l=1342; i=carl.lee@amd.com; s=20260203; h=from:subject:message-id; bh=uUNryTHUDVRGoinkT8aURxtPAS6L7bejWtD4269H63g=; b=VMo06GX712048wIeOdsmJHxqW1d72ofM4/Su0TefhhhZh/xVTQ+GAhGcD0mngmW/xyROVEt0v aEm3zNh7TOVA700szOjV37xENr3f/GOV7qHJT9GV4Z0mIlSBF2u/XAb X-Developer-Key: i=carl.lee@amd.com; a=ed25519; pk=pyq7QaQvoxMg806KVkRwpCbiah+7ncWr4MBpK1AEyjA= X-Endpoint-Received: by B4 Relay for carl.lee@amd.com/20260203 with auth_id=623 X-Original-From: Carl Lee Reply-To: carl.lee@amd.com From: Carl Lee According to MPQ8785/MPQ8786 datasheet, VID mode configuration is the same as direct mode configuration. Therefore, when VOUT is reported in VID mode, it must be forced to use direct format. Signed-off-by: Carl Lee --- drivers/hwmon/pmbus/mpq8785.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/hwmon/pmbus/mpq8785.c b/drivers/hwmon/pmbus/mpq8785.c index f35534836cb8..d6624af076c3 100644 --- a/drivers/hwmon/pmbus/mpq8785.c +++ b/drivers/hwmon/pmbus/mpq8785.c @@ -48,6 +48,25 @@ static int mpq8785_identify(struct i2c_client *client, return 0; }; =20 +static int mpq8785_read_byte_data(struct i2c_client *client, int page, int= reg) +{ + int ret; + + switch (reg) { + case PMBUS_VOUT_MODE: + ret =3D pmbus_read_byte_data(client, page, reg); + if (ret < 0) + return ret; + + if ((ret >> 5) =3D=3D 1) + return PB_VOUT_MODE_DIRECT; + default: + return -ENODATA; + } + + return ret; +} + static int mpm82504_read_word_data(struct i2c_client *client, int page, int phase, int reg) { @@ -133,6 +152,7 @@ static int mpq8785_probe(struct i2c_client *client) case mpq8785: case mpq8786: info->identify =3D mpq8785_identify; + info->read_byte_data =3D mpq8785_read_byte_data; break; default: return -ENODEV; --=20 2.34.1