1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/onnn,fan53880.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Onsemi FAN53880 PMIC
8
9maintainers:
10  - Christoph Fritz <chf.fritz@googlemail.com>
11
12description: |
13  The FAN53880 is an I2C porgrammable power management IC (PMIC)
14  that contains a BUCK (step-down converter), four low dropouts (LDO)
15  and one BOOST (step-up converter) output. It is designed for mobile
16  power applications.
17
18properties:
19  $nodename:
20    pattern: "pmic@[0-9a-f]{1,2}"
21  compatible:
22    enum:
23      - onnn,fan53880
24
25  reg:
26    maxItems: 1
27
28  VIN12-supply:
29    description: Input supply phandle(s) for LDO1 and LDO2
30
31  VIN3-supply:
32    description: Input supply phandle(s) for LDO3
33
34  VIN4-supply:
35    description: Input supply phandle(s) for LDO4
36
37  PVIN-supply:
38    description: Input supply phandle(s) for BUCK and BOOST
39
40  regulators:
41    type: object
42    $ref: regulator.yaml#
43    description: |
44      list of regulators provided by this controller, must be named
45      after their hardware counterparts LDO[1-4], BUCK and BOOST
46
47    patternProperties:
48      "^LDO[1-4]$":
49        type: object
50        $ref: regulator.yaml#
51
52      "^BUCK|BOOST$":
53        type: object
54        $ref: regulator.yaml#
55
56    additionalProperties: false
57
58required:
59  - compatible
60  - reg
61  - regulators
62
63additionalProperties: false
64
65examples:
66  - |
67    i2c {
68        #address-cells = <1>;
69        #size-cells = <0>;
70
71        pmic@35 {
72            compatible = "onnn,fan53880";
73            reg = <0x35>;
74
75            PVIN-supply = <&fixreg_example_vcc>;
76
77            regulators {
78                BUCK {
79                    regulator-min-microvolt = <1200000>;
80                    regulator-max-microvolt = <1200000>;
81                };
82            };
83       };
84     };
85...
86