Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Power bindings

Single-page view · as markdown

Qualcomm Core Power Reduction (CPR)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / avs

Schema identifier ($id): "http://devicetree.org/schemas/power/avs/qcom,cpr.yaml#"

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

Maintainers (maintainers): "Niklas Cassel <nks@flawful.org>"

CPR (Core Power Reduction) is a technology to reduce core power on a CPU or other device. Each OPP of a device corresponds to a "corner" that has a range of valid voltages for a particular frequency. While the device is running at a particular frequency, CPR monitors dynamic factors such as temperature, etc. and suggests adjustments to the voltage to save power and meet silicon characteristic requirements.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "qcom,qcs404-cpr"

Item 2

Exact value (const): "qcom,cpr"

reg — required here #

Base address and size of the RBCPR register region.

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Reference clock.

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ref"

vdd-apc-supply — required here #

APC regulator supply.

#power-domain-cells — required here #

Exact value (const): 0

operating-points-v2 — required here #

A phandle to the OPP table containing the performance states supported by the CPR power domain.

acc-syscon — not listed as required here #

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

A phandle to the syscon used for writing ACC settings.

nvmem-cells — required here #

Array item rules (items) #

Item 1

Corner 1 quotient offset

Item 2

Corner 2 quotient offset

Item 3

Corner 3 quotient offset

Item 4

Corner 1 initial voltage

Item 5

Corner 2 initial voltage

Item 6

Corner 3 initial voltage

Item 7

Corner 1 quotient

Item 8

Corner 2 quotient

Item 9

Corner 3 quotient

Item 10

Corner 1 ring oscillator

Item 11

Corner 2 ring oscillator

Item 12

Corner 3 ring oscillator

Item 13

Fuse revision

nvmem-cell-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "cpr_quotient_offset1"

Item 2

Exact value (const): "cpr_quotient_offset2"

Item 3

Exact value (const): "cpr_quotient_offset3"

Item 4

Exact value (const): "cpr_init_voltage1"

Item 5

Exact value (const): "cpr_init_voltage2"

Item 6

Exact value (const): "cpr_init_voltage3"

Item 7

Exact value (const): "cpr_quotient1"

Item 8

Exact value (const): "cpr_quotient2"

Item 9

Exact value (const): "cpr_quotient3"

Item 10

Exact value (const): "cpr_ring_osc1"

Item 11

Exact value (const): "cpr_ring_osc2"

Item 12

Exact value (const): "cpr_ring_osc3"

Item 13

Exact value (const): "cpr_fuse_revision"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "vdd-apc-supply", "#power-domain-cells", "operating-points-v2", "nvmem-cells", "nvmem-cell-names"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

cpr_opp_table: opp-table-cpr {
    compatible = "operating-points-v2-qcom-level";

    cpr_opp1: opp1 {
        opp-level = <1>;
        qcom,opp-fuse-level = <1>;
    };
    cpr_opp2: opp2 {
        opp-level = <2>;
        qcom,opp-fuse-level = <2>;
    };
    cpr_opp3: opp3 {
        opp-level = <3>;
        qcom,opp-fuse-level = <3>;
    };
};

power-controller@b018000 {
    compatible = "qcom,qcs404-cpr", "qcom,cpr";
    reg = <0x0b018000 0x1000>;
    interrupts = <0 15 IRQ_TYPE_EDGE_RISING>;
    clocks = <&xo_board>;
    clock-names = "ref";
    vdd-apc-supply = <&pms405_s3>;
    #power-domain-cells = <0>;
    operating-points-v2 = <&cpr_opp_table>;
    acc-syscon = <&tcsr>;

    nvmem-cells = <&cpr_efuse_quot_offset1>,
        <&cpr_efuse_quot_offset2>,
        <&cpr_efuse_quot_offset3>,
        <&cpr_efuse_init_voltage1>,
        <&cpr_efuse_init_voltage2>,
        <&cpr_efuse_init_voltage3>,
        <&cpr_efuse_quot1>,
        <&cpr_efuse_quot2>,
        <&cpr_efuse_quot3>,
        <&cpr_efuse_ring1>,
        <&cpr_efuse_ring2>,
        <&cpr_efuse_ring3>,
        <&cpr_efuse_revision>;
    nvmem-cell-names = "cpr_quotient_offset1",
        "cpr_quotient_offset2",
        "cpr_quotient_offset3",
        "cpr_init_voltage1",
        "cpr_init_voltage2",
        "cpr_init_voltage3",
        "cpr_quotient1",
        "cpr_quotient2",
        "cpr_quotient3",
        "cpr_ring_osc1",
        "cpr_ring_osc2",
        "cpr_ring_osc3",
        "cpr_fuse_revision";
};

Source notes #

Annotations retained from the schema source

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

Apple SMC Reboot Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/apple,smc-reboot.yaml#"

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

The Apple System Management Controller (SMC) provides reboot functionality on Apple Silicon SoCs. It uses NVMEM cells to store and track various system state information related to boot, shutdown, and panic events.

Maintainers (maintainers): "Sven Peter <sven@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "apple,smc-reboot"

nvmem-cells — required here #

Array item rules (items) #

Item 1

Flag indicating shutdown (as opposed to reboot)

Item 2

Stage at which the boot process stopped (0x30 for normal boot)

Item 3

Counter for boot errors

Item 4

Counter for system panics

nvmem-cell-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "shutdown_flag"

Item 2

Exact value (const): "boot_stage"

Item 3

Exact value (const): "boot_error_count"

Item 4

Exact value (const): "panic_count"

Required in this object (required): "compatible", "nvmem-cells", "nvmem-cell-names"

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Microchip AT91 SHDWC Shutdown Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/atmel,at91sam9260-shdwc.yaml#"

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

Maintainers (maintainers): "Claudiu Beznea <claudiu.beznea@microchip.com>"

Microchip AT91 SHDWC shutdown controller controls the power supplies VDDIO and VDDCORE and the wake-up detection on debounced input lines.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "atmel,at91sam9260-shdwc", "atmel,at91sam9rl-shdwc", "atmel,at91sam9x5-shdwc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

atmel,wakeup-mode — not listed as required here #

operation mode of the wakeup mode

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

Allowed values (enum): "none", "high", "low", "any"

atmel,wakeup-counter — not listed as required here #

counter on wake-up 0

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

Minimum value (minimum): 0

Maximum value (maximum): 15

atmel,wakeup-rtt-timer — not listed as required here #

enable real-time timer wake-up

Value type (type): "boolean"

atmel,wakeup-rtc-timer — not listed as required here #

enable real-time clock wake-up

Value type (type): "boolean"

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

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): "atmel,at91sam9x5-shdwc"

When the condition matches (then) #

Properties and child nodes (properties)

atmel,wakeup-rtt-timer — 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): "atmel,at91sam9260-shdwc"

When the condition matches (then) #

Properties and child nodes (properties)

atmel,wakeup-rtc-timer — not listed as required here

false — Not permitted by this property rule.

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

false

Not allowed by this rule.

Examples (examples) #

shdwc: poweroff@fffffd10 {
    compatible = "atmel,at91sam9260-shdwc";
    reg = <0xfffffd10 0x10>;
    clocks = <&clk32k>;
};

Source notes #

Annotations retained from the schema source

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

Microchip AT91 SAMA5D2 SHDWC Shutdown Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/atmel,sama5d2-shdwc.yaml#"

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

Maintainers (maintainers): "Claudiu Beznea <claudiu.beznea@microchip.com>"

Microchip AT91 SHDWC shutdown controller controls the power supplies VDDIO and VDDCORE and the wake-up detection on debounced input lines.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "microchip,sama7d65-shdwc"

Item 2

Exact value (const): "microchip,sama7g5-shdwc"

Item 3

Exact value (const): "syscon"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "microchip,sama7g5-shdwc"

Item 2

Exact value (const): "syscon"

Rule 3

Allowed values (enum): "atmel,sama5d2-shdwc", "microchip,sam9x60-shdwc"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "microchip,sam9x7-shdwc"

Item 2

Exact value (const): "microchip,sam9x60-shdwc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

debounce-delay-us — not listed as required here #

Minimum wake-up inputs debouncer period in microseconds. It is usually a board-related property.

atmel,wakeup-rtc-timer — not listed as required here #

enable real-time clock wake-up

Value type (type): "boolean"

atmel,wakeup-rtt-timer — not listed as required here #

enable real-time timer wake-up

Value type (type): "boolean"

Properties matching a name pattern (patternProperties) #

^input@[0-15]$ — name matches this regular expression #

Wake-up input nodes. These are usually described in the "board" part of the Device Tree. Note also that input 0 is linked to the wake-up pin and is frequently used.

Value type (type): "object"

Properties and child nodes (properties) #

reg — required here

contains the wake-up input index

Minimum value (minimum): 0

Maximum value (maximum): 15

atmel,wakeup-active-high — not listed as required here

The corresponding wake-up input described by the child forces the wake-up of the core power supply on a high level. The default is to be active low.

Value type (type): "boolean"

Required in this object (required): "reg"

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

false

Not allowed by this rule.

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

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): "atmel,sama5d2-shdwc"

When the condition matches (then) #

Properties and child nodes (properties)

atmel,wakeup-rtt-timer — not listed as required here

false — Not permitted by this property rule.

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

false

Not allowed by this rule.

Examples (examples) #

shdwc: poweroff@f8048010 {
    compatible = "atmel,sama5d2-shdwc";
    reg = <0xf8048010 0x10>;
    clocks = <&clk32k>;
    #address-cells = <1>;
    #size-cells = <0>;
    atmel,wakeup-rtc-timer;
    debounce-delay-us = <976>;

    input@0 {
        reg = <0>;
    };

    input@1 {
        reg = <1>;
        atmel,wakeup-active-high;
    };
};

Source notes #

Annotations retained from the schema source

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

Broadcom Kona family reset manager

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/brcm,bcm21664-resetmgr.yaml#"

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

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,bcm21664-resetmgr"

reg — required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

reset-controller@35001f00 {
    compatible = "brcm,bcm21664-resetmgr";
    reg = <0x35001f00 0x24>;
};

Source notes #

Annotations retained from the schema source

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

GPIO controlled power off

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/gpio-poweroff.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

System power off support via a GPIO line. When a shutdown is executed the operating system is expected to switch the GPIO from inactive to active. After a delay (active-delay-ms) it is expected to be switched back to inactive. After another delay (inactive-delay-ms) it is configured as active again. Finally the operating system assumes the power off failed if the system is still running after waiting some time (timeout-ms).

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): restart-handler.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "gpio-poweroff"

gpios — required here #

Maximum number of items (maxItems): 1

input — not listed as required here #

Value type (type): "boolean"

Initially configure the GPIO line as an input. Only reconfigure it to an output when the power-off sequence is initiated. If this optional property is not specified, the GPIO is initialized as an output in its inactive state.

active-delay-ms — not listed as required here #

Default value (default): 100

Delay to wait after driving gpio active

inactive-delay-ms — not listed as required here #

Default value (default): 100

Delay to wait after driving gpio inactive

priority — not listed as required here #

Default value (default): 0

timeout-ms — not listed as required here #

Default value (default): 3000

Time to wait before assuming the power off sequence failed.

Required in this object (required): "compatible", "gpios"

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

false

Not allowed by this rule.

Examples (examples) #

gpio-poweroff {
    compatible = "gpio-poweroff";
    gpios = <&gpio 4 0>;
    timeout-ms = <3000>;
};

Source notes #

Annotations retained from the schema source

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

GPIO controlled reset

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/gpio-restart.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

Drive a GPIO line that can be used to restart the system from a restart handler. This binding supports level and edge triggered reset. At driver load time, the driver will request the given gpio line and install a restart handler. If the optional properties 'open-source' is not found, the GPIO line will be driven in the inactive state. Otherwise its not driven until the restart is initiated. When the system is restarted, the restart handler will be invoked in priority order. The GPIO is configured as an output, and driven active, triggering a level triggered reset condition. This will also cause an inactive->active edge condition, triggering positive edge triggered reset. After a delay specified by active-delay, the GPIO is set to inactive, thus causing an active->inactive edge, triggering negative edge triggered reset. After a delay specified by inactive-delay, the GPIO is driven active again. After a delay specified by wait-delay, the restart handler completes allowing other restart handlers to be attempted.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): restart-handler.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "gpio-restart"

gpios — required here #

The GPIO to set high/low, see "gpios property" in Documentation/devicetree/bindings/gpio/gpio.txt. If the pin should be low to reset the board set it to "Active Low", otherwise set GPIO to "Active High".

open-source — not listed as required here #

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

Treat the GPIO as being open source and defer driving it to when the restart is initiated. If this optional property is not specified, the GPIO is initialized as an output in its inactive state.

priority — not listed as required here #

Default value (default): 129

active-delay — not listed as required here #

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

Delay (default 100) to wait after driving gpio active [ms]

Default value (default): 100

inactive-delay — not listed as required here #

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

Delay (default 100) to wait after driving gpio inactive [ms]

Default value (default): 100

wait-delay — not listed as required here #

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

Delay (default 3000) to wait after completing restart sequence [ms]

Default value (default): 100

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "gpios"

Examples (examples) #

gpio-restart {
  compatible = "gpio-restart";
  gpios = <&gpio 4 0>;
  priority = <128>;
  active-delay = <100>;
  inactive-delay = <100>;
  wait-delay = <3000>;
};

Source notes #

Annotations retained from the schema source

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

Generic NVMEM reboot mode

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/nvmem-reboot-mode.yaml#"

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

Maintainers (maintainers): "Bartosz Golaszewski <bartosz.golaszewski@linaro.org>"

This driver gets the reboot mode magic value from the reboot-mode driver and stores it in the NVMEM cell named "reboot-mode". The bootloader can then read it and take different action according to the value.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvmem-reboot-mode"

nvmem-cells — required here #

A phandle pointing to the nvmem-cells node where the vendor-specific magic value representing the reboot mode is stored.

Maximum number of items (maxItems): 1

nvmem-cell-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "reboot-mode"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): reboot-mode.yaml#

Properties matching a name pattern (patternProperties) #

^mode-.*$ — name matches this regular expression #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "nvmem-cells", "nvmem-cell-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

reboot-mode {
    compatible = "nvmem-reboot-mode";
    nvmem-cells = <&reboot_reason>;
    nvmem-cell-names = "reboot-mode";
    mode-recovery = <0x01>;
    mode-bootloader = <0x02>;
};

Source notes #

Annotations retained from the schema source

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

Qualcomm PON Device

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/qcom,pon.yaml#"

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

Maintainers (maintainers): "Vinod Koul <vkoul@kernel.org>"

The Power On device for Qualcomm PM8xxx is MFD supporting pwrkey and resin along with the Android reboot-mode.

This DT node has pwrkey and resin as sub nodes.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,pm8916-pon", "qcom,pm8941-pon", "qcom,pms405-pon", "qcom,pm8998-pon", "qcom,pmk8350-pon"

reg — required here #

Specifies the SPMI base address for the PON (power-on) peripheral. For PMICs that have the PON peripheral (GEN3) split into PON_HLOS and PON_PBS (e.g. PMK8350), this can hold addresses of both PON_HLOS and PON_PBS peripherals. In that case, the PON_PBS address needs to be specified to facilitate software debouncing on some PMIC.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

pwrkey — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/input/qcom,pm8941-pwrkey.yaml#

resin — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/input/qcom,pm8941-pwrkey.yaml#

watchdog — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/watchdog/qcom,pm8916-wdt.yaml

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

Properties matching a name pattern (patternProperties) #

^mode-.*$ — name matches this regular expression #

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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): "qcom,pm8916-pon", "qcom,pms405-pon", "qcom,pm8998-pon"

When the condition matches (then) #

All of these rules must match (allOf)

Rule 1

Shared schema rule ($ref): reboot-mode.yaml#

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pon"

When the condition does not match (else) #

Properties matching a name pattern (patternProperties)

^mode-.*$ — name matches this regular expression

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): "qcom,pm8941-pon"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pon"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,pmk8350-pon"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reg-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "hlos"

Item 2

Exact value (const): "pbs"

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/spmi/spmi.h>

