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>
51 x-powers,drive-vbus-en: false
58 const: x-powers,axp806
62 x-powers,self-working-mode: false
63 x-powers,master-mode: false
89 x-powers,dcdc-freq: false
108 - const: x-powers,axp228
109 - const: x-powers,axp221
111 - const: x-powers,axp805
112 - const: x-powers,axp806
114 - const: x-powers,axp305
115 - const: x-powers,axp805
116 - const: x-powers,axp806
118 - const: x-powers,axp818
119 - const: x-powers,axp813
127 interrupt-controller: true
132 x-powers,drive-vbus-en:
135 Set this when the N_VBUSEN pin is used as an output pin to control an
136 external regulator to drive the OTG VBus, rather then as an input pin
137 which signals whether the board is driving OTG VBus or not.
139 x-powers,self-working-mode:
142 Set this when the PMIC is wired for self-working mode through the MODESET
145 x-powers,master-mode:
148 Set this when the PMIC is wired for master mode through the MODESET pin.
152 DCDC1 power supply node, if present.
156 DCDC2 power supply node, if present.
160 DCDC3 power supply node, if present.
164 DCDC4 power supply node, if present.
168 DCDC5 power supply node, if present.
172 DCDC6 power supply node, if present.
176 DCDC7 power supply node, if present.
180 DCDCA power supply node, if present.
184 DCDCB power supply node, if present.
188 DCDCC power supply node, if present.
192 DCDCD power supply node, if present.
196 DCDCE power supply node, if present.
200 LDO1 power supply node, if present.
204 LDO2 and LDO4 power supply node, if present.
208 LDO3 power supply node, if present.
212 LDO5 power supply node, if present.
216 ALDO* power supply node, if present.
220 BLDO* power supply node, if present.
224 CLDO* power supply node, if present.
228 DLDO* power supply node, if present.
232 ELDO* power supply node, if present.
236 FLDO* power supply node, if present.
240 LDO_IO0, LDO_IO1 and RTC_LDO power supply node, if present.
244 DRIVEVBUS power supply node, if present.
248 SW power supply node, if present.
251 $ref: /schemas/iio/adc/x-powers,axp209-adc.yaml#
254 $ref: /schemas/gpio/x-powers,axp209-gpio.yaml#
257 $ref: /schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#
260 $ref: /schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
263 $ref: /schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#
270 $ref: /schemas/types.yaml#/definitions/uint32
272 Defines the work frequency of DC-DC in kHz.
275 "^(([a-f])?ldo[0-9]|dcdc[0-7a-e]|ldo(_|-)io(0|1)|(dc1)?sw|rtc(_|-)ldo|cpusldo|drivevbus|dc5ldo)$":
276 $ref: /schemas/regulator/regulator.yaml#
278 unevaluatedProperties: false
281 regulator-ramp-delay:
283 Only 800 and 1600 are valid for the DCDC2 and LDO3 regulators on
286 regulator-soft-start:
288 Only valid for the LDO3 regulator.
290 x-powers,dcdc-workmode:
291 $ref: /schemas/types.yaml#/definitions/uint32
294 Only valid for DCDC regulators. Setup 1 for PWM mode, 0
295 for AUTO (PWM/PFM) mode. The DCDC regulators work in a
296 mixed PWM/PFM mode, using PFM under light loads and
297 switching to PWM for heavier loads. Forcing PWM mode
298 trades efficiency under light loads for lower output
299 noise. This probably makes sense for HiFi audio related
300 applications that aren't battery constrained.
302 additionalProperties: false
308 - interrupt-controller
310 additionalProperties: false
315 #address-cells = <1>;
319 compatible = "x-powers,axp152";
322 interrupt-controller;
323 #interrupt-cells = <1>;
328 #include <dt-bindings/interrupt-controller/irq.h>
331 #address-cells = <1>;
335 compatible = "x-powers,axp209";
337 interrupt-parent = <&nmi_intc>;
338 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
339 interrupt-controller;
340 #interrupt-cells = <1>;
342 ac_power_supply: ac-power {
343 compatible = "x-powers,axp202-ac-power-supply";
347 compatible = "x-powers,axp209-adc";
348 #io-channel-cells = <1>;
352 compatible = "x-powers,axp209-gpio";
362 battery_power_supply: battery-power {
363 compatible = "x-powers,axp209-battery-power-supply";
367 /* Default work frequency for buck regulators */
368 x-powers,dcdc-freq = <1500>;
372 regulator-min-microvolt = <1000000>;
373 regulator-max-microvolt = <1450000>;
374 regulator-name = "vdd-cpu";
379 regulator-min-microvolt = <1000000>;
380 regulator-max-microvolt = <1400000>;
381 regulator-name = "vdd-int-dll";
385 /* LDO1 is a fixed output regulator */
387 regulator-min-microvolt = <1300000>;
388 regulator-max-microvolt = <1300000>;
389 regulator-name = "vdd-rtc";
394 regulator-min-microvolt = <3000000>;
395 regulator-max-microvolt = <3000000>;
396 regulator-name = "avcc";
400 regulator-name = "ldo3";
404 regulator-name = "ldo4";
408 regulator-name = "ldo5";
412 usb_power_supply: usb-power {
413 compatible = "x-powers,axp202-usb-power-supply";