84e85359f4
The Devicetree bindings document does not have to say in the title that it is a "binding", but instead just describe the hardware. Drop trailing "bindings" in various forms (also with trailing full stop): find Documentation/devicetree/bindings/ -type f -name '*.yaml' \ -not -name 'trivial-devices.yaml' \ -exec sed -i -e 's/^title: \(.*\) [bB]indings\?\.\?$/title: \1/' {} \; Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: Matti Vaittinen <mazziesaccount@gmail.com> # ROHM Acked-by: Ulf Hansson <ulf.hansson@linaro.org> # MMC Acked-by: Stephen Boyd <sboyd@kernel.org> # clk Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> # input Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> # media Acked-by: Sebastian Reichel <sre@kernel.org> # power Acked-by: Viresh Kumar <viresh.kumar@linaro.org> # cpufreq Link: https://lore.kernel.org/r/20221216163815.522628-7-krzysztof.kozlowski@linaro.org Signed-off-by: Rob Herring <robh@kernel.org>
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/power/supply/dlg,da9150-fuel-gauge.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Dialog Semiconductor DA9150 Fuel-Gauge Power Supply
|
|
|
|
maintainers:
|
|
- Sebastian Reichel <sre@kernel.org>
|
|
|
|
allOf:
|
|
- $ref: power-supply.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: dlg,da9150-fuel-gauge
|
|
|
|
dlg,update-interval:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
description: Interval time (milliseconds) between battery level checks.
|
|
|
|
dlg,warn-soc-level:
|
|
$ref: /schemas/types.yaml#/definitions/uint8
|
|
minimum: 1
|
|
maximum: 100
|
|
description: Battery discharge level (%) where warning event raised.
|
|
|
|
dlg,crit-soc-level:
|
|
$ref: /schemas/types.yaml#/definitions/uint8
|
|
minimum: 1
|
|
maximum: 100
|
|
description: |
|
|
Battery discharge level (%) where critical event raised.
|
|
This value should be lower than the warning level.
|
|
|
|
required:
|
|
- compatible
|
|
|
|
additionalProperties: false
|
|
|
|
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>;
|
|
};
|
|
};
|