Skip to content

Commit d74b4fc

Browse files
Kaustabh Chakrabortysre
authored andcommitted
dt-bindings: power: supply: document Samsung S2MU005 battery fuel gauge
Samsung S2MU005 is a PMIC device which has LED controllers, an MUIC and a battery charger. The battery charger is paired with an independent device connected via I2C which can be used to access various metrics of the battery. Document the device as a schema. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org> Link: https://patch.msgid.link/20260304-s2mu005-fuelgauge-v3-1-e4dc4e47cde8@disroot.org Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent c7e05ab commit d74b4fc

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

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/samsung,s2mu005-fuel-gauge.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Battery Fuel Gauge for Samsung S2M series PMICs
8+
9+
maintainers:
10+
- Kaustabh Chakraborty <kauschluss@disroot.org>
11+
12+
allOf:
13+
- $ref: power-supply.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- samsung,s2mu005-fuel-gauge
19+
20+
reg:
21+
maxItems: 1
22+
23+
interrupts:
24+
maxItems: 1
25+
26+
required:
27+
- compatible
28+
- reg
29+
30+
unevaluatedProperties: false
31+
32+
examples:
33+
- |
34+
#include <dt-bindings/interrupt-controller/irq.h>
35+
36+
i2c {
37+
#address-cells = <1>;
38+
#size-cells = <0>;
39+
40+
fuel-gauge@3b {
41+
compatible = "samsung,s2mu005-fuel-gauge";
42+
reg = <0x3b>;
43+
44+
interrupt-parent = <&gpa0>;
45+
interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
46+
47+
monitored-battery = <&battery>;
48+
};
49+
};

0 commit comments

Comments
 (0)