Skip to content

Commit e00fe40

Browse files
CHKDSK88groeck
authored andcommitted
dt-bindings: hwmon: Add bindings for mpq8785 driver
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. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20250511035701.2607947-2-paweldembicki@gmail.com Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 0d9f596 commit e00fe40

File tree

2 files changed

+74
-2
lines changed

2 files changed

+74
-2
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/hwmon/pmbus/mps,mpq8785.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Monolithic Power Systems Multiphase Voltage Regulators with PMBus
8+
9+
maintainers:
10+
- Charles Hsu <ythsu0511@gmail.com>
11+
12+
description:
13+
Monolithic Power Systems digital multiphase voltage regulators with PMBus.
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- mps,mpm3695
19+
- mps,mpm3695-25
20+
- mps,mpm82504
21+
- mps,mpq8785
22+
23+
reg:
24+
maxItems: 1
25+
26+
mps,vout-fb-divider-ratio-permille:
27+
description:
28+
The feedback resistor divider ratio, expressed in permille
29+
(Vfb / Vout * 1000). This value is written to the PMBUS_VOUT_SCALE_LOOP
30+
register and is required for correct output voltage presentation.
31+
$ref: /schemas/types.yaml#/definitions/uint32
32+
minimum: 1
33+
maximum: 4095
34+
default: 706
35+
36+
required:
37+
- compatible
38+
- reg
39+
40+
allOf:
41+
- if:
42+
properties:
43+
compatible:
44+
enum:
45+
- mps,mpm3695
46+
- mps,mpm82504
47+
then:
48+
properties:
49+
mps,vout-fb-divider-ratio-permille:
50+
maximum: 1023
51+
52+
- if:
53+
properties:
54+
compatible:
55+
const: mps,mpq8785
56+
then:
57+
properties:
58+
mps,vout-fb-divider-ratio-permille:
59+
maximum: 2047
60+
61+
additionalProperties: false
62+
63+
examples:
64+
- |
65+
i2c {
66+
#address-cells = <1>;
67+
#size-cells = <0>;
68+
69+
pmic@30 {
70+
compatible = "mps,mpm82504";
71+
reg = <0x30>;
72+
mps,vout-fb-divider-ratio-permille = <600>;
73+
};
74+
};

Documentation/devicetree/bindings/trivial-devices.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,6 @@ properties:
293293
- mps,mp5990
294294
# Monolithic Power Systems Inc. digital step-down converter mp9941
295295
- mps,mp9941
296-
# Monolithic Power Systems Inc. synchronous step-down converter mpq8785
297-
- mps,mpq8785
298296
# Temperature sensor with integrated fan control
299297
- national,lm63
300298
# Serial Interface ACPI-Compatible Microprocessor System Hardware Monitor

0 commit comments

Comments
 (0)