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