From 5b1a7b0f2ae9865513fbc869616eadbdf71d1f62 Mon Sep 17 00:00:00 2001 From: Ricardo Rivera-Matos Date: Mon, 11 Sep 2023 14:16:16 -0500 Subject: [PATCH] dts: battery: Create bindings for common battery properties Adds a devicetree for describing common battery characteristics used by multiple devices and subsystems. Signed-off-by: Ricardo Rivera-Matos --- dts/bindings/battery/battery.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 dts/bindings/battery/battery.yaml diff --git a/dts/bindings/battery/battery.yaml b/dts/bindings/battery/battery.yaml new file mode 100644 index 00000000000..90bb20532d4 --- /dev/null +++ b/dts/bindings/battery/battery.yaml @@ -0,0 +1,25 @@ +# Copyright 2023 Cirrus Logic, Inc. +# SPDX-License-Identifier: Apache-2.0 + +description: | + Static Battery Characteristics + + Properties are inherited from Linux. See + linux/Documentation/devicetree/bindings/power/supply/battery.yaml + +properties: + precharge-current-microamp: + type: int + description: current for pre-charge phase + + charge-term-current-microamp: + type: int + description: current for charge termination phase + + constant-charge-current-max-microamp: + type: int + description: maximum constant input current + + constant-charge-voltage-max-microvolt: + type: int + description: maximum constant input voltage