1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/power/suppl 4 $id: http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Nokia N900 battery 7 title: Nokia N900 battery 8 8 9 maintainers: 9 maintainers: 10 - Pali Rohár <pali@kernel.org> 10 - Pali Rohár <pali@kernel.org> 11 - Sebastian Reichel <sre@kernel.org> 11 - Sebastian Reichel <sre@kernel.org> 12 12 13 allOf: 13 allOf: 14 - $ref: power-supply.yaml# 14 - $ref: power-supply.yaml# 15 15 16 properties: 16 properties: 17 compatible: 17 compatible: 18 const: nokia,n900-battery 18 const: nokia,n900-battery 19 19 20 io-channels: 20 io-channels: 21 items: 21 items: 22 - description: ADC channel for temperatu 22 - description: ADC channel for temperature reading 23 - description: ADC channel for battery s 23 - description: ADC channel for battery size identification 24 - description: ADC channel to measure th 24 - description: ADC channel to measure the battery voltage 25 25 26 io-channel-names: 26 io-channel-names: 27 items: 27 items: 28 - const: temp 28 - const: temp 29 - const: bsi 29 - const: bsi 30 - const: vbat 30 - const: vbat 31 31 32 required: 32 required: 33 - compatible 33 - compatible 34 - io-channels 34 - io-channels 35 - io-channel-names 35 - io-channel-names 36 36 37 additionalProperties: false 37 additionalProperties: false 38 38 39 examples: 39 examples: 40 - | 40 - | 41 battery { 41 battery { 42 compatible = "nokia,n900-battery"; 42 compatible = "nokia,n900-battery"; 43 io-channels = <&twl4030_madc 0>, 43 io-channels = <&twl4030_madc 0>, 44 <&twl4030_madc 4>, 44 <&twl4030_madc 4>, 45 <&twl4030_madc 12>; 45 <&twl4030_madc 12>; 46 io-channel-names = "temp", 46 io-channel-names = "temp", 47 "bsi", 47 "bsi", 48 "vbat"; 48 "vbat"; 49 }; 49 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.