aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2021-10-07 00:40:06 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2021-10-13 18:15:57 +0200
commiteb415571c78267162e4adc91f259a9f6ee5b344b (patch)
tree1f44a46a8cef10a5d9648ab7ebf0935cd64152f7 /Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml
parentpower: supply: axp288_charger: Fix missing mutex_init() (diff)
downloadlinux-dev-eb415571c78267162e4adc91f259a9f6ee5b344b.tar.xz
linux-dev-eb415571c78267162e4adc91f259a9f6ee5b344b.zip
dt-bindings: power: supply: ab8500: Standard monitored-battery
Make monitored-battery the standard phandle to the battery we monitor for the AB8500 charger components. We make the old "battery" phandle deprecated, and the new one required so we detect and fix all users to use the standard phandle name. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml')
-rw-r--r--Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml10
1 files changed, 7 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml
index db342e5ac0d1..54ac42a9d354 100644
--- a/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml
+++ b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml
@@ -17,10 +17,14 @@ properties:
compatible:
const: stericsson,ab8500-fg
- battery:
+ monitored-battery:
$ref: /schemas/types.yaml#/definitions/phandle
description: phandle to battery node
+ battery:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ deprecated: true
+
interrupts:
maxItems: 5
@@ -41,7 +45,7 @@ properties:
required:
- compatible
- - battery
+ - monitored-battery
- interrupts
- interrupt-names
- io-channels
@@ -55,7 +59,7 @@ examples:
pmic {
fuel-gauge {
compatible = "stericsson,ab8500-fg";
- battery = <&ab8500_battery>;
+ monitored-battery = <&battery>;
interrupts = <24 IRQ_TYPE_LEVEL_HIGH>,
<8 IRQ_TYPE_LEVEL_HIGH>,
<28 IRQ_TYPE_LEVEL_HIGH>,