12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 22eb4d8dcSEmmanuel Vadot%YAML 1.2 32eb4d8dcSEmmanuel Vadot--- 4*b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml# 5*b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 62eb4d8dcSEmmanuel Vadot 72eb4d8dcSEmmanuel Vadottitle: Nokia N900 battery 82eb4d8dcSEmmanuel Vadot 92eb4d8dcSEmmanuel Vadotmaintainers: 102eb4d8dcSEmmanuel Vadot - Pali Rohár <pali@kernel.org> 112eb4d8dcSEmmanuel Vadot - Sebastian Reichel <sre@kernel.org> 122eb4d8dcSEmmanuel Vadot 132eb4d8dcSEmmanuel VadotallOf: 142eb4d8dcSEmmanuel Vadot - $ref: power-supply.yaml# 152eb4d8dcSEmmanuel Vadot 162eb4d8dcSEmmanuel Vadotproperties: 172eb4d8dcSEmmanuel Vadot compatible: 182eb4d8dcSEmmanuel Vadot const: nokia,n900-battery 192eb4d8dcSEmmanuel Vadot 202eb4d8dcSEmmanuel Vadot io-channels: 212eb4d8dcSEmmanuel Vadot items: 222eb4d8dcSEmmanuel Vadot - description: ADC channel for temperature reading 232eb4d8dcSEmmanuel Vadot - description: ADC channel for battery size identification 242eb4d8dcSEmmanuel Vadot - description: ADC channel to measure the battery voltage 252eb4d8dcSEmmanuel Vadot 262eb4d8dcSEmmanuel Vadot io-channel-names: 272eb4d8dcSEmmanuel Vadot items: 282eb4d8dcSEmmanuel Vadot - const: temp 292eb4d8dcSEmmanuel Vadot - const: bsi 302eb4d8dcSEmmanuel Vadot - const: vbat 312eb4d8dcSEmmanuel Vadot 322eb4d8dcSEmmanuel Vadotrequired: 332eb4d8dcSEmmanuel Vadot - compatible 342eb4d8dcSEmmanuel Vadot - io-channels 352eb4d8dcSEmmanuel Vadot - io-channel-names 362eb4d8dcSEmmanuel Vadot 372eb4d8dcSEmmanuel VadotadditionalProperties: false 382eb4d8dcSEmmanuel Vadot 392eb4d8dcSEmmanuel Vadotexamples: 402eb4d8dcSEmmanuel Vadot - | 412eb4d8dcSEmmanuel Vadot battery { 422eb4d8dcSEmmanuel Vadot compatible = "nokia,n900-battery"; 432eb4d8dcSEmmanuel Vadot io-channels = <&twl4030_madc 0>, 442eb4d8dcSEmmanuel Vadot <&twl4030_madc 4>, 452eb4d8dcSEmmanuel Vadot <&twl4030_madc 12>; 462eb4d8dcSEmmanuel Vadot io-channel-names = "temp", 472eb4d8dcSEmmanuel Vadot "bsi", 482eb4d8dcSEmmanuel Vadot "vbat"; 492eb4d8dcSEmmanuel Vadot }; 50