Add device tree bindings for Monolithic Power Systems MPQ8785, MPM82504 and MPM3695 PMBus-compliant voltage regulators. These bindings also documents the optional "voltage-scale-loop" property. Signed-off-by: Pawel Dembicki <paweldembicki@xxxxxxxxx> --- .../bindings/hwmon/pmbus/mps,mpq8785.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) 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..e2a3958a61fa --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml @@ -0,0 +1,54 @@ +# 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# + +allOf: + - $ref: /schemas/i2c/i2c-device.yaml# + +title: Monolithic Power Systems Multiphase Voltage Regulators with PMBus + +maintainers: + - Charles Hsu <ythsu0511@xxxxxxxxx> + +description: | + Monolithic Power Systems digital multiphase voltage regulators with PMBus. + +properties: + compatible: + enum: + - mps,mpq8785 + - mps,mpm82504 + - mps,mpm3695-10 + + reg: + maxItems: 1 + + voltage-scale-loop: + description: + Voltage scale factor for the VOUT_SCALE_LOOP register. + Value expressed in mili-units (1/1000th of a unit). + The simplest way to calculate it is + VOUT_SCALE_LOOP = VFB / VOUT * 1000 + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@30 { + compatible = "mps,mpm82504"; + reg = <0x30>; + voltage-scale-loop = <600>; + }; + }; -- 2.43.0