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 7title: Monolithic Power Systems Multiphase Voltage Regulators with PMBus 8 9maintainers: 10 - Charles Hsu <ythsu0511@gmail.com> 11 12description: 13 Monolithic Power Systems digital multiphase voltage regulators with PMBus. 14 15properties: 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 36required: 37 - compatible 38 - reg 39 40allOf: 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 61additionalProperties: false 62 63examples: 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 }; 75