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 enum: 50 - x-powers,axp209-adc 51 - x-powers,axp221-adc 52 - x-powers,axp813-adc 53 54 "#io-channel-cells": 55 const: 1 56 57additionalProperties: false 58 59examples: 60 - | 61 axp221 { 62 adc { 63 compatible = "x-powers,axp221-adc"; 64 #io-channel-cells = <1>; 65 }; 66 }; 67... 68