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 Device Tree Bindings
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,axp805
97 - const: x-powers,axp806
99 - const: x-powers,axp305
100 - const: x-powers,axp805
101 - const: x-powers,axp806
103 - const: x-powers,axp818
104 - const: x-powers,axp813
112 interrupt-controller: true
117 x-powers,drive-vbus-en:
120 Set this when the N_VBUSEN pin is used as an output pin to control an
121 external regulator to drive the OTG VBus, rather then as an input pin
122 which signals whether the board is driving OTG VBus or not.
124 x-powers,self-working-mode:
127 Set this when the PMIC is wired for self-working mode through the MODESET
130 x-powers,master-mode:
133 Set this when the PMIC is wired for master mode through the MODESET pin.
137 DCDC1 power supply node, if present.
141 DCDC2 power supply node, if present.
145 DCDC3 power supply node, if present.
149 DCDC4 power supply node, if present.
153 DCDC5 power supply node, if present.
157 DCDC6 power supply node, if present.
161 DCDC7 power supply node, if present.
165 DCDCA power supply node, if present.
169 DCDCB power supply node, if present.
173 DCDCC power supply node, if present.
177 DCDCD power supply node, if present.
181 DCDCE power supply node, if present.
185 LDO1 power supply node, if present.
189 LDO2 and LDO4 power supply node, if present.
193 LDO3 power supply node, if present.
197 LDO5 power supply node, if present.
201 ALDO* power supply node, if present.
205 BLDO* power supply node, if present.
209 CLDO* power supply node, if present.
213 DLDO* power supply node, if present.
217 ELDO* power supply node, if present.
221 FLDO* power supply node, if present.
225 LDO_IO0, LDO_IO1 and RTC_LDO power supply node, if present.
229 DRIVEVBUS power supply node, if present.
233 SW power supply node, if present.
236 $ref: /schemas/iio/adc/x-powers,axp209-adc.yaml#
239 $ref: /schemas/gpio/x-powers,axp209-gpio.yaml#
242 $ref: /schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#
245 $ref: /schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
248 $ref: /schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#
255 $ref: /schemas/types.yaml#/definitions/uint32
257 Defines the work frequency of DC-DC in kHz.
260 "^(([a-f])?ldo[0-9]|dcdc[0-7a-e]|ldo(_|-)io(0|1)|(dc1)?sw|rtc(_|-)ldo|drivevbus|dc5ldo)$":
261 $ref: /schemas/regulator/regulator.yaml#
265 regulator-ramp-delay:
267 Only 800 and 1600 are valid for the DCDC2 and LDO3 regulators on
270 regulator-soft-start:
272 Only valid for the LDO3 regulator.
274 x-powers,dcdc-workmode:
275 $ref: /schemas/types.yaml#/definitions/uint32
278 Only valid for DCDC regulators. Setup 1 for PWM mode, 0
279 for AUTO (PWM/PFM) mode. The DCDC regulators work in a
280 mixed PWM/PFM mode, using PFM under light loads and
281 switching to PWM for heavier loads. Forcing PWM mode
282 trades efficiency under light loads for lower output
283 noise. This probably makes sense for HiFi audio related
284 applications that aren't battery constrained.
286 additionalProperties: false
292 - interrupt-controller
294 additionalProperties: false
299 #address-cells = <1>;
303 compatible = "x-powers,axp152";
306 interrupt-controller;
307 #interrupt-cells = <1>;
312 #include <dt-bindings/interrupt-controller/irq.h>
315 #address-cells = <1>;
319 compatible = "x-powers,axp209";
321 interrupt-parent = <&nmi_intc>;
322 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
323 interrupt-controller;
324 #interrupt-cells = <1>;
326 ac_power_supply: ac-power {
327 compatible = "x-powers,axp202-ac-power-supply";
331 compatible = "x-powers,axp209-adc";
332 #io-channel-cells = <1>;
336 compatible = "x-powers,axp209-gpio";
346 battery_power_supply: battery-power {
347 compatible = "x-powers,axp209-battery-power-supply";
351 /* Default work frequency for buck regulators */
352 x-powers,dcdc-freq = <1500>;
356 regulator-min-microvolt = <1000000>;
357 regulator-max-microvolt = <1450000>;
358 regulator-name = "vdd-cpu";
363 regulator-min-microvolt = <1000000>;
364 regulator-max-microvolt = <1400000>;
365 regulator-name = "vdd-int-dll";
369 /* LDO1 is a fixed output regulator */
371 regulator-min-microvolt = <1300000>;
372 regulator-max-microvolt = <1300000>;
373 regulator-name = "vdd-rtc";
378 regulator-min-microvolt = <3000000>;
379 regulator-max-microvolt = <3000000>;
380 regulator-name = "avcc";
384 regulator-name = "ldo3";
388 regulator-name = "ldo4";
392 regulator-name = "ldo5";
396 usb_power_supply: usb-power {
397 compatible = "x-powers,axp202-usb-power-supply";