Commit ee662741 authored by Sebastian Reichel's avatar Sebastian Reichel Committed by Sebastian Reichel
Browse files

dt-bindings: power: supply: olpc-battery: Convert to DT schema format



Convert the binding to DT schema format.

Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
parent 95b00152
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
# 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
+0 −5
Original line number Diff line number Diff line
OLPC battery
~~~~~~~~~~~~

Required properties:
  - compatible : "olpc,xo1-battery" or "olpc,xo1.5-battery"