| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Nokia N900 battery |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Pali Rohár <[email protected]> |
| 11 |
- Sebastian Reichel <[email protected]> |
| 12 |
|
| 13 |
allOf: |
| 14 |
- $ref: power-supply.yaml# |
| 15 |
|
| 16 |
properties: |
| 17 |
compatible: |
| 18 |
const: nokia,n900-battery |
| 19 |
|
| 20 |
io-channels: |
| 21 |
items: |
| 22 |
- description: ADC channel for temperature reading |
| 23 |
- description: ADC channel for battery size identification |
| 24 |
- description: ADC channel to measure the battery voltage |
| 25 |
|
| 26 |
io-channel-names: |
| 27 |
items: |
| 28 |
- const: temp |
| 29 |
- const: bsi |
| 30 |
- const: vbat |
| 31 |
|
| 32 |
required: |
| 33 |
- compatible |
| 34 |
- io-channels |
| 35 |
- io-channel-names |
| 36 |
|
| 37 |
additionalProperties: false |
| 38 |
|
| 39 |
examples: |
| 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 |
}; |