From: Krzysztof Kozlowski <krzk@kernel.org>
To: Pawel Dembicki <paweldembicki@gmail.com>, linux-hwmon@vger.kernel.org
Cc: Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Noah Wang <noahwang.wang@outlook.com>,
Michal Simek <michal.simek@amd.com>,
Fabio Estevam <festevam@gmail.com>,
Naresh Solanki <naresh.solanki@9elements.com>,
Grant Peltier <grantpeltier93@gmail.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Greg KH <gregkh@linuxfoundation.org>,
Peter Zijlstra <peterz@infradead.org>,
Shen Lichuan <shenlichuan@vivo.com>,
Charles Hsu <ythsu0511@gmail.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-doc@vger.kernel.org
Subject: Re: [PATCH v2 5/5] dt-bindings: hwmon: Add bindings for mpq8785 driver
Date: Fri, 9 May 2025 09:00:39 +0200 [thread overview]
Message-ID: <606a3d9a-857a-4fd6-a9b9-76a9c8d60cea@kernel.org> (raw)
In-Reply-To: <20250509065237.2392692-6-paweldembicki@gmail.com>
On 09/05/2025 08:51, Pawel Dembicki wrote:
> Add device tree bindings for Monolithic Power Systems MPQ8785, MPM82504
> and MPM3695 PMBus-compliant voltage regulators.
>
> These bindings also documents the optional
> "mps,vout-fb-divider-ratio-permille" property.
>
> ---
> v2:
> - remove mps,mpq8785 from trivial-devices.yaml
> - fix alphabetical order
> - rename voltage-scale-loop to mps,vout-fb-divider-ratio-permille
> - add mps,vout-fb-divider-ratio-permille min and max values
> - rewrite mps,vout-fb-divider-ratio-permille description
If you are going to send a new version, then reorder the patches so the
bindings are before the user (see submitting patches in DT doc dir).
>
> Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
> ---
> .../bindings/hwmon/pmbus/mps,mpq8785.yaml | 88 +++++++++++++++++++
> .../devicetree/bindings/trivial-devices.yaml | 2 -
> 2 files changed, 88 insertions(+), 2 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml
>
> diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml
> new file mode 100644
> index 000000000000..3c61f5484326
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml
> @@ -0,0 +1,88 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/hwmon/pmbus/mps,mpq8785.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Monolithic Power Systems Multiphase Voltage Regulators with PMBus
> +
> +maintainers:
> + - Charles Hsu <ythsu0511@gmail.com>
> +
> +description:
> + Monolithic Power Systems digital multiphase voltage regulators with PMBus.
> +
> +properties:
> + compatible:
> + enum:
> + - mps,mpm3695
> + - mps,mpm3695-25
> + - mps,mpm82504
> + - mps,mpq8785
> +
> + reg:
> + maxItems: 1
> +
> + mps,vout-fb-divider-ratio-permille:
> + description:
> + The feedback resistor divider ratio, expressed in permille
> + (Vfb / Vout * 1000). This value is written to the PMBUS_VOUT_SCALE_LOOP
> + register and is required for correct output voltage presentation.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + minimum: 1
maximum: 4095
default: X
required: block goes here, before allOf: block.
> +
> +allOf:
> + - if:
> + properties:
> + compatible:
> + const: mps,mpq8785
> + then:
> + properties:
> + mps,vout-fb-divider-ratio-permille:
> + maximum: 2047
> +
> + - if:
> + properties:
> + compatible:
> + const: mps,mpm82504
That's enum with mpm3695
> + then:
> + properties:
> + mps,vout-fb-divider-ratio-permille:
> + maximum: 1023
> +
Best regards,
Krzysztof
prev parent reply other threads:[~2025-05-09 7:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-09 6:51 [PATCH v2 0/5] hwmon: pmbus: Add support for MPM82504 and MPM3695 family Pawel Dembicki
2025-05-09 6:51 ` [PATCH v2 1/5] hwmon: pmbus: mpq8785: Prepare driver for multiple device support Pawel Dembicki
2025-05-09 7:03 ` Krzysztof Kozlowski
2025-05-09 7:41 ` Paweł Dembicki
2025-05-09 9:22 ` Krzysztof Kozlowski
2025-05-09 14:15 ` Guenter Roeck
2025-05-09 6:51 ` [PATCH v2 2/5] hwmon: pmbus: mpq8785: Add support for MPM82504 Pawel Dembicki
2025-05-09 13:54 ` Guenter Roeck
2025-05-09 6:51 ` [PATCH v2 3/5] hwmon: pmbus: mpq8785: Add support for MPM3695 family Pawel Dembicki
2025-05-09 7:06 ` Krzysztof Kozlowski
2025-05-09 6:51 ` [PATCH v2 4/5] hwmon: pmbus: mpq8785: Implement VOUT feedback resistor divider ratio configuration Pawel Dembicki
2025-05-09 7:07 ` Krzysztof Kozlowski
2025-05-09 13:26 ` Guenter Roeck
2025-05-09 6:51 ` [PATCH v2 5/5] dt-bindings: hwmon: Add bindings for mpq8785 driver Pawel Dembicki
2025-05-09 7:00 ` Krzysztof Kozlowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=606a3d9a-857a-4fd6-a9b9-76a9c8d60cea@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=grantpeltier93@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jdelvare@suse.com \
--cc=krzk+dt@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=michal.simek@amd.com \
--cc=naresh.solanki@9elements.com \
--cc=noahwang.wang@outlook.com \
--cc=paweldembicki@gmail.com \
--cc=peterz@infradead.org \
--cc=robh@kernel.org \
--cc=shenlichuan@vivo.com \
--cc=ythsu0511@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox