xref: /openbmc/linux/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml (revision 060f35a317ef09101b128f399dce7ed13d019461)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/mt6315-regulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Mediatek MT6315 Regulator
8
9maintainers:
10  - Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>
11
12description: |
13  The MT6315 is a power management IC (PMIC) configurable with SPMI.
14  that contains 4 BUCKs output which can combine with each other
15  by different efuse settings.
16
17properties:
18  compatible:
19    const: mediatek,mt6315-regulator
20
21  reg:
22    maxItems: 1
23
24  regulators:
25    type: object
26    description: List of regulators and its properties
27
28    patternProperties:
29      "^vbuck[1-4]$":
30        type: object
31        $ref: regulator.yaml#
32        unevaluatedProperties: false
33
34    additionalProperties: false
35
36required:
37  - compatible
38  - reg
39  - regulators
40
41additionalProperties: false
42
43examples:
44  - |
45    pmic@6 {
46      compatible = "mediatek,mt6315-regulator";
47      reg = <0x6 0>;
48
49      regulators {
50        vbuck1 {
51          regulator-min-microvolt = <300000>;
52          regulator-max-microvolt = <1193750>;
53          regulator-enable-ramp-delay = <256>;
54          regulator-allowed-modes = <0 1 2>;
55        };
56
57        vbuck3 {
58          regulator-min-microvolt = <300000>;
59          regulator-max-microvolt = <1193750>;
60          regulator-enable-ramp-delay = <256>;
61          regulator-allowed-modes = <0 1 2>;
62        };
63      };
64    };
65