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