Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: power: supply: Document Pegatron Chagall fuel gauge

Add binding for Pegatron Chagall tablets battery monitor.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250429061803.9581-3-clamor95@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Svyatoslav Ryhel and committed by
Sebastian Reichel
615a8d9d b5cd5c42

+49
+49
Documentation/devicetree/bindings/power/supply/pegatron,chagall-ec.yaml
··· 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 <clamor95@gmail.com> 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 + ...