xref: /linux/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
14a8fd335SStephan Gerhold# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
24a8fd335SStephan Gerhold%YAML 1.2
34a8fd335SStephan Gerhold---
41ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/richtek,rt5033-battery.yaml#
51ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
64a8fd335SStephan Gerhold
74a8fd335SStephan Gerholdtitle: Richtek RT5033 PMIC Fuel Gauge
84a8fd335SStephan Gerhold
94a8fd335SStephan Gerholdmaintainers:
104a8fd335SStephan Gerhold  - Stephan Gerhold <stephan@gerhold.net>
114a8fd335SStephan Gerhold
124a8fd335SStephan GerholdallOf:
134a8fd335SStephan Gerhold  - $ref: power-supply.yaml#
144a8fd335SStephan Gerhold
154a8fd335SStephan Gerholdproperties:
164a8fd335SStephan Gerhold  compatible:
174a8fd335SStephan Gerhold    const: richtek,rt5033-battery
184a8fd335SStephan Gerhold
194a8fd335SStephan Gerhold  reg:
204a8fd335SStephan Gerhold    maxItems: 1
214a8fd335SStephan Gerhold
224a8fd335SStephan Gerhold  interrupts:
234a8fd335SStephan Gerhold    maxItems: 1
244a8fd335SStephan Gerhold
254a8fd335SStephan Gerholdrequired:
264a8fd335SStephan Gerhold  - compatible
274a8fd335SStephan Gerhold  - reg
284a8fd335SStephan Gerhold
29*39528911SJakob HauserunevaluatedProperties: false
304a8fd335SStephan Gerhold
314a8fd335SStephan Gerholdexamples:
324a8fd335SStephan Gerhold  - |
334a8fd335SStephan Gerhold    i2c {
344a8fd335SStephan Gerhold      #address-cells = <1>;
354a8fd335SStephan Gerhold      #size-cells = <0>;
364a8fd335SStephan Gerhold
374a8fd335SStephan Gerhold      battery@35 {
384a8fd335SStephan Gerhold        compatible = "richtek,rt5033-battery";
394a8fd335SStephan Gerhold        reg = <0x35>;
404a8fd335SStephan Gerhold      };
414a8fd335SStephan Gerhold    };
424a8fd335SStephan Gerhold  - |
434a8fd335SStephan Gerhold    #include <dt-bindings/interrupt-controller/irq.h>
444a8fd335SStephan Gerhold    i2c {
454a8fd335SStephan Gerhold      #address-cells = <1>;
464a8fd335SStephan Gerhold      #size-cells = <0>;
474a8fd335SStephan Gerhold
484a8fd335SStephan Gerhold      battery@35 {
494a8fd335SStephan Gerhold        compatible = "richtek,rt5033-battery";
504a8fd335SStephan Gerhold        reg = <0x35>;
514a8fd335SStephan Gerhold        interrupt-parent = <&msmgpio>;
524a8fd335SStephan Gerhold        interrupts = <121 IRQ_TYPE_EDGE_FALLING>;
534a8fd335SStephan Gerhold      };
544a8fd335SStephan Gerhold    };
55