diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2021-03-17 14:49:01 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2021-03-23 12:55:24 +0100 |
commit | eb917497734c4438d0a2013050f8141454cd656f (patch) | |
tree | d1d5eaf16cef21c42bb7134bc1c44121d6618894 /Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml | |
parent | ee662741966e5ca844edd8b191152caadbf2e308 (diff) | |
download | linux-eb917497734c4438d0a2013050f8141454cd656f.tar.bz2 |
dt-bindings: power: supply: ab8500: Convert to DT schema format
Convert the binding to DT schema format.
Note: The battery node does not have a compatible value and needs
to be described from the binding file for the PMIC. That has not
yet been converted, so I kept the information in plaintext for now.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml new file mode 100644 index 000000000000..0897231c2f6e --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2021 Sebastian Reichel +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/power/supply/stericsson,ab8500-chargalg.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: AB8500 Charging Algorithm + +maintainers: + - Sebastian Reichel <sre@kernel.org> + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + const: stericsson,ab8500-chargalg + + battery: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to battery node + +required: + - compatible + - battery + +additionalProperties: false + +examples: + - | + pmic { + charging-algorithm { + compatible = "stericsson,ab8500-chargalg"; + battery = <&ab8500_battery>; + }; + }; |