From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 943B4C43334 for ; Tue, 14 Jun 2022 10:36:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242773AbiFNKgp (ORCPT ); Tue, 14 Jun 2022 06:36:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355785AbiFNKgk (ORCPT ); Tue, 14 Jun 2022 06:36:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6C4C49688; Tue, 14 Jun 2022 03:36:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E74BBB81853; Tue, 14 Jun 2022 10:36:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0F8AC3411B; Tue, 14 Jun 2022 10:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655202989; bh=rwLTNV8FtkV1nVo+pSkSat5md/4dvMxUVJY4Yqt7PS4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lNUD21J3oMZVICFV1A4umZXFSuY+r0Wbjc32YEh6ZLdW2Wben/pKmyyhjS6Eph/2/ OsZTd+oDTvOrTYlE+ppEMzYey9QEzsJ8NntbGuMguSthXA0PaRS1dKLzMs7hNuPttV hQhjK7yHq8a2Bo3rxKWoYw05J+gs/+mlzQnMxG4SMnSfCYtEZLXCsiMX50etKdLpTK 0X64Scn+oWJP8P6pvdtQQQns+1Ynb9Ukc3toxAFzzOa6o+GbZMRtulZm4UOXHWMQ74 ciUjOlEgG7WTKfOXj6AvMmKeGeJ9EcpDp/5s/wiI33xlz+/9idZqw6noxu6ubL6u35 R6HPMQENRNP4A== Date: Tue, 14 Jun 2022 11:45:39 +0100 From: Jonathan Cameron To: Caleb Connolly Cc: Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Lee Jones , Stephen Boyd , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Jami Kettunen , Sumit Semwal Subject: Re: [PATCH v14 04/10] dt-bindings: iio: adc: document qcom-spmi-rradc Message-ID: <20220614114539.45598cc3@jic23-huawei> In-Reply-To: <20220429220904.137297-5-caleb.connolly@linaro.org> References: <20220429220904.137297-1-caleb.connolly@linaro.org> <20220429220904.137297-5-caleb.connolly@linaro.org> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Fri, 29 Apr 2022 23:08:59 +0100 Caleb Connolly wrote: > Add dt-binding docs for the Qualcomm SPMI RRADC found in PMICs like > PMI8998 and PMI8994 > > Signed-off-by: Caleb Connolly Reviewed-by: Jonathan Cameron #to let Lee pick it up via mfd if he prefers. Thanks, Jonathan > --- > .../bindings/iio/adc/qcom,spmi-rradc.yaml | 51 +++++++++++++++++++ > 1 file changed, 51 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml > > diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml > new file mode 100644 > index 000000000000..c8cbfd3444be > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml > @@ -0,0 +1,51 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/qcom,spmi-rradc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm's SPMI PMIC Round Robin ADC > + > +maintainers: > + - Caleb Connolly > + > +description: | > + The Qualcomm SPMI Round Robin ADC (RRADC) provides interface to clients to > + read the voltage, current and temperature for supported peripherals such as > + the battery thermistor die temperature, charger temperature, USB and DC input > + voltage / current and battery ID resistor. > + > +properties: > + compatible: > + enum: > + - qcom,pmi8998-rradc > + - qcom,pm660-rradc > + > + reg: > + maxItems: 1 > + > + qcom,batt-id-delay-ms: > + description: Sets the hardware settling time for the battery ID resistor. > + enum: [0, 1, 4, 12, 20, 40, 60, 80] > + > + "#io-channel-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + pmic { > + #address-cells = <1>; > + #size-cells = <0>; > + > + pmic_rradc: adc@4500 { > + compatible = "qcom,pmi8998-rradc"; > + reg = <0x4500>; > + #io-channel-cells = <1>; > + }; > + };