xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/mps,mp886x.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/mps,mp886x.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
76be33864SEmmanuel Vadottitle: Monolithic Power Systems MP8867/MP8869 voltage regulator
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotmaintainers:
106be33864SEmmanuel Vadot  - Jisheng Zhang <jszhang@kernel.org>
116be33864SEmmanuel Vadot
126be33864SEmmanuel VadotallOf:
136be33864SEmmanuel Vadot  - $ref: regulator.yaml#
146be33864SEmmanuel Vadot
156be33864SEmmanuel Vadotproperties:
166be33864SEmmanuel Vadot  compatible:
176be33864SEmmanuel Vadot    enum:
186be33864SEmmanuel Vadot      - mps,mp8867
196be33864SEmmanuel Vadot      - mps,mp8869
206be33864SEmmanuel Vadot
216be33864SEmmanuel Vadot  reg:
226be33864SEmmanuel Vadot    maxItems: 1
236be33864SEmmanuel Vadot
246be33864SEmmanuel Vadot  enable-gpios:
256be33864SEmmanuel Vadot    description: GPIO to enable/disable the regulator.
266be33864SEmmanuel Vadot    maxItems: 1
276be33864SEmmanuel Vadot
286be33864SEmmanuel Vadot  mps,fb-voltage-divider:
296be33864SEmmanuel Vadot    description: An array of two integers containing the resistor
306be33864SEmmanuel Vadot      values R1 and R2 of the feedback voltage divider in kilo ohms.
31*fac71e4eSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-array
326be33864SEmmanuel Vadot    maxItems: 2
336be33864SEmmanuel Vadot
346be33864SEmmanuel Vadot  mps,switch-frequency-hz:
356be33864SEmmanuel Vadot    description: The valid switch frequency in Hertz.
366be33864SEmmanuel Vadot    enum: [500000, 750000, 1000000, 1250000, 1500000]
376be33864SEmmanuel Vadot
386be33864SEmmanuel Vadotrequired:
396be33864SEmmanuel Vadot  - compatible
406be33864SEmmanuel Vadot  - reg
416be33864SEmmanuel Vadot  - enable-gpios
426be33864SEmmanuel Vadot  - mps,fb-voltage-divider
436be33864SEmmanuel Vadot
446be33864SEmmanuel VadotunevaluatedProperties: false
456be33864SEmmanuel Vadot
466be33864SEmmanuel Vadotexamples:
476be33864SEmmanuel Vadot  - |
486be33864SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
496be33864SEmmanuel Vadot    i2c {
506be33864SEmmanuel Vadot        #address-cells = <1>;
516be33864SEmmanuel Vadot        #size-cells = <0>;
526be33864SEmmanuel Vadot        regulator@62 {
536be33864SEmmanuel Vadot          compatible = "mps,mp8869";
546be33864SEmmanuel Vadot          regulator-name = "vcpu";
556be33864SEmmanuel Vadot          regulator-min-microvolt = <800000>;
566be33864SEmmanuel Vadot          regulator-max-microvolt = <1150000>;
576be33864SEmmanuel Vadot          enable-gpios = <&porta 1 GPIO_ACTIVE_LOW>;
586be33864SEmmanuel Vadot          mps,fb-voltage-divider = <80 240>;
596be33864SEmmanuel Vadot          reg = <0x62>;
606be33864SEmmanuel Vadot        };
616be33864SEmmanuel Vadot    };
626be33864SEmmanuel Vadot
636be33864SEmmanuel Vadot...
64