1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/regulator/active-semi,act8945a.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Active-semi ACT8945a regulator
10 - Paul Cercueil <paul@crapouillou.net>
14 const: active-semi,act8945a
19 system-power-controller:
21 Indicates that the ACT8945a is responsible for powering OFF
25 active-semi,vsel-high:
27 Indicates the VSEL pin is high. If this property is missing,
28 the VSEL pin is assumed to be low.
33 additionalProperties: false
38 $ref: /schemas/regulator/regulator.yaml#
39 unevaluatedProperties: false
43 description: Handle to the VP1 input supply
47 $ref: /schemas/regulator/regulator.yaml#
48 unevaluatedProperties: false
52 description: Handle to the VP2 input supply
56 $ref: /schemas/regulator/regulator.yaml#
57 unevaluatedProperties: false
61 description: Handle to the VP3 input supply
66 $ref: /schemas/regulator/regulator.yaml#
67 unevaluatedProperties: false
71 description: Handle to the INL45 input supply
75 $ref: /schemas/regulator/regulator.yaml#
76 unevaluatedProperties: false
80 description: Handle to the INL67 input supply
84 additionalProperties: false
88 const: active-semi,act8945a-charger
93 active-semi,chglev-gpios:
94 description: CGHLEV GPIO
97 active-semi,lbo-gpios:
101 active-semi,input-voltage-threshold-microvolt:
102 description: Input voltage threshold
105 active-semi,precondition-timeout:
106 description: Precondition timeout
107 $ref: /schemas/types.yaml#/definitions/uint32
109 active-semi,total-timeout:
110 description: Total timeout
111 $ref: /schemas/types.yaml#/definitions/uint32
117 additionalProperties: false
126 #include <dt-bindings/gpio/gpio.h>
127 #include <dt-bindings/interrupt-controller/irq.h>
128 #include <dt-bindings/mfd/atmel-flexcom.h>
129 #include <dt-bindings/regulator/active-semi,8945a-regulator.h>
132 #address-cells = <1>;
136 compatible = "active-semi,act8945a";
138 active-semi,vsel-high;
142 regulator-name = "VDD_1V35";
143 regulator-min-microvolt = <1350000>;
144 regulator-max-microvolt = <1350000>;
145 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
146 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
147 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
150 regulator-state-mem {
151 regulator-on-in-suspend;
152 regulator-suspend-min-microvolt = <1400000>;
153 regulator-suspend-max-microvolt = <1400000>;
154 regulator-changeable-in-suspend;
155 regulator-mode = <ACT8945A_REGULATOR_MODE_LOWPOWER>;
160 regulator-name = "VDD_1V2";
161 regulator-min-microvolt = <1100000>;
162 regulator-max-microvolt = <1300000>;
163 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
164 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
165 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
168 regulator-state-mem {
169 regulator-off-in-suspend;
174 regulator-name = "VDD_3V3";
175 regulator-min-microvolt = <3300000>;
176 regulator-max-microvolt = <3300000>;
177 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
178 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
179 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
182 regulator-state-mem {
183 regulator-off-in-suspend;
188 regulator-name = "VDD_FUSE";
189 regulator-min-microvolt = <2500000>;
190 regulator-max-microvolt = <2500000>;
191 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
192 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
193 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
196 regulator-state-mem {
197 regulator-off-in-suspend;
202 regulator-name = "VDD_3V3_LP";
203 regulator-min-microvolt = <3300000>;
204 regulator-max-microvolt = <3300000>;
205 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
206 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
207 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
210 regulator-state-mem {
211 regulator-off-in-suspend;
216 regulator-name = "VDD_LED";
217 regulator-min-microvolt = <3300000>;
218 regulator-max-microvolt = <3300000>;
219 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
220 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
221 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
224 regulator-state-mem {
225 regulator-off-in-suspend;
230 regulator-name = "VDD_SDHC_1V8";
231 regulator-min-microvolt = <1800000>;
232 regulator-max-microvolt = <1800000>;
233 regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
234 <ACT8945A_REGULATOR_MODE_LOWPOWER>;
235 regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
238 regulator-state-mem {
239 regulator-off-in-suspend;
245 compatible = "active-semi,act8945a-charger";
246 pinctrl-names = "default";
247 pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
248 interrupt-parent = <&pioA>;
249 interrupts = <45 IRQ_TYPE_EDGE_RISING>;
251 active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>;
252 active-semi,lbo-gpios = <&pioA 72 GPIO_ACTIVE_LOW>;
253 active-semi,input-voltage-threshold-microvolt = <6600>;
254 active-semi,precondition-timeout = <40>;
255 active-semi,total-timeout = <3>;