50 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Nokia N900 battery8 9maintainers:10 - Pali Rohár <pali@kernel.org>11 - Sebastian Reichel <sre@kernel.org>12 13allOf:14 - $ref: power-supply.yaml#15 16properties:17 compatible:18 const: nokia,n900-battery19 20 io-channels:21 items:22 - description: ADC channel for temperature reading23 - description: ADC channel for battery size identification24 - description: ADC channel to measure the battery voltage25 26 io-channel-names:27 items:28 - const: temp29 - const: bsi30 - const: vbat31 32required:33 - compatible34 - io-channels35 - io-channel-names36 37additionalProperties: false38 39examples:40 - |41 battery {42 compatible = "nokia,n900-battery";43 io-channels = <&twl4030_madc 0>,44 <&twl4030_madc 4>,45 <&twl4030_madc 12>;46 io-channel-names = "temp",47 "bsi",48 "vbat";49 };50