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