Dialog Semiconductor DA9150 Fuel-Gauge Power Supply
Schema identifier ($id): "http://devicetree.org/schemas/power/supply/dlg,da9150-fuel-gauge.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 #
Exact value (const): "dlg,da9150-fuel-gauge"
dlg,update-interval — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Interval time (milliseconds) between battery level checks.
dlg,warn-soc-level — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 100
Battery discharge level (%) where warning event raised.
dlg,crit-soc-level — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 100
Battery discharge level (%) where critical event raised. This value should be lower than the warning level.
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pmic {
battery {
compatible = "dlg,da9150-fuel-gauge";
dlg,update-interval = <10000>;
dlg,warn-soc-level = /bits/ 8 <15>;
dlg,crit-soc-level = /bits/ 8 <5>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0