X-Powers AXP PMIC

Schema identifier ($id): "http://devicetree.org/schemas/mfd/x-powers,axp152.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "x-powers,axp152", "x-powers,axp202", "x-powers,axp209"

When the condition matches (then) #

Properties and child nodes (properties)

regulators — not listed as required here

Properties and child nodes (properties)

x-powers,dcdc-freq — not listed as required here

Minimum value (minimum): 750

Maximum value (maximum): 1875

Default value (default): 1500

When the condition does not match (else) #

Properties and child nodes (properties)

regulators — not listed as required here

Properties and child nodes (properties)

x-powers,dcdc-freq — not listed as required here

Minimum value (minimum): 1800

Maximum value (maximum): 4050

Default value (default): 3000

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "x-powers,axp152", "x-powers,axp202", "x-powers,axp209"

When the condition matches (then) #

Properties and child nodes (properties)

x-powers,drive-vbus-en — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "x-powers,axp806"

When the condition matches (then) #

Properties and child nodes (properties)

x-powers,self-working-mode — not listed as required here

false — Not permitted by this property rule.

x-powers,master-mode — not listed as required here

false — Not permitted by this property rule.

Rule 4 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "x-powers,axp15060", "x-powers,axp305", "x-powers,axp313a", "x-powers,axp323"

When the condition matches (then) #

Required in this object (required): "interrupts"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "x-powers,axp313a", "x-powers,axp323", "x-powers,axp15060", "x-powers,axp717"

When the condition matches (then) #

Properties and child nodes (properties)

x-powers,dcdc-freq — not listed as required here

false — Not permitted by this property rule.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "x-powers,axp152", "x-powers,axp192", "x-powers,axp202", "x-powers,axp209", "x-powers,axp221", "x-powers,axp223", "x-powers,axp313a", "x-powers,axp323", "x-powers,axp717", "x-powers,axp803", "x-powers,axp806", "x-powers,axp809", "x-powers,axp813", "x-powers,axp15060"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "x-powers,axp228"

Item 2

Exact value (const): "x-powers,axp221"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "x-powers,axp805"

Item 2

Exact value (const): "x-powers,axp806"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "x-powers,axp305"

Item 2

Exact value (const): "x-powers,axp805"

Item 3

Exact value (const): "x-powers,axp806"

Rule 5

Array item rules (items)

Item 1

Exact value (const): "x-powers,axp818"

Item 2

Exact value (const): "x-powers,axp813"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 1

x-powers,drive-vbus-en — not listed as required here #

Value type (type): "boolean"

Set this when the N_VBUSEN pin is used as an output pin to control an external regulator to drive the OTG VBus, rather then as an input pin which signals whether the board is driving OTG VBus or not.

x-powers,self-working-mode — not listed as required here #

Value type (type): "boolean"

Set this when the PMIC is wired for self-working mode through the MODESET pin.

x-powers,master-mode — not listed as required here #

Value type (type): "boolean"

Set this when the PMIC is wired for master mode through the MODESET pin.

vin1-supply — not listed as required here #

DCDC1 power supply node, if present.

vin2-supply — not listed as required here #

DCDC2 power supply node, if present.

vin3-supply — not listed as required here #

DCDC3 power supply node, if present.

vin4-supply — not listed as required here #

DCDC4 power supply node, if present.

vin5-supply — not listed as required here #

DCDC5 power supply node, if present.

vin6-supply — not listed as required here #

DCDC6 power supply node, if present.

vin7-supply — not listed as required here #

DCDC7 power supply node, if present.

vina-supply — not listed as required here #

DCDCA power supply node, if present.

vinb-supply — not listed as required here #

DCDCB power supply node, if present.

vinc-supply — not listed as required here #

DCDCC power supply node, if present.

vind-supply — not listed as required here #

DCDCD power supply node, if present.

vine-supply — not listed as required here #

DCDCE power supply node, if present.

acin-supply — not listed as required here #

LDO1 power supply node, if present.

ldo24in-supply — not listed as required here #

LDO2 and LDO4 power supply node, if present.

ldo3in-supply — not listed as required here #

LDO3 power supply node, if present.

ldo5in-supply — not listed as required here #

LDO5 power supply node, if present.

aldoin-supply — not listed as required here #

ALDO* power supply node, if present.

bldoin-supply — not listed as required here #

BLDO* power supply node, if present.

cldoin-supply — not listed as required here #

CLDO* power supply node, if present.

dldoin-supply — not listed as required here #

DLDO* power supply node, if present.

