mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-19 03:53:51 -04:00
Clean-up incorrect indentation, extra spaces, and missing EOF newline in schema files. Most of the clean-ups are for list indentation which should always be 2 spaces more than the preceding keyword. Found with yamllint (now integrated into the checks). Cc: linux-arm-kernel@lists.infradead.org Cc: dri-devel@lists.freedesktop.org Cc: linux-gpio@vger.kernel.org Cc: linux-i2c@vger.kernel.org Cc: linux-iio@vger.kernel.org Cc: linux-pm@vger.kernel.org Cc: alsa-devel@alsa-project.org Cc: linux-mmc@vger.kernel.org Cc: linux-mtd@lists.infradead.org Cc: linux-serial@vger.kernel.org Cc: linux-usb@vger.kernel.org Acked-by: Wolfram Sang <wsa@kernel.org> # for I2C Acked-by: Sam Ravnborg <sam@ravnborg.org> # for display Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> #for-iio Signed-off-by: Rob Herring <robh@kernel.org>
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
# Copyright 2019-2020 Artur Rojek
|
|
%YAML 1.2
|
|
---
|
|
$id: "http://devicetree.org/schemas/power/supply/ingenic,battery.yaml#"
|
|
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
|
|
|
|
title: Ingenic JZ47xx battery bindings
|
|
|
|
maintainers:
|
|
- Artur Rojek <contact@artur-rojek.eu>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: ingenic,jz4740-battery
|
|
- items:
|
|
- enum:
|
|
- ingenic,jz4725b-battery
|
|
- ingenic,jz4770-battery
|
|
- const: ingenic,jz4740-battery
|
|
|
|
io-channels:
|
|
maxItems: 1
|
|
|
|
io-channel-names:
|
|
const: battery
|
|
|
|
monitored-battery:
|
|
description: >
|
|
phandle to a "simple-battery" compatible node.
|
|
|
|
This property must be a phandle to a node using the format described
|
|
in battery.yaml, with the following properties being required:
|
|
- voltage-min-design-microvolt: drained battery voltage,
|
|
- voltage-max-design-microvolt: fully charged battery voltage.
|
|
|
|
required:
|
|
- compatible
|
|
- io-channels
|
|
- io-channel-names
|
|
- monitored-battery
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/iio/adc/ingenic,adc.h>
|
|
|
|
simple_battery: battery {
|
|
compatible = "simple-battery";
|
|
voltage-min-design-microvolt = <3600000>;
|
|
voltage-max-design-microvolt = <4200000>;
|
|
};
|
|
|
|
ingenic-battery {
|
|
compatible = "ingenic,jz4740-battery";
|
|
io-channels = <&adc INGENIC_ADC_BATTERY>;
|
|
io-channel-names = "battery";
|
|
monitored-battery = <&simple_battery>;
|
|
};
|