diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2021-03-17 16:49:00 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2021-03-23 14:55:24 +0300 |
commit | ee662741966e5ca844edd8b191152caadbf2e308 (patch) | |
tree | 2b210e959dfab8356976a3b037b17464545ad11c | |
parent | 95b00152cb8e5f39aa476eb3feaaeee44abd85f8 (diff) | |
download | linux-ee662741966e5ca844edd8b191152caadbf2e308.tar.xz |
dt-bindings: power: supply: olpc-battery: Convert to DT schema format
Convert the binding to DT schema format.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Rob Herring <robh@kernel.org>
-rw-r--r-- | Documentation/devicetree/bindings/power/supply/olpc-battery.yaml | 27 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/power/supply/olpc_battery.txt | 5 |
2 files changed, 27 insertions, 5 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/olpc-battery.yaml b/Documentation/devicetree/bindings/power/supply/olpc-battery.yaml new file mode 100644 index 000000000000..0bd7bf3b8e1b --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/olpc-battery.yaml @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/power/supply/olpc-battery.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: OLPC Battery + +maintainers: + - Sebastian Reichel <sre@kernel.org> + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + oneOf: + - items: + - const: olpc,xo1.5-battery + - const: olpc,xo1-battery + - items: + - const: olpc,xo1-battery + +required: + - compatible + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/power/supply/olpc_battery.txt b/Documentation/devicetree/bindings/power/supply/olpc_battery.txt deleted file mode 100644 index 8d87d6b35a98..000000000000 --- a/Documentation/devicetree/bindings/power/supply/olpc_battery.txt +++ /dev/null @@ -1,5 +0,0 @@ -OLPC battery -~~~~~~~~~~~~ - -Required properties: - - compatible : "olpc,xo1-battery" or "olpc,xo1.5-battery" |