eldoin-supply — not listed as required here #

ELDO* power supply node, if present.

fldoin-supply — not listed as required here #

FLDO* power supply node, if present.

ips-supply — not listed as required here #

LDO_IO0, LDO_IO1 and RTC_LDO power supply node, if present.

drivevbus-supply — not listed as required here #

DRIVEVBUS power supply node, if present.

swin-supply — not listed as required here #

SW power supply node, if present.

adc — not listed as required here #

Shared schema rule ($ref): /schemas/iio/adc/x-powers,axp209-adc.yaml#

gpio — not listed as required here #

Shared schema rule ($ref): /schemas/gpio/x-powers,axp209-gpio.yaml#

ac-power — not listed as required here #

Shared schema rule ($ref): /schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#

battery-power — not listed as required here #

Shared schema rule ($ref): /schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#

usb-power — not listed as required here #

Shared schema rule ($ref): /schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#

regulators — not listed as required here #

Value type (type): "object"

Properties and child nodes (properties) #

x-powers,dcdc-freq — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Defines the work frequency of DC-DC in kHz.

Properties matching a name pattern (patternProperties) #

^(([a-f])?ldo[0-9]|dcdc[0-7a-e]|ldo(_|-)io(0|1)|(dc1)?sw|rtc(_|-)ldo|cpusldo|drivevbus|dc5ldo|boost)$ — name matches this regular expression

Shared schema rule ($ref): /schemas/regulator/regulator.yaml#

Value type (type): "object"

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

regulator-ramp-delay — not listed as required here

Only 800 and 1600 are valid for the DCDC2 and LDO3 regulators on the AXP209.

regulator-soft-start — not listed as required here

Only valid for the LDO3 regulator.

x-powers,dcdc-workmode — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Only valid for DCDC regulators. Setup 1 for PWM mode, 0 for AUTO (PWM/PFM) mode. The DCDC regulators work in a mixed PWM/PFM mode, using PFM under light loads and switching to PWM for heavier loads. Forcing PWM mode trades efficiency under light loads for lower output noise. This probably makes sense for HiFi audio related applications that aren't battery constrained.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "#interrupt-cells", "interrupt-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    pmic@30 {
        compatible = "x-powers,axp152";
        reg = <0x30>;
        interrupts = <0>;
        interrupt-controller;
        #interrupt-cells = <1>;
    };
};
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    pmic@34 {
        compatible = "x-powers,axp209";
        reg = <0x34>;
        interrupt-parent = <&nmi_intc>;
        interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
        interrupt-controller;
        #interrupt-cells = <1>;

        ac_power_supply: ac-power {
            compatible = "x-powers,axp202-ac-power-supply";
        };

        axp_adc: adc {
            compatible = "x-powers,axp209-adc";
            #io-channel-cells = <1>;
        };

        axp_gpio: gpio {
            compatible = "x-powers,axp209-gpio";
            gpio-controller;
            #gpio-cells = <2>;

            gpio0-adc-pin {
                pins = "GPIO0";
                function = "adc";
            };
        };

        battery_power_supply: battery-power {
            compatible = "x-powers,axp209-battery-power-supply";
        };

        regulators {
            /* Default work frequency for buck regulators */
            x-powers,dcdc-freq = <1500>;

            reg_dcdc2: dcdc2 {
                regulator-always-on;
                regulator-min-microvolt = <1000000>;
                regulator-max-microvolt = <1450000>;
                regulator-name = "vdd-cpu";
            };

            reg_dcdc3: dcdc3 {
                regulator-always-on;
                regulator-min-microvolt = <1000000>;
                regulator-max-microvolt = <1400000>;
                regulator-name = "vdd-int-dll";
            };

            reg_ldo1: ldo1 {
                /* LDO1 is a fixed output regulator */
                regulator-always-on;
                regulator-min-microvolt = <1300000>;
                regulator-max-microvolt = <1300000>;
                regulator-name = "vdd-rtc";
            };

            reg_ldo2: ldo2 {
                regulator-always-on;
                regulator-min-microvolt = <3000000>;
                regulator-max-microvolt = <3000000>;
                regulator-name = "avcc";
            };

            reg_ldo3: ldo3 {
                regulator-name = "ldo3";
            };

            reg_ldo4: ldo4 {
                regulator-name = "ldo4";
            };

            reg_ldo5: ldo5 {
                regulator-name = "ldo5";
            };
        };

        usb_power_supply: usb-power {
            compatible = "x-powers,axp202-usb-power-supply";
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page