Texas Instruments TWL family

Schema identifier ($id): "http://devicetree.org/schemas/mfd/ti,twl.yaml#"

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

Maintainers (maintainers): "Andreas Kemnade <andreas@kemnade.info>"

The TWLs are Integrated Power Management Chips. Some versions might contain much more analog functions like USB transceiver or Audio amplifier. These chips are connected to an I2C bus.

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)

Exact value (const): "ti,twl4030"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^regulator- — name matches this regular expression

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "ti,twl4030-vaux1", "ti,twl4030-vaux2", "ti,twl4030-vaux3", "ti,twl4030-vaux4", "ti,twl4030-vmmc1", "ti,twl4030-vmmc2", "ti,twl4030-vpll1", "ti,twl4030-vpll2", "ti,twl4030-vsim", "ti,twl4030-vdac", "ti,twl4030-vintana2", "ti,twl4030-vio", "ti,twl4030-vdd1", "ti,twl4030-vdd2", "ti,twl4030-vintana1", "ti,twl4030-vintdig", "ti,twl4030-vusb1v5", "ti,twl4030-vusb1v8", "ti,twl4030-vusb3v1"

ti,retain-on-reset — not listed as required here

false — Not permitted by this property rule.

Properties and child nodes (properties)

charger — not listed as required here

Shared schema rule ($ref): /schemas/power/supply/twl4030-charger.yaml

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

gpadc — not listed as required here

false — Not permitted by this property rule.

pwrbutton — not listed as required here

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "ti,twl4030-pwrbutton"

interrupts — not listed as required here

Array item rules (items)

Item 1

Array item rules (items)

Exact value (const): 8

usb-comparator — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,twl6030"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^regulator- — name matches this regular expression

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "ti,twl6030-vaux1", "ti,twl6030-vaux2", "ti,twl6030-vaux3", "ti,twl6030-vmmc", "ti,twl6030-vpp", "ti,twl6030-vusim", "ti,twl6030-vana", "ti,twl6030-vcxio", "ti,twl6030-vdac", "ti,twl6030-vusb", "ti,twl6030-v1v8", "ti,twl6030-v2v1", "ti,twl6030-vdd1", "ti,twl6030-vdd2", "ti,twl6030-vdd3"

regulator-initial-mode — not listed as required here

false — Not permitted by this property rule.

Properties and child nodes (properties)

charger — not listed as required here

Shared schema rule ($ref): /schemas/power/supply/ti,twl6030-charger.yaml

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

gpadc — not listed as required here

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "ti,twl6030-gpadc"

pwrbutton — not listed as required here

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "ti,twl6030-pwrbutton"

interrupts — not listed as required here

Array item rules (items)

Item 1

Array item rules (items)

Exact value (const): 0

madc — not listed as required here

false — Not permitted by this property rule.

watchdog — not listed as required here

false — Not permitted by this property rule.

audio — not listed as required here

false — Not permitted by this property rule.

keypad — not listed as required here

false — Not permitted by this property rule.

twl4030-usb — not listed as required here

false — Not permitted by this property rule.

gpio — not listed as required here

false — Not permitted by this property rule.

power — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,twl6032"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^regulator- — name matches this regular expression

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "ti,twl6032-ldo1", "ti,twl6032-ldo2", "ti,twl6032-ldo3", "ti,twl6032-ldo4", "ti,twl6032-ldo5", "ti,twl6032-ldo6", "ti,twl6032-ldo7", "ti,twl6032-ldoln", "ti,twl6032-ldousb", "ti,twl6032-smps3", "ti,twl6032-smps4", "ti,twl6032-vio"

regulator-initial-mode — not listed as required here

false — Not permitted by this property rule.

Properties and child nodes (properties)

charger — not listed as required here

Shared schema rule ($ref): /schemas/power/supply/ti,twl6030-charger.yaml

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

gpadc — not listed as required here

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "ti,twl6032-gpadc"

pwrbutton — not listed as required here

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "ti,twl6030-pwrbutton"

interrupts — not listed as required here

Array item rules (items)

Item 1

Array item rules (items)

Exact value (const): 0

madc — not listed as required here

false — Not permitted by this property rule.

