xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/dlg,da9150-fuel-gauge.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
22eb4d8dcSEmmanuel Vadot%YAML 1.2
32eb4d8dcSEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/dlg,da9150-fuel-gauge.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
62eb4d8dcSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Dialog Semiconductor DA9150 Fuel-Gauge Power Supply
82eb4d8dcSEmmanuel Vadot
92eb4d8dcSEmmanuel Vadotmaintainers:
102eb4d8dcSEmmanuel Vadot  - Sebastian Reichel <sre@kernel.org>
112eb4d8dcSEmmanuel Vadot
122eb4d8dcSEmmanuel VadotallOf:
132eb4d8dcSEmmanuel Vadot  - $ref: power-supply.yaml#
142eb4d8dcSEmmanuel Vadot
152eb4d8dcSEmmanuel Vadotproperties:
162eb4d8dcSEmmanuel Vadot  compatible:
172eb4d8dcSEmmanuel Vadot    const: dlg,da9150-fuel-gauge
182eb4d8dcSEmmanuel Vadot
192eb4d8dcSEmmanuel Vadot  dlg,update-interval:
202eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
212eb4d8dcSEmmanuel Vadot    description: Interval time (milliseconds) between battery level checks.
222eb4d8dcSEmmanuel Vadot
232eb4d8dcSEmmanuel Vadot  dlg,warn-soc-level:
242eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8
252eb4d8dcSEmmanuel Vadot    minimum: 1
262eb4d8dcSEmmanuel Vadot    maximum: 100
272eb4d8dcSEmmanuel Vadot    description: Battery discharge level (%) where warning event raised.
282eb4d8dcSEmmanuel Vadot
292eb4d8dcSEmmanuel Vadot  dlg,crit-soc-level:
302eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8
312eb4d8dcSEmmanuel Vadot    minimum: 1
322eb4d8dcSEmmanuel Vadot    maximum: 100
332eb4d8dcSEmmanuel Vadot    description: |
342eb4d8dcSEmmanuel Vadot      Battery discharge level (%) where critical event raised.
352eb4d8dcSEmmanuel Vadot      This value should be lower than the warning level.
362eb4d8dcSEmmanuel Vadot
372eb4d8dcSEmmanuel Vadotrequired:
382eb4d8dcSEmmanuel Vadot  - compatible
392eb4d8dcSEmmanuel Vadot
402eb4d8dcSEmmanuel VadotadditionalProperties: false
412eb4d8dcSEmmanuel Vadot
422eb4d8dcSEmmanuel Vadotexamples:
432eb4d8dcSEmmanuel Vadot  - |
442eb4d8dcSEmmanuel Vadot    pmic {
452eb4d8dcSEmmanuel Vadot      battery {
462eb4d8dcSEmmanuel Vadot        compatible = "dlg,da9150-fuel-gauge";
472eb4d8dcSEmmanuel Vadot        dlg,update-interval = <10000>;
482eb4d8dcSEmmanuel Vadot        dlg,warn-soc-level = /bits/ 8 <15>;
492eb4d8dcSEmmanuel Vadot        dlg,crit-soc-level = /bits/ 8 <5>;
502eb4d8dcSEmmanuel Vadot      };
512eb4d8dcSEmmanuel Vadot    };
52