xref: /linux/Documentation/devicetree/bindings/regulator/active-semi,act8865.yaml (revision 413ec72963fc297f419a3d5f931bb43921969749)
1*413ec729SPaul Cercueil# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*413ec729SPaul Cercueil%YAML 1.2
3*413ec729SPaul Cercueil---
4*413ec729SPaul Cercueil$id: http://devicetree.org/schemas/regulator/active-semi,act8865.yaml#
5*413ec729SPaul Cercueil$schema: http://devicetree.org/meta-schemas/core.yaml#
6*413ec729SPaul Cercueil
7*413ec729SPaul Cercueiltitle: Active-semi ACT8865 regulator
8*413ec729SPaul Cercueil
9*413ec729SPaul Cercueilmaintainers:
10*413ec729SPaul Cercueil  - Paul Cercueil <paul@crapouillou.net>
11*413ec729SPaul Cercueil
12*413ec729SPaul Cercueilproperties:
13*413ec729SPaul Cercueil  compatible:
14*413ec729SPaul Cercueil    const: active-semi,act8865
15*413ec729SPaul Cercueil
16*413ec729SPaul Cercueil  reg:
17*413ec729SPaul Cercueil    maxItems: 1
18*413ec729SPaul Cercueil
19*413ec729SPaul Cercueil  system-power-controller:
20*413ec729SPaul Cercueil    description:
21*413ec729SPaul Cercueil      Indicates that the ACT8865 is responsible for powering OFF
22*413ec729SPaul Cercueil      the system.
23*413ec729SPaul Cercueil    type: boolean
24*413ec729SPaul Cercueil
25*413ec729SPaul Cercueil  active-semi,vsel-high:
26*413ec729SPaul Cercueil    description:
27*413ec729SPaul Cercueil      Indicates the VSEL pin is high. If this property is missing,
28*413ec729SPaul Cercueil      the VSEL pin is assumed to be low.
29*413ec729SPaul Cercueil    type: boolean
30*413ec729SPaul Cercueil
31*413ec729SPaul Cercueil  regulators:
32*413ec729SPaul Cercueil    type: object
33*413ec729SPaul Cercueil    additionalProperties: false
34*413ec729SPaul Cercueil
35*413ec729SPaul Cercueil    properties:
36*413ec729SPaul Cercueil      DCDC_REG1:
37*413ec729SPaul Cercueil        type: object
38*413ec729SPaul Cercueil        $ref: /schemas/regulator/regulator.yaml#
39*413ec729SPaul Cercueil        unevaluatedProperties: false
40*413ec729SPaul Cercueil
41*413ec729SPaul Cercueil        properties:
42*413ec729SPaul Cercueil          vp1-supply:
43*413ec729SPaul Cercueil            description: Handle to the VP1 input supply
44*413ec729SPaul Cercueil
45*413ec729SPaul Cercueil      DCDC_REG2:
46*413ec729SPaul Cercueil        type: object
47*413ec729SPaul Cercueil        $ref: /schemas/regulator/regulator.yaml#
48*413ec729SPaul Cercueil        unevaluatedProperties: false
49*413ec729SPaul Cercueil
50*413ec729SPaul Cercueil        properties:
51*413ec729SPaul Cercueil          vp2-supply:
52*413ec729SPaul Cercueil            description: Handle to the VP2 input supply
53*413ec729SPaul Cercueil
54*413ec729SPaul Cercueil      DCDC_REG3:
55*413ec729SPaul Cercueil        type: object
56*413ec729SPaul Cercueil        $ref: /schemas/regulator/regulator.yaml#
57*413ec729SPaul Cercueil        unevaluatedProperties: false
58*413ec729SPaul Cercueil
59*413ec729SPaul Cercueil        properties:
60*413ec729SPaul Cercueil          vp3-supply:
61*413ec729SPaul Cercueil            description: Handle to the VP3 input supply
62*413ec729SPaul Cercueil
63*413ec729SPaul Cercueil    patternProperties:
64*413ec729SPaul Cercueil      "^LDO_REG[1-2]$":
65*413ec729SPaul Cercueil        type: object
66*413ec729SPaul Cercueil        $ref: /schemas/regulator/regulator.yaml#
67*413ec729SPaul Cercueil        unevaluatedProperties: false
68*413ec729SPaul Cercueil
69*413ec729SPaul Cercueil        properties:
70*413ec729SPaul Cercueil          inl45-supply:
71*413ec729SPaul Cercueil            description: Handle to the INL45 input supply
72*413ec729SPaul Cercueil
73*413ec729SPaul Cercueil      "^LDO_REG[3-4]$":
74*413ec729SPaul Cercueil        type: object
75*413ec729SPaul Cercueil        $ref: /schemas/regulator/regulator.yaml#
76*413ec729SPaul Cercueil        unevaluatedProperties: false
77*413ec729SPaul Cercueil
78*413ec729SPaul Cercueil        properties:
79*413ec729SPaul Cercueil          inl67-supply:
80*413ec729SPaul Cercueil            description: Handle to the INL67 input supply
81*413ec729SPaul Cercueil
82*413ec729SPaul CercueiladditionalProperties: false
83*413ec729SPaul Cercueil
84*413ec729SPaul Cercueilrequired:
85*413ec729SPaul Cercueil  - reg
86*413ec729SPaul Cercueil  - compatible
87*413ec729SPaul Cercueil  - regulators
88*413ec729SPaul Cercueil
89*413ec729SPaul Cercueilexamples:
90*413ec729SPaul Cercueil  - |
91*413ec729SPaul Cercueil    #include <dt-bindings/regulator/active-semi,8865-regulator.h>
92*413ec729SPaul Cercueil
93*413ec729SPaul Cercueil    i2c1 {
94*413ec729SPaul Cercueil      #address-cells = <1>;
95*413ec729SPaul Cercueil      #size-cells = <0>;
96*413ec729SPaul Cercueil
97*413ec729SPaul Cercueil      pmic@5b {
98*413ec729SPaul Cercueil        compatible = "active-semi,act8865";
99*413ec729SPaul Cercueil        reg = <0x5b>;
100*413ec729SPaul Cercueil        active-semi,vsel-high;
101*413ec729SPaul Cercueil
102*413ec729SPaul Cercueil        regulators {
103*413ec729SPaul Cercueil          DCDC_REG1 {
104*413ec729SPaul Cercueil            regulator-name = "VCC_1V8";
105*413ec729SPaul Cercueil            regulator-min-microvolt = <1800000>;
106*413ec729SPaul Cercueil            regulator-max-microvolt = <1800000>;
107*413ec729SPaul Cercueil            regulator-always-on;
108*413ec729SPaul Cercueil          };
109*413ec729SPaul Cercueil
110*413ec729SPaul Cercueil          DCDC_REG2 {
111*413ec729SPaul Cercueil            regulator-name = "VCC_1V2";
112*413ec729SPaul Cercueil            regulator-min-microvolt = <1100000>;
113*413ec729SPaul Cercueil            regulator-max-microvolt = <1300000>;
114*413ec729SPaul Cercueil            regulator-always-on;
115*413ec729SPaul Cercueil
116*413ec729SPaul Cercueil            regulator-allowed-modes = <ACT8865_REGULATOR_MODE_FIXED>,
117*413ec729SPaul Cercueil                                      <ACT8865_REGULATOR_MODE_LOWPOWER>;
118*413ec729SPaul Cercueil            regulator-initial-mode = <ACT8865_REGULATOR_MODE_FIXED>;
119*413ec729SPaul Cercueil
120*413ec729SPaul Cercueil            regulator-state-mem {
121*413ec729SPaul Cercueil              regulator-on-in-suspend;
122*413ec729SPaul Cercueil              regulator-suspend-min-microvolt = <1150000>;
123*413ec729SPaul Cercueil              regulator-suspend-max-microvolt = <1150000>;
124*413ec729SPaul Cercueil              regulator-changeable-in-suspend;
125*413ec729SPaul Cercueil              regulator-mode = <ACT8865_REGULATOR_MODE_LOWPOWER>;
126*413ec729SPaul Cercueil            };
127*413ec729SPaul Cercueil          };
128*413ec729SPaul Cercueil
129*413ec729SPaul Cercueil          DCDC_REG3 {
130*413ec729SPaul Cercueil            regulator-name = "VCC_3V3";
131*413ec729SPaul Cercueil            regulator-min-microvolt = <3300000>;
132*413ec729SPaul Cercueil            regulator-max-microvolt = <3300000>;
133*413ec729SPaul Cercueil            regulator-always-on;
134*413ec729SPaul Cercueil          };
135*413ec729SPaul Cercueil
136*413ec729SPaul Cercueil          LDO_REG1 {
137*413ec729SPaul Cercueil            regulator-name = "VDDANA";
138*413ec729SPaul Cercueil            regulator-min-microvolt = <3300000>;
139*413ec729SPaul Cercueil            regulator-max-microvolt = <3300000>;
140*413ec729SPaul Cercueil            regulator-always-on;
141*413ec729SPaul Cercueil
142*413ec729SPaul Cercueil            regulator-allowed-modes = <ACT8865_REGULATOR_MODE_NORMAL>,
143*413ec729SPaul Cercueil                                      <ACT8865_REGULATOR_MODE_LOWPOWER>;
144*413ec729SPaul Cercueil            regulator-initial-mode = <ACT8865_REGULATOR_MODE_NORMAL>;
145*413ec729SPaul Cercueil
146*413ec729SPaul Cercueil            regulator-state-mem {
147*413ec729SPaul Cercueil              regulator-off-in-suspend;
148*413ec729SPaul Cercueil            };
149*413ec729SPaul Cercueil          };
150*413ec729SPaul Cercueil
151*413ec729SPaul Cercueil          LDO_REG2 {
152*413ec729SPaul Cercueil            regulator-name = "FUSE_2V5";
153*413ec729SPaul Cercueil            regulator-min-microvolt = <2500000>;
154*413ec729SPaul Cercueil            regulator-max-microvolt = <2500000>;
155*413ec729SPaul Cercueil          };
156*413ec729SPaul Cercueil        };
157*413ec729SPaul Cercueil      };
158*413ec729SPaul Cercueil    };
159