Maxim 17042 fuel gauge series
Schema identifier ($id): "http://devicetree.org/schemas/power/supply/maxim,max17042.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):power-supply.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max17042", "maxim,max17047", "maxim,max17050", "maxim,max17055", "maxim,max77705-battery", "maxim,max77849-battery"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
The ALRT pin, an open-drain interrupt.
maxim,rsns-microohm — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Resistance of rsns resistor in micro Ohms (datasheet-recommended value is 10000). Defining this property enables current-sense functionality.
maxim,cold-temp — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Temperature threshold to report battery as cold (in tenths of degree Celsius). Default is not to report cold events.
maxim,over-heat-temp — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Temperature threshold to report battery as over heated (in tenths of degree Celsius). Default is not to report over heating events.
maxim,dead-volt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Voltage threshold to report battery as dead (in mV). Default is not to report dead battery events.
maxim,over-volt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Voltage threshold to report battery as over voltage (in mV). Default is not to report over-voltage events.
power-supplies — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
battery@36 {
compatible = "maxim,max17042";
reg = <0x36>;
maxim,rsns-microohm = <10000>;
maxim,over-heat-temp = <600>;
maxim,over-volt = <4300>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0