watchdog — not listed as required here

false — Not permitted by this property rule.

audio — not listed as required here

false — Not permitted by this property rule.

keypad — not listed as required here

false — Not permitted by this property rule.

twl4030-usb — not listed as required here

false — Not permitted by this property rule.

gpio — not listed as required here

false — Not permitted by this property rule.

power — not listed as required here

false — Not permitted by this property rule.

Properties and child nodes (properties) #

compatible — required here #

TWL4030 for integrated power-management/audio CODEC device used in OMAP3 based boards. TWL6030/32 for integrated power-management used in OMAP4 based boards

Allowed values (enum): "ti,twl4030", "ti,twl6030", "ti,twl6032"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

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

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 1

#clock-cells — not listed as required here #

Exact value (const): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "fck"

charger — not listed as required here #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

true — No constraints added by this property rule.

Required in this object (required): "compatible"

rtc — 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 — not listed as required here

Exact value (const): "ti,twl4030-rtc"

interrupts — not listed as required here

Maximum number of items (maxItems): 1

madc — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/iio/adc/ti,twl4030-madc.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

pwrbutton — 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 — not listed as required here

Allowed values (enum): "ti,twl4030-pwrbutton", "ti,twl6030-pwrbutton"

interrupts — not listed as required here

Maximum number of items (maxItems): 1

watchdog — 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 — not listed as required here

Exact value (const): "ti,twl4030-wdt"

audio — not listed as required here #

Value type (type): "object"

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

true

Allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "ti,twl4030-audio"

Required in this object (required): "compatible"

keypad — not listed as required here #

Value type (type): "object"

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

true

Allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "ti,twl4030-keypad"

Required in this object (required): "compatible"

twl4030-usb — not listed as required here #

Value type (type): "object"

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

true

Allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "ti,twl4030-usb"

Required in this object (required): "compatible"

gpio — not listed as required here #

Value type (type): "object"

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

true

Allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "ti,twl4030-gpio"

Required in this object (required): "compatible"

power — 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.

The power management module inside the TWL4030 provides several facilities to control the power resources, including power scripts. For now, the binding only supports the complete shutdown of the system after poweroff. Board-specific compatible strings may be used for platform-specific power configurations. A board-specific compatible string (e.g., ti,twl4030-power-omap3-evm) may be paired with a generic fallback (generally for power saving mode).

Properties and child nodes (properties) #

compatible — required here

Exactly one of these rules must match (oneOf)

Rule 1

Allowed values (enum): "ti,twl4030-power", "ti,twl4030-power-reset", "ti,twl4030-power-idle", "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-omap3-sdp", "ti,twl4030-power-omap3-ldp", "ti,twl4030-power-omap3-evm"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ti,twl4030-power-idle-osc-off"

Item 2

Exact value (const): "ti,twl4030-power-idle"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "ti,twl4030-power-omap3-evm"

Item 2

Exact value (const): "ti,twl4030-power-idle"

ti,system-power-controller — not listed as required here

Value type (type): "boolean"

Deprecated (deprecated): true

DEPRECATED. The standard 'system-power-controller' property on the parent node should be used instead.

ti,use_poweroff — not listed as required here

Value type (type): "boolean"

Deprecated (deprecated): true

DEPRECATED, to be removed.

Required in this object (required): "compatible"

gpadc — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/iio/adc/ti,twl6030-gpadc.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — not listed as required here

true — No constraints added by this property rule.

usb-comparator — not listed as required here #

Value type (type): "object"

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

true

Allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "ti,twl6030-usb"

Required in this object (required): "compatible"

pwm — not listed as required here #

Value type (type): "object"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

PWM controllers (PWM1 and PWM2 on TWL4030, PWM0 and PWM1 on TWL6030/32).

Properties and child nodes (properties) #

compatible — required here

Allowed values (enum): "ti,twl4030-pwm", "ti,twl6030-pwm"

#pwm-cells — required here

Exact value (const): 2

Required in this object (required): "compatible", "#pwm-cells"

pwmled — not listed as required here #

Value type (type): "object"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

PWM controllers connected to LED terminals (PWMA and PWMB on TWL4030. LED PWM on TWL6030/32, mainly used as charging indicator LED).

