Debian Codegraph @

Documentation/devicetree/bindings/power/supply/pegatron,chagall-ec.yaml

raw
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
7 title: Pegatron Chagall EC
8
9 maintainers:
10 - Svyatoslav Ryhel <[email protected]>
11
12 description:
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
19 properties:
20 compatible:
21 const: pegatron,chagall-ec
22
23 reg:
24 maxItems: 1
25
26 monitored-battery: true
27 power-supplies: true
28
29 required:
30 - compatible
31 - reg
32
33 unevaluatedProperties: false
34
35 examples:
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 ...