1b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2b97ee269SEmmanuel Vadot%YAML 1.2 3b97ee269SEmmanuel Vadot--- 4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/qcom,spmi-rradc.yaml# 5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6b97ee269SEmmanuel Vadot 7b97ee269SEmmanuel Vadottitle: Qualcomm's SPMI PMIC Round Robin ADC 8b97ee269SEmmanuel Vadot 9b97ee269SEmmanuel Vadotmaintainers: 10b97ee269SEmmanuel Vadot - Caleb Connolly <caleb.connolly@linaro.org> 11b97ee269SEmmanuel Vadot 12b97ee269SEmmanuel Vadotdescription: | 13b97ee269SEmmanuel Vadot The Qualcomm SPMI Round Robin ADC (RRADC) provides interface to clients to 14b97ee269SEmmanuel Vadot read the voltage, current and temperature for supported peripherals such as 15b97ee269SEmmanuel Vadot the battery thermistor die temperature, charger temperature, USB and DC input 16b97ee269SEmmanuel Vadot voltage / current and battery ID resistor. 17b97ee269SEmmanuel Vadot 18b97ee269SEmmanuel Vadotproperties: 19b97ee269SEmmanuel Vadot compatible: 20b97ee269SEmmanuel Vadot enum: 21b97ee269SEmmanuel Vadot - qcom,pmi8998-rradc 22b97ee269SEmmanuel Vadot - qcom,pm660-rradc 23b97ee269SEmmanuel Vadot 24b97ee269SEmmanuel Vadot reg: 25b97ee269SEmmanuel Vadot maxItems: 1 26b97ee269SEmmanuel Vadot 27b97ee269SEmmanuel Vadot qcom,batt-id-delay-ms: 28b97ee269SEmmanuel Vadot description: Sets the hardware settling time for the battery ID resistor. 29b97ee269SEmmanuel Vadot enum: [0, 1, 4, 12, 20, 40, 60, 80] 30b97ee269SEmmanuel Vadot 31b97ee269SEmmanuel Vadot "#io-channel-cells": 32b97ee269SEmmanuel Vadot const: 1 33b97ee269SEmmanuel Vadot 34b97ee269SEmmanuel Vadotrequired: 35b97ee269SEmmanuel Vadot - compatible 36b97ee269SEmmanuel Vadot - reg 37b97ee269SEmmanuel Vadot 38b97ee269SEmmanuel VadotadditionalProperties: false 39b97ee269SEmmanuel Vadot 40b97ee269SEmmanuel Vadotexamples: 41b97ee269SEmmanuel Vadot - | 42b97ee269SEmmanuel Vadot pmic { 43b97ee269SEmmanuel Vadot #address-cells = <1>; 44b97ee269SEmmanuel Vadot #size-cells = <0>; 45b97ee269SEmmanuel Vadot 46*8d13bc63SEmmanuel Vadot adc@4500 { 47b97ee269SEmmanuel Vadot compatible = "qcom,pmi8998-rradc"; 48b97ee269SEmmanuel Vadot reg = <0x4500>; 49b97ee269SEmmanuel Vadot #io-channel-cells = <1>; 50b97ee269SEmmanuel Vadot }; 51b97ee269SEmmanuel Vadot }; 52