spmi@c440000 {
    reg = <0x0c440000 0x1100>;
    #address-cells = <2>;
    #size-cells = <0>;

    pmic@0 {
        reg = <0x0 SPMI_USID>;
        #address-cells = <1>;
        #size-cells = <0>;

        pon@800 {
            compatible = "qcom,pm8998-pon";
            reg = <0x800>;

            pwrkey {
                compatible = "qcom,pm8941-pwrkey";
                interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
                debounce = <15625>;
                bias-pull-up;
                linux,code = <KEY_POWER>;
            };

            resin {
                compatible = "qcom,pm8941-resin";
                interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
                debounce = <15625>;
                bias-pull-up;
                linux,code = <KEY_VOLUMEDOWN>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 86: Special case for pm8941, which doesn't store reset mode

Qualcomm SoC restart and power off

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/qcom,pshold.yaml#"

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

Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>"

A power supply hold (ps-hold) bit is set to power the Qualcomm chipsets. Clearing that bit allows us to restart/power off. The difference between power off and restart is determined by unique power manager IC settings.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,pshold"

reg — required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

reset-controller@fc4ab000 {
    compatible = "qcom,pshold";
    reg = <0xfc4ab000 0x4>;
};

Source notes #

Annotations retained from the schema source

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

Generic reboot mode core map

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/reboot-mode.yaml#"

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

Maintainers (maintainers): "Andy Yan <andy.yan@rock-chips.com>"

This driver get reboot mode arguments and call the write interface to store the magic value in special register or ram. Then the bootloader can read it and take different action according to the argument stored.

All mode properties are vendor specific, it is a indication to tell the bootloader what to do when the system reboots, and should be named as mode-xxx = <magic> (xxx is mode name, magic should be a non-zero value).

For example, modes common Android platform are:
  - normal: Normal reboot mode, system reboot with command "reboot".
  - recovery: Android Recovery mode, it is a mode to format the device or update a new image.
  - bootloader: Android fastboot mode, it's a mode to re-flash partitions on the Android based device.
  - loader: A bootloader mode, it's a mode used to download image on Rockchip platform,
            usually used in development.

Properties and child nodes (properties) #

mode-normal — not listed as required here #

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

Default value to set on a reboot if no command was provided.

Properties matching a name pattern (patternProperties) #

^mode-.*$ — name matches this regular expression #

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

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

true

Allowed by this rule.

Examples (examples) #

reboot-mode {
  mode-normal = <0>;
  mode-recovery = <1>;
  mode-bootloader = <2>;
  mode-loader = <3>;
};

Source notes #

Annotations retained from the schema source

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

Force-disable power regulator to turn the power off.

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/regulator-poweroff.yaml#"

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

Maintainers (maintainers): "Michael Klein <michael@fossekall.de>"

When the power-off handler is called, a power regulator is disabled by calling regulator_force_disable(). If the power is still on and the CPU still running after a 3000ms delay, a warning is emitted.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "regulator-poweroff"

cpu-supply — required here #

regulator to disable on power-down

Required in this object (required): "compatible", "cpu-supply"

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

false

Not allowed by this rule.

Examples (examples) #

regulator-poweroff {
    compatible = "regulator-poweroff";
    cpu-supply = <&reg_vcc1v2>;
};

Source notes #

Annotations retained from the schema source

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

Restart and shutdown handler Common Properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/restart-handler.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

Restart and shutdown handler device is responsible for powering off the system, e.g. my cutting off the power. System might have several restart handlers, which usually are tried from most precise to last resort.

Properties and child nodes (properties) #

priority — not listed as required here #

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

A priority ranging from 0 to 255 according to the following guidelines::
  0::   Restart handler of last resort, with limited restart capabilities.
  128:: Typical, default restart handler; use if no other restart handler
        is expected to be available, and/or if restart functionality is
        sufficient to restart the entire system.
  255:: Highest priority restart handler, will preempt all other restart handlers.

Minimum value (minimum): 0

Maximum value (maximum): 255

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

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Generic SYSCON mapped register poweroff driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/syscon-poweroff.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

This is a generic poweroff driver using syscon to map the poweroff register. The poweroff is generally performed with a write to the poweroff register defined by the register map pointed by syscon reference plus the offset with the value and mask defined in the poweroff node. Default will be little endian mode, 32 bit access only. The SYSCON register map is normally retrieved from the parental dt-node. So the SYSCON poweroff node should be represented as a sub-node of a "syscon", "simple-mfd" node.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "syscon-poweroff"

reg — not listed as required here #

Maximum number of items (maxItems): 1

mask — not listed as required here #

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

Update only the register bits defined by the mask (32 bit).

offset — not listed as required here #

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

Offset in the register map for the poweroff register (in bytes).

regmap — not listed as required here #

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

Deprecated (deprecated): true

Phandle to the register map node. This property is deprecated in favor of the syscon-poweroff node being a child of a system controller node.

value — not listed as required here #

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

The poweroff value written to the poweroff register (32 bit access).

Required in this object (required): "compatible"

At least one of these rules must match (anyOf) #

Rule 1 #

Required in this object (required): "offset"

Rule 2 #

Required in this object (required): "reg"

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

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

This rule must not match (not)

Required in this object (required): "mask"

When the condition matches (then) #

Required in this object (required): "value"

Examples (examples) #

poweroff {
    compatible = "syscon-poweroff";
    offset = <0x0>;
    mask = <0x7a>;
};

Source notes #

Annotations retained from the schema source

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

Generic SYSCON reboot mode driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/syscon-reboot-mode.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

This driver gets reboot mode magic value from reboot-mode driver and stores it in a SYSCON mapped register. Then the bootloader can read it and take different action according to the magic value stored. The SYSCON mapped register is retrieved from the parental dt-node plus the offset. So the SYSCON reboot-mode node should be represented as a sub-node of a "syscon", "simple-mfd" node.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "syscon-reboot-mode"

mask — not listed as required here #

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

Update only the register bits defined by the mask (32 bit)

offset — required here #

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

Offset in the register map for the mode register (in bytes)

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): reboot-mode.yaml#

Properties matching a name pattern (patternProperties) #

^mode-.*$ — name matches this regular expression #

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "offset"

Examples (examples) #

#include <dt-bindings/soc/rockchip,boot-mode.h>

reboot-mode {
  compatible = "syscon-reboot-mode";
  offset = <0x40>;
  mode-normal = <BOOT_NORMAL>;
  mode-recovery = <BOOT_RECOVERY>;
  mode-bootloader = <BOOT_FASTBOOT>;
  mode-loader = <BOOT_BL_DOWNLOAD>;
};

Source notes #

Annotations retained from the schema source

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

Generic SYSCON mapped register reset driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/syscon-reboot.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

This is a generic reset driver using syscon to map the reset register. The reset is generally performed with a write to the reset register defined by the SYSCON register map base plus the offset with the value and mask defined in the reboot node. Default will be little endian mode, 32 bit access only. The SYSCON registers map is normally retrieved from the parental dt-node. So the SYSCON reboot node should be represented as a sub-node of a "syscon", "simple-mfd" node. Though the regmap property pointing to the system controller node is also supported.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "syscon-reboot", "google,gs101-reboot"

mask — not listed as required here #

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

Update only the register bits defined by the mask (32 bit).

offset — not listed as required here #

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

Offset in the register map for the reboot register (in bytes).

reg — not listed as required here #

Maximum number of items (maxItems): 1

Base address and size for the reboot register.

regmap — not listed as required here #

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

Deprecated (deprecated): true

Phandle to the register map node. This property is deprecated in favor of the syscon-reboot node been a child of a system controller node.

value — not listed as required here #

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

The reset value written to the reboot register (32 bit access).

priority — not listed as required here #

Default value (default): 192

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): restart-handler.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "google,gs101-reboot"

When the condition matches (then) #

Properties and child nodes (properties)

mask — not listed as required here

false — Not permitted by this property rule.

offset — not listed as required here

false — Not permitted by this property rule.

reg — not listed as required here

false — Not permitted by this property rule.

value — not listed as required here

false — Not permitted by this property rule.

When the condition does not match (else) #

Condition (if)

This rule must not match (not)

Required in this object (required): "mask"

When the condition matches (then)

Required in this object (required): "value"

At least one of these rules must match (anyOf)

Rule 1

Required in this object (required): "offset"

Rule 2

Required in this object (required): "reg"

Examples (examples) #

reboot {
    compatible = "syscon-reboot";
    regmap = <&regmapnode>;
    offset = <0x0>;
    mask = <0x1>;
};
reboot {
    compatible = "google,gs101-reboot";
};

Source notes #

Annotations retained from the schema source

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

Toradex Embedded Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/toradex,smarc-ec.yaml#"

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

Maintainers (maintainers): "Emanuele Ghidoli <emanuele.ghidoli@toradex.com>", "Francesco Dolcini <francesco.dolcini@toradex.com>"

The Toradex Embedded Controller (EC) is used on Toradex SMARC modules, primarily to manage power and reset functionalities.

The EC provides the following functions:
  - Reads the SMARC POWER_BTN# and RESET_IN# signals and controls the PMIC accordingly.
  - Controls the SoC boot mode signals based on the SMARC BOOT_SEL# and FORCE_RECOV# inputs.
  - Manages the CARRIER_STDBY# signal in response to relevant SoC signals.

The EC runs a small firmware, factory programmed into its internal flash, and communicates over I2C. It allows software to control power-off and reset functionalities of the module.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "toradex,smarc-imx95-ec", "toradex,smarc-imx8mp-ec"

Item 2

Exact value (const): "toradex,smarc-ec"

reg — required here #

Maximum number of items (maxItems): 1

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

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>;

    reset-controller@28 {
        compatible = "toradex,smarc-imx95-ec", "toradex,smarc-ec";
        reg = <0x28>;
    };
};

Source notes #

Annotations retained from the schema source

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

Xilinx Zynq MPSoC Power Management

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / reset

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/xlnx,zynqmp-power.yaml#"

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

Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>"

The zynqmp-power node describes the power management configurations. It will control remote suspend/shutdown interfaces.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "xlnx,zynqmp-power"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

mboxes — not listed as required here #

Standard property to specify a Mailbox. Each value of the mboxes property should contain a phandle to the mailbox controller device node and an args specifier that will be the phandle to the intended sub-mailbox child node to be used for communication. See Documentation/devicetree/bindings/mailbox/mailbox.txt for more details about the generic mailbox controller and client driver bindings. Also see Documentation/devicetree/bindings/mailbox/ \ xlnx,zynqmp-ipi-mailbox.txt for typical controller that is used to communicate with this System controllers.

Array item rules (items) #

Item 1

tx channel

Item 2

rx channel

mbox-names — not listed as required here #

Name given to channels seen in the 'mboxes' property.

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Examples (examples) #


// Example with interrupt method:

firmware {
  zynqmp-firmware {
    power-management {
      compatible = "xlnx,zynqmp-power";
      interrupts = <0 35 4>;
    };
  };
};


// Example with IPI mailbox method:

firmware {
  zynqmp-firmware {
    power-management {
      compatible = "xlnx,zynqmp-power";
      interrupt-parent = <&gic>;
      interrupts = <0 35 4>;
      mboxes = <&ipi_mailbox_pmu1 0>,
               <&ipi_mailbox_pmu1 1>;
      mbox-names = "tx", "rx";
    };
  };
};

Source notes #

Annotations retained from the schema source

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

ADC battery

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/adc-battery.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

Basic battery capacity meter, which only reports basic battery data via ADC channels and optionally indicate that the battery is full by polling a GPIO line. The voltage is expected to be measured between the battery terminals and mandatory. The optional current/power channel is expected to monitor the current/power flowing out of the battery. Last but not least the temperature channel is supposed to measure the battery temperature.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "adc-battery"

charged-gpios — not listed as required here #

GPIO which signals that the battery is fully charged. The GPIO is often provided by charger ICs, that are not software controllable.

Maximum number of items (maxItems): 1

io-channels — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

io-channel-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "voltage"

Item 2

Allowed values (enum): "current", "power", "temperature"

Item 3

Allowed values (enum): "power", "temperature"

Item 4

Exact value (const): "temperature"

monitored-battery — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "io-channels", "io-channel-names", "monitored-battery"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

fuel-gauge {
    compatible = "adc-battery";
    charged-gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
    io-channels = <&adc 13>, <&adc 37>;
    io-channel-names = "voltage", "current";

    power-supplies = <&charger>;
    monitored-battery = <&battery>;
};

Source notes #

Annotations retained from the schema source

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

Battery Characteristics

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/battery.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

The devicetree battery node provides static battery characteristics. In smart batteries, these are typically stored in non-volatile memory on a fuel gauge chip. The battery node should be used where there is no appropriate non-volatile memory, or it is unprogrammed/incorrect.

Upstream dts files should not include battery nodes, unless the battery represented cannot easily be replaced in the system by one of a different type. This prevents unpredictable, potentially harmful, behavior should a replacement that changes the battery type occur without a corresponding update to the dtb.

Battery properties are named, where possible, for the corresponding elements in enum power_supply_property, defined in include/linux/power_supply.h

Batteries must be referenced by chargers and/or fuel-gauges using a phandle. The phandle's property should be named "monitored-battery".

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "simple-battery"

device-chemistry — not listed as required here #

This describes the chemical technology of the battery.

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nickel-cadmium"

Rule 2

Exact value (const): "nickel-metal-hydride"

Rule 3

Exact value (const): "lithium-ion"

This is a blanket type for all lithium-ion batteries, including those below. If possible, a precise compatible string from below should be used, but sometimes it is unknown which specific lithium ion battery is employed and this wide compatible can be used.

Rule 4

Exact value (const): "lithium-ion-polymer"

Rule 5

Exact value (const): "lithium-ion-iron-phosphate"

Rule 6

Exact value (const): "lithium-ion-manganese-oxide"

over-voltage-threshold-microvolt — not listed as required here #

battery over-voltage limit

re-charge-voltage-microvolt — not listed as required here #

limit to automatically start charging again

voltage-min-design-microvolt — not listed as required here #

drained battery voltage

voltage-max-design-microvolt — not listed as required here #

fully charged battery voltage

energy-full-design-microwatt-hours — not listed as required here #

battery design energy

charge-full-design-microamp-hours — not listed as required here #

battery design capacity

trickle-charge-current-microamp — not listed as required here #

current for trickle-charge phase. Please note that the trickle-charging here, refers "wake-up" or "pre-pre" -charging, for very empty batteries. Similar term is also used for "maintenance" or "top-off" -charging of batteries (like NiMh bq24400) - that is different and not controlled by this property.

tricklecharge-upper-limit-microvolt — not listed as required here #

limit when to change to precharge from trickle charge Trickle-charging here refers "wake-up" or "pre-pre" -charging.

precharge-current-microamp — not listed as required here #

current for pre-charge phase

precharge-upper-limit-microvolt — not listed as required here #

limit when to change to constant charging

charge-term-current-microamp — not listed as required here #

current for charge termination phase

constant-charge-current-max-microamp — not listed as required here #

maximum constant input current

constant-charge-voltage-max-microvolt — not listed as required here #

maximum constant input voltage

factory-internal-resistance-micro-ohms — not listed as required here #

battery factory internal resistance

resistance-temp-table — not listed as required here #

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

Array item rules (items) #

Array item rules (items)

Item 1

the temperature in degree Celsius

Item 2

battery internal resistance percent

A table providing the temperature in degree Celsius and corresponding battery internal resistance percent, which is used to look up the resistance percent according to current temperature to get an accurate batterty internal resistance in different temperatures.

ocv-capacity-celsius — not listed as required here #

An array containing the temperature in degree Celsius, for each of the battery capacity lookup table.

operating-range-celsius — not listed as required here #

operating temperature range of a battery

Array item rules (items) #

Item 1

minimum temperature at which battery can operate

Item 2

maximum temperature at which battery can operate

ambient-celsius — not listed as required here #

safe range of ambient temperature

Array item rules (items) #

Item 1

alert when ambient temperature is lower than this value

Item 2

alert when ambient temperature is higher than this value

alert-celsius — not listed as required here #

safe range of battery temperature

Array item rules (items) #

Item 1

alert when battery temperature is lower than this value

Item 2

alert when battery temperature is higher than this value

volt-drop-thresh-microvolt — not listed as required here #

Threshold for starting the VDR correction

Maximum value (maximum): 48000000

volt-drop-soc-bp — not listed as required here #

Table of capacity values matching the values in VDR tables. The value should be given as basis points, 1/100 of a percent.

volt-drop-temperatures-millicelsius — not listed as required here #

An array containing the temperature in milli celsius, for each of the VDR lookup table.

Required in this object (required): "compatible"

Properties matching a name pattern (patternProperties) #

^ocv-capacity-table-[0-9]+$ — name matches this regular expression #

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

An array providing the open circuit voltage (OCV) of the battery and corresponding battery capacity percent, which is used to look up battery capacity according to current OCV value. And the open circuit voltage unit is microvolt.

Maximum number of items (maxItems): 100

Array item rules (items) #

Array item rules (items)

Item 1

open circuit voltage (OCV) in microvolts

Item 2

battery capacity percent

Maximum value (maximum): 100

^volt-drop-[0-9]-microvolt — name matches this regular expression #

Table of the voltage drop rate (VDR) values. Each entry in the table should match a capacity value in the volt-drop-soc table. Furthermore, the values should be obtained for the temperature given in volt-drop-temperatures-millicelsius table at index matching the number in this table's name.

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

false

Not allowed by this rule.

Examples (examples) #

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

  battery: battery {
    compatible = "simple-battery";
    over-voltage-threshold-microvolt = <4500000>;
    re-charge-voltage-microvolt = <250000>;
    voltage-min-design-microvolt = <3200000>;
    voltage-max-design-microvolt = <4200000>;
    energy-full-design-microwatt-hours = <5290000>;
    charge-full-design-microamp-hours = <1430000>;
    precharge-current-microamp = <256000>;
    precharge-upper-limit-microvolt = <2500000>;
    charge-term-current-microamp = <128000>;
    constant-charge-current-max-microamp = <900000>;
    constant-charge-voltage-max-microvolt = <4200000>;
    factory-internal-resistance-micro-ohms = <250000>;
    ocv-capacity-celsius = <(-10) 0 10>;
    /* table for -10 degree Celsius */
    ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>;
    /* table for 0 degree Celsius */
    ocv-capacity-table-1 = <4200000 100>, <4185000 95>, <4113000 90>;
    /* table for 10 degree Celsius */
    ocv-capacity-table-2 = <4250000 100>, <4200000 95>, <4185000 90>;
    resistance-temp-table = <20 100>, <10 90>, <0 80>, <(-10) 60>;
    operating-range-celsius = <(-30) 50>;
    ambient-celsius = <(-5) 50>;
    alert-celsius = <0 40>;
  };

  charger@11 {
    reg = <0x11>;
    monitored-battery = <&battery>;
  };

  fuel-gauge@22 {
    reg = <0x22>;
    monitored-battery = <&battery>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 131: The volt-drop* -properties describe voltage-drop for a battery, described

Line 132: as VDROP in:

Line 133: https://patentimages.storage.googleapis.com/6c/f5/17/c1d901c220f6a9/US20150032394A1.pdf

TI bq2415x Li-Ion Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/bq2415x.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,bq24150", "ti,bq24150a", "ti,bq24151", "ti,bq24151a", "ti,bq24152", "ti,bq24153", "ti,bq24153a", "ti,bq24155", "ti,bq24156", "ti,bq24156a", "ti,bq24158"

reg — required here #

Maximum number of items (maxItems): 1

ti,current-limit — required here #

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

initial maximum current charger can pull from power supply in mA.

ti,weak-battery-voltage — required here #

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

weak battery voltage threshold in mV. The chip will use slow precharge if battery voltage is below this value.

ti,battery-regulation-voltage — required here #

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

maximum charging voltage in mV.

ti,charge-current — required here #

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

maximum charging current in mA.

ti,termination-current — required here #

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

charge will be terminated when current in constant-voltage phase drops below this value (in mA).

ti,resistor-sense — required here #

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

value of sensing resistor in milliohm.

ti,usb-charger-detection — not listed as required here #

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

phandle to usb charger detection device (required for auto mode)

Required in this object (required): "compatible", "reg", "ti,current-limit", "ti,weak-battery-voltage", "ti,battery-regulation-voltage", "ti,charge-current", "ti,termination-current", "ti,resistor-sense"

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>;

  charger@6b {
    compatible = "ti,bq24150a";
    reg = <0x6b>;

    ti,current-limit = <100>;
    ti,weak-battery-voltage = <3400>;
    ti,battery-regulation-voltage = <4200>;
    ti,charge-current = <650>;
    ti,termination-current = <100>;
    ti,resistor-sense = <68>;

    ti,usb-charger-detection = <&isp1704>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

TI BQ2419x Li-Ion Battery Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/bq24190.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,bq24190", "ti,bq24192", "ti,bq24192i", "ti,bq24193", "ti,bq24196", "ti,bq24296", "ti,bq24297"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

ce-gpios — not listed as required here #

Active low Charge Enable pin. Battery charging is enabled when REG01[5:4] = 01 and CE pin is Low. CE pin must be pulled high or low.

Maximum number of items (maxItems): 1

usb-otg-vbus — not listed as required here #

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

Regulator that is used to control the VBUS voltage direction for either USB host mode or for charging on the OTG port

ti,system-minimum-microvolt — not listed as required here #

when power is connected and the battery is below minimum system voltage, the system will be regulated above this setting.

omit-battery-class — not listed as required here #

Value type (type): "boolean"

If this property is set, the operating system does not try to create a battery device.

monitored-battery — not listed as required here #

phandle to a "simple-battery" compatible node.

This property must be a phandle to a node using the format described
in battery.yaml, with the following properties being required:
- precharge-current-microamp: maximum charge current during precharge phase
                              (typically 20% of battery capacity).
- charge-term-current-microamp: a charge cycle terminates when the battery voltage is
                                above recharge threshold, and the current is below this
                                setting (typically 10% of battery capacity).

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

bat: battery {
  compatible = "simple-battery";
  precharge-current-microamp = <256000>;
  charge-term-current-microamp = <128000>;
};

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

  charger@6a {
    compatible = "ti,bq24190";
    reg = <0x6a>;
    interrupt-parent = <&gpiochip>;
    interrupts = <10 IRQ_TYPE_EDGE_FALLING>;
    monitored-battery = <&bat>;
    ti,system-minimum-microvolt = <3200000>;

    usb_otg_vbus: usb-otg-vbus { };
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

Bq24250, bq24251 and bq24257 Li-Ion Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/bq24257.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,bq24250", "ti,bq24251", "ti,bq24257"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

ti,battery-regulation-voltage — required here #

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

maximum charging voltage in uV

ti,charge-current — required here #

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

maximum charging current in uA

ti,termination-current — required here #

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

charge will be terminated when current in constant-voltage phase drops below this value (in uA)

pg-gpios — not listed as required here #

GPIO used for connecting the bq2425x device PG (Power Good) pin. This pin is not available on all devices however it should be used if possible as this is the recommended way to obtain the charger's input PG state. If this pin is not specified a software-based approach for PG detection is used.

Maximum number of items (maxItems): 1

ti,current-limit — not listed as required here #

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

The maximum current to be drawn from the charger's input (in uA). If this property is not specified, the input limit current is set automatically using USB D+/D- signal based charger type detection. If the hardware does not support the D+/D- based detection, a default of 500,000 is used (=500mA) instead.

ti,ovp-voltage — not listed as required here #

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

Configures the over voltage protection voltage (in uV). If not specified a default of 6,5000,000 (=6.5V) is used.

ti,in-dpm-voltage — not listed as required here #

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

Configures the threshold input voltage for the dynamic power path management (in uV). If not specified a default of 4,360,000 (=4.36V) is used.

Required in this object (required): "compatible", "reg", "interrupts", "ti,battery-regulation-voltage", "ti,charge-current", "ti,termination-current"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  charger@6a {
    compatible = "ti,bq24257";
    reg = <0x6a>;
    interrupt-parent = <&gpio1>;
    interrupts = <16 IRQ_TYPE_EDGE_BOTH>;

    pg-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;

    ti,battery-regulation-voltage = <4200000>;
    ti,charge-current = <1000000>;
    ti,termination-current = <50000>;
  };
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  charger@6a {
    compatible = "ti,bq24250";
    reg = <0x6a>;
    interrupt-parent = <&gpio1>;
    interrupts = <16 IRQ_TYPE_EDGE_BOTH>;

    ti,battery-regulation-voltage = <4200000>;
    ti,charge-current = <500000>;
    ti,termination-current = <50000>;
    ti,current-limit = <900000>;
    ti,ovp-voltage = <9500000>;
    ti,in-dpm-voltage = <4440000>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

TI BQ24735 Li-Ion Battery Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/bq24735.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,bq24735"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

AC adapter plug event interrupt

Maximum number of items (maxItems): 1

ti,ac-detect-gpios — not listed as required here #

Maximum number of items (maxItems): 1

This GPIO is optionally used to read the AC adapter status. This is a Host GPIO that is configured as an input and connected to the ACOK pin on the bq24735. Note: for backwards compatibility reasons, the GPIO must be active on AC adapter absence despite ACOK being active (high) on AC adapter presence.

ti,charge-current — not listed as required here #

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

Used to control and set the charging current. This value must be between 128mA and 8.128A with a 64mA step resolution. The POR value is 0x0000h. This number is in mA (e.g. 8192). See spec for more information about the ChargeCurrent (0x14h) register.

ti,charge-voltage — not listed as required here #

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

Used to control and set the charging voltage. This value must be between 1.024V and 19.2V with a 16mV step resolution. The POR value is 0x0000h. This number is in mV (e.g. 19200). See spec for more information about the ChargeVoltage (0x15h) register.

ti,input-current — not listed as required here #

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

Used to control and set the charger input current. This value must be between 128mA and 8.064A with a 128mA step resolution. The POR value is 0x1000h. This number is in mA (e.g. 8064). See the spec for more information about the InputCurrent (0x3fh) register.

ti,external-control — not listed as required here #

Value type (type): "boolean"

Indicates that the charger is configured externally and that the host should not attempt to enable/disable charging or set the charge voltage/current.

poll-interval — not listed as required here #

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

If 'interrupts' is not specified, poll AC adapter presence with this interval (milliseconds).

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

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

  charger@9 {
    compatible = "ti,bq24735";
    reg = <0x9>;
    ti,ac-detect-gpios = <&gpio 72 0x1>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

TI bq2515x 500-mA Linear charger family

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/bq2515x.yaml#"

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

Maintainers (maintainers): "Andrew Davis <afd@ti.com>"

The BQ2515x family is a highly integrated battery charge management IC that integrates the most common functions for wearable devices, namely a charger, an output voltage rail, ADC for battery and system monitoring, and push-button controller.

Specifications about the charger can be found at:
  http://www.ti.com/lit/ds/symlink/bq25150.pdf
  http://www.ti.com/lit/ds/symlink/bq25155.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,bq25150", "ti,bq25155"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the charger.

ac-detect-gpios — not listed as required here #

GPIO used for connecting the bq2515x device PG (AC Detect) pin.

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

GPIO used for hardware reset.

Maximum number of items (maxItems): 1

powerdown-gpios — not listed as required here #

GPIO used for low power mode of IC.

Maximum number of items (maxItems): 1

charge-enable-gpios — not listed as required here #

GPIO used to turn on and off charging.

Maximum number of items (maxItems): 1

input-current-limit-microamp — not listed as required here #

Maximum input current in micro Amps.

Minimum value (minimum): 50000

Maximum value (maximum): 500000

monitored-battery — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "monitored-battery"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

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

false

Not allowed by this rule.

Examples (examples) #

bat: battery {
  compatible = "simple-battery";
  constant-charge-current-max-microamp = <50000>;
  precharge-current-microamp = <2500>;
  constant-charge-voltage-max-microvolt = <4000000>;
};
#include <dt-bindings/gpio/gpio.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  bq25150: charger@6b {
    compatible = "ti,bq25150";
    reg = <0x6b>;
    monitored-battery = <&bat>;
    input-current-limit-microamp = <100000>;

    ac-detect-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
    reset-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
    powerdown-gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
    charge-enable-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2020 Texas Instruments Incorporated

TI bq256xx Switch Mode Buck Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/bq256xx.yaml#"

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

Maintainers (maintainers): "Andrew Davis <afd@ti.com>"

The bq256xx devices are a family of highly-integrated battery charge management and system power management ICs for single cell Li-ion and Li- polymer batteries.

Datasheets:
  - https://www.ti.com/lit/ds/symlink/bq25600.pdf
  - https://www.ti.com/lit/ds/symlink/bq25601.pdf
  - https://www.ti.com/lit/ds/symlink/bq25600d.pdf
  - https://www.ti.com/lit/ds/symlink/bq25601d.pdf
  - https://www.ti.com/lit/ds/symlink/bq25611d.pdf
  - https://www.ti.com/lit/ds/symlink/bq25618.pdf
  - https://www.ti.com/lit/ds/symlink/bq25619.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,bq25600", "ti,bq25601", "ti,bq25600d", "ti,bq25601d", "ti,bq25611d", "ti,bq25618", "ti,bq25619"

reg — required here #

Maximum number of items (maxItems): 1

ti,watchdog-timeout-ms — not listed as required here #

Default value (default): 0

Watchdog timer in ms. 0 (default) disables the watchdog

Minimum value (minimum): 0

Maximum value (maximum): 160000

Allowed values (enum): 0, 40000, 80000, 160000

input-voltage-limit-microvolt — not listed as required here #

Minimum input voltage limit in µV with a 100000 µV step

Minimum value (minimum): 3900000

Maximum value (maximum): 5400000

input-current-limit-microamp — not listed as required here #

Maximum input current limit in µA with a 100000 µA step

Minimum value (minimum): 100000

Maximum value (maximum): 3200000

monitored-battery — required here #

true — No constraints added by this property rule.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Interrupt sends an active low, 256 μs pulse to host to report the charger device status and faults.

ti,no-thermistor — not listed as required here #

Value type (type): "boolean"

Indicates that no thermistor is connected to the TS pin

Required in this object (required): "compatible", "reg", "monitored-battery"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,bq25600", "ti,bq25601", "ti,bq25600d", "ti,bq25601d"

When the condition matches (then) #

Properties and child nodes (properties)

ti,no-thermistor — not listed as required here

false — Not permitted by this property rule.

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

false

Not allowed by this rule.

Examples (examples) #

bat: battery {
  compatible = "simple-battery";
  constant-charge-current-max-microamp = <2040000>;
  constant-charge-voltage-max-microvolt = <4352000>;
  precharge-current-microamp = <180000>;
  charge-term-current-microamp = <180000>;
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {

  clock-frequency = <400000>;

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

  charger@6b {
    compatible = "ti,bq25601";
    reg = <0x6b>;
    monitored-battery = <&bat>;

    interrupt-parent = <&gpio1>;
    interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
    ti,watchdog-timeout-ms = <40000>;

    input-voltage-limit-microvolt = <4500000>;
    input-current-limit-microamp = <2400000>;
   };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2020 Texas Instruments Incorporated

Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/bq25890.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "ti,bq25890"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ti,bq25892", "ti,bq25895", "ti,bq25896"

Item 2

Exact value (const): "ti,bq25890"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

ti,battery-regulation-voltage — required here #

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

maximum charging voltage (in uV)

ti,charge-current — required here #

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

maximum charging current (in uA)

ti,termination-current — required here #

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

charge will be terminated when current in constant-voltage phase drops below this value (in uA)

ti,precharge-current — required here #

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

maximum charge current during precharge phase (in uA)

ti,minimum-sys-voltage — required here #

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

when battery is charging and it is below minimum system voltage, the system will be regulated above minimum-sys-voltage setting (in uV)

ti,boost-voltage — required here #

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

VBUS voltage level in boost mode (in uV)

ti,boost-max-current — required here #

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

maximum allowed current draw in boost mode (in uA)

ti,boost-low-freq — not listed as required here #

boost mode frequency will be 500kHz, otherwise 1.5MHz

Value type (type): "boolean"

ti,use-ilim-pin — not listed as required here #

ILIM resistor will be used and the input current will be the lower between the resistor setting and the IINLIM register setting

Value type (type): "boolean"

ti,thermal-regulation-threshold — not listed as required here #

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

temperature above which the charge current is lowered, to avoid overheating (in degrees Celsius). If omitted, the default setting will be used (120 degrees)

ti,ibatcomp-micro-ohms — not listed as required here #

value of a resistor in series with the battery (in Micro Ohms)

ti,ibatcomp-clamp-microvolt — not listed as required here #

max. charging voltage adjustment due to expected voltage drop on in-series resistor

Required in this object (required): "compatible", "reg", "interrupts", "ti,battery-regulation-voltage", "ti,charge-current", "ti,termination-current", "ti,precharge-current", "ti,minimum-sys-voltage", "ti,boost-voltage", "ti,boost-max-current"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  charger@6a {
    compatible = "ti,bq25890";
    reg = <0x6a>;

    interrupt-parent = <&gpio1>;
    interrupts = <16 IRQ_TYPE_EDGE_FALLING>;

    ti,battery-regulation-voltage = <4200000>;
    ti,charge-current = <1000000>;
    ti,termination-current = <50000>;
    ti,precharge-current = <128000>;
    ti,minimum-sys-voltage = <3600000>;
    ti,boost-voltage = <5000000>;
    ti,boost-max-current = <1000000>;

    ti,use-ilim-pin;
    ti,thermal-regulation-threshold = <120>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

TI BQ25980 Flash Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/bq25980.yaml#"

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

Maintainers (maintainers): "Andrew Davis <afd@ti.com>"

The BQ25980, BQ25975, and BQ25960 are a series of flash chargers intended for use in high-power density portable electronics. These inductorless switching chargers can provide over 97% efficiency by making use of the switched capacitor architecture.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,bq25980", "ti,bq25975", "ti,bq25960"

reg — required here #

Maximum number of items (maxItems): 1

ti,watchdog-timeout-ms — not listed as required here #

Watchdog timer in milli seconds. 0 disables the watchdog.

Default value (default): 0

Minimum value (minimum): 0

Maximum value (maximum): 300000

Allowed values (enum): 0, 5000, 10000, 50000, 300000

ti,sc-ovp-limit-microvolt — not listed as required here #

Minimum input voltage limit in micro volts with a when the charger is in switch cap mode. 100000 micro volt step.

Default value (default): 17800000

Minimum value (minimum): 14000000

Maximum value (maximum): 22000000

ti,sc-ocp-limit-microamp — not listed as required here #

Maximum input current limit in micro amps with a 100000 micro amp step.

Minimum value (minimum): 100000

Maximum value (maximum): 3300000

ti,bypass-ovp-limit-microvolt — not listed as required here #

Minimum input voltage limit in micro volts with a when the charger is in switch cap mode. 50000 micro volt step.

Minimum value (minimum): 7000000

Maximum value (maximum): 12750000

ti,bypass-ocp-limit-microamp — not listed as required here #

Maximum input current limit in micro amps with a 100000 micro amp step.

Minimum value (minimum): 100000

Maximum value (maximum): 3300000

ti,bypass-enable — not listed as required here #

Value type (type): "boolean"

Enables bypass mode at boot time

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Indicates that the device state has changed.

monitored-battery — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "monitored-battery"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

bat: battery {
    compatible = "simple-battery";
    constant-charge-current-max-microamp = <4000000>;
    constant-charge-voltage-max-microvolt = <8400000>;
    precharge-current-microamp = <160000>;
    charge-term-current-microamp = <160000>;
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    bq25980: charger@65 {
        compatible = "ti,bq25980";
        reg = <0x65>;
        interrupt-parent = <&gpio1>;
        interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
        ti,watchdog-timeout-ms = <0>;
        ti,sc-ocp-limit-microamp = <2000000>;
        ti,sc-ovp-limit-microvolt = <17800000>;
        monitored-battery = <&bat>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2020 Texas Instruments Incorporated

TI BQ27XXX fuel gauge family

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/bq27xxx.yaml#"

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

Maintainers (maintainers): "Pali Rohár <pali@kernel.org>", "Andrew F. Davis <afd@ti.com>", "Sebastian Reichel <sre@kernel.org>"

Support various Texas Instruments fuel gauge devices that share similar register maps and power supply properties

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,bq27200", "ti,bq27210", "ti,bq27500", "ti,bq27510", "ti,bq27520", "ti,bq27500-1", "ti,bq27510g1", "ti,bq27510g2", "ti,bq27510g3", "ti,bq27520g1", "ti,bq27520g2", "ti,bq27520g3", "ti,bq27520g4", "ti,bq27521", "ti,bq27530", "ti,bq27531", "ti,bq27541", "ti,bq27542", "ti,bq27546", "ti,bq27742", "ti,bq27545", "ti,bq27411", "ti,bq27421", "ti,bq27425", "ti,bq27426", "ti,bq27441", "ti,bq27621", "ti,bq27z561", "ti,bq28z610", "ti,bq34z100", "ti,bq78z100"

reg — required here #

Maximum number of items (maxItems): 1

integer, I2C address of the fuel gauge.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

the SOC_INT or GPOUT pin

monitored-battery — not listed as required here #

The fuel gauge uses the following battery properties: - energy-full-design-microwatt-hours - charge-full-design-microamp-hours - voltage-min-design-microvolt Both or neither of the *-full-design-*-hours properties must be set.

power-supplies — not listed as required here #

true — No constraints added by this property rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,bq27200", "ti,bq27210", "ti,bq27500", "ti,bq27510", "ti,bq27520", "ti,bq27500-1", "ti,bq27510g1", "ti,bq27510g2", "ti,bq27521", "ti,bq27541", "ti,bq27542", "ti,bq27546", "ti,bq27742", "ti,bq27545", "ti,bq27411", "ti,bq27z561", "ti,bq28z610", "ti,bq34z100", "ti,bq78z100"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

false — Not permitted by this property rule.

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

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

false

Not allowed by this rule.

Examples (examples) #

bat: battery {
  compatible = "simple-battery";
  voltage-min-design-microvolt = <3200000>;
  energy-full-design-microwatt-hours = <5290000>;
  charge-full-design-microamp-hours = <1430000>;
};

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

  bq27510g3: fuel-gauge@55 {
    compatible = "ti,bq27510g3";
    reg = <0x55>;
    monitored-battery = <&bat>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2020 Texas Instruments Incorporated

Line 24: deprecated, use revision specific property below

Line 25: deprecated, use revision specific property below

Line 26: deprecated, use revision specific property below

Line 81: deprecated, use revision specific property below

Line 82: deprecated, use revision specific property below

Line 83: deprecated, use revision specific property below

Charger Manager

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/charger-manager.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

Binding for the legacy charger manager driver. Please do not use for new products.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "charger-manager"

cm-chargers — required here #

name of chargers

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

cm-num-chargers — not listed as required here #

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

Deprecated (deprecated): true

cm-fuel-gauge — required here #

name of battery fuel gauge

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

cm-name — not listed as required here #

name of the charger manager

Default value (default): "battery"

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

cm-poll-mode — not listed as required here #

polling mode

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

Default value (default): 0

Allowed values (enum): 0, 1, 2, 3

cm-poll-interval — not listed as required here #

polling interval (in ms)

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

cm-battery-stat — not listed as required here #

battery status

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

Allowed values (enum): 0, 1, 2, 3

cm-fullbatt-vchkdrop-volt — not listed as required here #

voltage drop before restarting charging in uV

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

cm-fullbatt-vchkdrop-ms — not listed as required here #

Deprecated (deprecated): true

cm-fullbatt-voltage — not listed as required here #

voltage of full battery in uV

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

cm-fullbatt-soc — not listed as required here #

state of charge to consider as full battery in %

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

cm-fullbatt-capacity — not listed as required here #

capcity to consider as full battery in uAh

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

cm-thermal-zone — not listed as required here #

name of external thermometer's thermal zone

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

cm-discharging-max — not listed as required here #

limits of discharging duration in ms

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

cm-charging-max — not listed as required here #

limits of charging duration in ms

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

cm-battery-cold — not listed as required here #

critical cold temperature of battery for charging in deci-degree celsius

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

cm-battery-cold-in-minus — not listed as required here #

if set cm-battery-cold temperature is in minus degrees

Value type (type): "boolean"

cm-battery-hot — not listed as required here #

critical hot temperature of battery for charging in deci-degree celsius

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

cm-battery-temp-diff — not listed as required here #

temperature difference to allow recharging in deci-degree celsius

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

Properties matching a name pattern (patternProperties) #

-supply$ — name matches this regular expression #

regulator consumer, named according to cm-regulator-name

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

^regulator[@-][0-9]$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

cm-regulator-name — required here

name of charger regulator

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

Required in this object (required): "cm-regulator-name"

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

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^cable[@-][0-9]$ — name matches this regular expression

Value type (type): "object"

Properties and child nodes (properties)

cm-cable-name — required here

name of charger cable

Allowed values (enum): "USB", "USB-HOST", "SDP", "DCP", "CDP", "ACA", "FAST-CHARGER", "SLOW-CHARGER", "WPT", "PD", "DOCK", "JIG", "MECHANICAL"

cm-cable-extcon — required here

name of extcon dev

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

cm-cable-min — not listed as required here

minimum current of cable in uA

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

cm-cable-max — not listed as required here

maximum current of cable in uA

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

Required in this object (required): "cm-cable-name", "cm-cable-extcon"

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "cm-chargers", "cm-fuel-gauge"

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

false

Not allowed by this rule.

Examples (examples) #

charger-manager {
    compatible = "charger-manager";
    chg-reg-supply = <&charger_regulator>;

    cm-name = "battery";
    /* Always polling ON : 30s */
    cm-poll-mode = <1>;
    cm-poll-interval = <30000>;

    cm-fullbatt-vchkdrop-volt = <150000>;
    cm-fullbatt-soc = <100>;

    cm-battery-stat = <3>;

    cm-chargers = "charger0", "charger1", "charger2";

    cm-fuel-gauge = "fuelgauge0";

    cm-thermal-zone = "thermal_zone.1";
    /* in deci centigrade */
    cm-battery-cold = <50>;
    cm-battery-cold-in-minus;
    cm-battery-hot = <800>;
    cm-battery-temp-diff = <100>;

    /* Allow charging for 5hr */
    cm-charging-max = <18000000>;
    /* Allow discharging for 2hr */
    cm-discharging-max = <7200000>;

    regulator-0 {
        cm-regulator-name = "chg-reg";
        cable-0 {
            cm-cable-name = "USB";
            cm-cable-extcon = "extcon-dev.0";
            cm-cable-min = <475000>;
            cm-cable-max = <500000>;
        };
        cable-1 {
            cm-cable-name = "SDP";
            cm-cable-extcon = "extcon-dev.0";
            cm-cable-min = <650000>;
            cm-cable-max = <675000>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 42: disabled

Line 43: always

Line 44: when external power is connected

Line 45: when charging

Line 55: battery always present

Line 56: no battery

Line 57: check presence via fuel gauge

Line 58: check presence via charger

Motorola CPCAP PMIC battery

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/cpcap-battery.yaml#"

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

Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>", "Sebastian Reichel <sre@kernel.org>"

Motorola CPCAP is a PMIC found in some mobile phones, e.g. the Droid 4. This binding describes its battery fuel gauge sub-function.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "motorola,cpcap-battery"

interrupts — required here #

Array item rules (items) #

Item 1

eol interrupt

Item 2

low battery percentage interrupt

Item 3

critical battery percentage interrupt

Item 4

charger detect interrupt

Item 5

battery detect interrupt

Item 6

coulomb counter calibration interrupt

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "eol"

Item 2

Exact value (const): "lowbph"

Item 3

Exact value (const): "lowbpl"

Item 4

Exact value (const): "chrgcurr1"

Item 5

Exact value (const): "battdetb"

Item 6

Exact value (const): "cccal"

io-channels — required here #

Array item rules (items) #

Item 1

battery temperature

Item 2

battery voltage

Item 3

battery charge current

Item 4

battery current

io-channel-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "battdetb"

Item 2

Exact value (const): "battp"

Item 3

Exact value (const): "chg_isense"

Item 4

Exact value (const): "batti"

power-supplies — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "interrupts", "interrupt-names", "io-channels", "io-channel-names", "power-supplies"

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

false

Not allowed by this rule.

Examples (examples) #

cpcap {
  battery {
    compatible = "motorola,cpcap-battery";
    interrupts-extended =
            <&cpcap 6 0>, <&cpcap 5 0>, <&cpcap 3 0>,
            <&cpcap 20 0>, <&cpcap 54 0>, <&cpcap 57 0>;
    interrupt-names =
            "eol", "lowbph", "lowbpl",
            "chrgcurr1", "battdetb", "cccal";
    io-channels = <&cpcap_adc 0>, <&cpcap_adc 1>,
                  <&cpcap_adc 5>, <&cpcap_adc 6>;
    io-channel-names = "battdetb", "battp",
                       "chg_isense", "batti";
    power-supplies = <&cpcap_charger>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

Motorola CPCAP PMIC charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/cpcap-charger.yaml#"

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

Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>", "Sebastian Reichel <sre@kernel.org>"

Motorola CPCAP is a PMIC found in some mobile phones, e.g. the Droid 4. This binding describes its battery charger sub-function.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "motorola,mapphone-cpcap-charger"

interrupts — required here #

Array item rules (items) #

Item 1

charger detection interrupt

Item 2

reverse charge interrupt

Item 3

SE1 charger detection interrupt

Item 4

SE0 charger detection interrupt

Item 5

reverse mode interrupt

Item 6

charge current 2 interrupt

Item 7

charge current 1 interrupt

Item 8

VBUS valid interrupt

Item 9

battery detect interrupt

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "chrg_det"

Item 2

Exact value (const): "rvrs_chrg"

Item 3

Exact value (const): "chrg_se1b"

Item 4

Exact value (const): "se0conn"

Item 5

Exact value (const): "rvrs_mode"

Item 6

Exact value (const): "chrgcurr2"

Item 7

Exact value (const): "chrgcurr1"

Item 8

Exact value (const): "vbusvld"

Item 9

Exact value (const): "battdetb"

io-channels — required here #

Array item rules (items) #

Item 1

battery temperature

Item 2

battery voltage

Item 3

VBUS voltage

Item 4

battery charge current

Item 5

battery current

io-channel-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "battdetb"

Item 2

Exact value (const): "battp"

Item 3

Exact value (const): "vbus"

Item 4

Exact value (const): "chg_isense"

Item 5

Exact value (const): "batti"

mode-gpios — not listed as required here #

Optionally CPCAP charger can have a companion wireless charge controller that is controlled with two GPIOs that are active low.

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Required in this object (required): "compatible", "interrupts", "interrupt-names", "io-channels", "io-channel-names"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
cpcap {
  charger {
    compatible = "motorola,mapphone-cpcap-charger";
    interrupts-extended =
            <&cpcap 13 0>, <&cpcap 12 0>, <&cpcap 29 0>, <&cpcap 28 0>,
            <&cpcap 22 0>, <&cpcap 21 0>, <&cpcap 20 0>, <&cpcap 19 0>,
            <&cpcap 54 0>;
    interrupt-names =
            "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
            "rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld",
            "battdetb";
    mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW>,
                 <&gpio3 23 GPIO_ACTIVE_LOW>;
    io-channels = <&cpcap_adc 0>, <&cpcap_adc 1>,
                  <&cpcap_adc 2>, <&cpcap_adc 5>,
                  <&cpcap_adc 6>;
    io-channel-names = "battdetb", "battp",
                       "vbus", "chg_isense",
                       "batti";
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

Battery driver for CW2015 shuntless fuel gauge by CellWise.

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/cw2015_battery.yaml#"

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

Maintainers (maintainers): "Tobias Schramm <t.schramm@manjaro.org>"

The driver can utilize information from a simple-battery linked via a phandle in monitored-battery. If specified the driver uses the charge-full-design-microamp-hours property of the battery.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cellwise,cw2015"

reg — required here #

Maximum number of items (maxItems): 1

cellwise,battery-profile — not listed as required here #

This property specifies characteristics of the battery used. The format of this binary blob is kept secret by CellWise. The only way to obtain it is to mail two batteries to a test facility of CellWise and receive back a test report with the binary blob.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Minimum number of items (minItems): 64

Maximum number of items (maxItems): 64

cellwise,monitor-interval-ms — not listed as required here #

Specifies the interval in milliseconds gauge values are polled at

Minimum value (minimum): 250

power-supplies — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

monitored-battery — not listed as required here #

true — No constraints added by this property rule.

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

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>;

    cw2015@62 {
        compatible = "cellwise,cw2015";
        reg = <0x62>;
        cellwise,battery-profile = /bits/ 8 <
            0x17 0x67 0x80 0x73 0x6E 0x6C 0x6B 0x63
            0x77 0x51 0x5C 0x58 0x50 0x4C 0x48 0x36
            0x15 0x0C 0x0C 0x19 0x5B 0x7D 0x6F 0x69
            0x69 0x5B 0x0C 0x29 0x20 0x40 0x52 0x59
            0x57 0x56 0x54 0x4F 0x3B 0x1F 0x7F 0x17
            0x06 0x1A 0x30 0x5A 0x85 0x93 0x96 0x2D
            0x48 0x77 0x9C 0xB3 0x80 0x52 0x94 0xCB
            0x2F 0x00 0x64 0xA5 0xB5 0x11 0xF0 0x11
       >;
       cellwise,monitor-interval-ms = <5000>;
       monitored-battery = <&bat>;
       power-supplies = <&mains_charger>, <&usb_charger>;
   };
};

Source notes #

Annotations retained from the schema source

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

Line 44: Should be enough

Dialog Semiconductor DA9150 Charger Power Supply

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/dlg,da9150-charger.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "dlg,da9150-charger"

io-channels — not listed as required here #

Array item rules (items) #

Item 1

ADC channel for current

Item 2

ADC channel for bus voltage

Item 3

ADC channel for junction temperature

Item 4

ADC channel for battery voltage

io-channel-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "CHAN_IBUS"

Item 2

Exact value (const): "CHAN_VBUS"

Item 3

Exact value (const): "CHAN_TJUNC"

Item 4

Exact value (const): "CHAN_VBAT"

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Examples (examples) #

pmic {
  charger {
    compatible = "dlg,da9150-charger";
    io-channels = <&gpadc 0>,
                  <&gpadc 2>,
                  <&gpadc 8>,
                  <&gpadc 5>;
    io-channel-names = "CHAN_IBUS",
                       "CHAN_VBUS",
                       "CHAN_TJUNC",
                       "CHAN_VBAT";
  };
};

Source notes #

Annotations retained from the schema source

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

Dialog Semiconductor DA9150 Fuel-Gauge Power Supply

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/dlg,da9150-fuel-gauge.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "dlg,da9150-fuel-gauge"

dlg,update-interval — not listed as required here #

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

Interval time (milliseconds) between battery level checks.

dlg,warn-soc-level — not listed as required here #

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

Minimum value (minimum): 1

Maximum value (maximum): 100

Battery discharge level (%) where warning event raised.

dlg,crit-soc-level — not listed as required here #

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

Minimum value (minimum): 1

Maximum value (maximum): 100

Battery discharge level (%) where critical event raised. This value should be lower than the warning level.

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Examples (examples) #

pmic {
  battery {
    compatible = "dlg,da9150-fuel-gauge";
    dlg,update-interval = <10000>;
    dlg,warn-soc-level = /bits/ 8 <15>;
    dlg,crit-soc-level = /bits/ 8 <5>;
  };
};

Source notes #

Annotations retained from the schema source

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

Android Goldfish Battery

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/google,goldfish-battery.yaml#"

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

Maintainers (maintainers): "Kuan-Wei Chiu <visitorckw@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Android goldfish battery device generated by Android emulator.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "google,goldfish-battery"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

battery@9020000 {
    compatible = "google,goldfish-battery";
    reg = <0x9020000 0x1000>;
    interrupts = <3>;
};

Source notes #

Annotations retained from the schema source

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

simple battery chargers only communicating through GPIOs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/gpio-charger.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

This binding is for all chargers, which are working more or less autonomously, only providing some status GPIOs and possibly some GPIOs for limited control over the charging process.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "gpio-charger"

charger-type — not listed as required here #

Allowed values (enum): "unknown", "battery", "ups", "mains", "usb-sdp", "usb-dcp", "usb-cdp", "usb-aca"

Type of the charger, e.g. "mains" for a wall charger.

gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO indicating the charger presence

charge-status-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO indicating the charging status

charge-current-limit-gpios — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

GPIOs used for current limiting

charge-current-limit-mapping — not listed as required here #

List of tuples with current in uA and a GPIO bitmap (in this order). The tuples must be provided in descending order of the current limit.

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

Array item rules (items) #

Array item rules (items)

Item 1

Current limit in uA

Item 2

Encoded GPIO setting. Bit 0 represents last GPIO from the charge-current-limit-gpios property. Bit 1 second to last GPIO and so on.

charge-current-limit-default-microamp — not listed as required here #

Default charge current limit. Must be listed in charge-current-limit-mapping.

Required in this object (required): "compatible"

At least one of these rules must match (anyOf) #

Rule 1 #

Required in this object (required): "gpios"

Rule 2 #

Required in this object (required): "charge-status-gpios"

Rule 3 #

Required in this object (required): "charge-current-limit-gpios"

Property dependencies (dependencies) #

charge-current-limit-gpios — applies when this property is present #

Also requires: "charge-current-limit-mapping"

charge-current-limit-mapping — applies when this property is present #

Also requires: "charge-current-limit-gpios"

charge-current-limit-default-microamp — applies when this property is present #

Also requires: "charge-current-limit-mapping"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

charger {
  compatible = "gpio-charger";
  charger-type = "usb-sdp";

  gpios = <&gpd 28 GPIO_ACTIVE_LOW>;
  charge-status-gpios = <&gpc 27 GPIO_ACTIVE_LOW>;

  charge-current-limit-gpios = <&gpioA 11 GPIO_ACTIVE_HIGH>,
                               <&gpioA 12 GPIO_ACTIVE_HIGH>;
  charge-current-limit-mapping = <2500000 0x00>, // 2.5 A => both GPIOs low
                                 <700000 0x01>, // 700 mA => GPIO A.12 high
                                 <0 0x02>; // 0 mA => GPIO A.11 high
  charge-current-limit-default-microamp = <700000>;
};

Source notes #

Annotations retained from the schema source

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

Line 27: USB standard downstream port

Line 28: USB dedicated charging port

Line 29: USB charging downstream port

Line 30: USB accessory charger adapter

Ingenic JZ47xx battery

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/ingenic,battery.yaml#"

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

Maintainers (maintainers): "Artur Rojek <contact@artur-rojek.eu>"

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "ingenic,jz4740-battery"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ingenic,jz4725b-battery", "ingenic,jz4770-battery"

Item 2

Exact value (const): "ingenic,jz4740-battery"

io-channels — required here #

Maximum number of items (maxItems): 1

io-channel-names — required here #

Exact value (const): "battery"

monitored-battery — required here #

This property must be a phandle to a node using the format described in battery.yaml, with the following properties being required: - voltage-min-design-microvolt: drained battery voltage, - voltage-max-design-microvolt: fully charged battery voltage.

Required in this object (required): "compatible", "io-channels", "io-channel-names", "monitored-battery"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/iio/adc/ingenic,adc.h>

simple_battery: battery {
    compatible = "simple-battery";
    voltage-min-design-microvolt = <3600000>;
    voltage-max-design-microvolt = <4200000>;
};

ingenic-battery {
    compatible = "ingenic,jz4740-battery";
    io-channels = <&adc INGENIC_ADC_BATTERY>;
    io-channel-names = "battery";
    monitored-battery = <&simple_battery>;
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright 2019-2020 Artur Rojek

NXP ISP1704 USB Charger Detection

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/isp1704.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,isp1704"

nxp,enable-gpio — required here #

Maximum number of items (maxItems): 1

GPIO connected to the chip's enable pin

usb-phy — required here #

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

USB PHY the ISP1704 is connected to

Required in this object (required): "compatible", "nxp,enable-gpio", "usb-phy"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
charger-detect {
  compatible = "nxp,isp1704";
  nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_LOW>;
  usb-phy = <&usb2_phy>;
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

LEGO MINDSTORMS EV3 Battery

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/lego,ev3-battery.yaml#"

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

Maintainers (maintainers): "David Lechner <david@lechnology.com>", "Sebastian Reichel <sre@kernel.org>"

LEGO MINDSTORMS EV3 has some built-in capability for monitoring the battery. It uses 6 AA batteries or a special Li-ion rechargeable battery pack that is detected by a key switch in the battery compartment.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "lego,ev3-battery"

io-channels — required here #

Array item rules (items) #

Item 1

ADC channel for battery voltage

Item 2

ADC channel for battery current

io-channel-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "voltage"

Item 2

Exact value (const): "current"

rechargeable-gpios — required here #

Maximum number of items (maxItems): 1

Rechargeable battery indication gpio

Required in this object (required): "compatible", "io-channels", "io-channel-names", "rechargeable-gpios"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
battery {
  compatible = "lego,ev3-battery";
  io-channels = <&adc 4>, <&adc 3>;
  io-channel-names = "voltage", "current";
  rechargeable-gpios = <&gpio 136 GPIO_ACTIVE_LOW>;
};

Source notes #

Annotations retained from the schema source

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

Analog Devices LT3651 Charger Power Supply

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/lltc,lt3651-charger.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "lltc,lt3651-charger", "lltc,ltc3651-charger"

lltc,acpr-gpios — required here #

Maximum number of items (maxItems): 1

lltc,fault-gpios — not listed as required here #

Maximum number of items (maxItems): 1

lltc,chrg-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "lltc,acpr-gpios"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
charger {
  compatible = "lltc,lt3651-charger";
  lltc,acpr-gpios = <&gpio0 68 GPIO_ACTIVE_LOW>;
  lltc,fault-gpios = <&gpio0 64 GPIO_ACTIVE_LOW>;
  lltc,chrg-gpios = <&gpio0 63 GPIO_ACTIVE_LOW>;
};

Source notes #

Annotations retained from the schema source

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

Line 19: deprecated, use lltc,lt3651-charger

LTC2941, LTC2942, LTC2943 and LTC2944 battery fuel gauges

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/lltc,ltc294x.yaml#"

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

All chips measure battery capacity. The LTC2942 is pin compatible with the LTC2941, it adds voltage and temperature monitoring, and is runtime detected. LTC2943 and LTC2944 are software compatible, uses a slightly different conversion formula for the charge counter and adds voltage, current and temperature monitoring.

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "lltc,ltc2941", "lltc,ltc2942", "lltc,ltc2943", "lltc,ltc2944"

reg — required here #

Maximum number of items (maxItems): 1

lltc,resistor-sense — required here #

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

Sense resistor value in milli-ohms. Can be negative value when the battery has been connected to the wrong end of the resistor.

lltc,prescaler-exponent — required here #

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

The prescaler exponent as explained in the datasheet. This determines the range and accuracy of the gauge. The value is programmed into the chip only if it differs from the current setting. The setting is lost when the battery is disconnected.

Required in this object (required): "compatible", "reg", "lltc,resistor-sense", "lltc,prescaler-exponent"

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>;
  battery@64 {
    compatible = "lltc,ltc2943";
    reg = <0x64>;
    lltc,resistor-sense = <15>;
    lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */
  };
};

Source notes #

Annotations retained from the schema source

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

Linear Technology (Analog Devices) LTC4162-L Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/ltc4162-l.yaml#"

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

Maintainers (maintainers): "Mike Looijmans <mike.looijmans@topic.nl>"

The LTC ® 4162-L is an advanced monolithic synchronous step-down switching battery charger and PowerPath (TM) manager that seamlessly manages power distribution between input sources such as wall adapters, backplanes, solar panels, etc., and a rechargeable Lithium-Ion/Polymer battery.

Specifications about the charger can be found at:
  https://www.analog.com/en/products/ltc4162-l.html
  https://www.analog.com/en/products/ltc4162-f.html
  https://www.analog.com/en/products/ltc4162-s.html
  https://www.analog.com/en/products/ltc4015.html

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "lltc,ltc4015", "lltc,ltc4162-f", "lltc,ltc4162-l", "lltc,ltc4162-s"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the charger.

lltc,rsnsb-micro-ohms — required here #

Battery sense resistor in microohm.

Minimum value (minimum): 1000

lltc,rsnsi-micro-ohms — required here #

Input current sense resistor in microohm.

Minimum value (minimum): 1000

lltc,cell-count — not listed as required here #

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

Number of battery cells. If not provided, will be obtained from the chip once the external power is applied. Omit this when the number of cells is somewhat dynamic. Without it, several measurements will return 0 until the charger is connected to an external supply.

Required in this object (required): "compatible", "reg", "lltc,rsnsb-micro-ohms", "lltc,rsnsi-micro-ohms"

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>;
    charger: battery-charger@68 {
        compatible = "lltc,ltc4162-l";
        reg = <0x68>;
        lltc,rsnsb-micro-ohms = <10000>;
        lltc,rsnsi-micro-ohms = <16000>;
        lltc,cell-count = <2>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2020 Topic Embedded Products

Battery charger driver for MAX77650 PMIC from Maxim Integrated.

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/max77650-charger.yaml#"

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

Maintainers (maintainers): "Bartosz Golaszewski <bgolaszewski@baylibre.com>"

This module is part of the MAX77650 MFD device. For more details see Documentation/devicetree/bindings/mfd/max77650.yaml.

The charger is represented as a sub-node of the PMIC node on the device tree.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max77650-charger"

input-voltage-min-microvolt — not listed as required here #

Minimum CHGIN regulation voltage.

Allowed values (enum): 4000000, 4100000, 4200000, 4300000, 4400000, 4500000, 4600000, 4700000

input-current-limit-microamp — not listed as required here #

CHGIN input current limit (in microamps).

Allowed values (enum): 95000, 190000, 285000, 380000, 475000

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Maxim DS2760

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,ds2760.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

The ds2760 is a w1 slave device and must hence have its sub-node in DT under a w1 bus master node.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,ds2760"

maxim,pmod-enabled — not listed as required here #

Allow the DS2760 to enter sleep mode when the DQ line goes low for more than 2 seconds and leave sleep Mode when the DQ line goes high.

Value type (type): "boolean"

maxim,cache-time-ms — not listed as required here #

Time im milliseconds to cache the data for. When this time expires, the values are read again from the hardware. Defaults to 1000.

rated-capacity-microamp-hours — not listed as required here #

The rated capacity of the battery, in mAh. If not specified, the value stored in the non-volatile chip memory is used.

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Maxim MAX14577/MAX77836 MicroUSB and Companion Power Management IC Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max14577.yaml#"

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

This is a part of device tree bindings for Maxim MAX14577/MAX77836 MicroUSB Integrated Circuit (MUIC).

See also Documentation/devicetree/bindings/mfd/maxim,max14577.yaml for additional information and example.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "maxim,max14577-charger", "maxim,max77836-charger"

maxim,constant-uvolt — required here #

Battery Constant Voltage in uV

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

Minimum value (minimum): 4000000

Maximum value (maximum): 4350000

maxim,eoc-uamp — required here #

Current in uA for End-Of-Charge mode. MAX14577: 50000-20000 MAX77836: 5000-100000

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

maxim,fast-charge-uamp — required here #

Current in uA for Fast Charge MAX14577: 90000-950000 MAX77836: 45000-475000

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

maxim,ovp-uvolt — required here #

OverVoltage Protection Threshold in uV; In an overvoltage condition, INT asserts and charging stops.

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

Allowed values (enum): 6000000, 6500000, 7000000, 7500000

Required in this object (required): "compatible", "maxim,constant-uvolt", "maxim,eoc-uamp", "maxim,fast-charge-uamp", "maxim,ovp-uvolt"

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): "maxim,max14577-charger"

When the condition matches (then) #

Properties and child nodes (properties)

maxim,eoc-uamp — not listed as required here

Minimum value (minimum): 50000

Maximum value (maximum): 200000

maxim,fast-charge-uamp — not listed as required here

Minimum value (minimum): 90000

Maximum value (maximum): 950000

When the condition does not match (else) #

Properties and child nodes (properties)

maxim,eoc-uamp — not listed as required here

Minimum value (minimum): 5000

Maximum value (maximum): 100000

maxim,fast-charge-uamp — not listed as required here

Minimum value (minimum): 45000

Maximum value (maximum): 475000

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Line 75: max77836

Maxim MAX14656

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max14656.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max14656"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  charger-detector@35 {
    compatible = "maxim,max14656";
    reg = <0x35>;
    interrupt-parent = <&gpio6>;
    interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
  };
};

Source notes #

Annotations retained from the schema source

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

Maxim 17040 fuel gauge series

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max17040.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "maxim,max17040", "maxim,max17041", "maxim,max17043", "maxim,max17044", "maxim,max17048", "maxim,max17049", "maxim,max17058", "maxim,max17059", "maxim,max77836-battery"

reg — required here #

Maximum number of items (maxItems): 1

maxim,alert-low-soc-level — not listed as required here #

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

Minimum value (minimum): 1

Maximum value (maximum): 32

The alert threshold that sets the state of charge level (%) where an interrupt is generated. If skipped the power up default value of 4 (%) will be used.

maxim,double-soc — not listed as required here #

Value type (type): "boolean"

Certain devices return double the capacity. Specify this to divide the reported value in 2 and thus normalize it. SoC == State of Charge == Capacity.

maxim,rcomp — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

A value to compensate readings for various battery chemistries and operating temperatures. max17040,41 have 2 byte rcomp, default to 0x97 0x00. All other devices have one byte rcomp, default to 0x97.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

io-channels — not listed as required here #

Array item rules (items) #

Item 1

battery temperature

io-channel-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "temp"

wakeup-source — not listed as required here #

Value type (type): "boolean"

Use this property to use alert low SoC level interrupt as wake up source.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

  battery@36 {
    compatible = "maxim,max17048";
    reg = <0x36>;
    maxim,rcomp = /bits/ 8 <0x56>;
    maxim,alert-low-soc-level = <10>;
    maxim,double-soc;
  };
};
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  battery@36 {
    compatible = "maxim,max77836-battery";
    reg = <0x36>;
    maxim,alert-low-soc-level = <10>;
    interrupt-parent = <&gpio7>;
    interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
    wakeup-source;
  };
};
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  fuel-gauge@36 {
    compatible = "maxim,max17043";
    reg = <0x36>;

    interrupt-parent = <&gpio>;
    interrupts = <144 IRQ_TYPE_EDGE_FALLING>;

    monitored-battery = <&battery>;
    power-supplies = <&charger>;

    io-channels = <&adc 8>;
    io-channel-names = "temp";

    maxim,alert-low-soc-level = <10>;
    wakeup-source;
  };
};

Source notes #

Annotations retained from the schema source

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

Maxim 17042 fuel gauge series

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max17042.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "maxim,max17042", "maxim,max17047", "maxim,max17050", "maxim,max17055", "maxim,max77705-battery", "maxim,max77849-battery"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

The ALRT pin, an open-drain interrupt.

maxim,rsns-microohm — not listed as required here #

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

Resistance of rsns resistor in micro Ohms (datasheet-recommended value is 10000). Defining this property enables current-sense functionality.

maxim,cold-temp — not listed as required here #

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

Temperature threshold to report battery as cold (in tenths of degree Celsius). Default is not to report cold events.

maxim,over-heat-temp — not listed as required here #

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

Temperature threshold to report battery as over heated (in tenths of degree Celsius). Default is not to report over heating events.

maxim,dead-volt — not listed as required here #

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

Voltage threshold to report battery as dead (in mV). Default is not to report dead battery events.

maxim,over-volt — not listed as required here #

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

Voltage threshold to report battery as over voltage (in mV). Default is not to report over-voltage events.

power-supplies — not listed as required here #

true — No constraints added by this property rule.

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

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>;

  battery@36 {
    compatible = "maxim,max17042";
    reg = <0x36>;
    maxim,rsns-microohm = <10000>;
    maxim,over-heat-temp = <600>;
    maxim,over-volt = <4300>;
  };
};

Source notes #

Annotations retained from the schema source

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

Maxim MAX17201 fuel gauge

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max17201.yaml#"

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

Maintainers (maintainers): "Dimitri Fedrau <dima.fedrau@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "maxim,max17201"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "maxim,max17205"

Item 2

Exact value (const): "maxim,max17201"

reg — required here #

Array item rules (items) #

Item 1

ModelGauge m5 registers

Item 2

Nonvolatile registers

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "m5"

Item 2

Exact value (const): "nvmem"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  fuel-gauge@36 {
    compatible = "maxim,max17201";
    reg = <0x36>, <0xb>;
    reg-names = "m5", "nvmem";
    interrupt-parent = <&gpio0>;
    interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
  };
};

Source notes #

Annotations retained from the schema source

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

Maxim MAX77693 MicroUSB and Companion Power Management IC Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max77693.yaml#"

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

This is a part of device tree bindings for Maxim MAX77693 MicroUSB Integrated Circuit (MUIC).

See also Documentation/devicetree/bindings/mfd/maxim,max77693.yaml for additional information and example.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max77693-charger"

maxim,constant-microvolt — not listed as required here #

Battery constant voltage in uV. The charger will operate in fast charge constant current mode till battery voltage reaches this level. Then the charger will switch to fast charge constant voltage mode. Also vsys (system voltage) will be set to this value when DC power is supplied but charger is not enabled. Valid values: 3650000 - 4400000, step by 25000 (rounded down)

Minimum value (minimum): 3650000

Maximum value (maximum): 4400000

Default value (default): 4200000

maxim,min-system-microvolt — not listed as required here #

Minimal system voltage in uV.

Allowed values (enum): 3000000, 3100000, 3200000, 3300000, 3400000, 3500000, 3600000, 3700000

Default value (default): 3600000

maxim,thermal-regulation-celsius — not listed as required here #

Temperature in Celsius for entering high temperature charging mode. If die temperature exceeds this value the charging current will be reduced by 105 mA/Celsius.

Allowed values (enum): 70, 85, 100, 115

Default value (default): 100

maxim,battery-overcurrent-microamp — not listed as required here #

Overcurrent protection threshold in uA (current from battery to system). Valid values: 2000000 - 3500000, step by 250000 (rounded down)

Minimum value (minimum): 2000000

Maximum value (maximum): 3500000

Default value (default): 3500000

maxim,charge-input-threshold-microvolt — not listed as required here #

Threshold voltage in uV for triggering input voltage regulation loop. If input voltage decreases below this value, the input current will be reduced to reach the threshold voltage.

Allowed values (enum): 4300000, 4700000, 4800000, 4900000

Default value (default): 4300000

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Maxim MAX777705 charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max77705.yaml#"

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

Maintainers (maintainers): "Dzmitry Sankouski <dsankouski@gmail.com>"

This is a device tree bindings for charger found in Maxim MAX77705 chip.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max77705-charger"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "monitored-battery"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

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

    charger@69 {
        compatible = "maxim,max77705-charger";
        reg = <0x69>;
        monitored-battery = <&battery>;
        interrupt-parent = <&pm8998_gpios>;
        interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

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

Maxim Integrated MAX77976 Battery charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max77976.yaml#"

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

Maintainers (maintainers): "Luca Ceresoli <luca.ceresoli@bootlin.com>"

The Maxim MAX77976 is a 19Vin / 5.5A, 1-Cell Li+ battery charger configured via I2C.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max77976"

reg — required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

  charger@6b {
    compatible = "maxim,max77976";
    reg = <0x6b>;
  };
};

Source notes #

Annotations retained from the schema source

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

Maxim Semiconductor MAX8903 Battery Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max8903.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max8903"

dok-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Valid DC power has been detected (active low, input)

uok-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Valid USB power has been detected (active low, input)

cen-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Charge enable pin (active low, output)

chg-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Charger status pin (active low, input)

flt-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Fault pin (active low, input)

dcm-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Current limit mode setting (DC=1 or USB=0, output)

usus-gpios — not listed as required here #

Maximum number of items (maxItems): 1

USB suspend pin (active high, output)

Required in this object (required): "compatible"

At least one of these rules must match (anyOf) #

Rule 1 #

Required in this object (required): "dok-gpios"

Rule 2 #

Required in this object (required): "uok-gpios"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
charger {
  compatible = "maxim,max8903";
  dok-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
  flt-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
  chg-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
  cen-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
};

Source notes #

Annotations retained from the schema source

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

Maxim MAX8971 IC charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max8971.yaml#"

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

Maintainers (maintainers): "Svyatoslav Ryhel <clamor95@gmail.com>"

The MAX8971 is a compact, high-frequency, high-efficiency switch-mode charger for a one-cell lithium-ion (Li+) battery.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max8971"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

monitored-battery — not listed as required here #

true — No constraints added by this property rule.

port — not listed as required here #

An optional port node to link the extcon device to detect type of plug.

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

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

    charger@35 {
        compatible = "maxim,max8971";
        reg = <0x35>;

        interrupt-parent = <&gpio>;
        interrupts = <74 IRQ_TYPE_LEVEL_LOW>;

        monitored-battery = <&battery>;

        port {
            charger_input: endpoint {
                remote-endpoint = <&extcon_output>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

MediaTek MT6370 Battery Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/mediatek,mt6370-charger.yaml#"

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

Maintainers (maintainers): "ChiaEn Wu <chiaen_wu@richtek.com>"

This module is part of the MT6370 MFD device. Provides Battery Charger, Boost for OTG devices and BC1.2 detection.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt6370-charger"

interrupts — required here #

Specify what irqs are needed to be handled by MT6370 Charger driver. We need to use the IRQ "MT6370_IRQ_OVPCTRL_UVP_D" to know when USB is plugged in, and then the driver will enable BC1.2 detection. After the hardware of MT6370 completes the BC1.2 detection, IRQ "MT6370_IRQ_ATTACH" will be triggered, and the driver will know the result of BC1.2 detection. When the IRQ "MT6370_IRQ_CHG_MIVR" is triggered, it means that the hardware enters the "Minimum Input Voltage Regulation loop" and a workaround needs to be applied at this time. In summary, "MT6370_IRQ_OVPCTRL_UVP_D", "MT6370_IRQ_ATTACH" and "MT6370_IRQ_CHG_MIVR" are required in this charger driver.

Array item rules (items) #

Item 1

irq of "USB is plugged in"

Item 2

irq of "BC1.2 is done"

Item 3

irq of "Minimum Input Voltage Regulation loop is active"

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "uvp_d_evt"

Item 2

Exact value (const): "attach_i"

Item 3

Exact value (const): "mivr"

io-channels — required here #

Use ADC channel to read VBUS, IBUS, IBAT, etc., info.

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

VBUS voltage with lower accuracy (+-75mV) but higher measure range (1~22V)

Item 2

VBUS voltage with higher accuracy (+-30mV) but lower measure range (1~9.76V)

Item 3

the main system input voltage

Item 4

battery voltage

Item 5

battery temperature-sense input voltage

Item 6

IBUS current (required)

Item 7

battery current

Item 8

regulated output voltage to supply for the PWM low-side gate driver and the bootstrap capacitor

Item 9

IC junction temperature

io-channel-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "vbusdiv5"

Item 2

Exact value (const): "vbusdiv2"

Item 3

Exact value (const): "vsys"

Item 4

Exact value (const): "vbat"

Item 5

Exact value (const): "ts_bat"

Item 6

Exact value (const): "ibus"

Item 7

Exact value (const): "ibat"

Item 8

Exact value (const): "chg_vddp"

Item 9

Exact value (const): "temp_jc"

usb-otg-vbus-regulator — not listed as required here #

Value type (type): "object"

OTG boost regulator.

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) #

enable-gpios — not listed as required here

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "interrupts", "interrupt-names", "io-channels"

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Microchip UCS1002 USB Port Power Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/microchip,ucs1002.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "microchip,ucs1002"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "a_det"

Item 2

Exact value (const): "alert"

Rule 2

Exact value (const): "a_det"

Rule 3

Exact value (const): "alert"

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

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

    charger@32 {
        compatible = "microchip,ucs1002";
        reg = <0x32>;
        interrupts-extended = <&gpio5 2 IRQ_TYPE_EDGE_BOTH>,
                              <&gpio3 21 IRQ_TYPE_EDGE_BOTH>;
        interrupt-names = "a_det", "alert";
   };
};

Source notes #

Annotations retained from the schema source

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

Mitsumi MM8013 fuel gauge

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/mitsumi,mm8013.yaml#"

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

Maintainers (maintainers): "Konrad Dybcio <konradybcio@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mitsumi,mm8013"

reg — required here #

Maximum number of items (maxItems): 1

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

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>;

  fuel-gauge@55 {
    compatible = "mitsumi,mm8013";
    reg = <0x55>;
  };
};

Source notes #

Annotations retained from the schema source

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

Battery charger driver for MT6360 PMIC from MediaTek Integrated.

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/mt6360_charger.yaml#"

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

Maintainers (maintainers): "Gene Chen <gene_chen@richtek.com>"

This module is part of the MT6360 MFD device. Provides Battery Charger, Boost for OTG devices and BC1.2 detection.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt6360-chg"

richtek,vinovp-microvolt — not listed as required here #

Maximum CHGIN regulation voltage in uV.

Allowed values (enum): 5500000, 6500000, 11000000, 14500000

usb-otg-vbus-regulator — not listed as required here #

Value type (type): "object"

OTG boost regulator.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Examples (examples) #

mt6360_charger: charger {
  compatible = "mediatek,mt6360-chg";
  richtek,vinovp-microvolt = <14500000>;

  otg_vbus_regulator: usb-otg-vbus-regulator {
    regulator-name = "usb-otg-vbus";
    regulator-min-microvolt = <4425000>;
    regulator-max-microvolt = <5825000>;
  };
};

Source notes #

Annotations retained from the schema source

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

Nokia N900 battery

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml#"

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

Maintainers (maintainers): "Pali Rohár <pali@kernel.org>", "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nokia,n900-battery"

io-channels — required here #

Array item rules (items) #

Item 1

ADC channel for temperature reading

Item 2

ADC channel for battery size identification

Item 3

ADC channel to measure the battery voltage

io-channel-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "temp"

Item 2

Exact value (const): "bsi"

Item 3

Exact value (const): "vbat"

Required in this object (required): "compatible", "io-channels", "io-channel-names"

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

false

Not allowed by this rule.

Examples (examples) #

battery {
  compatible = "nokia,n900-battery";
  io-channels = <&twl4030_madc 0>,
                <&twl4030_madc 4>,
                <&twl4030_madc 12>;
  io-channel-names = "temp",
                     "bsi",
                     "vbat";
};

Source notes #

Annotations retained from the schema source

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

OLPC Battery

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/olpc-battery.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "olpc,xo1.5-battery"

Item 2

Exact value (const): "olpc,xo1-battery"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "olpc,xo1-battery"

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Pegatron Chagall EC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/pegatron,chagall-ec.yaml#"

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

Maintainers (maintainers): "Svyatoslav Ryhel <clamor95@gmail.com>"

Pegatron Chagall EC is based on an 8-bit programmable microcontroller from Infineon/Cypress Semiconductor, it communicates over I2C and is used in the Pegatron Chagall tablet for fuel gauge and battery control functions.

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "pegatron,chagall-ec"

reg — required here #

Maximum number of items (maxItems): 1

monitored-battery — not listed as required here #

true — No constraints added by this property rule.

power-supplies — not listed as required here #

true — No constraints added by this property rule.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    embedded-controller@10 {
        compatible = "pegatron,chagall-ec";
        reg = <0x10>;

        monitored-battery = <&battery>;
        power-supplies = <&mains>;
    };
};

Source notes #

Annotations retained from the schema source

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

Power Supply Core Support

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/power-supply.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

Properties and child nodes (properties) #

power-supplies — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Maximum number of items (maxItems): 1

This property is added to a supply in order to list the devices which supply it power, referenced by their phandles.

monitored-battery — not listed as required here #

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

The battery (with "simple-battery" compatible) being monitored by this power supply.

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

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Qualcomm Voltage Mode BMS

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/qcom,pm8916-bms-vm.yaml#"

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

Maintainers (maintainers): "Nikita Travkin <nikita@trvn.ru>"

Voltage Mode BMS is a hardware block found in some Qualcomm PMICs such as pm8916. This block performs battery voltage monitoring.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,pm8916-bms-vm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

BMS FSM left S3 mode

Item 2

BMS FSM entered S2 mode

Item 3

OCV measured in S3 mode

Item 4

OCV below threshold

Item 5

FIFO update done

Item 6

BMS FSM switched state

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "cv_leave"

Item 2

Exact value (const): "cv_enter"

Item 3

Exact value (const): "ocv_good"

Item 4

Exact value (const): "ocv_thr"

Item 5

Exact value (const): "fifo"

Item 6

Exact value (const): "state_chg"

monitored-battery — required here #

true — No constraints added by this property rule.

power-supplies — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "monitored-battery"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
pmic {
  #address-cells = <1>;
  #size-cells = <0>;

  battery@4000 {
    compatible = "qcom,pm8916-bms-vm";
    reg = <0x4000>;
    interrupts = <0x0 0x40 0 IRQ_TYPE_EDGE_RISING>,
                 <0x0 0x40 1 IRQ_TYPE_EDGE_RISING>,
                 <0x0 0x40 2 IRQ_TYPE_EDGE_RISING>,
                 <0x0 0x40 3 IRQ_TYPE_EDGE_RISING>,
                 <0x0 0x40 4 IRQ_TYPE_EDGE_RISING>,
                 <0x0 0x40 5 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "cv_leave",
                      "cv_enter",
                      "ocv_good",
                      "ocv_thr",
                      "fifo",
                      "state_chg";

    monitored-battery = <&battery>;
    power-supplies = <&pm8916_charger>;
  };
};

Source notes #

Annotations retained from the schema source

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

Qualcomm Linear Battery Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/qcom,pm8916-lbc.yaml#"

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

Maintainers (maintainers): "Nikita Travkin <nikita@trvn.ru>"

Linear Battery Charger hardware block, found in some Qualcomm PMICs such as pm8916. Implements a simple, autonomous CC/CV charger.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,pm8916-lbc"

reg — required here #

Array item rules (items) #

Item 1

Charger

Item 2

Battery

Item 3

USB

Item 4

MISC

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "chgr"

Item 2

Exact value (const): "bat_if"

Item 3

Exact value (const): "usb"

Item 4

Exact value (const): "misc"

interrupts — required here #

Array item rules (items) #

Item 1

Battery detection

Item 2

Fast charging

Item 3

Charging failed

Item 4

Charging done

Item 5

Battery present

Item 6

Battery temperature OK

Item 7

USB coarse detection

Item 8

USB IN valid

Item 9

Charger gone

Item 10

Overtemperature

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "vbat_det"

Item 2

Exact value (const): "fast_chg"

Item 3

Exact value (const): "chg_fail"

Item 4

Exact value (const): "chg_done"

Item 5

Exact value (const): "bat_pres"

Item 6

Exact value (const): "temp_ok"

Item 7

Exact value (const): "coarse_det"

Item 8

Exact value (const): "usb_vbus"

Item 9

Exact value (const): "chg_gone"

Item 10

Exact value (const): "overtemp"

qcom,fast-charge-safe-voltage — required here #

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

Minimum value (minimum): 4000000

Maximum value (maximum): 4775000

Maximum safe battery voltage in uV; May be pre-set by bootloader, in which case, setting this will harmlessly fail.

qcom,fast-charge-safe-current — required here #

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

Minimum value (minimum): 90000

Maximum value (maximum): 1440000

Maximum safe battery charge current in uA; May be pre-set by bootloader, in which case setting this will harmlessly fail.

monitored-battery — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "qcom,fast-charge-safe-voltage", "qcom,fast-charge-safe-current"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
pmic {
  #address-cells = <1>;
  #size-cells = <0>;

  charger@1000 {
    compatible = "qcom,pm8916-lbc";
    reg = <0x1000>, <0x1200>, <0x1300>, <0x1600>;
    reg-names = "chgr", "bat_if", "usb", "misc";

    interrupts = <0x0 0x10 0 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x10 6 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x13 0 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x13 4 IRQ_TYPE_EDGE_BOTH>;
    interrupt-names = "vbat_det",
                      "fast_chg",
                      "chg_fail",
                      "chg_done",
                      "bat_pres",
                      "temp_ok",
                      "coarse_det",
                      "usb_vbus",
                      "chg_gone",
                      "overtemp";
    monitored-battery = <&battery>;

    qcom,fast-charge-safe-current = <900000>;
    qcom,fast-charge-safe-voltage = <4300000>;
  };
};

Source notes #

Annotations retained from the schema source

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

Qualcomm Switch-Mode Battery Charger and Boost

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/qcom,pm8941-charger.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,pm8226-charger", "qcom,pm8941-charger"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

charge done

Item 2

charge fast mode

Item 3

charge trickle mode

Item 4

battery temperature ok

Item 5

battery present

Item 6

charger disconnected

Item 7

USB-in valid

Item 8

DC-in valid

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "chg-done"

Item 2

Exact value (const): "chg-fast"

Item 3

Exact value (const): "chg-trkl"

Item 4

Exact value (const): "bat-temp-ok"

Item 5

Exact value (const): "bat-present"

Item 6

Exact value (const): "chg-gone"

Item 7

Exact value (const): "usb-valid"

Item 8

Exact value (const): "dc-valid"

qcom,fast-charge-current-limit — not listed as required here #

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

Minimum value (minimum): 100000

Maximum value (maximum): 3000000

Maximum charge current in uA; May be clamped to safety limits; Defaults to 1A

qcom,fast-charge-low-threshold-voltage — not listed as required here #

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

Minimum value (minimum): 2100000

Maximum value (maximum): 3600000

Battery voltage limit in uV above which fast charging may operate; Defaults to 3.2V Below this value linear or switch-mode auto-trickle-charging will operate.

qcom,fast-charge-high-threshold-voltage — not listed as required here #

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

Minimum value (minimum): 3240000

Maximum value (maximum): 5000000

Battery voltage limit in uV below which fast charging may operate; Defaults to 4.2V The fast charger will attempt to charge the battery to this voltage. May be clamped to safety limits.

qcom,fast-charge-safe-voltage — not listed as required here #

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

Minimum value (minimum): 3240000

Maximum value (maximum): 5000000

Maximum safe battery voltage in uV; May be pre-set by bootloader, in which case, setting this will harmlessly fail. The property 'fast-charge-high-watermark' will be clamped by this value. Defaults to 4.2V.

qcom,fast-charge-safe-current — not listed as required here #

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

Minimum value (minimum): 100000

Maximum value (maximum): 3000000

Maximum safe battery charge current in uA; May pre-set by bootloader, in which case, setting this will harmlessly fail. The property 'qcom,fast-charge-current-limit' will be clamped by this value. Defaults to 1A.

qcom,auto-recharge-threshold-voltage — not listed as required here #

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

Minimum value (minimum): 3240000

Maximum value (maximum): 5000000

Battery voltage limit in uV below which auto-recharge functionality will restart charging after end-of-charge; The high cutoff limit for auto-recharge is 5% above this value. Defaults to 4.1V.

qcom,minimum-input-voltage — not listed as required here #

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

Minimum value (minimum): 4200000

Maximum value (maximum): 9600000

Input voltage level in uV above which charging may operate. Defaults to 4.3V.

qcom,dc-current-limit — not listed as required here #

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

Minimum value (minimum): 100000

Maximum value (maximum): 2500000

Default DC charge current limit in uA. Defaults to 100mA.

qcom,disable-dc — not listed as required here #

Value type (type): "boolean"

Disable DC charger

qcom,jeita-extended-temp-range — not listed as required here #

Value type (type): "boolean"

Enable JEITA extended temperature range; This does *not* adjust the maximum charge voltage or current in the extended temperature range. It only allows charging when the battery is in the extended temperature range. Voltage/current regulation must be done externally to fully comply with the JEITA safety guidelines if this flag is set.

usb-charge-current-limit — not listed as required here #

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

Minimum value (minimum): 100000

Maximum value (maximum): 2500000

Default USB charge current limit in uA.

usb-otg-in-supply — not listed as required here #

Reference to the regulator supplying power to the USB_OTG_IN pin.

otg-vbus — not listed as required here #

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

This node defines a regulator used to control the direction of VBUS voltage. Specifically whether to supply voltage to VBUS for host mode operation of the OTG port, or allow input voltage from external VBUS for charging. In the hardware, the supply for this regulator comes from usb_otg_in-supply.

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
pmic {
  #address-cells = <1>;
  #size-cells = <0>;

  charger@1000 {
    compatible = "qcom,pm8941-charger";
    reg = <0x1000>;
    interrupts = <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x10 4 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>,
                 <0x0 0x14 1 IRQ_TYPE_EDGE_BOTH>;
    interrupt-names = "chg-done",
                      "chg-fast",
                      "chg-trkl",
                      "bat-temp-ok",
                      "bat-present",
                      "chg-gone",
                      "usb-valid",
                      "dc-valid";
    qcom,fast-charge-current-limit = <1000000>;
    qcom,dc-current-limit = <1000000>;
    usb-otg-in-supply = <&pm8941_5vs1>;

    otg-vbus {};
  };
};

Source notes #

Annotations retained from the schema source

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

Qualcomm Coincell Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/qcom,pm8941-coincell.yaml#"

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

The hardware block controls charging for a coincell or capacitor that is used to provide power backup for certain features of the power management IC (PMIC)

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "qcom,pm8998-coincell"

Item 2

Exact value (const): "qcom,pm8941-coincell"

Rule 2

Exact value (const): "qcom,pm8941-coincell"

reg — required here #

Maximum number of items (maxItems): 1

qcom,rset-ohms — not listed as required here #

Resistance (in ohms) for current-limiting resistor. If unspecified, inherit the previous configuration (e.g. from bootloader or hardware default value).

Allowed values (enum): 800, 1200, 1700, 2100

qcom,vset-millivolts — not listed as required here #

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

Voltage (in millivolts) to apply for charging. If unspecified, inherit the previous configuration (e.g. from bootloader or hardware default value).

Allowed values (enum): 2500, 3000, 3100, 3200

qcom,charger-disable — not listed as required here #

Value type (type): "boolean"

defining this property disables charging

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

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

false

Not allowed by this rule.

Examples (examples) #

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

  charger@2800 {
    compatible = "qcom,pm8941-coincell";
    reg = <0x2800>;
    qcom,rset-ohms = <2100>;
    qcom,vset-millivolts = <3000>;
  };
};

Source notes #

Annotations retained from the schema source

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

Qualcomm PMI8998/PM660 Switch-Mode Battery Charger "2"

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/qcom,pmi8998-charger.yaml#"

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

Maintainers (maintainers): "Casey Connolly <casey.connolly@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,pmi8998-charger", "qcom,pm660-charger"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 4

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "usb-plugin"

Item 2

Exact value (const): "bat-ov"

Item 3

Exact value (const): "wdog-bark"

Item 4

Exact value (const): "usbin-icl-change"

io-channels — required here #

Array item rules (items) #

Item 1

USB in current in uA

Item 2

USB in voltage in uV

io-channel-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "usbin_i"

Item 2

Exact value (const): "usbin_v"

monitored-battery — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "io-channels", "io-channel-names", "monitored-battery"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

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

  charger@1000 {
    compatible = "qcom,pmi8998-charger";
    reg = <0x1000>;

    interrupts = <0x2 0x12 0x2 IRQ_TYPE_EDGE_BOTH>,
                 <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>,
                 <0x2 0x13 0x6 IRQ_TYPE_EDGE_RISING>,
                 <0x2 0x16 0x1 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "usb-plugin", "bat-ov", "wdog-bark", "usbin-icl-change";

    io-channels = <&pmi8998_rradc 3>,
                  <&pmi8998_rradc 4>;
    io-channel-names = "usbin_i",
                       "usbin_v";

    monitored-battery = <&battery>;
  };
};

Source notes #

Annotations retained from the schema source

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

Richtek RT5033 PMIC Fuel Gauge

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/richtek,rt5033-battery.yaml#"

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

Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "richtek,rt5033-battery"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

  battery@35 {
    compatible = "richtek,rt5033-battery";
    reg = <0x35>;
  };
};
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  battery@35 {
    compatible = "richtek,rt5033-battery";
    reg = <0x35>;
    interrupt-parent = <&msmgpio>;
    interrupts = <121 IRQ_TYPE_EDGE_FALLING>;
  };
};

Source notes #

Annotations retained from the schema source

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

Richtek RT5033 PMIC Battery Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/richtek,rt5033-charger.yaml#"

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

Maintainers (maintainers): "Jakob Hauser <jahau@rocketmail.com>"

The battery charger of the multifunction device RT5033 has to be instantiated under sub-node named "charger" using the following format.

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "richtek,rt5033-charger"

monitored-battery — required here #

Phandle to the monitored battery according to battery.yaml. The battery node needs to contain five parameters.

precharge-current-microamp: Current of pre-charge mode. The pre-charge current levels are 350 mA to 650 mA programmed by I2C per 100 mA.

constant-charge-current-max-microamp: Current of fast-charge mode. The fast-charge current levels are 700 mA to 2000 mA programmed by I2C per 100 mA.

charge-term-current-microamp: This property is end of charge current. Its level ranges from 150 mA to 600 mA. Between 150 mA and 300 mA in 50 mA steps, between 300 mA and 600 mA in 100 mA steps.

precharge-upper-limit-microvolt: Voltage of pre-charge mode. If the battery voltage is below the pre-charge threshold voltage, the charger is in pre-charge mode with pre-charge current. Its levels are 2.3 V to 3.8 V programmed by I2C per 0.1 V.

constant-charge-voltage-max-microvolt: Battery regulation voltage of constant voltage mode. This voltage levels from 3.65 V to 4.4 V by I2C per 0.025 V.

richtek,usb-connector — not listed as required here #

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

Phandle to a USB connector according to usb-connector.yaml. The connector should be a child of the extcon device.

Required in this object (required): "monitored-battery"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

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

false

Not allowed by this rule.

Examples (examples) #

charger {
    compatible = "richtek,rt5033-charger";
    monitored-battery = <&battery>;
    richtek,usb-connector = <&usb_con>;
};

Source notes #

Annotations retained from the schema source

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

Richtek rt9455 battery charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/richtek,rt9455.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "richtek,rt9455"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

richtek,output-charge-current — required here #

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

output current from the charger to the battery, in uA.

richtek,end-of-charge-percentage — required here #

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

percent of the output charge current. When the current in constant-voltage phase drops below output_charge_current x end-of-charge-percentage, charge is terminated.

richtek,battery-regulation-voltage — required here #

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

maximum battery voltage in uV.

richtek,boost-output-voltage — required here #

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

maximum voltage provided to consumer devices, when the charger is in boost mode, in uV.

richtek,min-input-voltage-regulation — not listed as required here #

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

input voltage level in uV, used to decrease voltage level when the over current of the input power source occurs. This prevents input voltage drop due to insufficient current provided by the power source. Defaults to 4500000 uV (4.5V).

richtek,avg-input-current-regulation — not listed as required here #

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

input current value in uA drained by the charger from the power source. Defaults to 500000 uA (500mA).

Required in this object (required): "compatible", "reg", "interrupts", "richtek,output-charge-current", "richtek,end-of-charge-percentage", "richtek,battery-regulation-voltage", "richtek,boost-output-voltage"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  charger@22 {
    compatible = "richtek,rt9455";
    reg = <0x22>;

    interrupt-parent = <&gpio1>;
    interrupts = <0 IRQ_TYPE_LEVEL_LOW>;

    richtek,output-charge-current = <500000>;
    richtek,end-of-charge-percentage = <10>;
    richtek,battery-regulation-voltage = <4200000>;
    richtek,boost-output-voltage = <5050000>;

    richtek,min-input-voltage-regulation = <4500000>;
    richtek,avg-input-current-regulation = <500000>;
  };
};

Source notes #

Annotations retained from the schema source

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

Richtek RT9467 Switching Battery Charger with Power Path Management

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/richtek,rt9467.yaml#"

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

Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>", "ChiaEn Wu <chiaen_wu@richtek.com>"

RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for portable applications. It integrates a synchronous PWM controller, power MOSFETs, input current sensing and regulation, high-accuracy voltage regulation, and charge termination. The charge current is regulated through integrated sensing resistors.

The RT9467 also features USB On-The-Go (OTG) support. It also integrates D+/D- pin for USB host/charging port detection.

Datasheet is available at https://www.richtek.com/assets/product_file/RT9467/DS9467-01.pdf

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "richtek,rt9467"

reg — required here #

Maximum number of items (maxItems): 1

wakeup-source — required here #

true — No constraints added by this property rule.

interrupts — required here #

Maximum number of items (maxItems): 1

charge-enable-gpios — not listed as required here #

GPIO is used to turn on and off charging.

Maximum number of items (maxItems): 1

usb-otg-vbus-regulator — not listed as required here #

Value type (type): "object"

OTG boost regulator.

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) #

enable-gpios — not listed as required here

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "wakeup-source", "interrupts"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  charger@5b {
    compatible = "richtek,rt9467";
    reg = <0x5b>;
    wakeup-source;
    interrupts-extended = <&gpio_intc 32 IRQ_TYPE_LEVEL_LOW>;
    charge-enable-gpios = <&gpio26 1 GPIO_ACTIVE_LOW>;

    rt9467_otg_vbus: usb-otg-vbus-regulator {
      regulator-name = "rt9467-usb-otg-vbus";
      regulator-min-microvolt = <4425000>;
      regulator-max-microvolt = <5825000>;
      regulator-min-microamp = <500000>;
      regulator-max-microamp = <3000000>;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Richtek RT9471 3A Single Cell Switching Battery charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/richtek,rt9471.yaml#"

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

Maintainers (maintainers): "Alina Yu <alina_yu@richtek.com>", "ChiYuan Huang <cy_huang@richtek.com>"

RT9471 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for portable applications. It supports USB BC1.2 port detection, current and voltage regulations in both charging and boost mode.

Datasheet is available at https://www.richtek.com/assets/product_file/RT9471=RT9471D/DS9471D-02.pdf

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "richtek,rt9471"

reg — required here #

Maximum number of items (maxItems): 1

charge-enable-gpios — not listed as required here #

GPIO used to turn on and off charging.

Maximum number of items (maxItems): 1

wakeup-source — required here #

true — No constraints added by this property rule.

interrupts — required here #

Maximum number of items (maxItems): 1

usb-otg-vbus-regulator — 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.

Required in this object (required): "compatible", "reg", "wakeup-source", "interrupts"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  charger@53 {
    compatible = "richtek,rt9471";
    reg = <0x53>;
    charge-enable-gpios = <&gpio26 1 GPIO_ACTIVE_LOW>;
    wakeup-source;
    interrupts-extended = <&gpio_intc 32 IRQ_TYPE_EDGE_FALLING>;

    usb-otg-vbus-regulator {
      regulator-name = "usb-otg-vbus";
      regulator-min-microvolt = <4850000>;
      regulator-max-microvolt = <5300000>;
      regulator-min-microamp = <500000>;
      regulator-max-microamp = <1200000>;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Richtek RT9756 Smart Cap Divider Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/richtek,rt9756.yaml#"

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

Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"

The RT9756/RT9757 is a high efficiency and high charge current charger.

The efficiency is up to 98.2% when VBAT = 4V, IBAT = 2A in DIV2 mode and 99.1% when VBAT=4V, IBAT=1A in bypass mode. The maximum charger current is up to 8A in DIV2 mode and 5A in bypass mode. The device integrates smart cap divider topology, direct charging mode, external over-voltage protection control, an input reverse blocking NFET and 2-way regulation, a dual phase charge pump core, 8-Channel high speed ADCs and USB BC 1.2 detection.

RT9770 is almost the same with RT9756/57, only BC 1.2 detection function is removed to shrink the die size.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "richtek,rt9756", "richtek,rt9770"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "richtek,rt9757"

Item 2

Exact value (const): "richtek,rt9756"

reg — required here #

Maximum number of items (maxItems): 1

wakeup-source — not listed as required here #

true — No constraints added by this property rule.

interrupts — required here #

Maximum number of items (maxItems): 1

shunt-resistor-micro-ohms — not listed as required here #

Battery current sense resistor mounted.

Default value (default): 2000

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  charger@6f {
    compatible = "richtek,rt9756";
    reg = <0x6f>;
    wakeup-source;
    interrupts-extended = <&gpio_intc 32 IRQ_TYPE_EDGE_FALLING>;
    shunt-resistor-micro-ohms = <5000>;
  };
};

Source notes #

Annotations retained from the schema source

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

ROHM BD99954 Battery charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/rohm,bd99954.yaml#"

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

Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>", "Markus Laine <markus.laine@fi.rohmeurope.com>", "Mikko Mutanen <mikko.mutanen@fi.rohmeurope.com>"

The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion secondary battery intended to be used in space-constraint equipment such as Low profile Notebook PC, Tablets and other applications. BD99954 provides a Dual-source Battery Charger, two port BC1.2 detection and a Battery Monitor.

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "rohm,bd99954"

reg — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

monitored-battery — not listed as required here #

phandle of battery characteristics devicetree node

rohm,vsys-regulation-microvolt — not listed as required here #

system specific lower limit for system voltage.

Minimum value (minimum): 2560000

Maximum value (maximum): 19200000

Multiple of (multipleOf): 64000

rohm,vbus-input-current-limit-microamp — not listed as required here #

system specific VBUS input current limit (in microamps).

Minimum value (minimum): 32000

Maximum value (maximum): 16352000

Multiple of (multipleOf): 32000

rohm,vcc-input-current-limit-microamp — not listed as required here #

system specific VCC/VACP input current limit (in microamps).

Minimum value (minimum): 32000

Maximum value (maximum): 16352000

Multiple of (multipleOf): 32000

Required in this object (required): "compatible"

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>;
    charger@9 {
        compatible = "rohm,bd99954";
        monitored-battery = <&battery>;
        reg = <0x9>;
        interrupt-parent = <&gpio1>;
        interrupts = <29 8>;
        rohm,vsys-regulation-microvolt = <8960000>;
        rohm,vbus-input-current-limit-microamp = <1472000>;
        rohm,vcc-input-current-limit-microamp = <1472000>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 26:

Line 27: The battery charging profile of BD99954.

Line 28:

Line 29: Curve (1) represents charging current.

Line 30: Curve (2) represents battery voltage.

Line 31:

Line 32: The BD99954 data sheet divides charging to three phases.

Line 33: a) Trickle-charge with constant current (8).

Line 34: b) pre-charge with constant current (6)

Line 35: c) fast-charge with:

Line 36: First a constant current (5) phase (CC)

Line 37: Then constant voltage (CV) phase (after the battery voltage has reached

Line 38: target level - until charging current has dropped to termination

Line 39: level (7)

Line 40:

Line 41: V ^ ^ I

Line 42: . .

Line 43: . .

Line 44: (4)- -.- - - - - - - - - - - - - - +++++++++++++++++++++++++++.

Line 45: . / .

Line 46: . ++++++/++ - - - - - - - - - - - - -.- - (5)

Line 47: . + / + .

Line 48: . + - -- .

Line 49: . + - + .

Line 50: . +.- -: .

Line 51: . .+ +` .

Line 52: . .- + | `/ .

Line 53: . .." + .: .

Line 54: . -" + -- .

Line 55: . (2) ..." + | :- .

Line 56: . ..."" + -: .

Line 57: (3)- -.-.""- - - - -+++++++++ - - - - - - -.:- - - - - - - - - .- - (6)

Line 58: . + `:. .

Line 59: . + | -: .

Line 60: . + -: .

Line 61: . + .. .

Line 62: . (1) + | "+++- - - -.- - (7)

Line 63: -++++++++++++++- - - - - - - - - - - - - - - - - + - - - .- - (8)

Line 64: . + -

Line 65: -------------------------------------------------+++++++++-->

Line 66: | | | CC | CV |

Line 67: | --trickle-- | -pre- | ---------fast----------- |

Line 68:

Line 69: The charger uses the following battery properties

Line 70: - trickle-charge-current-microamp:

Line 71: Current used at trickle-charge phase (8 in above chart)

Line 72: minimum: 64000

Line 73: maximum: 1024000

Line 74: multipleOf: 64000

Line 75: - precharge-current-microamp:

Line 76: Current used at pre-charge phase (6 in above chart)

Line 77: minimum: 64000

Line 78: maximum: 1024000

Line 79: multipleOf: 64000

Line 80: - constant-charge-current-max-microamp

Line 81: Current used at fast charge constant current phase (5 in above chart)

Line 82: minimum: 64000

Line 83: maximum: 1024000

Line 84: multipleOf: 64000

Line 85: - constant-charge-voltage-max-microvolt

Line 86: The constant voltage used in fast charging phase (4 in above chart)

Line 87: minimum: 2560000

Line 88: maximum: 19200000

Line 89: multipleOf: 16000

Line 90: - precharge-upper-limit-microvolt

Line 91: charging mode is changed from trickle charging to pre-charging

Line 92: when battery voltage exceeds this limit voltage (3 in above chart)

Line 93: minimum: 2048000

Line 94: maximum: 19200000

Line 95: multipleOf: 64000

Line 96: - re-charge-voltage-microvolt

Line 97: minimum: 2560000

Line 98: maximum: 19200000

Line 99: multipleOf: 16000

Line 100: re-charging is automatically started when battry has been discharging

Line 101: to the point where the battery voltage drops below this limit

Line 102: - over-voltage-threshold-microvolt

Line 103: battery is expected to be faulty if battery voltage exceeds this limit.

Line 104: Charger will then enter to a "battery faulty" -state

Line 105: minimum: 2560000

Line 106: maximum: 19200000

Line 107: multipleOf: 16000

Line 108: - charge-term-current-microamp

Line 109: minimum: 0

Line 110: maximum: 1024000

Line 111: multipleOf: 64000

Line 112: a charge cycle terminates when the battery voltage is above recharge

Line 113: threshold, and the current is below this setting (7 in above chart)

Line 114: See also Documentation/devicetree/bindings/power/supply/battery.yaml

Samsung SDI Batteries

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/samsung,battery.yaml#"

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

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

Samsung SDI (Samsung Digital Interface) batteries are all different versions of lithium ion chemistry devices used for mobile phones, laptops and other portable electronics. The batteries are adapted to a specific product and the physical restrictions make it impossible to use another battery with the product, so product device trees can specify these batteries. Operating systems should determine hardware characteristics of the batteries from the compatible string.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "samsung,eb-l1m7flu"

3.8V 1500 mAh battery used in Samsung GT-I8190

Rule 2

Exact value (const): "samsung,eb425161la"

3.8V 1500 mAh battery used in Samsung SGH-T599 and SGH-I407

Rule 3

Exact value (const): "samsung,eb425161lu"

3.8V 1500 mAh battery used in Samsung GT-I8160

Rule 4

Exact value (const): "samsung,eb485159lu"

3.8V 1700 mAh battery used in Samsung GT-S7710

Rule 5

Exact value (const): "samsung,eb535151vu"

3.8V 1500 mAh battery used in Samsung GT-I9070

Rule 6

Exact value (const): "samsung,eb585157lu"

3.8V 2000 mAh battery used in Samsung GT-I8530

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Examples (examples) #

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

  battery: battery {
    compatible = "samsung,eb425161la";
  };

  charger@11 {
    reg = <0x11>;
    monitored-battery = <&battery>;
  };
};

Source notes #

Annotations retained from the schema source

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

SBS compliant battery

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

Battery compatible with the smart battery system specifications

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "ti,bq20z45", "ti,bq20z65", "ti,bq20z75"

Item 2

Allowed values (enum): "sbs,sbs-battery"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "sbs,sbs-battery"

reg — required here #

Maximum number of items (maxItems): 1

sbs,i2c-retry-count — not listed as required here #

The number of times to retry I2C transactions on I2C IO failure.

Default value (default): 0

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

sbs,poll-retry-count — not listed as required here #

The number of times to try looking for new status after an external change notification.

Default value (default): 0

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

sbs,battery-detect-gpios — not listed as required here #

GPIO which signals battery detection. If this is not supplied, the bus needs to be polled to detect the battery.

Maximum number of items (maxItems): 1

sbs,disable-charger-broadcasts — not listed as required here #

SBS batteries by default send broadcast messages to SBS compliant chargers to configure max. charge current/voltage. If your hardware does not have an SBS compliant charger it should be disabled via this property to avoid blocking the bus. Also some SBS battery fuel gauges are known to have a buggy multi- master implementation.

Value type (type): "boolean"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

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

    battery@b {
        compatible = "ti,bq20z75", "sbs,sbs-battery";
        reg = <0xb>;
        sbs,i2c-retry-count = <2>;
        sbs,poll-retry-count = <10>;
        sbs,battery-detect-gpios = <&gpio 122 GPIO_ACTIVE_HIGH>;
        sbs,disable-charger-broadcasts;
   };
};

Source notes #

Annotations retained from the schema source

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

SBS compliant charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/sbs,sbs-charger.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

Charger compatible with the smart battery system specifications

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "lltc,ltc4100"

Item 2

Allowed values (enum): "sbs,sbs-charger"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "sbs,sbs-charger"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

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

    charger@9 {
        compatible = "lltc,ltc4100", "sbs,sbs-charger";
        reg = <0x9>;
        interrupt-parent = <&gpio6>;
        interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
   };
};

Source notes #

Annotations retained from the schema source

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

SBS compliant manager

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/sbs,sbs-manager.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "lltc,ltc1760"

Item 2

Allowed values (enum): "sbs,sbs-manager"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "sbs,sbs-manager"

reg — required here #

Exact value (const): 10

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — not listed as required here #

Exact value (const): 2

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

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

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^i2c@[1-4]$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Minimum value (minimum): 1

Maximum value (maximum): 4

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>

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

  batman: battery-manager@a {
    compatible = "lltc,ltc1760", "sbs,sbs-manager";
    reg = <0x0a>;
    #address-cells = <1>;
    #size-cells = <0>;

    gpio-controller;
    #gpio-cells = <2>;

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

      battery@b {
        compatible = "ti,bq20z65", "sbs,sbs-battery";
        reg = <0x0b>;
        sbs,battery-detect-gpios = <&batman 1 1>;
      };
    };

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

      battery@b {
        compatible = "ti,bq20z65", "sbs,sbs-battery";
        reg = <0x0b>;
        sbs,battery-detect-gpios = <&batman 2 1>;
      };
    };

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

      battery@b {
        compatible = "ti,bq20z65", "sbs,sbs-battery";
        reg = <0x0b>;
        sbs,battery-detect-gpios = <&batman 3 1>;
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Spreadtrum SC2731 PMICs battery charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/sc2731-charger.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "sprd,sc2731-charger"

reg — not listed as required here #

Maximum number of items (maxItems): 1

phys — not listed as required here #

Maximum number of items (maxItems): 1

phandle to the USB phy

monitored-battery — not listed as required here #

The charger uses the following battery properties - charge-term-current-microamp: current for charge termination phase. - constant-charge-voltage-max-microvolt: maximum constant input voltage.

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Spreadtrum SC27XX PMICs Fuel Gauge Unit Power Supply

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "sprd,sc2720-fgu", "sprd,sc2721-fgu", "sprd,sc2723-fgu", "sprd,sc2730-fgu", "sprd,sc2731-fgu"

reg — required here #

Maximum number of items (maxItems): 1

battery-detect-gpios — required here #

Maximum number of items (maxItems): 1

bat-detect-gpio — not listed as required here #

Maximum number of items (maxItems): 1

Deprecated (deprecated): true

use battery-detect-gpios instead

interrupts — required here #

Maximum number of items (maxItems): 1

io-channels — required here #

Array item rules (items) #

Item 1

Battery Temperature ADC

Item 2

Battery Charge Voltage ADC

io-channel-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "bat-temp"

Item 2

Exact value (const): "charge-vol"

nvmem-cells — required here #

Maximum number of items (maxItems): 1

Calibration cells provided by eFuse device

nvmem-cell-names — required here #

Exact value (const): "fgu_calib"

sprd,calib-resistance-micro-ohms — required here #

real resistance of coulomb counter chip in micro Ohms

monitored-battery — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "battery-detect-gpios", "interrupts", "io-channels", "io-channel-names", "nvmem-cells", "nvmem-cell-names", "sprd,calib-resistance-micro-ohms", "monitored-battery"

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

STMicroelectronics STC3117 Fuel Gauge Unit Power Supply

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/st,stc3117.yaml#"

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

Maintainers (maintainers): "Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>", "Bhavin Sharma <bhavin.sharma@siliconsignals.io>"

The STC3117 includes the STMicroelectronics OptimGauge algorithm. It provides accurate battery state-of-charge (SOC) monitoring, tracks battery parameter changes with operation conditions, temperature, and aging, and allows the application to get a battery state-of-health (SOH) indication.

An alarm output signals low SOC or low voltage conditions and also indicates fault conditions like a missing or swapped battery.

Datasheet is available at https://www.st.com/resource/en/datasheet/stc3117.pdf

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "st,stc3117"

reg — required here #

Maximum number of items (maxItems): 1

monitored-battery — required here #

The fuel gauge uses the following battery properties: - charge-full-design-microamp-hours - voltage-min-design-microvolt - voltage-max-design-microvolt

shunt-resistor-micro-ohms — required here #

Current sense resistor

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "monitored-battery", "shunt-resistor-micro-ohms"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

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

  battery@70 {
    compatible = "st,stc3117";
    reg = <0x70>;
    interrupt-parent = <&gpio0>;
    interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
    monitored-battery = <&bat>;
    shunt-resistor-micro-ohms = <10000>;
  };
};

Source notes #

Annotations retained from the schema source

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

AB8500 Battery Temperature Monitor

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/stericsson,ab8500-btemp.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "stericsson,ab8500-btemp"

monitored-battery — required here #

true — No constraints added by this property rule.

battery — not listed as required here #

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

Deprecated (deprecated): true

interrupts — required here #

Maximum number of items (maxItems): 5

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "BAT_CTRL_INDB"

Item 2

Exact value (const): "BTEMP_LOW"

Item 3

Exact value (const): "BTEMP_HIGH"

Item 4

Exact value (const): "BTEMP_LOW_MEDIUM"

Item 5

Exact value (const): "BTEMP_MEDIUM_HIGH"

io-channels — required here #

Maximum number of items (maxItems): 2

io-channel-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "btemp_ball"

Item 2

Exact value (const): "bat_ctrl"

Required in this object (required): "compatible", "monitored-battery", "interrupts", "interrupt-names", "io-channels", "io-channel-names"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
pmic {
  battery-temperature {
    compatible = "stericsson,ab8500-btemp";
    monitored-battery = <&battery>;
    interrupts = <20 IRQ_TYPE_LEVEL_HIGH>,
                 <80 IRQ_TYPE_LEVEL_HIGH>,
                 <83 IRQ_TYPE_LEVEL_HIGH>,
                 <81 IRQ_TYPE_LEVEL_HIGH>,
                 <82 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "BAT_CTRL_INDB",
                      "BTEMP_LOW",
                      "BTEMP_HIGH",
                      "BTEMP_LOW_MEDIUM",
                      "BTEMP_MEDIUM_HIGH";
    io-channels = <&gpadc 0x02>, <&gpadc 0x01>;
    io-channel-names = "btemp_ball", "bat_ctrl";
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

AB8500 Charging Algorithm

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/stericsson,ab8500-chargalg.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "stericsson,ab8500-chargalg"

monitored-battery — required here #

true — No constraints added by this property rule.

battery — not listed as required here #

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

Deprecated (deprecated): true

Required in this object (required): "compatible", "monitored-battery"

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

false

Not allowed by this rule.

Examples (examples) #

pmic {
  charging-algorithm {
    compatible = "stericsson,ab8500-chargalg";
    monitored-battery = <&ab8500_battery>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

AB8500 Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/stericsson,ab8500-charger.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "stericsson,ab8500-charger"

monitored-battery — required here #

true — No constraints added by this property rule.

battery — not listed as required here #

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

Deprecated (deprecated): true

vddadc-supply — required here #

Supply for USB and Main charger

autopower_cfg — not listed as required here #

Value type (type): "boolean"

automatic poweron after powerloss

interrupts — required here #

Maximum number of items (maxItems): 14

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "MAIN_CH_UNPLUG_DET"

Item 2

Exact value (const): "MAIN_CHARGE_PLUG_DET"

Item 3

Exact value (const): "MAIN_EXT_CH_NOT_OK"

Item 4

Exact value (const): "MAIN_CH_TH_PROT_R"

Item 5

Exact value (const): "MAIN_CH_TH_PROT_F"

Item 6

Exact value (const): "VBUS_DET_F"

Item 7

Exact value (const): "VBUS_DET_R"

Item 8

Exact value (const): "USB_LINK_STATUS"

Item 9

Exact value (const): "USB_CH_TH_PROT_R"

Item 10

Exact value (const): "USB_CH_TH_PROT_F"

Item 11

Exact value (const): "USB_CHARGER_NOT_OKR"

Item 12

Exact value (const): "VBUS_OVV"

Item 13

Exact value (const): "CH_WD_EXP"

Item 14

Exact value (const): "VBUS_CH_DROP_END"

io-channels — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

io-channel-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "main_charger_v"

Item 2

Exact value (const): "main_charger_c"

Item 3

Exact value (const): "vbus_v"

Item 4

Exact value (const): "usb_charger_c"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "vbus_v"

Item 2

Exact value (const): "usb_charger_c"

Required in this object (required): "compatible", "monitored-battery", "vddadc-supply", "interrupts", "interrupt-names", "io-channels", "io-channel-names"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
pmic {
  charger {
    compatible = "stericsson,ab8500-charger";
    monitored-battery = <&battery>;
    vddadc-supply = <&ab8500_ldo_tvout_reg>;
    interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
                 <11 IRQ_TYPE_LEVEL_HIGH>,
                 <0 IRQ_TYPE_LEVEL_HIGH>,
                 <107 IRQ_TYPE_LEVEL_HIGH>,
                 <106 IRQ_TYPE_LEVEL_HIGH>,
                 <14 IRQ_TYPE_LEVEL_HIGH>,
                 <15 IRQ_TYPE_LEVEL_HIGH>,
                 <79 IRQ_TYPE_LEVEL_HIGH>,
                 <105 IRQ_TYPE_LEVEL_HIGH>,
                 <104 IRQ_TYPE_LEVEL_HIGH>,
                 <89 IRQ_TYPE_LEVEL_HIGH>,
                 <22 IRQ_TYPE_LEVEL_HIGH>,
                 <21 IRQ_TYPE_LEVEL_HIGH>,
                 <16 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "MAIN_CH_UNPLUG_DET",
                      "MAIN_CHARGE_PLUG_DET",
                      "MAIN_EXT_CH_NOT_OK",
                      "MAIN_CH_TH_PROT_R",
                      "MAIN_CH_TH_PROT_F",
                      "VBUS_DET_F",
                      "VBUS_DET_R",
                      "USB_LINK_STATUS",
                      "USB_CH_TH_PROT_R",
                      "USB_CH_TH_PROT_F",
                      "USB_CHARGER_NOT_OKR",
                      "VBUS_OVV",
                      "CH_WD_EXP",
                      "VBUS_CH_DROP_END";
    io-channels = <&gpadc 0x03>,
                  <&gpadc 0x0a>,
                  <&gpadc 0x09>,
                  <&gpadc 0x0b>;
    io-channel-names = "main_charger_v",
                       "main_charger_c",
                       "vbus_v",
                       "usb_charger_c";
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

AB8500 Fuel Gauge

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/stericsson,ab8500-fg.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "stericsson,ab8500-fg"

monitored-battery — required here #

true — No constraints added by this property rule.

battery — not listed as required here #

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

Deprecated (deprecated): true

line-impedance-micro-ohms — not listed as required here #

The line impedance between the battery and the AB8500 inputs, to compensate for this when determining internal resistance.

interrupts — required here #

Maximum number of items (maxItems): 5

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "NCONV_ACCU"

Item 2

Exact value (const): "BATT_OVV"

Item 3

Exact value (const): "LOW_BAT_F"

Item 4

Exact value (const): "CC_INT_CALIB"

Item 5

Exact value (const): "CCEOC"

io-channels — required here #

Maximum number of items (maxItems): 1

io-channel-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "main_bat_v"

Required in this object (required): "compatible", "monitored-battery", "interrupts", "interrupt-names", "io-channels", "io-channel-names"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
pmic {
  fuel-gauge {
    compatible = "stericsson,ab8500-fg";
    monitored-battery = <&battery>;
    interrupts = <24 IRQ_TYPE_LEVEL_HIGH>,
                 <8 IRQ_TYPE_LEVEL_HIGH>,
                 <28 IRQ_TYPE_LEVEL_HIGH>,
                 <27 IRQ_TYPE_LEVEL_HIGH>,
                 <26 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "NCONV_ACCU",
                      "BATT_OVV",
                      "LOW_BAT_F",
                      "CC_INT_CALIB",
                      "CCEOC";
    io-channels = <&gpadc 0x08>;
    io-channel-names = "main_bat_v";
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2021 Sebastian Reichel

Battery charger driver for SMB345, SMB347 and SMB358

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/summit,smb347-charger.yaml#"

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

Maintainers (maintainers): "David Heidelberg <david@ixit.cz>", "Dmitry Osipenko <digetx@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "summit,smb345", "summit,smb347", "summit,smb358"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

monitored-battery — not listed as required here #

true — No constraints added by this property rule.

summit,enable-usb-charging — not listed as required here #

Value type (type): "boolean"

Enable charging through USB.

summit,enable-otg-charging — not listed as required here #

Value type (type): "boolean"

Provide power for USB OTG

summit,enable-mains-charging — not listed as required here #

Value type (type): "boolean"

Enable charging through mains

summit,enable-charge-control — not listed as required here #

Enable charging control

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

Allowed values (enum): 0, 1, 2

summit,fast-voltage-threshold-microvolt — not listed as required here #

Voltage threshold to transit to fast charge mode (in uV)

Minimum value (minimum): 2400000

Maximum value (maximum): 3000000

summit,mains-current-limit-microamp — not listed as required here #

Maximum input current from AC/DC input (in uA)

summit,usb-current-limit-microamp — not listed as required here #

Maximum input current from USB input (in uA)

summit,charge-current-compensation-microamp — not listed as required here #

Charge current compensation (in uA)

summit,chip-temperature-threshold-celsius — not listed as required here #

Chip temperature for thermal regulation in °C.

Allowed values (enum): 100, 110, 120, 130

summit,soft-compensation-method — not listed as required here #

Soft temperature limit compensation method

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

Allowed values (enum): 0, 1, 2

summit,inok-polarity — not listed as required here #

Polarity of INOK signal indicating presence of external power supply.

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

Allowed values (enum): 0, 1

usb-vbus — not listed as required here #

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

Value type (type): "object"

Properties and child nodes (properties) #

summit,needs-inok-toggle — not listed as required here

Value type (type): "boolean"

INOK signal is fixed and polarity needs to be toggled in order to enable/disable output mode.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "summit,smb345", "summit,smb358"

When the condition matches (then) #

Properties and child nodes (properties)

summit,mains-current-limit-microamp — not listed as required here

Allowed values (enum): 300000, 500000, 700000, 1000000, 1500000, 1800000, 2000000

summit,usb-current-limit-microamp — not listed as required here

Allowed values (enum): 300000, 500000, 700000, 1000000, 1500000, 1800000, 2000000

summit,charge-current-compensation-microamp — not listed as required here

Allowed values (enum): 200000, 450000, 600000, 900000

When the condition does not match (else) #

Properties and child nodes (properties)

summit,mains-current-limit-microamp — not listed as required here

Allowed values (enum): 300000, 500000, 700000, 900000, 1200000, 1500000, 1800000, 2000000, 2200000, 2500000

summit,usb-current-limit-microamp — not listed as required here

Allowed values (enum): 300000, 500000, 700000, 900000, 1200000, 1500000, 1800000, 2000000, 2200000, 2500000

summit,charge-current-compensation-microamp — not listed as required here

Allowed values (enum): 250000, 700000, 900000, 1200000

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

At least one of these rules must match (anyOf) #

Rule 1 #

Required in this object (required): "summit,enable-usb-charging"

Rule 2 #

Required in this object (required): "summit,enable-otg-charging"

Rule 3 #

Required in this object (required): "summit,enable-mains-charging"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/power/summit,smb347-charger.h>

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

    charger@7f {
        compatible = "summit,smb347";
        reg = <0x7f>;

        summit,enable-charge-control = <SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH>;
        summit,inok-polarity = <SMB3XX_SYSOK_INOK_ACTIVE_LOW>;
        summit,chip-temperature-threshold-celsius = <110>;
        summit,mains-current-limit-microamp = <2000000>;
        summit,usb-current-limit-microamp = <500000>;
        summit,enable-usb-charging;
        summit,enable-mains-charging;

        monitored-battery = <&battery>;

        usb-vbus {
            regulator-name = "usb_vbus";
            regulator-min-microvolt = <5000000>;
            regulator-max-microvolt = <5000000>;
            regulator-min-microamp = <750000>;
            regulator-max-microamp = <750000>;
            summit,needs-inok-toggle;
        };
    };
};

battery: battery-cell {
    compatible = "simple-battery";
    constant-charge-current-max-microamp = <1800000>;
    operating-range-celsius = <0 45>;
    alert-celsius = <3 42>;
};

Source notes #

Annotations retained from the schema source

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

Line 44: SMB3XX_CHG_ENABLE_SW SW (I2C interface)

Line 45: SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW Pin control (Active Low)

Line 46: SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH Pin control (Active High)

Line 70: SMB3XX_SOFT_TEMP_COMPENSATE_NONE Compensation none

Line 71: SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT Current compensation

Line 72: SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE Voltage compensation

Line 79: SMB3XX_SYSOK_INOK_ACTIVE_LOW

Line 80: SMB3XX_SYSOK_INOK_ACTIVE_HIGH

TI/National Semiconductor LP8727 Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/ti,lp8727.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,lp8727"

reg — required here #

Exact value (const): 39

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

debounce-ms — not listed as required here #

interrupt debounce time in ms

Properties matching a name pattern (patternProperties) #

^(ac|usb)$ — name matches this regular expression #

Value type (type): "object"

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

false

Not allowed by this rule.

USB/AC charging parameters

Properties and child nodes (properties) #

charger-type — not listed as required here

Allowed values (enum): "ac", "usb"

eoc-level — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 6

End of Charge Percentage with the following mapping: 0 = 5%, 1 = 10%, 2 = 16%, 3 = 20%, 4 = 25%, 5 = 33%, 6 = 50%

charging-current — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 9

Charging current with the following mapping: 0 = 90mA, 1 = 100mA, 2 = 400mA, 3 = 450mA, 4 = 500mA, 5 = 600mA, 6 = 700mA, 7 = 800mA, 8 = 900mA, 9 = 1000mA

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  lp8727: charger@27 {
    compatible = "ti,lp8727";
    reg = <0x27>;
    interrupt-parent = <&gpio5>;
    interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
    debounce-ms = <300>;

    /* AC charger: 5% EOC and 500mA charging current */
    ac {
      charger-type = "ac";
      eoc-level = /bits/ 8 <0>;
      charging-current = /bits/ 8 <4>;
    };

    /* USB charger: 10% EOC and 400mA charging current */
    usb {
      charger-type = "usb";
      eoc-level = /bits/ 8 <1>;
      charging-current = /bits/ 8 <2>;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

TWL6030/32 BCI (Battery Charger Interface)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/ti,twl6030-charger.yaml#"

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

The battery charger needs to be configured to do any charging besides of precharging. The GPADC in the PMIC has to be used to get the related voltages.

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

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

Rule 2

Array item rules (items)

Item 1

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

Item 2

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

interrupts — required here #

Array item rules (items) #

Item 1

Charger Control Interrupt

Item 2

Charger Fault Interrupt

io-channels — not listed as required here #

Array item rules (items) #

Item 1

VBUS Voltage Channel

io-channel-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "vusb"

monitored-battery — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "interrupts", "monitored-battery"

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

TPS65090 Frontend PMU with Switchmode Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/tps65090-charger.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,tps65090-charger"

ti,enable-low-current-chrg — not listed as required here #

Value type (type): "boolean"

Enables charging when a low current is detected while the default logic is to stop charging.

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Examples (examples) #

pmic {
  charger {
    compatible = "ti,tps65090-charger";
    ti,enable-low-current-chrg;
  };
};

Source notes #

Annotations retained from the schema source

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

TPS65217 Charger

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/tps65217-charger.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,tps65217-charger"

interrupts — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "USB"

Item 2

Exact value (const): "AC"

Required in this object (required): "compatible", "interrupts", "interrupt-names"

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

false

Not allowed by this rule.

Examples (examples) #

pmic {
  charger {
    compatible = "ti,tps65217-charger";
    interrupts = <0>, <1>;
    interrupt-names = "USB", "AC";
  };
};

Source notes #

Annotations retained from the schema source

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

TWL4030 BCI (Battery Charger Interface)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/twl4030-charger.yaml#"

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

The battery charger needs to interact with the USB phy in order to know when charging is permissible, and when there is a connection or disconnection.

The choice of phy cannot be configured at a hardware level, so there is no value in explicit configuration in device-tree. Rather if there is a sibling of the BCI node which is compatible with "ti,twl4030-usb", then that is used to determine when and how use USB power for charging.

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

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

interrupts — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

ti,bb-uvolt — not listed as required here #

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

microvolts for charging the backup battery

ti,bb-uamp — not listed as required here #

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

microamps for charging the backup battery

io-channels — not listed as required here #

Array item rules (items) #

Item 1

Accessory Charger Voltage Channel

io-channel-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "vac"

bci3v1-supply — not listed as required here #

3.1V USB regulator

Required in this object (required): "compatible", "interrupts"

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

false

Not allowed by this rule.

Examples (examples) #

pmic {
  charger {
    compatible = "ti,twl4030-bci";
    interrupts = <9>, <2>;
    ti,bb-uvolt = <3200000>;
    ti,bb-uamp = <150>;
    io-channels = <&twl_madc 11>;
    io-channel-names = "vac";
  };
};

Source notes #

Annotations retained from the schema source

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

AXP20x AC power-supply

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#"

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

The AXP20X can read the current current and voltage supplied by AC by reading ADC channels from the AXP20X ADC. The AXP22X is only able to tell if an AC power supply is present and usable. AXP813/AXP803 are able to limit current and supply voltage

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "x-powers,axp202-ac-power-supply"

Rule 2

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

Rule 3

Array item rules (items)

Item 1

Exact value (const): "x-powers,axp803-ac-power-supply"

Item 2

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

Rule 4

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

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

AXP20x Battery power-supply

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#"

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

The supported devices can read the battery voltage, charge and discharge currents of the battery by reading ADC channels from the ADC.

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Sebastian Reichel <sre@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "x-powers,axp202-battery-power-supply"

Rule 2

Exact value (const): "x-powers,axp209-battery-power-supply"

Rule 3

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

Rule 4

Exact value (const): "x-powers,axp717-battery-power-supply"

Rule 5

Array item rules (items)

Item 1

Exact value (const): "x-powers,axp803-battery-power-supply"

Item 2

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

Rule 6

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

monitored-battery — not listed as required here #

true — No constraints added by this property rule.

x-powers,no-thermistor — not listed as required here #

Value type (type): "boolean"

Indicates that no thermistor is connected to the TS pin

Required in this object (required): "compatible"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Rule 2 #

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,axp717-battery-power-supply"

When the condition matches (then) #

Properties and child nodes (properties)

x-powers,no-thermistor — not listed as required here

false — Not permitted by this property rule.

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

AXP20x USB power-supply

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#"

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

The AXP223 PMIC shares most of its behaviour with the AXP221 but has slight variations such as the former being able to set the VBUS power supply max current to 100mA, unlike the latter.

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Sebastian Reichel <sre@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "x-powers,axp192-usb-power-supply", "x-powers,axp202-usb-power-supply", "x-powers,axp221-usb-power-supply", "x-powers,axp223-usb-power-supply", "x-powers,axp717-usb-power-supply", "x-powers,axp813-usb-power-supply"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "x-powers,axp803-usb-power-supply"

Item 2

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

input-current-limit-microamp — not listed as required here #

Optional value to clamp the maximum input current limit to for the device. If omitted, the programmed value from the EFUSE will be used.

Minimum value (minimum): 100000

Maximum value (maximum): 4000000

Required in this object (required): "compatible"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

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,axp192-usb-power-supply"

When the condition matches (then) #

Properties and child nodes (properties)

input-current-limit-microamp — not listed as required here

Allowed values (enum): 100000, 500000

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "x-powers,axp202-usb-power-supply", "x-powers,axp223-usb-power-supply"

When the condition matches (then) #

Properties and child nodes (properties)

input-current-limit-microamp — not listed as required here

Allowed values (enum): 100000, 500000, 900000

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "x-powers,axp221-usb-power-supply"

When the condition matches (then) #

Properties and child nodes (properties)

input-current-limit-microamp — not listed as required here

Allowed values (enum): 500000, 900000

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,axp717-usb-power-supply"

When the condition matches (then) #

Properties and child nodes (properties)

input-current-limit-microamp — not listed as required here

Maximum input current in increments of 50000 uA.

Minimum value (minimum): 100000

Maximum value (maximum): 3250000

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "x-powers,axp813-usb-power-supply"

When the condition matches (then) #

Properties and child nodes (properties)

input-current-limit-microamp — not listed as required here

Allowed values (enum): 100000, 500000, 900000, 1500000, 2000000, 2500000, 3000000, 3500000, 4000000

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Actions Semi Owl Smart Power System (SPS)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/actions,s500-sps.yaml#"

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

Maintainers (maintainers): "Andreas Färber <afaerber@suse.de>", "Manivannan Sadhasivam <mani@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "actions,s500-sps", "actions,s700-sps", "actions,s900-sps"

reg — required here #

Maximum number of items (maxItems): 1

#power-domain-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "#power-domain-cells"

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

false

Not allowed by this rule.

Examples (examples) #

power-controller@b01b0100 {
    compatible = "actions,s500-sps";
    reg = <0xb01b0100 0x100>;
    #power-domain-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Allwinner SoCs PPU power domain controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/allwinner,sun20i-d1-ppu.yaml#"

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

Maintainers (maintainers): "Samuel Holland <samuel@sholland.org>"

D1 and related SoCs contain a power domain controller for the CPUs, GPU, and video-related hardware.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "allwinner,sun8i-v853-ppu", "allwinner,sun20i-d1-ppu", "allwinner,sun55i-a523-pck-600", "allwinner,sun55i-a523-ppu"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Bus Clock

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

#power-domain-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "clocks", "resets", "#power-domain-cells"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/sun20i-d1-r-ccu.h>
#include <dt-bindings/reset/sun20i-d1-r-ccu.h>

ppu: power-controller@7001000 {
    compatible = "allwinner,sun20i-d1-ppu";
    reg = <0x7001000 0x1000>;
    clocks = <&r_ccu CLK_BUS_R_PPU>;
    resets = <&r_ccu RST_BUS_R_PPU>;
    #power-domain-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Allwinner SoCs PRCM power domain controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/allwinner,sun50i-h6-prcm-ppu.yaml#"

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

Maintainers (maintainers): "Andre Przywara <andre.przywara@arm.com>"

The Allwinner Power Reset Clock Management (PRCM) unit contains bits to control a few power domains.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "allwinner,sun50i-h6-prcm-ppu", "allwinner,sun50i-h616-prcm-ppu", "allwinner,sun55i-a523-prcm-ppu"

reg — required here #

Maximum number of items (maxItems): 1

#power-domain-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "#power-domain-cells"

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

false

Not allowed by this rule.

Examples (examples) #

prcm_ppu: power-controller@7010210 {
    compatible = "allwinner,sun50i-h616-prcm-ppu";
    reg = <0x7010210 0x10>;
    #power-domain-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Amlogic Meson Everything-Else Power Domains

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/amlogic,meson-ee-pwrc.yaml#"

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

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

The Everything-Else Power Domains node should be the child of a syscon node with the required property:

- compatible: Should be the following:
              "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon"

Refer to the bindings described in Documentation/devicetree/bindings/mfd/syscon.yaml

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "amlogic,meson8-pwrc", "amlogic,meson8b-pwrc", "amlogic,meson8m2-pwrc", "amlogic,meson-gxbb-pwrc", "amlogic,meson-axg-pwrc", "amlogic,meson-g12a-pwrc", "amlogic,meson-sm1-pwrc"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "vpu"

Item 2

Exact value (const): "vapb"

resets — not listed as required here #

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 12

reset-names — not listed as required here #

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 12

#power-domain-cells — required here #

Exact value (const): 1

amlogic,ao-sysctrl — required here #

phandle to the AO sysctrl node

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

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "amlogic,meson8b-pwrc", "amlogic,meson8m2-pwrc"

When the condition matches (then) #

Properties and child nodes (properties)

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "dblk"

Item 2

Exact value (const): "pic_dc"

Item 3

Exact value (const): "hdmi_apb"

Item 4

Exact value (const): "hdmi_system"

Item 5

Exact value (const): "venci"

Item 6

Exact value (const): "vencp"

Item 7

Exact value (const): "vdac"

Item 8

Exact value (const): "vencl"

Item 9

Exact value (const): "viu"

Item 10

Exact value (const): "venc"

Item 11

Exact value (const): "rdma"

Required in this object (required): "resets", "reset-names"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "amlogic,meson-gxbb-pwrc"

When the condition matches (then) #

Properties and child nodes (properties)

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "viu"

Item 2

Exact value (const): "venc"

Item 3

Exact value (const): "vcbus"

Item 4

Exact value (const): "bt656"

Item 5

Exact value (const): "dvin"

Item 6

Exact value (const): "rdma"

Item 7

Exact value (const): "venci"

Item 8

Exact value (const): "vencp"

Item 9

Exact value (const): "vdac"

Item 10

Exact value (const): "vdi6"

Item 11

Exact value (const): "vencl"

Item 12

Exact value (const): "vid_lock"

Required in this object (required): "resets", "reset-names"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "amlogic,meson-axg-pwrc"

When the condition matches (then) #

Properties and child nodes (properties)

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "viu"

Item 2

Exact value (const): "venc"

Item 3

Exact value (const): "vcbus"

Item 4

Exact value (const): "vencl"

Item 5

Exact value (const): "vid_lock"

Required in this object (required): "resets", "reset-names"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "amlogic,meson-g12a-pwrc", "amlogic,meson-sm1-pwrc"

When the condition matches (then) #

Properties and child nodes (properties)

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "viu"

Item 2

Exact value (const): "venc"

Item 3

Exact value (const): "vcbus"

Item 4

Exact value (const): "bt656"

Item 5

Exact value (const): "rdma"

Item 6

Exact value (const): "venci"

Item 7

Exact value (const): "vencp"

Item 8

Exact value (const): "vdac"

Item 9

Exact value (const): "vdi6"

Item 10

Exact value (const): "vencl"

Item 11

Exact value (const): "vid_lock"

Required in this object (required): "resets", "reset-names"

Required in this object (required): "compatible", "clocks", "clock-names", "#power-domain-cells", "amlogic,ao-sysctrl"

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

false

Not allowed by this rule.

Examples (examples) #

pwrc: power-controller {
      compatible = "amlogic,meson-sm1-pwrc";
      #power-domain-cells = <1>;
      amlogic,ao-sysctrl = <&rti>;
      resets = <&reset_viu>,
               <&reset_venc>,
               <&reset_vcbus>,
               <&reset_bt656>,
               <&reset_rdma>,
               <&reset_venci>,
               <&reset_vencp>,
               <&reset_vdac>,
               <&reset_vdi6>,
               <&reset_vencl>,
               <&reset_vid_lock>;
      reset-names = "viu", "venc", "vcbus", "bt656",
                    "rdma", "venci", "vencp", "vdac",
                    "vdi6", "vencl", "vid_lock";
      clocks = <&clk_vpu>, <&clk_vapb>;
      clock-names = "vpu", "vapb";
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright 2019 BayLibre, SAS

Amlogic Meson Secure Power Domains

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/amlogic,meson-sec-pwrc.yaml#"

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

Maintainers (maintainers): "Jianxin Pan <jianxin.pan@amlogic.com>"

Secure Power Domains used in Meson A1/C1/S4 & C3/T7 SoCs, and should be the child node of secure-monitor.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "amlogic,meson-a1-pwrc", "amlogic,meson-s4-pwrc", "amlogic,a4-pwrc", "amlogic,a5-pwrc", "amlogic,c3-pwrc", "amlogic,t7-pwrc", "amlogic,s6-pwrc", "amlogic,s7-pwrc", "amlogic,s7d-pwrc"

#power-domain-cells — required here #

Exact value (const): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

secure-monitor {
    compatible = "amlogic,meson-gxbb-sm";

    pwrc: power-controller {
        compatible = "amlogic,meson-a1-pwrc";
        #power-domain-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0+ OR MIT)

Line 2: Copyright (c) 2019 Amlogic, Inc

Line 3: Author: Jianxin Pan <jianxin.pan@amlogic.com>

Apple SoC PMGR Power States

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/apple,pmgr-pwrstate.yaml#"

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

Maintainers (maintainers): "Hector Martin <marcan@marcan.st>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-domain.yaml#

Apple SoCs include PMGR blocks responsible for power management, which can control various clocks, resets, power states, and performance features. This binding describes the device power state registers, which control power states and resets.

Each instance of a power controller within the PMGR syscon node represents a generic power domain provider, as documented in Documentation/devicetree/bindings/power/power-domain.yaml. The provider controls a single SoC block. The power hierarchy is represented via power-domains relationships between these nodes.

See Documentation/devicetree/bindings/arm/apple/apple,pmgr.yaml for the top-level PMGR node documentation.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "apple,s5l8960x-pmgr-pwrstate", "apple,t7000-pmgr-pwrstate", "apple,s8000-pmgr-pwrstate", "apple,t8010-pmgr-pwrstate", "apple,t8015-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate", "apple,t8112-pmgr-pwrstate", "apple,t6000-pmgr-pwrstate"

Item 2

Exact value (const): "apple,pmgr-pwrstate"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "apple,t6020-pmgr-pwrstate"

Item 2

Exact value (const): "apple,t8103-pmgr-pwrstate"

reg — required here #

Maximum number of items (maxItems): 1

#power-domain-cells — required here #

Exact value (const): 0

#reset-cells — required here #

Exact value (const): 0

power-domains — not listed as required here #

Reference to parent power domains. A domain may have multiple parents, and all will be powered up when it is powered.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

label — required here #

Specifies the name of the SoC domain being controlled. This is used to name the power/reset domains.

apple,always-on — not listed as required here #

Forces this power domain to always be powered up.

Value type (type): "boolean"

apple,min-state — not listed as required here #

Specifies the minimum power state for auto-PM. 0 = power gated, 4 = clock gated, 15 = on.

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Required in this object (required): "compatible", "reg", "#power-domain-cells", "#reset-cells", "label"

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Line 35: Do not add additional SoC to this list.

Line 63: Arbitrary, should be enough

Broadcom PMB (Power Management Bus) controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/brcm,bcm-pmb.yaml#"

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

This document describes Broadcom's PMB controller. It supports powering various types of connected devices (e.g. PCIe, USB, SATA).

Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "brcm,bcm4908-pmb", "brcm,bcm63138-pmb"

reg — required here #

register space of one or more buses

Maximum number of items (maxItems): 1

big-endian — not listed as required here #

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

Flag to use for block working in big endian mode.

#power-domain-cells — required here #

cell specifies device ID (see bcm-pmb.h)

Exact value (const): 1

Required in this object (required): "reg", "#power-domain-cells"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/soc/bcm-pmb.h>

pmb: power-controller@802800e0 {
    compatible = "brcm,bcm4908-pmb";
    reg = <0x802800e0 0x40>;
    #power-domain-cells = <1>;
};

foo {
    power-domains = <&pmb BCM_PMB_PCIE0>;
};

Source notes #

Annotations retained from the schema source

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

BCM63xx power domain driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/brcm,bcm63xx-power.yaml#"

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

Maintainers (maintainers): "Álvaro Fernández Rojas <noltari@gmail.com>"

BCM6318, BCM6328, BCM6362 and BCM63268 SoCs have a power domain controller to enable/disable certain components in order to save power.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "brcm,bcm6318-power-controller", "brcm,bcm6328-power-controller", "brcm,bcm6362-power-controller", "brcm,bcm63268-power-controller"

reg — required here #

Maximum number of items (maxItems): 1

#power-domain-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "#power-domain-cells"

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

false

Not allowed by this rule.

Examples (examples) #

periph_pwr: power-controller@10001848 {
    compatible = "brcm,bcm6328-power-controller";
    reg = <0x10001848 0x4>;
    #power-domain-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

PM Domain Idle States

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/domain-idle-state.yaml#"

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

Maintainers (maintainers): "Ulf Hansson <ulf.hansson@linaro.org>"

A domain idle state node represents the state parameters that will be used to select the state when there are no active components in the PM domain.

Properties and child nodes (properties) #

$nodename — not listed as required here #

Exact value (const): "domain-idle-states"

Properties matching a name pattern (patternProperties) #

^(cpu|cluster|domain)- — name matches this regular expression #

Value type (type): "object"

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

false

Not allowed by this rule.

Each state node represents a domain idle state description.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "domain-idle-state"

entry-latency-us — required here

The worst case latency in microseconds required to enter the idle state. Note that, the exit-latency-us duration may be guaranteed only after the entry-latency-us has passed.

exit-latency-us — required here

The worst case latency in microseconds required to exit the idle state.

min-residency-us — required here

The minimum residency duration in microseconds after which the idle state will yield power benefits, after overcoming the overhead while entering the idle state.

arm,psci-suspend-param — not listed as required here

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

power_state parameter to pass to the ARM PSCI suspend call.

Device tree nodes that require usage of PSCI CPU_SUSPEND function (i.e. idle states node with entry-method property is set to "psci") must specify this property.

idle-state-name — not listed as required here

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

A string used as a descriptive name for the idle state.

Required in this object (required): "compatible", "entry-latency-us", "exit-latency-us", "min-residency-us"

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

false

Not allowed by this rule.

Examples (examples) #


domain-idle-states {
  domain_retention: domain-retention {
    compatible = "domain-idle-state";
    entry-latency-us = <20>;
    exit-latency-us = <40>;
    min-residency-us = <80>;
  };
};

Source notes #

Annotations retained from the schema source

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

Freescale i.MX General Power Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/fsl,imx-gpc.yaml#"

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

Maintainers (maintainers): "Philipp Zabel <p.zabel@pengutronix.de>"

The i.MX6 General Power Control (GPC) block contains DVFS load tracking counters and Power Gating Control (PGC).

The power domains are generic power domain providers as documented in Documentation/devicetree/bindings/power/power-domain.yaml. They are described as subnodes of the power gating controller 'pgc' node of the GPC.

IP cores belonging to a power domain should contain a 'power-domains' property that is a phandle pointing to the power domain the device belongs to.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx6q-gpc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6qp-gpc", "fsl,imx6sl-gpc", "fsl,imx6sll-gpc", "fsl,imx6sx-gpc", "fsl,imx6ul-gpc"

Item 2

Exact value (const): "fsl,imx6q-gpc"

reg — required here #

Maximum number of items (maxItems): 1

#address-cells — not listed as required here #

Exact value (const): 0

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 3

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "ipg"

pgc — required here #

Value type (type): "object"

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

false

Not allowed by this rule.

list of power domains provided by this controller.

Properties and child nodes (properties) #

#address-cells — required here

Exact value (const): 1

#size-cells — required here

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

power-domain@[0-9]$ — name matches this regular expression

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)

#power-domain-cells — required here

Exact value (const): 0

reg — required here

The following DOMAIN_INDEX values are valid for i.MX6Q:
  ARM_DOMAIN     0
  PU_DOMAIN      1
The following additional DOMAIN_INDEX value is valid for i.MX6SL:
  DISPLAY_DOMAIN 2
The following additional DOMAIN_INDEX value is valid for i.MX6SX:
  PCI_DOMAIN     3

Maximum number of items (maxItems): 1

clocks — not listed as required here

A number of phandles to clocks that need to be enabled during domain power-up sequencing to ensure reset propagation into devices located inside this power domain.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 7

power-supply — not listed as required here

true — No constraints added by this property rule.

Required in this object (required): "#power-domain-cells", "reg"

Required in this object (required): "#address-cells", "#size-cells"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "pgc"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx6qdl-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

gpc@20dc000 {
    compatible = "fsl,imx6q-gpc";
    reg = <0x020dc000 0x4000>;
    interrupts = <0 89 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks IMX6QDL_CLK_IPG>;
    clock-names = "ipg";

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

        power-domain@0 {
            reg = <0>;
            #power-domain-cells = <0>;
        };

        pd_pu: power-domain@1 {
            reg = <1>;
            #power-domain-cells = <0>;
            power-supply = <&reg_pu>;
            clocks = <&clks IMX6QDL_CLK_GPU3D_CORE>,
                     <&clks IMX6QDL_CLK_GPU3D_SHADER>,
                     <&clks IMX6QDL_CLK_GPU2D_CORE>,
                     <&clks IMX6QDL_CLK_GPU2D_AXI>,
                     <&clks IMX6QDL_CLK_OPENVG_AXI>,
                     <&clks IMX6QDL_CLK_VPU_AXI>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Freescale i.MX General Power Controller v2

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/fsl,imx-gpcv2.yaml#"

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

Maintainers (maintainers): "Andrey Smirnov <andrew.smirnov@gmail.com>"

The i.MX7S/D General Power Control (GPC) block contains Power Gating Control (PGC) for various power domains.

Power domains contained within GPC node are generic power domain providers, documented in Documentation/devicetree/bindings/power/power-domain.yaml, which are described as subnodes of the power gating controller 'pgc' node.

IP cores belonging to a power domain should contain a 'power-domains' property that is a phandle for PGC node representing the domain.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx7d-gpc", "fsl,imx8mn-gpc", "fsl,imx8mq-gpc", "fsl,imx8mm-gpc", "fsl,imx8mp-gpc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 3

pgc — required here #

Value type (type): "object"

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

false

Not allowed by this rule.

list of power domains provided by this controller.

Properties and child nodes (properties) #

#address-cells — required here

Exact value (const): 1

#size-cells — required here

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

power-domain@[0-9a-f]+$ — name matches this regular expression

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)

#power-domain-cells — required here

Exact value (const): 0

reg — required here

Power domain index. Valid values are defined in include/dt-bindings/power/imx7-power.h for fsl,imx7d-gpc and include/dt-bindings/power/imx8m-power.h for fsl,imx8mq-gpc include/dt-bindings/power/imx8mm-power.h for fsl,imx8mm-gpc include/dt-bindings/power/imx8mp-power.h for fsl,imx8mp-gpc

Maximum number of items (maxItems): 1

clocks — not listed as required here

A number of phandles to clocks that need to be enabled during domain power-up sequencing to ensure reset propagation into devices located inside this power domain.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

power-supply — not listed as required here

true — No constraints added by this property rule.

power-domains — not listed as required here

Maximum number of items (maxItems): 1

resets — not listed as required here

A number of phandles to resets that need to be asserted during power-up sequencing of the domain. The resets belong to devices located inside the power domain, which need to be held in reset across the power-up sequence. So no means to specify what each reset is in a generic power-domain binding.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Required in this object (required): "#power-domain-cells", "reg"

Required in this object (required): "#address-cells", "#size-cells"

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

gpc@303a0000 {
    compatible = "fsl,imx7d-gpc";
    reg = <0x303a0000 0x1000>;
    interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;

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

        pgc_mipi_phy: power-domain@0 {
            #power-domain-cells = <0>;
            reg = <0>;
            power-supply = <&reg_1p0d>;
        };

        pgc_pcie_phy: power-domain@1 {
            #power-domain-cells = <0>;
            reg = <1>;
            power-supply = <&reg_1p0d>;
        };

        pgc_hsic_phy: power-domain@2 {
            #power-domain-cells = <0>;
            reg = <2>;
            power-supply = <&reg_1p2>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

i.MX SCU Client Device Node - Power Domain Based on SCU Message Protocol

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/fsl,scu-pd.yaml#"

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

Maintainers (maintainers): "Dong Aisheng <aisheng.dong@nxp.com>"

i.MX SCU Client Device Node Client nodes are maintained as children of the relevant IMX-SCU device node. Power domain bindings based on SCU Message Protocol

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-domain.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "fsl,imx8dl-scu-pd", "fsl,imx8qm-scu-pd", "fsl,imx8qxp-scu-pd"

Item 2

Exact value (const): "fsl,scu-pd"

#power-domain-cells — required here #

Exact value (const): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

power-controller {
    compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
    #power-domain-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

MediaTek MFlexGraphics Power and Frequency Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/mediatek,mt8196-gpufreq.yaml#"

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

Maintainers (maintainers): "Nicolas Frattaroli <nicolas.frattaroli@collabora.com>"

A special-purpose embedded MCU to control power and frequency of GPU devices using MediaTek Flexible Graphics integration hardware.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^power-controller@[a-f0-9]+$"

compatible — required here #

Allowed values (enum): "mediatek,mt8196-gpufreq"

reg — required here #

Array item rules (items) #

Item 1

GPR memory area

Item 2

RPC memory area

Item 3

SoC variant ID register

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "gpr"

Item 2

Exact value (const): "rpc"

Item 3

Exact value (const): "hw-revision"

clocks — required here #

Array item rules (items) #

Item 1

main clock of the embedded controller (EB)

Item 2

core PLL

Item 3

stack 0 PLL

Item 4

stack 1 PLL

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "eb"

Item 2

Exact value (const): "core"

Item 3

Exact value (const): "stack0"

Item 4

Exact value (const): "stack1"

mboxes — required here #

Array item rules (items) #

Item 1

FastDVFS events

Item 2

frequency control

Item 3

sleep control

Item 4

timer control

Item 5

frequency hopping control

Item 6

hardware voter control

Item 7

FastDVFS control

mbox-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "fast-dvfs-event"

Item 2

Exact value (const): "gpufreq"

Item 3

Exact value (const): "sleep"

Item 4

Exact value (const): "timer"

Item 5

Exact value (const): "fhctl"

Item 6

Exact value (const): "ccf"

Item 7

Exact value (const): "fast-dvfs"

memory-region — required here #

Array item rules (items) #

Item 1

phandle to the GPUEB shared memory

#clock-cells — required here #

Exact value (const): 1

#power-domain-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "mboxes", "mbox-names", "memory-region", "#clock-cells", "#power-domain-cells"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mediatek,mt8196-clock.h>

power-controller@4b09fd00 {
    compatible = "mediatek,mt8196-gpufreq";
    reg = <0x4b09fd00 0x80>,
          <0x4b800000 0x1000>,
          <0x4b860128 0x4>;
    reg-names = "gpr", "rpc", "hw-revision";
    clocks = <&topckgen CLK_TOP_MFG_EB>,
             <&mfgpll CLK_MFG_AO_MFGPLL>,
             <&mfgpll_sc0 CLK_MFGSC0_AO_MFGPLL_SC0>,
             <&mfgpll_sc1 CLK_MFGSC1_AO_MFGPLL_SC1>;
    clock-names = "eb", "core", "stack0", "stack1";
    mboxes = <&gpueb_mbox 0>, <&gpueb_mbox 1>, <&gpueb_mbox 2>,
             <&gpueb_mbox 3>, <&gpueb_mbox 4>, <&gpueb_mbox 5>,
             <&gpueb_mbox 7>;
    mbox-names = "fast-dvfs-event", "gpufreq", "sleep", "timer", "fhctl",
                 "ccf", "fast-dvfs";
    memory-region = <&gpueb_shared_memory>;
    #clock-cells = <1>;
    #power-domain-cells = <0>;
};

Source notes #

Annotations retained from the schema source

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

Mediatek Power Domains Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/mediatek,power-controller.yaml#"

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

Maintainers (maintainers): "AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>", "Matthias Brugger <mbrugger@suse.com>"

Mediatek processors include support for multiple power domains which can be powered up/down by software based on different application scenes to save power.

IP cores belonging to a power domain should contain a 'power-domains' property that is a phandle for SCPSYS node representing the domain.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^power-controller(@[0-9a-f]+)?$"

compatible — required here #

Allowed values (enum): "mediatek,mt6735-power-controller", "mediatek,mt6795-power-controller", "mediatek,mt6893-power-controller", "mediatek,mt8167-power-controller", "mediatek,mt8173-power-controller", "mediatek,mt8183-power-controller", "mediatek,mt8186-power-controller", "mediatek,mt8188-power-controller", "mediatek,mt8192-power-controller", "mediatek,mt8195-power-controller", "mediatek,mt8196-hwv-hfrp-power-controller", "mediatek,mt8196-hwv-scp-power-controller", "mediatek,mt8196-power-controller", "mediatek,mt8365-power-controller"

#power-domain-cells — not listed as required here #

Exact value (const): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

access-controllers — not listed as required here #

A number of phandles to external blocks to set and clear the required bits to enable or disable bus protection, necessary to avoid any bus faults while enabling or disabling a power domain. For example, this may hold phandles to INFRACFG and SMI.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

Properties matching a name pattern (patternProperties) #

^power-domain@[0-9a-f]+$ — name matches this regular expression #

Shared schema rule ($ref): #/$defs/power-domain-node

Properties matching a name pattern (patternProperties) #

^power-domain@[0-9a-f]+$ — name matches this regular expression

Shared schema rule ($ref): #/$defs/power-domain-node

Properties matching a name pattern (patternProperties)

^power-domain@[0-9a-f]+$ — name matches this regular expression

Shared schema rule ($ref): #/$defs/power-domain-node

Properties matching a name pattern (patternProperties)

^power-domain@[0-9a-f]+$ — name matches this regular expression

Shared schema rule ($ref): #/$defs/power-domain-node

Properties matching a name pattern (patternProperties)

^power-domain@[0-9a-f]+$ — name matches this regular expression

Shared schema rule ($ref): #/$defs/power-domain-node

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Reusable definitions ($defs) #

power-domain-node #

Value type (type): "object"

Represents the power domains within the power controller node as documented in Documentation/devicetree/bindings/power/power-domain.yaml.

Properties and child nodes (properties) #

#power-domain-cells — not listed as required here

Must be 0 for nodes representing a single PM domain and 1 for nodes providing multiple PM domains.

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

reg — required here

Power domain index. Valid values are defined in:
    "include/dt-bindings/power/mt6795-power.h" - for MT8167 type power domain.
    "include/dt-bindings/power/mediatek,mt6893-power.h" - for MT6893 type power domain.
    "include/dt-bindings/power/mt8167-power.h" - for MT8167 type power domain.
    "include/dt-bindings/power/mt8173-power.h" - for MT8173 type power domain.
    "include/dt-bindings/power/mt8183-power.h" - for MT8183 type power domain.
    "include/dt-bindings/power/mediatek,mt8188-power.h" - for MT8188 type power domain.
    "include/dt-bindings/power/mt8192-power.h" - for MT8192 type power domain.
    "include/dt-bindings/power/mt8195-power.h" - for MT8195 type power domain.
    "include/dt-bindings/power/mediatek,mt8365-power.h" - for MT8365 type power domain.

Maximum number of items (maxItems): 1

clocks — not listed as required here

A number of phandles to clocks that need to be enabled during domain power-up sequencing.

clock-names — not listed as required here

List of names of clocks, in order to match the power-up sequencing for each power domain we need to group the clocks by name. BASIC clocks need to be enabled before enabling the corresponding power domain, and should not have a '-' in their name (i.e mm, mfg, venc). SUSBYS clocks need to be enabled before releasing the bus protection, and should contain a '-' in their name (i.e mm-0, isp-0, cam-0).

In order to follow properly the power-up sequencing, the clocks must be specified by order, adding first the BASIC clocks followed by the SUSBSYS clocks.

domain-supply — not listed as required here

domain regulator supply.

mediatek,infracfg — not listed as required here

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

phandle to the device containing the INFRACFG register range.

Deprecated (deprecated): true

mediatek,infracfg-nao — not listed as required here

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

phandle to the device containing the INFRACFG-NAO register range.

Deprecated (deprecated): true

mediatek,smi — not listed as required here

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

phandle to the device containing the SMI register range.

Deprecated (deprecated): true

Required in this object (required): "reg"

Required in this object (required): "compatible"

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): "mediatek,mt8183-power-controller", "mediatek,mt8196-power-controller"

When the condition matches (then) #

Properties and child nodes (properties)

access-controllers — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt8365-power-controller"

When the condition matches (then) #

Properties and child nodes (properties)

access-controllers — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/power/mt8173-power.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    scpsys: syscon@10006000 {
        compatible = "mediatek,mt8173-scpsys", "syscon", "simple-mfd";
        reg = <0 0x10006000 0 0x1000>;

        spm: power-controller {
            compatible = "mediatek,mt8173-power-controller";
            #address-cells = <1>;
            #size-cells = <0>;
            #power-domain-cells = <1>;

            /* power domains of the SoC */
            power-domain@MT8173_POWER_DOMAIN_VDEC {
                reg = <MT8173_POWER_DOMAIN_VDEC>;
                clocks = <&topckgen CLK_TOP_MM_SEL>;
                clock-names = "mm";
                #power-domain-cells = <0>;
            };
            power-domain@MT8173_POWER_DOMAIN_VENC {
                reg = <MT8173_POWER_DOMAIN_VENC>;
                clocks = <&topckgen CLK_TOP_MM_SEL>,
                         <&topckgen CLK_TOP_VENC_SEL>;
                clock-names = "mm", "venc";
                #power-domain-cells = <0>;
            };
            power-domain@MT8173_POWER_DOMAIN_ISP {
                reg = <MT8173_POWER_DOMAIN_ISP>;
                clocks = <&topckgen CLK_TOP_MM_SEL>;
                clock-names = "mm";
                #power-domain-cells = <0>;
            };
            power-domain@MT8173_POWER_DOMAIN_MM {
                reg = <MT8173_POWER_DOMAIN_MM>;
                clocks = <&topckgen CLK_TOP_MM_SEL>;
                clock-names = "mm";
                #power-domain-cells = <0>;
                mediatek,infracfg = <&infracfg>;
            };
            power-domain@MT8173_POWER_DOMAIN_VENC_LT {
                reg = <MT8173_POWER_DOMAIN_VENC_LT>;
                clocks = <&topckgen CLK_TOP_MM_SEL>,
                         <&topckgen CLK_TOP_VENC_LT_SEL>;
                clock-names = "mm", "venclt";
                #power-domain-cells = <0>;
            };
            power-domain@MT8173_POWER_DOMAIN_AUDIO {
                reg = <MT8173_POWER_DOMAIN_AUDIO>;
                #power-domain-cells = <0>;
            };
            power-domain@MT8173_POWER_DOMAIN_USB {
                reg = <MT8173_POWER_DOMAIN_USB>;
                #power-domain-cells = <0>;
            };
            power-domain@MT8173_POWER_DOMAIN_MFG_ASYNC {
                reg = <MT8173_POWER_DOMAIN_MFG_ASYNC>;
                clocks = <&clk26m>;
                clock-names = "mfg";
                #address-cells = <1>;
                #size-cells = <0>;
                #power-domain-cells = <1>;

                power-domain@MT8173_POWER_DOMAIN_MFG_2D {
                    reg = <MT8173_POWER_DOMAIN_MFG_2D>;
                    #address-cells = <1>;
                    #size-cells = <0>;
                    #power-domain-cells = <1>;

                    power-domain@MT8173_POWER_DOMAIN_MFG {
                        reg = <MT8173_POWER_DOMAIN_MFG>;
                        #power-domain-cells = <0>;
                        mediatek,infracfg = <&infracfg>;
                    };
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

MIPS Cluster Power Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/mti,mips-cpc.yaml#"

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

Defines a location of the MIPS Cluster Power Controller registers.

Maintainers (maintainers): "Paul Burton <paulburton@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mti,mips-cpc"

reg — required here #

Base address and size of an unoccupied memory region, which will be used to map the MIPS CPC registers block.

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

cpc@1bde0000 {
  compatible = "mti,mips-cpc";
  reg = <0x1bde0000 0x8000>;
};

Source notes #

Annotations retained from the schema source

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

Samsung Exynos SoC Power Domains

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/pd-samsung.yaml#"

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Exynos processors include support for multiple power domains which are used to gate power to one or more peripherals on the processor.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-domain.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,exynos4210-pd", "samsung,exynos5433-pd"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Deprecated (deprecated): true

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Deprecated (deprecated): true

Maximum number of items (maxItems): 1

label — not listed as required here #

Human readable string with domain name. Will be visible in userspace to let user to distinguish between multiple domains in SoC.

#power-domain-cells — required here #

Exact value (const): 0

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "#power-domain-cells", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

lcd0_pd: power-domain@10023c80 {
    compatible = "samsung,exynos4210-pd";
    reg = <0x10023c80 0x20>;
    #power-domain-cells = <0>;
    label = "LCD0";
};

mfc_pd: power-domain@10044060 {
    compatible = "samsung,exynos4210-pd";
    reg = <0x10044060 0x20>;
    #power-domain-cells = <0>;
    label = "MFC";
};

Source notes #

Annotations retained from the schema source

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

Generic PM domains

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/power-domain.yaml#"

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

Maintainers (maintainers): "Rafael J. Wysocki <rafael@kernel.org>", "Kevin Hilman <khilman@kernel.org>", "Ulf Hansson <ulf.hansson@linaro.org>"

System on chip designs are often divided into multiple PM domains that can be used for power gating of selected IP blocks for power saving by reduced leakage current. Moreover, in some cases the similar PM domains may also be capable of scaling performance for a group of IP blocks.

This device tree binding can be used to bind PM domain consumer devices with their PM domains provided by PM domain providers. A PM domain provider can be represented by any node in the device tree and can provide one or more PM domains. A consumer node can refer to the provider by a phandle and a set of phandle arguments (so called PM domain specifiers) of length specified by the \#power-domain-cells property in the PM domain provider node.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^(power-controller|power-domain|performance-domain)([@-].*)?$"

domain-idle-states — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Maximum number of items (maxItems): 1

Phandles of idle states that defines the available states for the power-domain provider. The idle state definitions are compatible with the domain-idle-state bindings, specified in ./domain-idle-state.yaml.

Note that, the domain-idle-state property reflects the idle states of this PM domain and not the idle states of the devices or sub-domains in the PM domain. Devices and sub-domains have their own idle states independent of the parent domain's idle states. In the absence of this property, the domain would be considered as capable of being powered-on or powered-off.

operating-points-v2 — not listed as required here #

Phandles to the OPP tables of power domains that are capable of scaling performance, provided by a power domain provider. If the provider provides a single power domain only or all the power domains provided by the provider have identical OPP tables, then this shall contain a single phandle. Refer to ../opp/opp-v2-base.yaml for more information.

#power-domain-cells — required here #

Number of cells in a PM domain specifier. Typically 0 for nodes representing a single PM domain and 1 for nodes providing multiple PM domains (e.g. power controllers), but can be any value as specified by device tree binding documentation of particular provider.

power-domains — not listed as required here #

A phandle and PM domain specifier as defined by bindings of the power controller specified by phandle. Some power domains might be powered from another power domain (or have other hardware specific dependencies). For representing such dependency a standard PM domain consumer binding is used. When provided, all domains created by the given provider should be subdomains of the domain specified by this binding.

Required in this object (required): "#power-domain-cells"

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

true

Allowed by this rule.

Examples (examples) #

power: power-controller@12340000 {
    compatible = "foo,power-controller";
    reg = <0x12340000 0x1000>;
    #power-domain-cells = <1>;
};

// The node above defines a power controller that is a PM domain provider and
// expects one cell as its phandle argument.
parent2: power-controller@12340000 {
    compatible = "foo,power-controller";
    reg = <0x12340000 0x1000>;
    #power-domain-cells = <1>;
};

child2: power-controller@12341000 {
    compatible = "foo,power-controller";
    reg = <0x12341000 0x1000>;
    power-domains = <&parent2 0>;
    #power-domain-cells = <1>;
};

// The nodes above define two power controllers: 'parent' and 'child'.
// Domains created by the 'child' power controller are subdomains of '0' power
// domain provided by the 'parent' power controller.
parent3: power-controller@12340000 {
    compatible = "foo,power-controller";
    reg = <0x12340000 0x1000>;
    #power-domain-cells = <0>;
    domain-idle-states = <&DOMAIN_RET>, <&DOMAIN_PWR_DN>;
};

child3: power-controller@12341000 {
    compatible = "foo,power-controller";
    reg = <0x12341000 0x1000>;
    power-domains = <&parent3>;
    #power-domain-cells = <0>;
    domain-idle-states = <&DOMAIN_PWR_DN>;
};

domain-idle-states {
    DOMAIN_RET: domain-retention {
        compatible = "domain-idle-state";
        entry-latency-us = <1000>;
        exit-latency-us = <2000>;
        min-residency-us = <10000>;
    };

    DOMAIN_PWR_DN: domain-pwr-dn {
        compatible = "domain-idle-state";
        entry-latency-us = <5000>;
        exit-latency-us = <8000>;
        min-residency-us = <7000>;
    };
};

Source notes #

Annotations retained from the schema source

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

Krait Processor Sub-system (KPSS) Application Clock Controller (ACC) v2

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/qcom,kpss-acc-v2.yaml#"

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

Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>"

The KPSS ACC provides clock, power manager, and reset control to a Krait CPU. There is one ACC register region per CPU within the KPSS remapped region as well as an alias register region that remaps accesses to the ACC associated with the CPU accessing the region. ACC v2 is currently used as a power-manager for enabling the cpu.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,kpss-acc-v2", "qcom,msm8916-acc"

reg — required here #

Array item rules (items) #

Item 1

Base address and size of the register region

Item 2

Optional base address and size of the alias register region

Minimum number of items (minItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

power-manager@f9088000 {
  compatible = "qcom,kpss-acc-v2";
  reg = <0xf9088000 0x1000>,
        <0xf9008000 0x1000>;
};

Source notes #

Annotations retained from the schema source

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

Qualcomm RPM/RPMh Power domains

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/qcom,rpmpd.yaml#"

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

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"

For RPM/RPMh Power domains, we communicate a performance state to RPM/RPMh which then translates it into a corresponding voltage on a rail.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "qcom,glymur-rpmhpd", "qcom,kaanapali-rpmhpd", "qcom,mdm9607-rpmpd", "qcom,milos-rpmhpd", "qcom,msm8226-rpmpd", "qcom,msm8909-rpmpd", "qcom,msm8916-rpmpd", "qcom,msm8917-rpmpd", "qcom,msm8939-rpmpd", "qcom,msm8953-rpmpd", "qcom,msm8974-rpmpd", "qcom,msm8974pro-pma8084-rpmpd", "qcom,msm8976-rpmpd", "qcom,msm8994-rpmpd", "qcom,msm8996-rpmpd", "qcom,msm8998-rpmpd", "qcom,qcm2290-rpmpd", "qcom,qcs404-rpmpd", "qcom,qcs615-rpmhpd", "qcom,qcs8300-rpmhpd", "qcom,qdu1000-rpmhpd", "qcom,qm215-rpmpd", "qcom,sa8155p-rpmhpd", "qcom,sa8540p-rpmhpd", "qcom,sa8775p-rpmhpd", "qcom,sar2130p-rpmhpd", "qcom,sc7180-rpmhpd", "qcom,sc7280-rpmhpd", "qcom,sc8180x-rpmhpd", "qcom,sc8280xp-rpmhpd", "qcom,sdm660-rpmpd", "qcom,sdm670-rpmhpd", "qcom,sdm845-rpmhpd", "qcom,sdx55-rpmhpd", "qcom,sdx65-rpmhpd", "qcom,sdx75-rpmhpd", "qcom,sm4450-rpmhpd", "qcom,sm6115-rpmpd", "qcom,sm6125-rpmpd", "qcom,sm6350-rpmhpd", "qcom,sm6375-rpmpd", "qcom,sm7150-rpmhpd", "qcom,sm8150-rpmhpd", "qcom,sm8250-rpmhpd", "qcom,sm8350-rpmhpd", "qcom,sm8450-rpmhpd", "qcom,sm8550-rpmhpd", "qcom,sm8650-rpmhpd", "qcom,sm8750-rpmhpd", "qcom,x1e80100-rpmhpd"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,msm8937-rpmpd"

Item 2

Exact value (const): "qcom,msm8917-rpmpd"

#power-domain-cells — required here #

Exact value (const): 1

operating-points-v2 — required here #

true — No constraints added by this property rule.

opp-table — not listed as required here #

Value type (type): "object"

Required in this object (required): "compatible", "#power-domain-cells", "operating-points-v2"

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

false

Not allowed by this rule.

Examples (examples) #


// Example 1 (rpmh power domain controller and OPP table):

#include <dt-bindings/power/qcom-rpmpd.h>

rpmhpd: power-controller {
  compatible = "qcom,sdm845-rpmhpd";
  #power-domain-cells = <1>;
  operating-points-v2 = <&rpmhpd_opp_table>;

  rpmhpd_opp_table: opp-table {
    compatible = "operating-points-v2";

    rpmhpd_opp_ret: opp1 {
      opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
    };

    rpmhpd_opp_min_svs: opp2 {
      opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
    };

    rpmhpd_opp_low_svs: opp3 {
      opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
    };

    rpmhpd_opp_svs: opp4 {
      opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
    };

    rpmhpd_opp_svs_l1: opp5 {
      opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
    };

    rpmhpd_opp_nom: opp6 {
      opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
    };

    rpmhpd_opp_nom_l1: opp7 {
      opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
    };

    rpmhpd_opp_nom_l2: opp8 {
      opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
    };

    rpmhpd_opp_turbo: opp9 {
      opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
    };

    rpmhpd_opp_turbo_l1: opp10 {
      opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
    };
  };
};

// Example 2 (rpm power domain controller and OPP table):

rpmpd: power-controller {
  compatible = "qcom,msm8996-rpmpd";
  #power-domain-cells = <1>;
  operating-points-v2 = <&rpmpd_opp_table>;

  rpmpd_opp_table: opp-table {
    compatible = "operating-points-v2";

    rpmpd_opp_low: opp1 {
      opp-level = <1>;
    };

    rpmpd_opp_ret: opp2 {
      opp-level = <2>;
    };

    rpmpd_opp_svs: opp3 {
      opp-level = <3>;
    };

    rpmpd_opp_normal: opp4 {
      opp-level = <4>;
    };

    rpmpd_opp_high: opp5 {
      opp-level = <5>;
    };

    rpmpd_opp_turbo: opp6 {
      opp-level = <6>;
    };
  };
};

// Example 3 (Client/Consumer device using OPP table):

leaky-device0@12350000 {
  compatible = "foo,i-leak-current";
  reg = <0x12350000 0x1000>;
  power-domains = <&rpmhpd 0>;
  operating-points-v2 = <&leaky_opp_table>;
};

leaky_opp_table: opp-table {
  compatible = "operating-points-v2";
  opp1 {
    opp-hz = /bits/ 64 <144000>;
    required-opps = <&rpmhpd_opp_low>;
  };

  opp2 {
    opp-hz = /bits/ 64 <400000>;
    required-opps = <&rpmhpd_opp_ret>;
  };

  opp3 {
    opp-hz = /bits/ 64 <20000000>;
    required-opps = <&rpmpd_opp_svs>;
  };

  opp4 {
    opp-hz = /bits/ 64 <25000000>;
    required-opps = <&rpmpd_opp_normal>;
  };
};

Source notes #

Annotations retained from the schema source

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

Broadcom BCM2835 power domain

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/raspberrypi,bcm2835-power.yaml#"

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

Maintainers (maintainers): "Alexander Aring <alex.aring@gmail.com>", "Florian Fainelli <florian.fainelli@broadcom.com>"

The Raspberry Pi power domain manages power for various subsystems in the Raspberry Pi BCM2835 SoC.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "raspberrypi,bcm2835-power"

firmware — required here #

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

Reference to the RPi firmware device node

#power-domain-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "firmware", "#power-domain-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

power-controller {
  compatible = "raspberrypi,bcm2835-power";
  firmware = <&firmware>;
  #power-domain-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Renesas Advanced Power Management Unit

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/renesas,apmu.yaml#"

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

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>", "Magnus Damm <magnus.damm@gmail.com>"

Renesas R-Car Gen2 and RZ/G1 SoCs utilize one or more APMU hardware units for CPU core power domain control including SMP boot and CPU Hotplug.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,r8a7742-apmu", "renesas,r8a7743-apmu", "renesas,r8a7744-apmu", "renesas,r8a7745-apmu", "renesas,r8a77470-apmu", "renesas,r8a7790-apmu", "renesas,r8a7791-apmu", "renesas,r8a7792-apmu", "renesas,r8a7793-apmu", "renesas,r8a7794-apmu"

Item 2

Exact value (const): "renesas,apmu"

reg — required here #

Maximum number of items (maxItems): 1

cpus — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array of phandles pointing to CPU cores, which should match the order of CPU cores used by the WUPCR and PSTR registers in the Advanced Power Management Unit section of the device's datasheet.

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

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

false

Not allowed by this rule.

Examples (examples) #

apmu@e6152000 {
        compatible = "renesas,r8a7791-apmu", "renesas,apmu";
        reg = <0xe6152000 0x188>;
        cpus = <&cpu0>, <&cpu1>;
};

Source notes #

Annotations retained from the schema source

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

Line 21: RZ/G1H

Line 22: RZ/G1M

Line 23: RZ/G1N

Line 24: RZ/G1E

Line 25: RZ/G1C

Line 26: R-Car H2

Line 27: R-Car M2-W

Line 28: R-Car V2H

Line 29: R-Car M2-N

Line 30: R-Car E2

Renesas R-Car and RZ/G System Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/renesas,rcar-sysc.yaml#"

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

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>", "Magnus Damm <magnus.damm@gmail.com>"

The R-Car (RZ/G) System Controller provides power management for the CPU cores and various coprocessors. The power domain IDs for consumers are defined in header files:: include/dt-bindings/power/r8*-sysc.h

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "renesas,r8a7742-sysc", "renesas,r8a7743-sysc", "renesas,r8a7744-sysc", "renesas,r8a7745-sysc", "renesas,r8a77470-sysc", "renesas,r8a774a1-sysc", "renesas,r8a774a3-sysc", "renesas,r8a774b1-sysc", "renesas,r8a774c0-sysc", "renesas,r8a774e1-sysc", "renesas,r8a7779-sysc", "renesas,r8a7790-sysc", "renesas,r8a7791-sysc", "renesas,r8a7792-sysc", "renesas,r8a7793-sysc", "renesas,r8a7794-sysc", "renesas,r8a7795-sysc", "renesas,r8a77961-sysc", "renesas,r8a77965-sysc", "renesas,r8a7796-sysc", "renesas,r8a77970-sysc", "renesas,r8a77980-sysc", "renesas,r8a77990-sysc", "renesas,r8a77995-sysc", "renesas,r8a779a0-sysc", "renesas,r8a779f0-sysc", "renesas,r8a779g0-sysc", "renesas,r8a779h0-sysc"

reg — required here #

Maximum number of items (maxItems): 1

#power-domain-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "#power-domain-cells"

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

false

Not allowed by this rule.

Examples (examples) #

// System Controller node
sysc: system-controller@e6180000 {
        compatible = "renesas,r8a7791-sysc";
        reg = <0xe6180000 0x0200>;
        #power-domain-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Line 22: RZ/G1H

Line 23: RZ/G1M

Line 24: RZ/G1N

Line 25: RZ/G1E

Line 26: RZ/G1C

Line 27: RZ/G2M

Line 28: RZ/G2M v3.0

Line 29: RZ/G2N

Line 30: RZ/G2E

Line 31: RZ/G2H

Line 32: R-Car H1

Line 33: R-Car H2

Line 34: R-Car M2-W

Line 35: R-Car V2H

Line 36: R-Car M2-N

Line 37: R-Car E2

Line 38: R-Car H3

Line 39: R-Car M3-W+

Line 40: R-Car M3-N

Line 41: R-Car M3-W

Line 42: R-Car V3M

Line 43: R-Car V3H

Line 44: R-Car E3

Line 45: R-Car D3

Line 46: R-Car V3U

Line 47: R-Car S4-8

Line 48: R-Car V4H

Line 49: R-Car V4M

Renesas R-Mobile System Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/renesas,sysc-rmobile.yaml#"

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

Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>", "Magnus Damm <magnus.damm@gmail.com>"

The R-Mobile System Controller provides the following functions:
  - Boot mode management,
  - Reset generation,
  - Power management.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,sysc-r8a73a4", "renesas,sysc-r8a7740", "renesas,sysc-sh73a0"

Item 2

Exact value (const): "renesas,sysc-rmobile"

reg — required here #

Array item rules (items) #

Item 1

Normally accessible register block

Item 2

Register block protected by the HPB semaphore

pm-domains — required here #

Value type (type): "object"

This node contains a hierarchy of PM domain nodes, which should match the Power Area Hierarchy in the Power Domain Specifications section of the device's datasheet.

Properties and child nodes (properties) #

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

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

Shared schema rule ($ref): #/$defs/pd-node

Required in this object (required): "compatible", "reg", "pm-domains"

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

false

Not allowed by this rule.

Reusable definitions ($defs) #

pd-node #

Value type (type): "object"

PM domain node representing a PM domain. This node should be named by the real power area name, and thus its name should be unique.

Properties and child nodes (properties) #

reg — not listed as required here

Maximum number of items (maxItems): 1

If the PM domain is not always-on, this property must contain the bit index number for the corresponding power area in the various Power Control and Status Registers. If the PM domain is always-on, this property must be omitted.

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

#power-domain-cells — required here

Exact value (const): 0

Required in this object (required): "#power-domain-cells"

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

Shared schema rule ($ref): #/$defs/pd-node

Examples (examples) #

// This shows a subset of the r8a7740 PM domain hierarchy, containing the
// C5 "always-on" domain, 2 of its subdomains (A4S and A4SU), and the A3SP
// domain, which is a subdomain of A4S.
sysc: system-controller@e6180000 {
        compatible = "renesas,sysc-r8a7740", "renesas,sysc-rmobile";
        reg = <0xe6180000 0x8000>, <0xe6188000 0x8000>;

        pm-domains {
                pd_c5: c5 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        #power-domain-cells = <0>;

                        pd_a4s: a4s@10 {
                                reg = <10>;
                                #address-cells = <1>;
                                #size-cells = <0>;
                                #power-domain-cells = <0>;

                                pd_a3sp: a3sp@11 {
                                        reg = <11>;
                                        #power-domain-cells = <0>;
                                };
                        };

                        pd_a4su: a4su@20 {
                                reg = <20>;
                                #power-domain-cells = <0>;
                        };
                };
        };
};

Source notes #

Annotations retained from the schema source

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

Line 23: R-Mobile APE6

Line 24: R-Mobile A1

Line 25: SH-Mobile AG5

Line 26: Generic SH/R-Mobile

Rockchip Power Domains

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/rockchip,power-controller.yaml#"

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

Maintainers (maintainers): "Elaine Zhang <zhangqing@rock-chips.com>", "Heiko Stuebner <heiko@sntech.de>"

Rockchip processors include support for multiple power domains which can be powered up/down by software based on different application scenarios to save power.

Power domains contained within power-controller node are generic power domain providers documented in Documentation/devicetree/bindings/power/power-domain.yaml.

IP cores belonging to a power domain should contain a "power-domains" property that is a phandle for the power domain node representing the domain.

Properties and child nodes (properties) #

$nodename — not listed as required here #

Exact value (const): "power-controller"

compatible — required here #

Allowed values (enum): "rockchip,px30-power-controller", "rockchip,rk3036-power-controller", "rockchip,rk3066-power-controller", "rockchip,rk3128-power-controller", "rockchip,rk3188-power-controller", "rockchip,rk3228-power-controller", "rockchip,rk3288-power-controller", "rockchip,rk3328-power-controller", "rockchip,rk3366-power-controller", "rockchip,rk3368-power-controller", "rockchip,rk3399-power-controller", "rockchip,rk3528-power-controller", "rockchip,rk3562-power-controller", "rockchip,rk3568-power-controller", "rockchip,rk3576-power-controller", "rockchip,rk3588-power-controller", "rockchip,rv1126-power-controller", "rockchip,rv1126b-power-controller"

#power-domain-cells — required here #

Exact value (const): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

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

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

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^power-domain@[0-9a-f]+$ — name matches this regular expression #

Shared schema rule ($ref): #/$defs/pd-node

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^power-domain@[0-9a-f]+$ — name matches this regular expression

Shared schema rule ($ref): #/$defs/pd-node

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

Properties matching a name pattern (patternProperties)

^power-domain@[0-9a-f]+$ — name matches this regular expression

Shared schema rule ($ref): #/$defs/pd-node

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

#power-domain-cells — not listed as required here

Exact value (const): 0

Reusable definitions ($defs) #

pd-node #

Value type (type): "object"

Represents the power domains within the power controller node.

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

Power domain index. Valid values are defined in "include/dt-bindings/power/px30-power.h" "include/dt-bindings/power/rk3036-power.h" "include/dt-bindings/power/rk3066-power.h" "include/dt-bindings/power/rk3128-power.h" "include/dt-bindings/power/rk3188-power.h" "include/dt-bindings/power/rk3228-power.h" "include/dt-bindings/power/rk3288-power.h" "include/dt-bindings/power/rk3328-power.h" "include/dt-bindings/power/rk3366-power.h" "include/dt-bindings/power/rk3368-power.h" "include/dt-bindings/power/rk3399-power.h" "include/dt-bindings/power/rk3568-power.h" "include/dt-bindings/power/rk3588-power.h" "include/dt-bindings/power/rockchip,rv1126-power.h" "include/dt-bindings/power/rockchip,rv1126b-power-controller.h"

clocks — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 30

A number of phandles to clocks that need to be enabled while power domain switches state.

domain-supply — not listed as required here

domain regulator supply.

pm_qos — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items)

Maximum number of items (maxItems): 1

A number of phandles to qos blocks which need to be saved and restored while power domain switches state.

#power-domain-cells — required here

Allowed values (enum): 0, 1

Must be 0 for nodes representing a single PM domain and 1 for nodes providing multiple PM domains.

Required in this object (required): "reg", "#power-domain-cells"

Examples (examples) #

#include <dt-bindings/clock/rk3399-cru.h>
#include <dt-bindings/power/rk3399-power.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    qos_hdcp: qos@ffa90000 {
        compatible = "rockchip,rk3399-qos", "syscon";
        reg = <0x0 0xffa90000 0x0 0x20>;
    };

    qos_iep: qos@ffa98000 {
        compatible = "rockchip,rk3399-qos", "syscon";
        reg = <0x0 0xffa98000 0x0 0x20>;
    };

    qos_rga_r: qos@ffab0000 {
        compatible = "rockchip,rk3399-qos", "syscon";
        reg = <0x0 0xffab0000 0x0 0x20>;
    };

    qos_rga_w: qos@ffab0080 {
        compatible = "rockchip,rk3399-qos", "syscon";
        reg = <0x0 0xffab0080 0x0 0x20>;
    };

    qos_video_m0: qos@ffab8000 {
        compatible = "rockchip,rk3399-qos", "syscon";
        reg = <0x0 0xffab8000 0x0 0x20>;
    };

    qos_video_m1_r: qos@ffac0000 {
        compatible = "rockchip,rk3399-qos", "syscon";
        reg = <0x0 0xffac0000 0x0 0x20>;
    };

    qos_video_m1_w: qos@ffac0080 {
        compatible = "rockchip,rk3399-qos", "syscon";
        reg = <0x0 0xffac0080 0x0 0x20>;
    };

    power-management@ff310000 {
        compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd";
        reg = <0x0 0xff310000 0x0 0x1000>;

        power-controller {
            compatible = "rockchip,rk3399-power-controller";
            #power-domain-cells = <1>;
            #address-cells = <1>;
            #size-cells = <0>;

            /* These power domains are grouped by VD_CENTER */
            power-domain@RK3399_PD_IEP {
                reg = <RK3399_PD_IEP>;
                clocks = <&cru ACLK_IEP>,
                         <&cru HCLK_IEP>;
                pm_qos = <&qos_iep>;
                #power-domain-cells = <0>;
            };
            power-domain@RK3399_PD_RGA {
                reg = <RK3399_PD_RGA>;
                clocks = <&cru ACLK_RGA>,
                         <&cru HCLK_RGA>;
                pm_qos = <&qos_rga_r>,
                         <&qos_rga_w>;
                #power-domain-cells = <0>;
            };
            power-domain@RK3399_PD_VCODEC {
                reg = <RK3399_PD_VCODEC>;
                clocks = <&cru ACLK_VCODEC>,
                         <&cru HCLK_VCODEC>;
                pm_qos = <&qos_video_m0>;
                #power-domain-cells = <0>;
            };
            power-domain@RK3399_PD_VDU {
                reg = <RK3399_PD_VDU>;
                clocks = <&cru ACLK_VDU>,
                         <&cru HCLK_VDU>;
                pm_qos = <&qos_video_m1_r>,
                         <&qos_video_m1_w>;
                #power-domain-cells = <0>;
            };
            power-domain@RK3399_PD_VIO {
                reg = <RK3399_PD_VIO>;
                #power-domain-cells = <1>;
                #address-cells = <1>;
                #size-cells = <0>;

                power-domain@RK3399_PD_HDCP {
                    reg = <RK3399_PD_HDCP>;
                    clocks = <&cru ACLK_HDCP>,
                             <&cru HCLK_HDCP>,
                             <&cru PCLK_HDCP>;
                    pm_qos = <&qos_hdcp>;
                    #power-domain-cells = <0>;
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Rockchip SRAM for IO Voltage Domains

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/rockchip-io-domain.yaml#"

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

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

IO domain voltages on some Rockchip SoCs are variable but need to be kept in sync between the regulators and the SoC using a special register.

A specific example using rk3288
  If the regulator hooked up to a pin like SDMMC0_VDD is 3.3V then
  bit 7 of GRF_IO_VSEL needs to be 0. If the regulator hooked up to
  that same pin is 1.8V then bit 7 of GRF_IO_VSEL needs to be 1.

Said another way, this driver simply handles keeping bits in the SoCs General Register File (GRF) in sync with the actual value of a voltage hooked up to the pins.

Note that this driver specifically does not include
  any logic for deciding what voltage we should set regulators to
  any logic for deciding whether regulators (or internal SoC blocks)
  should have power or not have power

If there were some other software that had the smarts of making decisions about regulators, it would work in conjunction with this driver. When that other software adjusted a regulators voltage then this driver would handle telling the SoC about it. A good example is vqmmc for SD. In that case the dw_mmc driver simply is told about a regulator. It changes the regulator between 3.3V and 1.8V at the right time. This driver notices the change and makes sure that the SoC is on the same page.

You specify supplies using the standard regulator bindings by including a phandle the relevant regulator. All specified supplies must be able to report their voltage. The IO Voltage Domain for any non-specified supplies will be not be touched.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,px30-io-voltage-domain", "rockchip,px30-pmu-io-voltage-domain", "rockchip,rk3188-io-voltage-domain", "rockchip,rk3228-io-voltage-domain", "rockchip,rk3288-io-voltage-domain", "rockchip,rk3308-io-voltage-domain", "rockchip,rk3328-io-voltage-domain", "rockchip,rk3368-io-voltage-domain", "rockchip,rk3368-pmu-io-voltage-domain", "rockchip,rk3399-io-voltage-domain", "rockchip,rk3399-pmu-io-voltage-domain", "rockchip,rk3568-pmu-io-voltage-domain", "rockchip,rv1108-io-voltage-domain", "rockchip,rv1108-pmu-io-voltage-domain", "rockchip,rv1126-pmu-io-voltage-domain"

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): #/$defs/px30

Rule 2 #

Shared schema rule ($ref): #/$defs/px30-pmu

Rule 3 #

Shared schema rule ($ref): #/$defs/rk3188

Rule 4 #

Shared schema rule ($ref): #/$defs/rk3228

Rule 5 #

Shared schema rule ($ref): #/$defs/rk3288

Rule 6 #

Shared schema rule ($ref): #/$defs/rk3308

Rule 7 #

Shared schema rule ($ref): #/$defs/rk3328

Rule 8 #

Shared schema rule ($ref): #/$defs/rk3368

Rule 9 #

Shared schema rule ($ref): #/$defs/rk3368-pmu

Rule 10 #

Shared schema rule ($ref): #/$defs/rk3399

Rule 11 #

Shared schema rule ($ref): #/$defs/rk3399-pmu

Rule 12 #

Shared schema rule ($ref): #/$defs/rk3568-pmu

Rule 13 #

Shared schema rule ($ref): #/$defs/rv1108

Rule 14 #

Shared schema rule ($ref): #/$defs/rv1108-pmu

Rule 15 #

Shared schema rule ($ref): #/$defs/rv1126-pmu

Reusable definitions ($defs) #

px30 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,px30-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

vccio1-supply — not listed as required here

The supply connected to VCCIO1.

vccio2-supply — not listed as required here

The supply connected to VCCIO2.

vccio3-supply — not listed as required here

The supply connected to VCCIO3.

vccio4-supply — not listed as required here

The supply connected to VCCIO4.

vccio5-supply — not listed as required here

The supply connected to VCCIO5.

vccio6-supply — not listed as required here

The supply connected to VCCIO6.

vccio-oscgpi-supply — not listed as required here

The supply connected to VCCIO_OSCGPI.

px30-pmu #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,px30-pmu-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

pmuio1-supply — not listed as required here

The supply connected to PMUIO1.

pmuio2-supply — not listed as required here

The supply connected to PMUIO2.

rk3188 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3188-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

ap0-supply — not listed as required here

The supply connected to AP0_VCC.

ap1-supply — not listed as required here

The supply connected to AP1_VCC.

cif-supply — not listed as required here

The supply connected to CIF_VCC.

flash-supply — not listed as required here

The supply connected to FLASH_VCC.

lcdc0-supply — not listed as required here

The supply connected to LCD0_VCC.

lcdc1-supply — not listed as required here

The supply connected to LCD1_VCC.

vccio0-supply — not listed as required here

The supply connected to VCCIO0.

vccio1-supply — not listed as required here

The supply connected to VCCIO1. Also labeled as VCCIO2.

rk3228 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3228-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

vccio1-supply — not listed as required here

The supply connected to VCCIO1.

vccio2-supply — not listed as required here

The supply connected to VCCIO2.

vccio3-supply — not listed as required here

The supply connected to VCCIO3.

vccio4-supply — not listed as required here

The supply connected to VCCIO4.

rk3288 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3288-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

audio-supply — not listed as required here

The supply connected to APIO4_VDD.

bb-supply — not listed as required here

The supply connected to APIO5_VDD.

dvp-supply — not listed as required here

The supply connected to DVPIO_VDD.

flash0-supply — not listed as required here

The supply connected to FLASH0_VDD. Typically for eMMC.

flash1-supply — not listed as required here

The supply connected to FLASH1_VDD. Also known as SDIO1.

gpio30-supply — not listed as required here

The supply connected to APIO1_VDD.

gpio1830-supply — not listed as required here

The supply connected to APIO2_VDD.

lcdc-supply — not listed as required here

The supply connected to LCDC_VDD.

sdcard-supply — not listed as required here

The supply connected to SDMMC0_VDD.

wifi-supply — not listed as required here

The supply connected to APIO3_VDD. Also known as SDIO0.

rk3308 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3308-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

vccio0-supply — not listed as required here

The supply connected to VCCIO0.

vccio1-supply — not listed as required here

The supply connected to VCCIO1.

vccio2-supply — not listed as required here

The supply connected to VCCIO2.

vccio3-supply — not listed as required here

The supply connected to VCCIO3.

vccio4-supply — not listed as required here

The supply connected to VCCIO4.

vccio5-supply — not listed as required here

The supply connected to VCCIO5.

rk3328 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3328-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

vccio1-supply — not listed as required here

The supply connected to VCCIO1.

vccio2-supply — not listed as required here

The supply connected to VCCIO2.

vccio3-supply — not listed as required here

The supply connected to VCCIO3.

vccio4-supply — not listed as required here

The supply connected to VCCIO4.

vccio5-supply — not listed as required here

The supply connected to VCCIO5.

vccio6-supply — not listed as required here

The supply connected to VCCIO6.

pmuio-supply — not listed as required here

The supply connected to VCCIO_PMU.

rk3368 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3368-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

audio-supply — not listed as required here

The supply connected to APIO3_VDD.

dvp-supply — not listed as required here

The supply connected to DVPIO_VDD.

flash0-supply — not listed as required here

The supply connected to FLASH0_VDD. Typically for eMMC.

gpio30-supply — not listed as required here

The supply connected to APIO1_VDD.

gpio1830-supply — not listed as required here

The supply connected to APIO4_VDD.

sdcard-supply — not listed as required here

The supply connected to SDMMC0_VDD.

wifi-supply — not listed as required here

The supply connected to APIO2_VDD. Also known as SDIO0.

rk3368-pmu #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3368-pmu-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

pmu-supply — not listed as required here

The supply connected to PMUIO_VDD.

vop-supply — not listed as required here

The supply connected to LCDC_VDD.

rk3399 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3399-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

audio-supply — not listed as required here

The supply connected to APIO5_VDD.

bt656-supply — not listed as required here

The supply connected to APIO2_VDD.

gpio1830-supply — not listed as required here

The supply connected to APIO4_VDD.

sdmmc-supply — not listed as required here

The supply connected to SDMMC0_VDD.

rk3399-pmu #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3399-pmu-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

pmu1830-supply — not listed as required here

The supply connected to PMUIO2_VDD.

rk3568-pmu #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3568-pmu-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

pmuio1-supply — not listed as required here

The supply connected to PMUIO1.

pmuio2-supply — not listed as required here

The supply connected to PMUIO2.

vccio1-supply — not listed as required here

The supply connected to VCCIO1.

vccio2-supply — not listed as required here

The supply connected to VCCIO2.

vccio3-supply — not listed as required here

The supply connected to VCCIO3.

vccio4-supply — not listed as required here

The supply connected to VCCIO4.

vccio5-supply — not listed as required here

The supply connected to VCCIO5.

vccio6-supply — not listed as required here

The supply connected to VCCIO6.

vccio7-supply — not listed as required here

The supply connected to VCCIO7.

rv1108 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rv1108-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

vccio1-supply — not listed as required here

The supply connected to APIO1_VDD.

vccio2-supply — not listed as required here

The supply connected to APIO2_VDD.

vccio3-supply — not listed as required here

The supply connected to APIO3_VDD.

vccio5-supply — not listed as required here

The supply connected to APIO5_VDD.

vccio6-supply — not listed as required here

The supply connected to APIO6_VDD.

rv1108-pmu #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rv1108-pmu-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

pmu-supply — not listed as required here

The supply connected to PMUIO_VDD.

rv1126-pmu #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rv1126-pmu-io-voltage-domain"

When the condition matches (then) #

Properties and child nodes (properties)

vccio1-supply — not listed as required here

The supply connected to VCCIO1.

vccio2-supply — not listed as required here

The supply connected to VCCIO2.

vccio3-supply — not listed as required here

The supply connected to VCCIO3.

vccio4-supply — not listed as required here

The supply connected to VCCIO4.

vccio5-supply — not listed as required here

The supply connected to VCCIO5.

vccio6-supply — not listed as required here

The supply connected to VCCIO6.

vccio7-supply — not listed as required here

The supply connected to VCCIO7.

pmuio0-supply — not listed as required here

The supply connected to PMUIO0.

pmuio1-supply — not listed as required here

The supply connected to PMUIO1.

Examples (examples) #

io-domains {
  compatible = "rockchip,rk3288-io-voltage-domain";
  audio-supply = <&vcc18_codec>;
  bb-supply = <&vcc33_io>;
  dvp-supply = <&vcc_18>;
  flash0-supply = <&vcc18_flashio>;
  gpio1830-supply = <&vcc33_io>;
  gpio30-supply = <&vcc33_pmuio>;
  lcdc-supply = <&vcc33_lcd>;
  sdcard-supply = <&vccio_sd>;
  wifi-supply = <&vcc18_wl>;
};

Source notes #

Annotations retained from the schema source

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

StarFive JH7110 Power Management Unit

Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings

Schema identifier ($id): "http://devicetree.org/schemas/power/starfive,jh7110-pmu.yaml#"

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

Maintainers (maintainers): "Walker Chen <walker.chen@starfivetech.com>"

StarFive JH7110 SoC includes support for multiple power domains which can be powered on/off by software based on different application scenes to save power.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "starfive,jh7110-pmu"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

#power-domain-cells — required here #

Exact value (const): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

pwrc: power-controller@17030000 {
    compatible = "starfive,jh7110-pmu";
    reg = <0x17030000 0x10000>;
    interrupts = <111>;
    #power-domain-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Peios Learn — documentation for Peios software.

Built with Trail.