mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-05 20:30:41 +00:00

Id and schema fields do not need quotes. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220726115748.101015-3-krzysztof.kozlowski@linaro.org
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Nokia N900 battery
|
|
|
|
maintainers:
|
|
- Pali Rohár <pali@kernel.org>
|
|
- Sebastian Reichel <sre@kernel.org>
|
|
|
|
allOf:
|
|
- $ref: power-supply.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: nokia,n900-battery
|
|
|
|
io-channels:
|
|
items:
|
|
- description: ADC channel for temperature reading
|
|
- description: ADC channel for battery size identification
|
|
- description: ADC channel to measure the battery voltage
|
|
|
|
io-channel-names:
|
|
items:
|
|
- const: temp
|
|
- const: bsi
|
|
- const: vbat
|
|
|
|
required:
|
|
- compatible
|
|
- io-channels
|
|
- io-channel-names
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
battery {
|
|
compatible = "nokia,n900-battery";
|
|
io-channels = <&twl4030_madc 0>,
|
|
<&twl4030_madc 4>,
|
|
<&twl4030_madc 12>;
|
|
io-channel-names = "temp",
|
|
"bsi",
|
|
"vbat";
|
|
};
|