1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/mfd/x-powers,axp152.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: X-Powers AXP PMIC
10 - Chen-Yu Tsai <wens@csie.org>
52 - x-powers,drive-vbus-en
59 const: x-powers,axp806
65 - x-powers,self-working-mode
69 - x-powers,master-mode
76 const: x-powers,axp305
96 - const: x-powers,axp228
97 - const: x-powers,axp221
99 - const: x-powers,axp805
100 - const: x-powers,axp806
102 - const: x-powers,axp305
103 - const: x-powers,axp805
104 - const: x-powers,axp806
106 - const: x-powers,axp818
107 - const: x-powers,axp813
115 interrupt-controller: true
120 x-powers,drive-vbus-en:
123 Set this when the N_VBUSEN pin is used as an output pin to control an
124 external regulator to drive the OTG VBus, rather then as an input pin
125 which signals whether the board is driving OTG VBus or not.
127 x-powers,self-working-mode:
130 Set this when the PMIC is wired for self-working mode through the MODESET
133 x-powers,master-mode:
136 Set this when the PMIC is wired for master mode through the MODESET pin.
140 DCDC1 power supply node, if present.
144 DCDC2 power supply node, if present.
148 DCDC3 power supply node, if present.
152 DCDC4 power supply node, if present.
156 DCDC5 power supply node, if present.
160 DCDC6 power supply node, if present.
164 DCDC7 power supply node, if present.
168 DCDCA power supply node, if present.
172 DCDCB power supply node, if present.
176 DCDCC power supply node, if present.
180 DCDCD power supply node, if present.
184 DCDCE power supply node, if present.
188 LDO1 power supply node, if present.
192 LDO2 and LDO4 power supply node, if present.
196 LDO3 power supply node, if present.
200 LDO5 power supply node, if present.
204 ALDO* power supply node, if present.
208 BLDO* power supply node, if present.
212 CLDO* power supply node, if present.
216 DLDO* power supply node, if present.
220 ELDO* power supply node, if present.
224 FLDO* power supply node, if present.
228 LDO_IO0, LDO_IO1 and RTC_LDO power supply node, if present.
232 DRIVEVBUS power supply node, if present.
236 SW power supply node, if present.
239 $ref: /schemas/iio/adc/x-powers,axp209-adc.yaml#
242 $ref: /schemas/gpio/x-powers,axp209-gpio.yaml#
245 $ref: /schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#
248 $ref: /schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
251 $ref: /schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#
258 $ref: /schemas/types.yaml#/definitions/uint32
260 Defines the work frequency of DC-DC in kHz.
263 "^(([a-f])?ldo[0-9]|dcdc[0-7a-e]|ldo(_|-)io(0|1)|(dc1)?sw|rtc(_|-)ldo|drivevbus|dc5ldo)$":
264 $ref: /schemas/regulator/regulator.yaml#
266 unevaluatedProperties: false
269 regulator-ramp-delay:
271 Only 800 and 1600 are valid for the DCDC2 and LDO3 regulators on
274 regulator-soft-start:
276 Only valid for the LDO3 regulator.
278 x-powers,dcdc-workmode:
279 $ref: /schemas/types.yaml#/definitions/uint32
282 Only valid for DCDC regulators. Setup 1 for PWM mode, 0
283 for AUTO (PWM/PFM) mode. The DCDC regulators work in a
284 mixed PWM/PFM mode, using PFM under light loads and
285 switching to PWM for heavier loads. Forcing PWM mode
286 trades efficiency under light loads for lower output
287 noise. This probably makes sense for HiFi audio related
288 applications that aren't battery constrained.
290 additionalProperties: false
296 - interrupt-controller
298 additionalProperties: false
303 #address-cells = <1>;
307 compatible = "x-powers,axp152";
310 interrupt-controller;
311 #interrupt-cells = <1>;
316 #include <dt-bindings/interrupt-controller/irq.h>
319 #address-cells = <1>;
323 compatible = "x-powers,axp209";
325 interrupt-parent = <&nmi_intc>;
326 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
327 interrupt-controller;
328 #interrupt-cells = <1>;
330 ac_power_supply: ac-power {
331 compatible = "x-powers,axp202-ac-power-supply";
335 compatible = "x-powers,axp209-adc";
336 #io-channel-cells = <1>;
340 compatible = "x-powers,axp209-gpio";
350 battery_power_supply: battery-power {
351 compatible = "x-powers,axp209-battery-power-supply";
355 /* Default work frequency for buck regulators */
356 x-powers,dcdc-freq = <1500>;
360 regulator-min-microvolt = <1000000>;
361 regulator-max-microvolt = <1450000>;
362 regulator-name = "vdd-cpu";
367 regulator-min-microvolt = <1000000>;
368 regulator-max-microvolt = <1400000>;
369 regulator-name = "vdd-int-dll";
373 /* LDO1 is a fixed output regulator */
375 regulator-min-microvolt = <1300000>;
376 regulator-max-microvolt = <1300000>;
377 regulator-name = "vdd-rtc";
382 regulator-min-microvolt = <3000000>;
383 regulator-max-microvolt = <3000000>;
384 regulator-name = "avcc";
388 regulator-name = "ldo3";
392 regulator-name = "ldo4";
396 regulator-name = "ldo5";
400 usb_power_supply: usb-power {
401 compatible = "x-powers,axp202-usb-power-supply";