xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/pegatron,chagall-ec.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/power/supply/pegatron,chagall-ec.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Pegatron Chagall EC
8
9maintainers:
10  - Svyatoslav Ryhel <clamor95@gmail.com>
11
12description:
13  Pegatron Chagall EC is based on an 8-bit programmable microcontroller from
14  Infineon/Cypress Semiconductor, it communicates over I2C and is used in the
15  Pegatron Chagall tablet for fuel gauge and battery control functions.
16
17$ref: /schemas/power/supply/power-supply.yaml
18
19properties:
20  compatible:
21    const: pegatron,chagall-ec
22
23  reg:
24    maxItems: 1
25
26  monitored-battery: true
27  power-supplies: true
28
29required:
30  - compatible
31  - reg
32
33unevaluatedProperties: false
34
35examples:
36  - |
37    i2c {
38        #address-cells = <1>;
39        #size-cells = <0>;
40
41        embedded-controller@10 {
42            compatible = "pegatron,chagall-ec";
43            reg = <0x10>;
44
45            monitored-battery = <&battery>;
46            power-supplies = <&mains>;
47        };
48    };
49...
50