Richtek RT5033 PMIC Fuel Gauge

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/richtek,rt5033-battery.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "richtek,rt5033-battery"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  battery@35 {
    compatible = "richtek,rt5033-battery";
    reg = <0x35>;
  };
};
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  battery@35 {
    compatible = "richtek,rt5033-battery";
    reg = <0x35>;
    interrupt-parent = <&msmgpio>;
    interrupts = <121 IRQ_TYPE_EDGE_FALLING>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page