Maxim MAX17201 fuel gauge

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max17201.yaml#"

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

Maintainers (maintainers): "Dimitri Fedrau <dima.fedrau@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "maxim,max17201"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "maxim,max17205"

Item 2

Exact value (const): "maxim,max17201"

reg — required here #

Array item rules (items) #

Item 1

ModelGauge m5 registers

Item 2

Nonvolatile registers

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "m5"

Item 2

Exact value (const): "nvmem"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  fuel-gauge@36 {
    compatible = "maxim,max17201";
    reg = <0x36>, <0xb>;
    reg-names = "m5", "nvmem";
    interrupt-parent = <&gpio0>;
    interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page