Properties and child nodes (properties) #

compatible — required here

Allowed values (enum): "ti,twl4030-pwmled", "ti,twl6030-pwmled"

#pwm-cells — required here

Exact value (const): 2

Required in this object (required): "compatible", "#pwm-cells"

Properties matching a name pattern (patternProperties) #

^regulator- — name matches this regular expression #

Value type (type): "object"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

Properties and child nodes (properties) #

compatible — not listed as required here

true — No constraints added by this property rule.

regulator-initial-mode — not listed as required here

Allowed values (enum): 8, 14

ti,retain-on-reset — not listed as required here

Does not turn off the supplies during warm reset. Could be needed for VMMC, as TWL6030 reset sequence for this signal does not comply with the SD specification.

Value type (type): "boolean"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

Examples (examples) #

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

  pmic@48 {
    compatible = "ti,twl6030";
    reg = <0x48>;
    interrupts = <39>; /* IRQ_SYS_1N cascaded to gic */
    interrupt-parent = <&gic>;
    interrupt-controller;
    #interrupt-cells = <1>;

    charger {
      compatible = "ti,twl6030-charger";
      interrupts = <2>, <5>;
      io-channels = <&gpadc 10>;
      io-channel-names = "vusb";
      monitored-battery = <&bat>;
    };

    gpadc {
      compatible = "ti,twl6030-gpadc";
      interrupts = <6>;
      #io-channel-cells = <1>;
    };

    pwrbutton {
      compatible = "ti,twl6030-pwrbutton";
      interrupts = <0>;
    };

    rtc {
      compatible = "ti,twl4030-rtc";
      interrupts = <8>;
    };

    regulator-vaux1 {
      compatible = "ti,twl6030-vaux1";
      regulator-min-microvolt = <1000000>;
      regulator-max-microvolt = <3000000>;
    };

    regulator-vmmc1 {
      compatible = "ti,twl6030-vmmc";
      ti,retain-on-reset;
    };

    pwm {
      compatible = "ti,twl6030-pwm";
      #pwm-cells = <2>;
    };

    pwmled {
      compatible = "ti,twl6030-pwmled";
      #pwm-cells = <2>;
    };
  };
};
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  pmic@48 {
    compatible = "ti,twl4030";
    reg = <0x48>;
    interrupts = <7>; /* SYS_NIRQ cascaded to intc */
    interrupt-parent = <&intc>;
    interrupt-controller;
    #interrupt-cells = <1>;

    charger {
      compatible = "ti,twl4030-bci";
      interrupts = <9>, <2>;
      bci3v1-supply = <&vusb3v1>;
      io-channels = <&twl_madc 11>;
      io-channel-names = "vac";
    };

    twl_madc: madc {
      compatible = "ti,twl4030-madc";
      interrupts = <3>;
      #io-channel-cells = <1>;
    };

    pwrbutton {
      compatible = "ti,twl4030-pwrbutton";
      interrupts = <8>;
    };

    rtc {
      compatible = "ti,twl4030-rtc";
      interrupts = <11>;
    };

    regulator-vaux1 {
      compatible = "ti,twl4030-vaux1";
      regulator-min-microvolt = <1000000>;
      regulator-max-microvolt = <3000000>;
      regulator-initial-mode = <0xe>;
    };

    vusb3v1: regulator-vusb3v1 {
      compatible = "ti,twl4030-vusb3v1";
    };

    watchdog {
      compatible = "ti,twl4030-wdt";
    };

    power {
      compatible = "ti,twl4030-power";
    };

    pwm {
      compatible = "ti,twl4030-pwm";
      #pwm-cells = <2>;
    };

    pwmled {
      compatible = "ti,twl4030-pwmled";
      #pwm-cells = <2>;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Line 329: Case 1: A single compatible string is provided.

Line 339: Case 2: The specific, valid fallback for 'idle-osc-off'.

Line 344: Case 3: The specific, valid fallback for 'omap3-evm'.

Line 435: Sleep mode, the nominal output voltage is maintained

Line 436: with low power consumption with low load current capability

Line 437: Active mode, the regulator can deliver its nominal output

Line 438: voltage with full-load current capability

Edit this page