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