Skip to content

Commit 615a8d9

Browse files
clamor-ssre
authored andcommitted
dt-bindings: power: supply: Document Pegatron Chagall fuel gauge
Add binding for Pegatron Chagall tablets battery monitor. Signed-off-by: Svyatoslav Ryhel <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent b5cd5c4 commit 615a8d9

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
...

0 commit comments

Comments
 (0)