xref: /linux/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml (revision 53597deca0e38c30e6cd4ba2114fa42d2bcd85bb)
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    oneOf:
20      - items:
21          - const: mediatek,mt6319-regulator
22          - const: mediatek,mt6315-regulator
23      - const: mediatek,mt6315-regulator
24
25  reg:
26    maxItems: 1
27
28  pvdd1-supply:
29    description: Supply for regulator vbuck1
30  pvdd2-supply:
31    description: Supply for regulator vbuck2
32  pvdd3-supply:
33    description: Supply for regulator vbuck3
34  pvdd4-supply:
35    description: Supply for regulator vbuck4
36
37  regulators:
38    type: object
39    description: List of regulators and its properties
40
41    patternProperties:
42      "^vbuck[1-4]$":
43        type: object
44        $ref: regulator.yaml#
45        unevaluatedProperties: false
46
47    additionalProperties: false
48
49required:
50  - compatible
51  - reg
52  - regulators
53
54additionalProperties: false
55
56examples:
57  - |
58    pmic@6 {
59      compatible = "mediatek,mt6315-regulator";
60      reg = <0x6 0>;
61      pvdd1-supply = <&pp4200_z2>;
62      pvdd3-supply = <&pp4200_z2>;
63
64      regulators {
65
66        vbuck1 {
67          regulator-min-microvolt = <300000>;
68          regulator-max-microvolt = <1193750>;
69          regulator-enable-ramp-delay = <256>;
70          regulator-allowed-modes = <0 1 2>;
71        };
72
73        vbuck3 {
74          regulator-min-microvolt = <300000>;
75          regulator-max-microvolt = <1193750>;
76          regulator-enable-ramp-delay = <256>;
77          regulator-allowed-modes = <0 1 2>;
78        };
79      };
80    };
81