159604ba7SSebastian Reichel# SPDX-License-Identifier: GPL-2.0
259604ba7SSebastian Reichel%YAML 1.2
359604ba7SSebastian Reichel---
41ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/dlg,da9150-fuel-gauge.yaml#
51ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
659604ba7SSebastian Reichel
7*84e85359SKrzysztof Kozlowskititle: Dialog Semiconductor DA9150 Fuel-Gauge Power Supply
859604ba7SSebastian Reichel
959604ba7SSebastian Reichelmaintainers:
1059604ba7SSebastian Reichel  - Sebastian Reichel <sre@kernel.org>
1159604ba7SSebastian Reichel
1259604ba7SSebastian ReichelallOf:
1359604ba7SSebastian Reichel  - $ref: power-supply.yaml#
1459604ba7SSebastian Reichel
1559604ba7SSebastian Reichelproperties:
1659604ba7SSebastian Reichel  compatible:
1759604ba7SSebastian Reichel    const: dlg,da9150-fuel-gauge
1859604ba7SSebastian Reichel
1959604ba7SSebastian Reichel  dlg,update-interval:
2059604ba7SSebastian Reichel    $ref: /schemas/types.yaml#/definitions/uint32
2159604ba7SSebastian Reichel    description: Interval time (milliseconds) between battery level checks.
2259604ba7SSebastian Reichel
2359604ba7SSebastian Reichel  dlg,warn-soc-level:
2459604ba7SSebastian Reichel    $ref: /schemas/types.yaml#/definitions/uint8
2559604ba7SSebastian Reichel    minimum: 1
2659604ba7SSebastian Reichel    maximum: 100
2759604ba7SSebastian Reichel    description: Battery discharge level (%) where warning event raised.
2859604ba7SSebastian Reichel
2959604ba7SSebastian Reichel  dlg,crit-soc-level:
3059604ba7SSebastian Reichel    $ref: /schemas/types.yaml#/definitions/uint8
3159604ba7SSebastian Reichel    minimum: 1
3259604ba7SSebastian Reichel    maximum: 100
3359604ba7SSebastian Reichel    description: |
3459604ba7SSebastian Reichel      Battery discharge level (%) where critical event raised.
3559604ba7SSebastian Reichel      This value should be lower than the warning level.
3659604ba7SSebastian Reichel
3759604ba7SSebastian Reichelrequired:
3859604ba7SSebastian Reichel  - compatible
3959604ba7SSebastian Reichel
4059604ba7SSebastian ReicheladditionalProperties: false
4159604ba7SSebastian Reichel
4259604ba7SSebastian Reichelexamples:
4359604ba7SSebastian Reichel  - |
4459604ba7SSebastian Reichel    pmic {
4559604ba7SSebastian Reichel      battery {
4659604ba7SSebastian Reichel        compatible = "dlg,da9150-fuel-gauge";
4759604ba7SSebastian Reichel        dlg,update-interval = <10000>;
4859604ba7SSebastian Reichel        dlg,warn-soc-level = /bits/ 8 <15>;
4959604ba7SSebastian Reichel        dlg,crit-soc-level = /bits/ 8 <5>;
5059604ba7SSebastian Reichel      };
5159604ba7SSebastian Reichel    };
52