50 lines
926 B
YAML
50 lines
926 B
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/power/supply/samsung,s2mu005-fuel-gauge.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Battery Fuel Gauge for Samsung S2M series PMICs
|
|
|
|
maintainers:
|
|
- Kaustabh Chakraborty <kauschluss@disroot.org>
|
|
|
|
allOf:
|
|
- $ref: power-supply.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- samsung,s2mu005-fuel-gauge
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
fuel-gauge@3b {
|
|
compatible = "samsung,s2mu005-fuel-gauge";
|
|
reg = <0x3b>;
|
|
|
|
interrupt-parent = <&gpa0>;
|
|
interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
|
|
|
|
monitored-battery = <&battery>;
|
|
};
|
|
};
|