1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/adc/x-powers,axp209-adc.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: X-Powers AXP ADC bindings 8 9maintainers: 10 - Chen-Yu Tsai <wens@csie.org> 11 12description: | 13 ADC is frequently used as a provider to consumers of the ADC channels. 14 Device is a child of an axp209 multifunction device 15 ADC channels and their indexes per variant: 16 17 AXP209 18 ------ 19 0 | acin_v 20 1 | acin_i 21 2 | vbus_v 22 3 | vbus_i 23 4 | pmic_temp 24 5 | gpio0_v 25 6 | gpio1_v 26 7 | ipsout_v 27 8 | batt_v 28 9 | batt_chrg_i 29 10 | batt_dischrg_i 30 31 AXP22x 32 ------ 33 0 | pmic_temp 34 1 | batt_v 35 2 | batt_chrg_i 36 3 | batt_dischrg_i 37 38 AXP813 39 ------ 40 0 | pmic_temp 41 1 | gpio0_v 42 2 | batt_v 43 3 | batt_chrg_i 44 4 | batt_dischrg_i 45 46 47properties: 48 compatible: 49 oneOf: 50 - const: x-powers,axp209-adc 51 - const: x-powers,axp221-adc 52 - const: x-powers,axp813-adc 53 54 - items: 55 - const: x-powers,axp803-adc 56 - const: x-powers,axp813-adc 57 58 "#io-channel-cells": 59 const: 1 60 61additionalProperties: false 62 63examples: 64 - | 65 axp221 { 66 adc { 67 compatible = "x-powers,axp221-adc"; 68 #io-channel-cells = <1>; 69 }; 70 }; 71... 72