Active-semi ACT8945a regulator

Schema identifier ($id): "http://devicetree.org/schemas/regulator/active-semi,act8945a.yaml#"

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

Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "active-semi,act8945a"

reg — required here #

Maximum number of items (maxItems): 1

system-power-controller — not listed as required here #

Indicates that the ACT8945a is responsible for powering OFF the system.

Value type (type): "boolean"

active-semi,vsel-high — not listed as required here #

Indicates the VSEL pin is high. If this property is missing, the VSEL pin is assumed to be low.

Value type (type): "boolean"

regulators — required here #

Value type (type): "object"

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

REG_DCDC1 — not listed as required here

Value type (type): "object"

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

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

vp1-supply — not listed as required here

Handle to the VP1 input supply

REG_DCDC2 — not listed as required here

Value type (type): "object"

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

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

vp2-supply — not listed as required here

Handle to the VP2 input supply

REG_DCDC3 — not listed as required here

Value type (type): "object"

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

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

vp3-supply — not listed as required here

Handle to the VP3 input supply

Properties matching a name pattern (patternProperties) #

^REG_LDO[1-2]$ — name matches this regular expression

Value type (type): "object"

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

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

inl45-supply — not listed as required here

Handle to the INL45 input supply

^REG_LDO[3-4]$ — name matches this regular expression

Value type (type): "object"

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

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

inl67-supply — not listed as required here

Handle to the INL67 input supply

charger — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "active-semi,act8945a-charger"

interrupts — required here

Maximum number of items (maxItems): 1

active-semi,chglev-gpios — required here

charge current level GPIO

Maximum number of items (maxItems): 1

active-semi,lbo-gpios — required here

low battery voltage detect GPIO

Maximum number of items (maxItems): 1

active-semi,input-voltage-threshold-microvolt — not listed as required here

Specifies the charger's input over-voltage threshold value. Despite the name, specified values are in millivolt (mV).

Allowed values (enum): 6600, 7000, 7500, 8000

Default value (default): 6600

active-semi,precondition-timeout — not listed as required here

Specifies the charger's PRECONDITION safety timer setting value in minutes. If 0, it means to disable this timer.

Allowed values (enum): 0, 40, 60, 80

Default value (default): 40

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

active-semi,total-timeout — not listed as required here

Specifies the charger's total safety timer setting value in hours; If 0, it means to disable this timer;

Allowed values (enum): 0, 3, 4, 5

Default value (default): 3

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

Required in this object (required): "compatible", "interrupts", "active-semi,chglev-gpios", "active-semi,lbo-gpios"

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

false

Not allowed by this rule.

Required in this object (required): "reg", "compatible", "regulators"

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/mfd/atmel-flexcom.h>
#include <dt-bindings/regulator/active-semi,8945a-regulator.h>

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

  pmic@5b {
    compatible = "active-semi,act8945a";
    reg = <0x5b>;
    active-semi,vsel-high;

    regulators {
      REG_DCDC1 {
        regulator-name = "VDD_1V35";
        regulator-min-microvolt = <1350000>;
        regulator-max-microvolt = <1350000>;
        regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
                                  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
        regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
        regulator-always-on;

        regulator-state-mem {
          regulator-on-in-suspend;
          regulator-suspend-min-microvolt = <1400000>;
          regulator-suspend-max-microvolt = <1400000>;
          regulator-changeable-in-suspend;
          regulator-mode = <ACT8945A_REGULATOR_MODE_LOWPOWER>;
        };
      };

      REG_DCDC2 {
        regulator-name = "VDD_1V2";
        regulator-min-microvolt = <1100000>;
        regulator-max-microvolt = <1300000>;
        regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
                                  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
        regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };

      REG_DCDC3 {
        regulator-name = "VDD_3V3";
        regulator-min-microvolt = <3300000>;
        regulator-max-microvolt = <3300000>;
        regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
                                  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
        regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };

      REG_LDO1 {
        regulator-name = "VDD_FUSE";
        regulator-min-microvolt = <2500000>;
        regulator-max-microvolt = <2500000>;
        regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
                                  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
        regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };

      REG_LDO2 {
        regulator-name = "VDD_3V3_LP";
        regulator-min-microvolt = <3300000>;
        regulator-max-microvolt = <3300000>;
        regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
                                  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
        regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };

      REG_LDO3 {
        regulator-name = "VDD_LED";
        regulator-min-microvolt = <3300000>;
        regulator-max-microvolt = <3300000>;
        regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
                                  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
        regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };

      REG_LDO4 {
        regulator-name = "VDD_SDHC_1V8";
        regulator-min-microvolt = <1800000>;
        regulator-max-microvolt = <1800000>;
        regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
                                  <ACT8945A_REGULATOR_MODE_LOWPOWER>;
        regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };
    };

    charger {
      compatible = "active-semi,act8945a-charger";
      pinctrl-names = "default";
      pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
      interrupt-parent = <&pioA>;
      interrupts = <45 IRQ_TYPE_EDGE_RISING>;

      active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>;
      active-semi,lbo-gpios = <&pioA 72 GPIO_ACTIVE_LOW>;
      active-semi,input-voltage-threshold-microvolt = <6600>;
      active-semi,precondition-timeout = <40>;
      active-semi,total-timeout = <3>;
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page