xref: /linux/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml (revision 4a8fd33517daa6020f10c31f609f9ec8a07775f8)
1*4a8fd335SStephan Gerhold# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*4a8fd335SStephan Gerhold%YAML 1.2
3*4a8fd335SStephan Gerhold---
4*4a8fd335SStephan Gerhold$id: "http://devicetree.org/schemas/power/supply/richtek,rt5033-battery.yaml#"
5*4a8fd335SStephan Gerhold$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6*4a8fd335SStephan Gerhold
7*4a8fd335SStephan Gerholdtitle: Richtek RT5033 PMIC Fuel Gauge
8*4a8fd335SStephan Gerhold
9*4a8fd335SStephan Gerholdmaintainers:
10*4a8fd335SStephan Gerhold  - Stephan Gerhold <stephan@gerhold.net>
11*4a8fd335SStephan Gerhold
12*4a8fd335SStephan GerholdallOf:
13*4a8fd335SStephan Gerhold  - $ref: power-supply.yaml#
14*4a8fd335SStephan Gerhold
15*4a8fd335SStephan Gerholdproperties:
16*4a8fd335SStephan Gerhold  compatible:
17*4a8fd335SStephan Gerhold    const: richtek,rt5033-battery
18*4a8fd335SStephan Gerhold
19*4a8fd335SStephan Gerhold  reg:
20*4a8fd335SStephan Gerhold    maxItems: 1
21*4a8fd335SStephan Gerhold
22*4a8fd335SStephan Gerhold  interrupts:
23*4a8fd335SStephan Gerhold    maxItems: 1
24*4a8fd335SStephan Gerhold
25*4a8fd335SStephan Gerholdrequired:
26*4a8fd335SStephan Gerhold  - compatible
27*4a8fd335SStephan Gerhold  - reg
28*4a8fd335SStephan Gerhold
29*4a8fd335SStephan GerholdadditionalProperties: false
30*4a8fd335SStephan Gerhold
31*4a8fd335SStephan Gerholdexamples:
32*4a8fd335SStephan Gerhold  - |
33*4a8fd335SStephan Gerhold    i2c {
34*4a8fd335SStephan Gerhold      #address-cells = <1>;
35*4a8fd335SStephan Gerhold      #size-cells = <0>;
36*4a8fd335SStephan Gerhold
37*4a8fd335SStephan Gerhold      battery@35 {
38*4a8fd335SStephan Gerhold        compatible = "richtek,rt5033-battery";
39*4a8fd335SStephan Gerhold        reg = <0x35>;
40*4a8fd335SStephan Gerhold      };
41*4a8fd335SStephan Gerhold    };
42*4a8fd335SStephan Gerhold  - |
43*4a8fd335SStephan Gerhold    #include <dt-bindings/interrupt-controller/irq.h>
44*4a8fd335SStephan Gerhold    i2c {
45*4a8fd335SStephan Gerhold      #address-cells = <1>;
46*4a8fd335SStephan Gerhold      #size-cells = <0>;
47*4a8fd335SStephan Gerhold
48*4a8fd335SStephan Gerhold      battery@35 {
49*4a8fd335SStephan Gerhold        compatible = "richtek,rt5033-battery";
50*4a8fd335SStephan Gerhold        reg = <0x35>;
51*4a8fd335SStephan Gerhold        interrupt-parent = <&msmgpio>;
52*4a8fd335SStephan Gerhold        interrupts = <121 IRQ_TYPE_EDGE_FALLING>;
53*4a8fd335SStephan Gerhold      };
54*4a8fd335SStephan Gerhold    };
55