Pegatron Chagall EC

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

Edit this page